Brett Zamir
297f10489f
explain colorPickerCSS default behavior in comments
...
git-svn-id: http://svg-edit.googlecode.com/svn/trunk@2802 eee81c28-f429-11dd-99c0-75d572ba1ddd
2014-04-09 01:33:11 +00:00
Brett Zamir
1b5e55dc5c
Simplify jsPDF switch
...
git-svn-id: http://svg-edit.googlecode.com/svn/trunk@2801 eee81c28-f429-11dd-99c0-75d572ba1ddd
2014-04-09 01:13:05 +00:00
Brett Zamir
35ab5a9862
Fix spacing
...
git-svn-id: http://svg-edit.googlecode.com/svn/trunk@2800 eee81c28-f429-11dd-99c0-75d572ba1ddd
2014-04-08 13:49:58 +00:00
Brett Zamir
75928e9b63
Revert to using point regardless of base unit (with comment)
...
git-svn-id: http://svg-edit.googlecode.com/svn/trunk@2798 eee81c28-f429-11dd-99c0-75d572ba1ddd
2014-04-08 11:27:05 +00:00
Brett Zamir
b1ea39db46
Provide values for px, pc, em, ex and utilize switch for divisor determination in jsPDF in order to utilize the user's current base unit type in PDF exports. Accurate conversion formulas?
...
git-svn-id: http://svg-edit.googlecode.com/svn/trunk@2797 eee81c28-f429-11dd-99c0-75d572ba1ddd
2014-04-08 11:01:46 +00:00
Brett Zamir
667de19147
Set document title as PDF property
...
git-svn-id: http://svg-edit.googlecode.com/svn/trunk@2796 eee81c28-f429-11dd-99c0-75d572ba1ddd
2014-04-08 08:18:47 +00:00
Brett Zamir
1f95988b29
Make PDF export orientation dependent on width vs. height, based on "pt", and using the dimensions of the canvas (Todo: provide alternative of predefined jsPDF options like a4, legal, etc.)
...
git-svn-id: http://svg-edit.googlecode.com/svn/trunk@2795 eee81c28-f429-11dd-99c0-75d572ba1ddd
2014-04-08 08:10:26 +00:00
Brett Zamir
50d0b1fb67
Add jsPDF(with SVG plugin)-based PDF export (courtesy of https://github.com/brettz9/jsPDF forked from https://github.com/MrRio/jsPDF => https://github.com/ahwolf/jsPDF ); provides data: URL where blob conversion is supported, and a blob URL otherwise.
...
git-svn-id: http://svg-edit.googlecode.com/svn/trunk@2792 eee81c28-f429-11dd-99c0-75d572ba1ddd
2014-04-08 05:13:54 +00:00
Brett Zamir
f8b10e95e9
Consistently use single quotes (except within XML or for localized strings) for streamlined searching
...
git-svn-id: http://svg-edit.googlecode.com/svn/trunk@2791 eee81c28-f429-11dd-99c0-75d572ba1ddd
2014-04-08 03:21:22 +00:00
Brett Zamir
0d34fcfa7d
Properly-formed URLs will not have spaces, so no need to replace; no need for "/" escaping unless within HTML doc; properly encode loadingImage window text; support loading of (properly URL encoded) non-base64 "data:image/svg+xml;utf8,"-style data URIs
...
git-svn-id: http://svg-edit.googlecode.com/svn/trunk@2782 eee81c28-f429-11dd-99c0-75d572ba1ddd
2014-04-08 01:31:22 +00:00
Brett Zamir
91a627d53d
Remove 2.7-deprecated pngsave option
...
git-svn-id: http://svg-edit.googlecode.com/svn/trunk@2780 eee81c28-f429-11dd-99c0-75d572ba1ddd
2014-04-07 23:31:00 +00:00
Brett Zamir
160c7303ca
Fix QUnit.log and references to it to reflect the currently included QUnit implementation; add missing files (test1.html is still failing even after the fixes, though it was not one of the tests included with all_tests.html)
...
git-svn-id: http://svg-edit.googlecode.com/svn/trunk@2762 eee81c28-f429-11dd-99c0-75d572ba1ddd
2014-04-07 05:33:44 +00:00
Brett Zamir
0c9308dd98
Add missing scripts to history and path tests
...
git-svn-id: http://svg-edit.googlecode.com/svn/trunk@2761 eee81c28-f429-11dd-99c0-75d572ba1ddd
2014-04-07 04:51:46 +00:00
Brett Zamir
614895baf0
Uniform spelling for "Todo" throughout code
...
git-svn-id: http://svg-edit.googlecode.com/svn/trunk@2760 eee81c28-f429-11dd-99c0-75d572ba1ddd
2014-04-07 04:13:01 +00:00
Brett Zamir
1ed3502074
Simplify meta tag (backward and HTML5 compatible)
...
git-svn-id: http://svg-edit.googlecode.com/svn/trunk@2759 eee81c28-f429-11dd-99c0-75d572ba1ddd
2014-04-07 04:10:33 +00:00
Brett Zamir
bdb81d541c
Update trunk to the non-release-related minor changes in stable/branch 2.7
...
git-svn-id: http://svg-edit.googlecode.com/svn/trunk@2758 eee81c28-f429-11dd-99c0-75d572ba1ddd
2014-04-07 04:08:52 +00:00
Brett Zamir
5cbd05c8bd
Some JSDoc work on history.js
...
git-svn-id: http://svg-edit.googlecode.com/svn/trunk@2734 eee81c28-f429-11dd-99c0-75d572ba1ddd
2014-04-03 14:21:55 +00:00
Brett Zamir
6e1393f2ea
JSDoc
...
git-svn-id: http://svg-edit.googlecode.com/svn/trunk@2733 eee81c28-f429-11dd-99c0-75d572ba1ddd
2014-03-16 11:19:37 +00:00
Brett Zamir
5439b4dc73
accept float values in case ever any added to menu
...
git-svn-id: http://svg-edit.googlecode.com/svn/trunk@2732 eee81c28-f429-11dd-99c0-75d572ba1ddd
2014-03-16 03:32:12 +00:00
Brett Zamir
3e6dbcb111
Some JSDoc
...
git-svn-id: http://svg-edit.googlecode.com/svn/trunk@2731 eee81c28-f429-11dd-99c0-75d572ba1ddd
2014-03-15 13:27:39 +00:00
Brett Zamir
d5216c8dbd
JSLint/JSDoc
...
git-svn-id: http://svg-edit.googlecode.com/svn/trunk@2730 eee81c28-f429-11dd-99c0-75d572ba1ddd
2014-03-15 12:52:50 +00:00
Brett Zamir
94c598b7f6
JSLint
...
git-svn-id: http://svg-edit.googlecode.com/svn/trunk@2729 eee81c28-f429-11dd-99c0-75d572ba1ddd
2014-03-15 12:37:05 +00:00
Brett Zamir
46fdbdfb6a
Update encodeUTF8 function
...
git-svn-id: http://svg-edit.googlecode.com/svn/trunk@2728 eee81c28-f429-11dd-99c0-75d572ba1ddd
2014-03-15 09:50:49 +00:00
Brett Zamir
2ea686a118
JSDoc
...
git-svn-id: http://svg-edit.googlecode.com/svn/trunk@2727 eee81c28-f429-11dd-99c0-75d572ba1ddd
2014-03-15 08:53:45 +00:00
Brett Zamir
8f1c74260b
Use proper DOM interface in JSDoc comment
...
git-svn-id: http://svg-edit.googlecode.com/svn/trunk@2726 eee81c28-f429-11dd-99c0-75d572ba1ddd
2014-03-02 23:31:41 +00:00
Brett Zamir
8bf64a2af7
Rmv empty comment
...
git-svn-id: http://svg-edit.googlecode.com/svn/trunk@2725 eee81c28-f429-11dd-99c0-75d572ba1ddd
2014-03-02 23:09:27 +00:00
Brett Zamir
3560444cc7
In case the frame changes location to an untrusted source such as via link click, the embedding API is now required to supply a list of any other origins that should be allowed.
...
git-svn-id: http://svg-edit.googlecode.com/svn/trunk@2724 eee81c28-f429-11dd-99c0-75d572ba1ddd
2014-03-02 01:25:39 +00:00
Brett Zamir
314bcb2e76
Critical security fix for embedded editor
...
git-svn-id: http://svg-edit.googlecode.com/svn/trunk@2723 eee81c28-f429-11dd-99c0-75d572ba1ddd
2014-03-02 01:11:23 +00:00
Brett Zamir
dd9e3b4864
Ensure top URL will change in case it wishes to react according to storagePrompt param (such as in the embedded editor).
...
git-svn-id: http://svg-edit.googlecode.com/svn/trunk@2722 eee81c28-f429-11dd-99c0-75d572ba1ddd
2014-02-22 05:19:50 +00:00
Brett Zamir
86800563ff
Allow embeddedapi.html to pass on its URL arguments to the iframe
...
git-svn-id: http://svg-edit.googlecode.com/svn/trunk@2719 eee81c28-f429-11dd-99c0-75d572ba1ddd
2014-02-22 04:52:04 +00:00
Brett Zamir
1e2e6529d2
Critical privacy/data integrity fix: Move cross-domain capable message listener into own extension (ext-xdomain-messaging.js) and do not include by default (the extension now won't work anyways without an allowedOrigins config first being set (in config.js) for security reasons (and not via URL)); add allowedOrigins config and demo use in config-sample.js; JSLint; update embedapi.html to supply the xdomain extension in case running xdomain (again, allowedOrigins must be supplied in the local copy of config.js for this to work); modify embedapi.js to allow reuse of cross-domain API with same-domain usage, but without the intermediate JSON parsing which could lose some non-JSONable arguments or response.
...
git-svn-id: http://svg-edit.googlecode.com/svn/trunk@2714 eee81c28-f429-11dd-99c0-75d572ba1ddd
2014-02-22 04:08:24 +00:00
Brett Zamir
bb75f34ec3
Require extensions to begin with "ext-" and end with ".js" to prevent URL-prompted loading of other files within the extPath.
...
git-svn-id: http://svg-edit.googlecode.com/svn/trunk@2712 eee81c28-f429-11dd-99c0-75d572ba1ddd
2014-02-19 05:26:46 +00:00
Brett Zamir
48f6dd42ca
Simplify storage checking/access
...
git-svn-id: http://svg-edit.googlecode.com/svn/trunk@2711 eee81c28-f429-11dd-99c0-75d572ba1ddd
2014-02-19 04:36:49 +00:00
Brett Zamir
9129d652e4
Add storage strings to other locales
...
git-svn-id: http://svg-edit.googlecode.com/svn/trunk@2710 eee81c28-f429-11dd-99c0-75d572ba1ddd
2014-02-19 04:33:21 +00:00
Brett Zamir
dc1bf5d88c
Safer encoding of cookies; ensure emptyStorageOnDecline only works with explicit decline (and as before, with config so set); add cookie removal to emptyStorageOnDecline behavior
...
git-svn-id: http://svg-edit.googlecode.com/svn/trunk@2709 eee81c28-f429-11dd-99c0-75d572ba1ddd
2014-02-19 01:37:21 +00:00
Brett Zamir
cb02aad1f7
Mention locale editor methods in svg-editor.js
...
git-svn-id: http://svg-edit.googlecode.com/svn/trunk@2708 eee81c28-f429-11dd-99c0-75d572ba1ddd
2014-02-19 00:46:52 +00:00
Brett Zamir
9c8b6269cb
Partially update (as-yet-not-reestablished) manifest
...
git-svn-id: http://svg-edit.googlecode.com/svn/trunk@2707 eee81c28-f429-11dd-99c0-75d572ba1ddd
2014-02-19 00:10:03 +00:00
Brett Zamir
51dcf01415
Minor: Avoid internal use of svgEditor, fix comment
...
git-svn-id: http://svg-edit.googlecode.com/svn/trunk@2706 eee81c28-f429-11dd-99c0-75d572ba1ddd
2014-02-18 23:57:49 +00:00
Brett Zamir
e463b43220
1. Reference config.js in the editor (and remove encouragement for adding extensions to HTML) but ignore config.js in SVN (let user configure) but supply config-sample.js to indicate config/pref/extension possibilities;
...
2. Move ext-overview_window.js to default but overridable list of extensions (as with other extensions);
3. Allow extensions to avoid problems if failing to return an object (in svgcanvas.js);
4. Support new langReady callback to ensure extension always called when locale info is ready (and always load locale, even English);
5. Move localStorage storing to a new (i18n-ized and available-by-default) storage extension which adds a dialog asking user for whether to store prefs and/or SVG content; $.pref() now falls back to checking defaultPrefs (which may have been expanded at runtime to include URL or storage settings); use new config "forceStorage" to get old (bad) behavior
6. Remove initial cap from "Editor" to reflect singleton nature of object (as compared to JSLint conventions for initial cap constructors);
7. Begin a little JSDoc, clearer grouping of properties/methods; JSLint/clean-up
8. Omit values for lang and iconsize to be successfully auto-detected; 9. Document "save_notice_done" and "export_notice_done" within list of prefs; document "showlayers" and "no_save_warning" as config
10. Add "preventAllURLConfig" and "preventURLContentLoading" config for URL security;
11. Add "lockExtensions" and "noDefaultExtensions" config for URL behavior re: extension loading
12. Document "showGrid", and new "noStorageOnLoad" and "emptyStorageOnDecline" extension-related config
13. Change setConfig to allow a second object with "overwrite" and "allowInitialUserOverride" properties and to behave accordingly (with URL config acting with overwrite=false to act under lower priority given security concern), along with checking "preventAllURLConfig" and "lockExtensions" config.
14. Remove any dupe extensions
15. Strip all path config from URL setting in addition to extPath (imgPath, langPath, jGraduatePath)
16. Support select+checkbox type dialog (used for storage ext.)
17. Ensure clickSelect is public so can be properly used by ext-connector.js
18. Reinstate 'in' checks just to be safe
19. Fix broken linkControlPoints() and addSubPath() functions
20. Fix problem when position returned by extension object was too high (e.g., if too few other extensions were included).
git-svn-id: http://svg-edit.googlecode.com/svn/trunk@2705 eee81c28-f429-11dd-99c0-75d572ba1ddd
2014-02-18 15:06:27 +00:00
Brett Zamir
cd560993f0
JSLint JQuerySpinBtn.js
...
git-svn-id: http://svg-edit.googlecode.com/svn/trunk@2704 eee81c28-f429-11dd-99c0-75d572ba1ddd
2014-02-18 00:12:56 +00:00
Brett Zamir
52f6464aa7
rmv redundant line
...
git-svn-id: http://svg-edit.googlecode.com/svn/trunk@2703 eee81c28-f429-11dd-99c0-75d572ba1ddd
2014-02-17 10:55:20 +00:00
Brett Zamir
463207276a
JSLint rgbcolor.js
...
git-svn-id: http://svg-edit.googlecode.com/svn/trunk@2702 eee81c28-f429-11dd-99c0-75d572ba1ddd
2014-02-17 07:05:29 +00:00
Brett Zamir
14397f4b19
JSLint
...
git-svn-id: http://svg-edit.googlecode.com/svn/trunk@2701 eee81c28-f429-11dd-99c0-75d572ba1ddd
2014-02-17 06:48:40 +00:00
Brett Zamir
ce0e07b278
Very minor: indent/clean-up
...
git-svn-id: http://svg-edit.googlecode.com/svn/trunk@2700 eee81c28-f429-11dd-99c0-75d572ba1ddd
2014-02-17 00:46:57 +00:00
Brett Zamir
6fe03a595f
Add back 'in' checks just to be sure
...
git-svn-id: http://svg-edit.googlecode.com/svn/trunk@2699 eee81c28-f429-11dd-99c0-75d572ba1ddd
2014-02-17 00:46:24 +00:00
Brett Zamir
b058e518ef
Very minor clean-up
...
git-svn-id: http://svg-edit.googlecode.com/svn/trunk@2698 eee81c28-f429-11dd-99c0-75d572ba1ddd
2014-02-16 03:21:15 +00:00
Brett Zamir
9df09a2aab
Indicate human translation (perhaps there are plenty others by now as well)
...
git-svn-id: http://svg-edit.googlecode.com/svn/trunk@2697 eee81c28-f429-11dd-99c0-75d572ba1ddd
2014-02-16 03:18:45 +00:00
Brett Zamir
f18cdbbeae
Fix issue 1174 reported by psh.tnt re: XML entity escaping (within attributes); updated test as well
...
git-svn-id: http://svg-edit.googlecode.com/svn/trunk@2696 eee81c28-f429-11dd-99c0-75d572ba1ddd
2014-02-12 10:10:56 +00:00
Brett Zamir
d6cc464ba5
JSLint extensions
...
git-svn-id: http://svg-edit.googlecode.com/svn/trunk@2695 eee81c28-f429-11dd-99c0-75d572ba1ddd
2014-02-12 09:38:38 +00:00
Brett Zamir
d97e21b604
Remove dupe keys in JSON
...
git-svn-id: http://svg-edit.googlecode.com/svn/trunk@2694 eee81c28-f429-11dd-99c0-75d572ba1ddd
2014-02-12 07:58:46 +00:00