KB Jørgensen
f9b7ae97e5
Also trigger the svgEditorReady event when opened through an iframe.
2016-08-01 09:48:00 +02:00
Flint O'Brien
53cfe68afa
Merge pull request #107 from gec/createLayerFix
...
Fixed Layers in svgcanvas. Moved Layer class. HistoryRecordingservice
2016-05-02 12:02:42 -04:00
Jeff Schiller
fb5e2c78ec
Merge pull request #85 from magnebra/text_input_update
...
Change the text input bindings to catch more input events
2016-05-02 07:53:41 -07:00
Jeff Schiller
1120d61544
Merge pull request #96 from iuyiuy/patch-1
...
Trigger the svgEditorReady after the canvas is ready.
2016-05-02 07:49:42 -07:00
Flint O'Brien
899853c963
Fixed Layers in svgcanvas. Moved Layer class. New HistoryRecordingservice.
...
Canvas was referencing drawing.all_layers and drawing.current_layer.
Both variables now represent Layer instead of group element and should
be considered private.
Moved Layer class to layer.js
New HistoryRecordingService added to help with moving Layer code out of
Canvas. Started using it in Canvas.mergLayer
2016-05-01 22:58:41 -04:00
Flint O'Brien
ebcf3d9c47
Update layers panel on programatic call to createLayer.
...
Add class=“layer” to each layer element. This happens when calling
createLayer() or any call to identifyLayers(). This happens with new
drawings and when opening legacy drawings, so it’s fully backwards
compatible.
svg-editor.js elementChanged() looks for g.layer as an addition test
for calling populateLayers() which updates the layers panel.
Addition tests for class=“layer” added to draw_test.html.
Fixed Firefox exception in draw_test.html.
2016-04-29 16:13:35 -04:00
iuyiuy
2fe15e4d3f
Trigger the svgEditorReady after the canvas is ready.
2016-03-23 11:40:42 +01:00
Magne Bratseth
1f57536546
Add config options for text
2016-03-15 08:43:24 +01:00
Jeff Schiller
2a062f6b01
Merge pull request #86 from Saurbaum/return
...
Images drawn using an extension always spawn the URL dialog
2016-03-14 09:19:31 -07:00
Ian Newborn
0c035f8aa2
Removed debugger;
2016-03-14 09:12:47 +00:00
Ian Newborn
8f904c05dd
Prevented Editor opening image browser if not in image mode
2016-03-14 09:12:23 +00:00
Magne Bratseth
d03d50dc3b
Remove binding of change - 'input' is sufficient
2016-03-14 08:01:42 +01:00
Magne Bratseth
9fdb305fb5
Change the text input bindings to catch more input events
2016-03-11 12:06:10 +01:00
Magne Bratseth
fc269cf045
Make sure font size is set to display when text is selected
2016-03-11 11:04:11 +01:00
Magne Bratseth
1c77772740
Sizing the font-size elements leave them disabled and not shown later on
2016-03-11 10:34:05 +01:00
Jeff Schiller
6715e62146
Merge pull request #7 from ibrierley/master
...
Fix for import svg image leading to unattached dragtool
2016-01-31 23:27:01 -08:00
Jordan
cac6202e58
#59 Remove double-bind of keypresses Z and Y
...
Patch for Issue #59 . https://github.com/SVG-Edit/svgedit/issues/59
2016-01-19 17:00:59 -08:00
Francesco Strappini
ce009a4581
Spacing like the code around
2015-09-27 09:01:04 +02:00
Francesco Strappini
1f11691c60
Added class support
2015-09-24 16:15:34 +02:00
ibrierley
ea129f009e
formatting
2015-07-16 19:28:20 +02:00
ibrierley
4d745dc05b
Fix for importing svg files where grabber just selects nothing as it doesnt know the svg to select
2015-07-16 15:45:48 +02:00
portablejim
a62f7c1c5a
Make context menu group option work.
2015-06-16 18:17:52 +10:00
Brett Zamir
6f7651299c
Some additional JSLint; update jsPDF and SVG plugin; handle canvg for image export within svgcanvas and provide new "datauri" to "exported" event.
...
git-svn-id: http://svg-edit.googlecode.com/svn/trunk@2875 eee81c28-f429-11dd-99c0-75d572ba1ddd
2014-06-01 21:29:54 +00:00
Brett Zamir
8bda8fe16d
Ensure loading... message closes upon completion or error
...
git-svn-id: http://svg-edit.googlecode.com/svn/trunk@2865 eee81c28-f429-11dd-99c0-75d572ba1ddd
2014-05-22 23:20:43 +00:00
Brett Zamir
d792d60808
Update JSLint global declarations
...
git-svn-id: http://svg-edit.googlecode.com/svn/trunk@2862 eee81c28-f429-11dd-99c0-75d572ba1ddd
2014-05-22 11:01:11 +00:00
Brett Zamir
abc9cd6ffb
Move embedapi.html code which is not part of the API into embedapi-dom.js; demo export PDF in embedded editor; add new exportPDF method to canvas (and exposed to embedded editor) which can support JSON-able data URI string response, removing PDF exporting from rasterExport; JSLint; move dependency checking code for canvg and jsPDF to utilities; simplify Utils calls; allow for custom PDF export handler (but not yet implemented in server-based extensions); import PDF todo
...
git-svn-id: http://svg-edit.googlecode.com/svn/trunk@2860 eee81c28-f429-11dd-99c0-75d572ba1ddd
2014-05-22 10:21:29 +00:00
Brett Zamir
3fdb8f4377
Avoid window.name security errors and make export window name configurable through config.exportWindowType (new|same) based on configurable canvas name
...
git-svn-id: http://svg-edit.googlecode.com/svn/trunk@2855 eee81c28-f429-11dd-99c0-75d572ba1ddd
2014-05-22 07:22:57 +00:00
Brett Zamir
5bddabcec3
Switch to minified and complete distribution version of jsPDF; allow data URL to work in Firefox as well as Chrome instead of blob URL; rmv global saveAs requirement
...
git-svn-id: http://svg-edit.googlecode.com/svn/trunk@2854 eee81c28-f429-11dd-99c0-75d572ba1ddd
2014-05-22 06:43:37 +00:00
Brett Zamir
25a8d9a851
Fix callEnsure all dependencies available for canvg-using extensions (server_moinsave, server_opensave)
...
git-svn-id: http://svg-edit.googlecode.com/svn/trunk@2853 eee81c28-f429-11dd-99c0-75d572ba1ddd
2014-05-22 03:47:10 +00:00
Brett Zamir
18c9fd0932
Ensure all dependencies available for canvg-using extensions (server_moinsave, server_opensave)
...
git-svn-id: http://svg-edit.googlecode.com/svn/trunk@2852 eee81c28-f429-11dd-99c0-75d572ba1ddd
2014-05-22 03:45:31 +00:00
Brett Zamir
9bda441c77
Abstract conditional script loading and allow jsPDF to load as needed (as with canvg); update jsPDF
...
git-svn-id: http://svg-edit.googlecode.com/svn/trunk@2847 eee81c28-f429-11dd-99c0-75d572ba1ddd
2014-05-22 02:34:37 +00:00
Brett Zamir
4ffd994c49
Spacing
...
git-svn-id: http://svg-edit.googlecode.com/svn/trunk@2846 eee81c28-f429-11dd-99c0-75d572ba1ddd
2014-05-22 01:30:42 +00:00
Brett Zamir
bf8c5308f2
Fix exportImage behavior if multiple setCustomHandlers calls are made
...
git-svn-id: http://svg-edit.googlecode.com/svn/trunk@2843 eee81c28-f429-11dd-99c0-75d572ba1ddd
2014-05-15 05:16:39 +00:00
Brett Zamir
978315f944
Allow override of jsPDF saveAs function (jsPDF work not complete however); apply fix for issue #1209 on push buttons; fix comment
...
git-svn-id: http://svg-edit.googlecode.com/svn/trunk@2839 eee81c28-f429-11dd-99c0-75d572ba1ddd
2014-05-08 03:47:14 +00:00
Brett Zamir
df057b9736
Quick fix for small icon view and top toolbar
...
git-svn-id: http://svg-edit.googlecode.com/svn/trunk@2826 eee81c28-f429-11dd-99c0-75d572ba1ddd
2014-04-17 00:25:02 +00:00
Brett Zamir
582e71cb1b
Minor: Spacing
...
git-svn-id: http://svg-edit.googlecode.com/svn/trunk@2825 eee81c28-f429-11dd-99c0-75d572ba1ddd
2014-04-09 22:47:39 +00:00
Brett Zamir
936d7d3aa4
Support external (embedded) export invocation; utilize export in embedded demo
...
git-svn-id: http://svg-edit.googlecode.com/svn/trunk@2822 eee81c28-f429-11dd-99c0-75d572ba1ddd
2014-04-09 06:53:08 +00:00
Brett Zamir
856d1971c2
Remove paramurl parameter as it encouraged improper encoding of a URL within the SVG Edit URL
...
git-svn-id: http://svg-edit.googlecode.com/svn/trunk@2815 eee81c28-f429-11dd-99c0-75d572ba1ddd
2014-04-09 04:26:34 +00:00
Brett Zamir
d84a4465d2
Minor clean-up
...
git-svn-id: http://svg-edit.googlecode.com/svn/trunk@2813 eee81c28-f429-11dd-99c0-75d572ba1ddd
2014-04-09 03:44:19 +00:00
Brett Zamir
04d522b43b
Properly allow for ext-grid showGrid default setting
...
git-svn-id: http://svg-edit.googlecode.com/svn/trunk@2805 eee81c28-f429-11dd-99c0-75d572ba1ddd
2014-04-09 02:25:25 +00:00
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
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
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
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
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
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
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
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
d63ed88e25
Rename PNG files accordingly
...
git-svn-id: http://svg-edit.googlecode.com/svn/trunk@2687 eee81c28-f429-11dd-99c0-75d572ba1ddd
2014-02-11 02:03:54 +00:00
Brett Zamir
74810573b2
Change group to group_elements (though keep duplicate group under old name in case it is supposed to have a different function)
...
git-svn-id: http://svg-edit.googlecode.com/svn/trunk@2686 eee81c28-f429-11dd-99c0-75d572ba1ddd
2014-02-11 01:58:57 +00:00
Brett Zamir
f378e667fb
Further documenting of $.pref
...
git-svn-id: http://svg-edit.googlecode.com/svn/trunk@2684 eee81c28-f429-11dd-99c0-75d572ba1ddd
2014-02-11 00:05:59 +00:00
Brett Zamir
cc780f39e6
Document $.pref
...
git-svn-id: http://svg-edit.googlecode.com/svn/trunk@2683 eee81c28-f429-11dd-99c0-75d572ba1ddd
2014-02-11 00:05:17 +00:00
Brett Zamir
05dc118abe
JSLint (minor)
...
git-svn-id: http://svg-edit.googlecode.com/svn/trunk@2682 eee81c28-f429-11dd-99c0-75d572ba1ddd
2014-02-10 13:50:55 +00:00
Brett Zamir
645ab15976
Add missing 'e'
...
git-svn-id: http://svg-edit.googlecode.com/svn/trunk@2681 eee81c28-f429-11dd-99c0-75d572ba1ddd
2014-02-10 13:46:19 +00:00
Brett Zamir
6e5905370d
Add e.returnValue in addEventListener('beforeunload') for sake of Firefox
...
git-svn-id: http://svg-edit.googlecode.com/svn/trunk@2680 eee81c28-f429-11dd-99c0-75d572ba1ddd
2014-02-10 13:45:48 +00:00
Brett Zamir
6a9cf9551a
Finish most of svg-editor.js JSLint
...
git-svn-id: http://svg-edit.googlecode.com/svn/trunk@2678 eee81c28-f429-11dd-99c0-75d572ba1ddd
2014-02-10 13:14:38 +00:00
Brett Zamir
2b9e299240
Ensure panning extension can be over-ridden via URL
...
git-svn-id: http://svg-edit.googlecode.com/svn/trunk@2676 eee81c28-f429-11dd-99c0-75d572ba1ddd
2014-02-10 11:39:33 +00:00
Brett Zamir
5352fe0a64
JSLint (including avoiding global)
...
git-svn-id: http://svg-edit.googlecode.com/svn/trunk@2675 eee81c28-f429-11dd-99c0-75d572ba1ddd
2014-02-10 10:53:51 +00:00
Brett Zamir
ba5aaeb1f0
JSLint
...
git-svn-id: http://svg-edit.googlecode.com/svn/trunk@2674 eee81c28-f429-11dd-99c0-75d572ba1ddd
2014-02-10 10:21:55 +00:00
Brett Zamir
6d4ec994f0
Clarify exportImage option in comments
...
git-svn-id: http://svg-edit.googlecode.com/svn/trunk@2672 eee81c28-f429-11dd-99c0-75d572ba1ddd
2014-02-10 05:54:17 +00:00
Brett Zamir
7295eece09
Potentially breaking change: Prevent setting of extPath via URL and prevent setting of cross-domain or cross-folder extensions via URL, i.e., if the extensions string possesses the character ":", "/", or, to be extra safe, "\", (issue #4 of mailing list post "Agenda for resolving security issues"). extPath and extensions can still be meaningfully set freely via setConfig calls, e.g., "svgCanvas.setConfig({extPath: ..., extensions: ...});" if made before Editor.init() is called in svg-editor.js (which is called on a jQuery ready (i.e., DOMContentLoaded) event). To avoid modifying svg-editor.html, one could build an extension which loaded its own scripts as done by the simple extFunc() function in svg-editor.js, but this would occur a little later (Should we export extFunc() for this usage?).
...
git-svn-id: http://svg-edit.googlecode.com/svn/trunk@2671 eee81c28-f429-11dd-99c0-75d572ba1ddd
2014-02-10 05:33:05 +00:00
Brett Zamir
bc3f7923e0
Very minor clean-up
...
git-svn-id: http://svg-edit.googlecode.com/svn/trunk@2668 eee81c28-f429-11dd-99c0-75d572ba1ddd
2014-02-04 04:08:24 +00:00
Brett Zamir
515de36d65
Check for urldata.extPath!
...
git-svn-id: http://svg-edit.googlecode.com/svn/trunk@2657 eee81c28-f429-11dd-99c0-75d572ba1ddd
2014-01-31 12:22:20 +00:00
Brett Zamir
51ed2f6106
JSLint
...
git-svn-id: http://svg-edit.googlecode.com/svn/trunk@2653 eee81c28-f429-11dd-99c0-75d572ba1ddd
2014-01-31 10:55:18 +00:00
Brett Zamir
4d42195d63
Properly prevent "extensions" in URL
...
git-svn-id: http://svg-edit.googlecode.com/svn/trunk@2650 eee81c28-f429-11dd-99c0-75d572ba1ddd
2014-01-31 08:23:27 +00:00
Brett Zamir
712c52ed54
Critical security fix preventing cross-domain extensions or extension path via URL
...
git-svn-id: http://svg-edit.googlecode.com/svn/trunk@2648 eee81c28-f429-11dd-99c0-75d572ba1ddd
2014-01-31 07:13:47 +00:00
Brett Zamir
75bd787023
JSLint
...
git-svn-id: http://svg-edit.googlecode.com/svn/trunk@2644 eee81c28-f429-11dd-99c0-75d572ba1ddd
2014-01-31 02:13:37 +00:00
Brett Zamir
afa427a4a2
Begin JSLint journey
...
git-svn-id: http://svg-edit.googlecode.com/svn/trunk@2640 eee81c28-f429-11dd-99c0-75d572ba1ddd
2014-01-31 00:27:46 +00:00
Brett Zamir
6b5a4e645e
change beforeunload to use addEventListener (only supporting IE9 now and better to allow multiple if user wishes); also CamelCase internal variable for consistency; add brackets
...
git-svn-id: http://svg-edit.googlecode.com/svn/trunk@2639 eee81c28-f429-11dd-99c0-75d572ba1ddd
2014-01-31 00:06:50 +00:00
Brett Zamir
395badc387
Avoid duplicate sliders when switching between WEBP and JPEG (thanks adrianbjones for the report!); fix tabs
...
git-svn-id: http://svg-edit.googlecode.com/svn/trunk@2616 eee81c28-f429-11dd-99c0-75d572ba1ddd
2013-10-29 07:07:09 +00:00
Brett Zamir
5ff2311348
Making tabbing consistent
...
git-svn-id: http://svg-edit.googlecode.com/svn/trunk@2615 eee81c28-f429-11dd-99c0-75d572ba1ddd
2013-10-29 06:54:31 +00:00
Brett Zamir
6ad70cf440
Prevent error when disabling image label
...
git-svn-id: http://svg-edit.googlecode.com/svn/trunk@2612 eee81c28-f429-11dd-99c0-75d572ba1ddd
2013-10-29 03:58:24 +00:00
Brett Zamir
2b35ec344b
Prevent errors in svg-editor when imagelib extension is used; Update imagelib to proper HTML5 with charset
...
git-svn-id: http://svg-edit.googlecode.com/svn/trunk@2611 eee81c28-f429-11dd-99c0-75d572ba1ddd
2013-10-29 03:43:10 +00:00
Brett Zamir
f8aeacd7a8
Support PNG, JPEG, BMP, WEBP export formats by change of "Export to PNG" menu item into "Export" with its own pull-down dialog (and a HTML5 range type input element for "quality" selection for JPEG or WEBP files), including changes for the server_opensave extension; change locale key from "export_png" to "export_img" and change the corresponding localized strings (currently CS, DE, ES, FR, IT, NL, PT-BR, RO, SK, all reset to English to avoid translation errors); within the setCustomHandlers() API, deprecate "pngsave" in favor of "exportImage" (chosen to avoid just using the simpler but reserved JS keyword "export") including use within the server_opensave extension; a few JSLint-friendly changes
...
git-svn-id: http://svg-edit.googlecode.com/svn/trunk@2602 eee81c28-f429-11dd-99c0-75d572ba1ddd
2013-10-28 03:53:30 +00:00
Brett Zamir
c54b7865e1
Fix arguments passing in new postMessage code
...
git-svn-id: http://svg-edit.googlecode.com/svn/trunk@2594 eee81c28-f429-11dd-99c0-75d572ba1ddd
2013-10-14 03:15:16 +00:00
Brett Zamir
c75661c758
Indent consistency per file
...
git-svn-id: http://svg-edit.googlecode.com/svn/trunk@2591 eee81c28-f429-11dd-99c0-75d572ba1ddd
2013-10-14 01:50:42 +00:00
Brett Zamir
80c16aa6ef
Move back to string messages for postMessage for sake of IE9 (though not with eval); avoid IE9 error with localStorage and missing select icon
...
git-svn-id: http://svg-edit.googlecode.com/svn/trunk@2590 eee81c28-f429-11dd-99c0-75d572ba1ddd
2013-10-14 01:24:52 +00:00
Brett Zamir
ffde8814ac
Fix security issue by avoiding use of eval() within postMessage calls between embedAPI and main editor (also namespace the messages and protect the imagelib extension message listener from non-string messages); avoid embedAPI's unneeded randomizing of callback IDs in favor of incrementing; deprecate old embedded_svg_edit API name in favor of JS/JSLint-friendly EmbeddedSVGEdit name (and allow it to be instantiated w/o new keyword); JSLint/HTML5-ize embedAPI files, remove HTML5/browser-optional type="text/javascript", remove unused comments for embedAPI
...
git-svn-id: http://svg-edit.googlecode.com/svn/trunk@2585 eee81c28-f429-11dd-99c0-75d572ba1ddd
2013-10-13 23:59:32 +00:00
Brett Zamir
109cbaf99b
Remove 2-space sequences
...
git-svn-id: http://svg-edit.googlecode.com/svn/trunk@2584 eee81c28-f429-11dd-99c0-75d572ba1ddd
2013-10-13 23:23:08 +00:00
Brett Zamir
62a7c13e9c
Consistent indentation (tab seemed to be main convention in this file, so changed to tab)
...
git-svn-id: http://svg-edit.googlecode.com/svn/trunk@2581 eee81c28-f429-11dd-99c0-75d572ba1ddd
2013-10-12 03:08:26 +00:00
Mike Baynton
af639eb56b
Fix vertical position of flyouts from left toolbar when viewport <= 1250px
...
git-svn-id: http://svg-edit.googlecode.com/svn/trunk@2562 eee81c28-f429-11dd-99c0-75d572ba1ddd
2013-10-07 01:35:01 +00:00
James Sacksteder
3887d822b2
Added a thumbnail overview as described in Issue 208 part 6.
...
git-svn-id: http://svg-edit.googlecode.com/svn/trunk@2533 eee81c28-f429-11dd-99c0-75d572ba1ddd
2013-09-23 18:55:52 +00:00
薄成文
7b986e56ef
fix a bug of layer changes.
...
see :http://code.google.com/p/svg-edit/issues/detail?id=1099
git-svn-id: http://svg-edit.googlecode.com/svn/trunk@2516 eee81c28-f429-11dd-99c0-75d572ba1ddd
2013-06-07 14:16:00 +00:00
Adrian Jones
5b641cb5c0
Two more loading messages for Import and Open of images.
...
git-svn-id: http://svg-edit.googlecode.com/svn/trunk@2513 eee81c28-f429-11dd-99c0-75d572ba1ddd
2013-05-29 01:39:37 +00:00
Adrian Jones
61295b83e6
Simplified the loading image from URL message to make use of existing dialog box types and text strings
...
git-svn-id: http://svg-edit.googlecode.com/svn/trunk@2512 eee81c28-f429-11dd-99c0-75d572ba1ddd
2013-05-28 22:29:14 +00:00
Adrian Jones
f924e34fba
Add loading message when loading image from URL. Complex SVGs take a long time to render!
...
git-svn-id: http://svg-edit.googlecode.com/svn/trunk@2510 eee81c28-f429-11dd-99c0-75d572ba1ddd
2013-05-08 17:29:18 +00:00
Bruno Heridet
f6dcf51e37
cleaned up populateLayers()
...
git-svn-id: http://svg-edit.googlecode.com/svn/trunk@2467 eee81c28-f429-11dd-99c0-75d572ba1ddd
2013-02-23 19:22:00 +00:00
Bruno Heridet
78cb0e48bb
added missing radix and misc formatting
...
git-svn-id: http://svg-edit.googlecode.com/svn/trunk@2466 eee81c28-f429-11dd-99c0-75d572ba1ddd
2013-02-23 18:56:45 +00:00
Bruno Heridet
4cdacdc168
improved loosed type coercion for reorient tool
...
git-svn-id: http://svg-edit.googlecode.com/svn/trunk@2465 eee81c28-f429-11dd-99c0-75d572ba1ddd
2013-02-23 18:34:23 +00:00
Bruno Heridet
541a981a21
removed non properly deleted test config introduced in r1467
...
git-svn-id: http://svg-edit.googlecode.com/svn/trunk@2464 eee81c28-f429-11dd-99c0-75d572ba1ddd
2013-02-23 18:09:16 +00:00
Bruno Heridet
0e92ca4a0e
switched from properlySourceSizeTextArea() to a full CSS equivalent to optimize DOM repaint
...
git-svn-id: http://svg-edit.googlecode.com/svn/trunk@2463 eee81c28-f429-11dd-99c0-75d572ba1ddd
2013-02-23 18:05:15 +00:00
Bruno Heridet
9f58a680c3
removed unneeded json_encode / json_decode for 3 reasons:
...
- it's available natively since IE8 and it's provided by Chrome Frame which is a requirement for old IE
- it's only used for postMessage exchange which is a newer API than JSON
- if ever we would need it, it should be added in an external lib, not inside the editor code itself
git-svn-id: http://svg-edit.googlecode.com/svn/trunk@2462 eee81c28-f429-11dd-99c0-75d572ba1ddd
2013-02-23 17:37:05 +00:00
Bruno Heridet
8c8f7b4745
misc style harmonizing
...
git-svn-id: http://svg-edit.googlecode.com/svn/trunk@2451 eee81c28-f429-11dd-99c0-75d572ba1ddd
2013-02-21 20:34:11 +00:00
Bruno Heridet
e0dbc7e750
moved layers list styling to CSS
...
git-svn-id: http://svg-edit.googlecode.com/svn/trunk@2450 eee81c28-f429-11dd-99c0-75d572ba1ddd
2013-02-21 19:56:59 +00:00
Bruno Heridet
61be265b91
moved touch events listeners to touch.js
...
git-svn-id: http://svg-edit.googlecode.com/svn/trunk@2449 eee81c28-f429-11dd-99c0-75d572ba1ddd
2013-02-21 14:48:24 +00:00
Bruno Heridet
c955780639
unified sidePanel resizing / toggling
...
git-svn-id: http://svg-edit.googlecode.com/svn/trunk@2448 eee81c28-f429-11dd-99c0-75d572ba1ddd
2013-02-20 22:28:45 +00:00
Bruno Heridet
24089d93f9
simplified label disabled
...
git-svn-id: http://svg-edit.googlecode.com/svn/trunk@2447 eee81c28-f429-11dd-99c0-75d572ba1ddd
2013-02-20 21:50:18 +00:00
Bruno Heridet
13904755b9
misc if simplification
...
git-svn-id: http://svg-edit.googlecode.com/svn/trunk@2446 eee81c28-f429-11dd-99c0-75d572ba1ddd
2013-02-20 21:45:10 +00:00
Bruno Heridet
5cad5c9981
camelCased default_img_url -> defaultImageURL
...
git-svn-id: http://svg-edit.googlecode.com/svn/trunk@2445 eee81c28-f429-11dd-99c0-75d572ba1ddd
2013-02-20 21:40:21 +00:00
Bruno Heridet
bdbdc6bddb
misc var camelCasing and commenting in updateRulers
...
git-svn-id: http://svg-edit.googlecode.com/svn/trunk@2444 eee81c28-f429-11dd-99c0-75d572ba1ddd
2013-02-20 21:04:54 +00:00
Bruno Heridet
617c5c32bb
fixed #895 thanks to FlintOBrien - Grid is invisible when background is black
...
git-svn-id: http://svg-edit.googlecode.com/svn/trunk@2435 eee81c28-f429-11dd-99c0-75d572ba1ddd
2013-02-19 21:07:24 +00:00
Bruno Heridet
d809578c6c
fixed indentation and removed two unneeded local vars
...
git-svn-id: http://svg-edit.googlecode.com/svn/trunk@2432 eee81c28-f429-11dd-99c0-75d572ba1ddd
2013-02-19 15:00:56 +00:00
Bruno Heridet
570c59ebf2
used .data() method shortcut to retrieve zoomValue
...
git-svn-id: http://svg-edit.googlecode.com/svn/trunk@2431 eee81c28-f429-11dd-99c0-75d572ba1ddd
2013-02-19 13:25:54 +00:00
Bruno Heridet
12f5fd9bce
added getPaintOpacity() on svgCanvas, used it to simplify mouseDown callback on palette in svgEditor
...
git-svn-id: http://svg-edit.googlecode.com/svn/trunk@2430 eee81c28-f429-11dd-99c0-75d572ba1ddd
2013-02-19 13:17:27 +00:00
Bruno Heridet
47b6e11be9
simplified getPaint()
...
git-svn-id: http://svg-edit.googlecode.com/svn/trunk@2427 eee81c28-f429-11dd-99c0-75d572ba1ddd
2013-02-19 11:13:03 +00:00
Bruno Heridet
3ccba8d739
misc code reordering to ease future addDropDown addAltDropDown merge
...
git-svn-id: http://svg-edit.googlecode.com/svn/trunk@2425 eee81c28-f429-11dd-99c0-75d572ba1ddd
2013-02-18 20:55:04 +00:00
Bruno Heridet
8eceeb2b3f
unified overlays styling
...
git-svn-id: http://svg-edit.googlecode.com/svn/trunk@2423 eee81c28-f429-11dd-99c0-75d572ba1ddd
2013-02-18 18:52:07 +00:00
Bruno Heridet
5ce4431658
used svgedit.browser checks instead of redefined ones
...
git-svn-id: http://svg-edit.googlecode.com/svn/trunk@2422 eee81c28-f429-11dd-99c0-75d572ba1ddd
2013-02-18 18:22:00 +00:00
Bruno Heridet
15d765de85
used .prop() for #grid_snapping_on checkbox state
...
git-svn-id: http://svg-edit.googlecode.com/svn/trunk@2421 eee81c28-f429-11dd-99c0-75d572ba1ddd
2013-02-18 18:02:39 +00:00
Bruno Heridet
4441810638
simplified undo/redon, node link and sub path button states
...
git-svn-id: http://svg-edit.googlecode.com/svn/trunk@2415 eee81c28-f429-11dd-99c0-75d572ba1ddd
2013-02-16 16:07:19 +00:00
Bruno Heridet
79f7ee4614
simplified wireframe button toggling
...
git-svn-id: http://svg-edit.googlecode.com/svn/trunk@2414 eee81c28-f429-11dd-99c0-75d572ba1ddd
2013-02-16 15:49:33 +00:00
Bruno Heridet
b599a2a54b
fixed old Chrome bug handling for svg saving
...
git-svn-id: http://svg-edit.googlecode.com/svn/trunk@2413 eee81c28-f429-11dd-99c0-75d572ba1ddd
2013-02-16 15:36:19 +00:00
Bruno Heridet
525e869e7f
set show_save_warning to camelCase
...
git-svn-id: http://svg-edit.googlecode.com/svn/trunk@2412 eee81c28-f429-11dd-99c0-75d572ba1ddd
2013-02-16 15:19:20 +00:00
Bruno Heridet
f9b8aa624c
created svgedit main object, moved all namespaces handling in the same place
...
git-svn-id: http://svg-edit.googlecode.com/svn/trunk@2411 eee81c28-f429-11dd-99c0-75d572ba1ddd
2013-02-16 15:02:26 +00:00
Bruno Heridet
dd6b28d886
used default step values for SpinButtons
...
git-svn-id: http://svg-edit.googlecode.com/svn/trunk@2404 eee81c28-f429-11dd-99c0-75d572ba1ddd
2013-02-16 10:28:17 +00:00
Bruno Heridet
a851e70c6e
fixed $hcanv leak
...
git-svn-id: http://svg-edit.googlecode.com/svn/trunk@2403 eee81c28-f429-11dd-99c0-75d572ba1ddd
2013-02-15 23:17:56 +00:00
Bruno Heridet
7a36f90eb6
fixed getRefElem and smoothControlPoints leaking variables
...
git-svn-id: http://svg-edit.googlecode.com/svn/trunk@2402 eee81c28-f429-11dd-99c0-75d572ba1ddd
2013-02-15 23:05:23 +00:00
Bruno Heridet
d5dca6b4a3
misc cleanup
...
git-svn-id: http://svg-edit.googlecode.com/svn/trunk@2401 eee81c28-f429-11dd-99c0-75d572ba1ddd
2013-02-15 22:32:35 +00:00
Bruno Heridet
ad7e26b8de
renamed some snake_case
...
git-svn-id: http://svg-edit.googlecode.com/svn/trunk@2400 eee81c28-f429-11dd-99c0-75d572ba1ddd
2013-02-15 22:07:05 +00:00
Bruno Heridet
b3b363523b
fixed missing fallback png align buttons, cleaned quotes, if style inconsistencies
...
git-svn-id: http://svg-edit.googlecode.com/svn/trunk@2399 eee81c28-f429-11dd-99c0-75d572ba1ddd
2013-02-15 21:57:35 +00:00
Bruno Heridet
7b7f03a24f
fixed heaps of missing semicolons and indentation inconsistencies, still a lot to do
...
git-svn-id: http://svg-edit.googlecode.com/svn/trunk@2393 eee81c28-f429-11dd-99c0-75d572ba1ddd
2013-02-15 13:38:55 +00:00
Luis Aguirre
93950ca293
Change name from svgEditor.setPan to svgEditor.setPanning
...
git-svn-id: http://svg-edit.googlecode.com/svn/trunk@2332 eee81c28-f429-11dd-99c0-75d572ba1ddd
2013-02-07 13:55:23 +00:00
Luis Aguirre
45389b6b94
Create setPan at svg-editor.js to let move the document without pressing any key or mouse button. Usefull for future tablet/mobile edition
...
git-svn-id: http://svg-edit.googlecode.com/svn/trunk@2331 eee81c28-f429-11dd-99c0-75d572ba1ddd
2013-02-07 11:47:17 +00:00
Chance Roth
ec0b458fff
Added Star and Polygon Extensions - Looks like Firefox recently broke something and shows mitre ends too long. USed to work great, Chrome is fine.
...
git-svn-id: http://svg-edit.googlecode.com/svn/trunk@2318 eee81c28-f429-11dd-99c0-75d572ba1ddd
2013-01-18 18:04:17 +00:00
Rafael Couto
e5a32fc003
prettify the resulting zoom decimal
...
git-svn-id: http://svg-edit.googlecode.com/svn/trunk@2311 eee81c28-f429-11dd-99c0-75d572ba1ddd
2013-01-17 11:05:06 +00:00
Rafael Couto
8823218968
fix - function already exist in other file (sorry about that!)
...
git-svn-id: http://svg-edit.googlecode.com/svn/trunk@2277 eee81c28-f429-11dd-99c0-75d572ba1ddd
2013-01-16 00:31:32 +00:00
Rafael Couto
fcdbbe7474
Mouse Wheel Zoom
...
git-svn-id: http://svg-edit.googlecode.com/svn/trunk@2274 eee81c28-f429-11dd-99c0-75d572ba1ddd
2013-01-09 23:23:28 +00:00
Dale Harvey
89416b0ac6
Add a default autosave canvas to localstorage
...
git-svn-id: http://svg-edit.googlecode.com/svn/trunk@2273 eee81c28-f429-11dd-99c0-75d572ba1ddd
2013-01-09 23:14:35 +00:00
Mark MacKay
bea865ae4f
fix for transparent color
...
git-svn-id: http://svg-edit.googlecode.com/svn/trunk@2225 eee81c28-f429-11dd-99c0-75d572ba1ddd
2012-12-05 00:06:48 +00:00
Mark MacKay
c99f759d46
changing context now clears the selection
...
git-svn-id: http://svg-edit.googlecode.com/svn/trunk@2198 eee81c28-f429-11dd-99c0-75d572ba1ddd
2012-11-28 05:02:46 +00:00
Mark MacKay
650fa70404
added zoomChanged to the embedded api, partial patch from RobertLeePlummerJr #973
...
git-svn-id: http://svg-edit.googlecode.com/svn/trunk@2197 eee81c28-f429-11dd-99c0-75d572ba1ddd
2012-11-28 04:32:59 +00:00
Mark MacKay
6065268f32
fixing positioning of color picker
...
git-svn-id: http://svg-edit.googlecode.com/svn/trunk@2196 eee81c28-f429-11dd-99c0-75d572ba1ddd
2012-11-28 02:08:13 +00:00
Mark MacKay
08e5405a41
interface optimizations for maximizing canvas area
...
git-svn-id: http://svg-edit.googlecode.com/svn/trunk@2195 eee81c28-f429-11dd-99c0-75d572ba1ddd
2012-11-28 01:42:57 +00:00
Ahmad Syazwan
4cc9c7d0ec
Apply duopixel's patch for drag 'n drop image support (see issue 999). Also removed trailing spaces
...
git-svn-id: http://svg-edit.googlecode.com/svn/trunk@2090 eee81c28-f429-11dd-99c0-75d572ba1ddd
2012-10-22 10:47:50 +00:00
Marc Laporte
cf0dde3f4a
Updating license information as per http://code.google.com/p/svg-edit/issues/detail?id=959
...
git-svn-id: http://svg-edit.googlecode.com/svn/trunk@2088 eee81c28-f429-11dd-99c0-75d572ba1ddd
2012-09-16 18:53:27 +00:00
Will Schleter
7f487a89b2
Address issue 526 - incorporate duopixel's patch to convert touch events to mouse events.
...
git-svn-id: http://svg-edit.googlecode.com/svn/trunk@2085 eee81c28-f429-11dd-99c0-75d572ba1ddd
2012-07-21 11:02:54 +00:00
Ahmad Syazwan
36e0fbd2d5
Fix issue 934. Patch by adambender.
...
git-svn-id: http://svg-edit.googlecode.com/svn/trunk@2083 eee81c28-f429-11dd-99c0-75d572ba1ddd
2012-05-25 04:04:22 +00:00
Jeff Schiller
7e6a6e68a1
Rollback bad revision 2075
...
git-svn-id: http://svg-edit.googlecode.com/svn/trunk@2076 eee81c28-f429-11dd-99c0-75d572ba1ddd
2012-03-31 18:02:08 +00:00
Jeff Schiller
b0aa96bdec
Fix a test failing in Firefox by decreasing the precision expected
...
git-svn-id: http://svg-edit.googlecode.com/svn/trunk@2075 eee81c28-f429-11dd-99c0-75d572ba1ddd
2012-03-31 17:55:01 +00:00
Ahmad Syazwan
c3f7b7541d
Fix issue 927 and issue 462. Patch by duopixel.
...
git-svn-id: http://svg-edit.googlecode.com/svn/trunk@2067 eee81c28-f429-11dd-99c0-75d572ba1ddd
2012-03-22 10:31:25 +00:00