Commit Graph

2084 Commits (fb9eb8079883867a3b2f79267eedf34be5a98680)

Author SHA1 Message Date
KB Jørgensen c65f98b0ba Split code for added clarity. 2016-11-14 10:08:06 +01:00
KB Jørgensen 4994deb6ec Removed redundant function name. 2016-11-14 10:06:05 +01:00
KB Jørgensen 0bf50b0b42 Added description of the new children option to the addSvgElementFromJson() function. 2016-11-14 09:54:53 +01:00
Jeff Schiller 627d038e33 Merge pull request #142 from iuyiuy/null_stroke_fix
Fixed an issue where resizing an element would set stroke="null" on it.
2016-11-11 10:09:06 -08:00
Jeff Schiller 8f73ae16bb Update svgcanvas.js 2016-11-11 10:08:38 -08:00
Jeff Schiller 0108115b41 Merge pull request #138 from sbrown345/master
Fixed call to createSVGRect in getIntersectionList
2016-11-11 10:06:55 -08:00
Jeff Schiller 9b80e65828 Merge pull request #127 from iuyiuy/upstream_issue_93
Fix for issue #93 - svgEditorReady event is not triggered in an iframe.
2016-11-11 08:50:30 -08:00
Jeff Schiller 90b8837aa2 Merge pull request #111 from q2apro/patch-1
Improved DE translation
2016-11-11 08:49:01 -08:00
KB Jørgensen 6f2822fac8 Removed code which went through all nodes and recalculated dimensions,
which was a lot of work for large svg drawings. There's no need to do
that when loading. It will happen gradually when you use it and on
manageable parts. This changed the loading time for a page with svg-edit
and a large drawing from ~50 secs to ~5 secs.
2016-11-11 15:46:51 +01:00
KB Jørgensen b2469d27d5 Fixed an issue where resizing an element would set stroke="null" on it. 2016-10-12 10:37:50 +02:00
Simon Brown b9549e1d43 fixed call to createSVGRect in getIntersectionList
createSVGRect() does not have parameters, they must be set on the object after

https://developer.mozilla.org/en/docs/Web/API/SVGSVGElement
2016-09-14 18:44:09 +01:00
Sylvain Chiron 644f5c2448 Updated/reviewed French translation
Signed-off-by: Sylvain Chiron <chironsylvain@orange.fr>
2016-08-12 23:34:05 +02:00
KB Jørgensen e79db0f2a6 Added ability to create a text node with just a string in addSvgElementFromJson(). 2016-08-08 16:32:59 +02:00
KB Jørgensen b301acf716 Added ability to include children in the json to addSvgElementFromJson(). 2016-08-05 14:29:58 +02:00
KB Jørgensen f9b7ae97e5 Also trigger the svgEditorReady event when opened through an iframe. 2016-08-01 09:48:00 +02:00
jingsam 051e0ca73a add zh-CN language option 2016-07-02 20:17:31 +08:00
q2apro.com b3b44cd964 Improved DE translation 2016-05-08 18:26:47 +03:00
Flint O'Brien 6023bd6f5a Formatting changes. 2016-05-04 09:54:20 -04:00
Flint O'Brien 87e25e9d2c Fix merge/cloneLayer. Migrate more Canvas functions to Draw. Tests.
Fixed recently introduced bugs in mergeLayer, cloneLayer.
More Draw unit tests.
Migrating Canvas methods to Draw, Layer, and utilities: copyElem,
pathActions.convertPath, cloneLayer, mergeLayer, and mergeAllLayers.
Canvas API is unchanged for backwards compatibility (i.e. previous
functions forward to new functions).
2016-05-04 09:38:29 -04:00
Flint O'Brien 2799b4cba2 Test and fix current layer rename. 2016-05-02 18:33:45 -04:00
Flint O'Brien 853891aeaf Added new files to Makefile. Added underscores to private members in HistoryRecordingService. 2016-05-02 12:27:53 -04: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 ed16b0a8d1 Updated comment. 2016-04-30 21:46:45 -04:00
Flint O'Brien 7b4f7d0ae9 Code formatting updated. 2016-04-30 21:30:13 -04:00
Flint O'Brien 26b7ac05a1 Fixed bug with getCurrentLayer when no current layer. 2016-04-30 21:11:02 -04:00
Flint O'Brien 575a056bd9 Refactored draw.js to use new Layer class. 2016-04-30 20:58:19 -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
Jeff Schiller 3ef423e30a Merge pull request #103 from gec/getBBox-performance
GetBBox performance improvements
2016-04-28 16:21:12 -07:00
Flint O'Brien 3230520d67 Optimized getBBoxWithTransform when rotation multiple of 90
This feature was in previous release, but broken. This update uses
standard, faster bounding box calculation for simple shapes when angle
is multiple of 90.
Updated tests. Fixed two tests that were broken in Safari.
2016-04-28 12:11:54 -04:00
Waldir Pimenta 0833678eba link to appropriate section of TR 2016-04-27 10:24:59 +01:00
Flint O'Brien 7db3b22c58 Updates from pull request code review. Refactored getExtraAttributesForConvertToPath.
Updated all formatting requests.
Refactored and renamed addAttributesForConvertToPath to
getExtraAttributesForConvertToPath. Now called from
getBBoxOfElementAsPath and convertToPath.
2016-04-26 16:01:39 -04:00
Flint O'Brien 17c3e0fa28 Performance improvement for select.js and canvas.addToSelection
canvas.addToSelection was calling getBBox, throwing it away, then
calling selectorManager.requestSelector() which called getBBox again.
Now passing-in an optional bbox to selector functions.
2016-04-24 16:56:32 -04:00
Flint O'Brien 12a393505d Refactoring and performance improvements for getStrokedBBox.
canvas.getStrokedBBox internals refactored to svgutils.
getStrokedBBox/getCheckedBBox renamed to
svgedit.utilities.getBBoxWithTransform
Removed duplicate calls to native getBBox.
Refactored slow transformed BBox from temporary DOM append/remove to
matrix calculations.
Lots of tests. Added qunit/qunit-assert-close.js.
2016-04-24 16:43:20 -04:00
Flint O'Brien 0c9ff4d1ac Updated comment svgutils convertToPath... again. 2016-04-22 13:39:20 -04:00
Flint O'Brien 86c3818886 Updated comment svgutils convertToPath. 2016-04-22 13:36:10 -04:00
Flint O'Brien 01ad9d7fdd Refactor canvas.convertToPath() internals to svgutils in preparation for getBBox performance improvements.
Two new functions in svgutils: convertToPath() and getBBoxOfElementAsPath().
Updated test/svgutils_test.html.
2016-04-22 12:24:52 -04:00
iuyiuy 2fe15e4d3f Trigger the svgEditorReady after the canvas is ready. 2016-03-23 11:40:42 +01:00
Jeff Schiller a3dbb7c5af Merge pull request #91 from magnebra/add_text_config_options
Add config options for text
2016-03-19 22:35:11 -07:00
Magne Bratseth 1f57536546 Add config options for text 2016-03-15 08:43:24 +01:00
Philip Rogers 9d7e60933b Merge pull request #90 from magnebra/missing_defs_after_paste
Check for deleted defs after paste, fixes #82
2016-03-14 23:55:54 -07:00
Jeff Schiller c01930d4ec Merge pull request #87 from Saurbaum/snaptogrid
Expose current zoom level through canvas for extensions
2016-03-14 09:20:23 -07: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
Magne Bratseth a41191158f Check for deleted defs after paste, fixes #82 2016-03-14 13:16:30 +01:00
Ian Newborn d8dae76d3a Exposed grid snapping setting on svgCanvas 2016-03-14 09:13:56 +00: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
Magne Bratseth 48e54b6f85 Simplify the code a bit more 2016-02-26 09:46:32 +01:00
Magne Bratseth 78f214de8b Cosmetics 2016-02-25 09:05:50 +01:00
Magne Bratseth 0cf2fc57a1 Slight changes to make the code more readable 2016-02-25 09:03:20 +01:00
Magne Bratseth d19cc062c5 Merge branch 'master' into ellipse_preserve_0_rx_ry 2016-02-25 08:50:37 +01:00
Philip Rogers e826d3ff19 Remove fix that cloned path segments and add tests to show it works 2016-02-21 17:13:40 -08:00
Jeff Schiller e625a2b434 Merge pull request #67 from magnebra/getintersectionlist_fails_ie_chrome
some browsers require objects passed to getInsectionList to be of correct the type
2016-02-20 19:38:32 -08:00
Jeff Schiller e26c7cd759 Merge pull request #57 from StalderT/patch-3
Update svgcanvas.js
2016-02-14 21:32:38 -08:00
Jeff Schiller 948ba30214 Fix browser.js error messages when testing whether replaceItem and insertItemBefore work, since paths must start with M commands 2016-02-14 13:42:28 -08:00
Magne Bratseth 88ef7b02cc It seems some browsers require objects passed to getInsectionList to
actually be of the correct type
2016-02-10 09:38:43 +01:00
Magne Bratseth b23502fba4 Do not strip rx=0 and ry=0 from ellipse elements as these values are not
default and holds a special meaning for ellipses (a value of 0 disables
rendering of the element)
2016-02-09 15:16:44 +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
Jeff Schiller 7e5a012aa9 Merge pull request #60 from GoTeamScotch/master
#59 Remove double-bind of keypresses Z and Y
2016-01-20 18:01:54 -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
Jeff Schiller 8e4875bf5d Merge pull request #49 from harikk/patch-2
Fix for issue #48 - improper placement of rubber-band box for 'use' elements.
2016-01-16 12:35:54 -08:00
StalderT ae533338a1 Update svgcanvas.js
correct https://github.com/SVG-Edit/svgedit/issues/54
2016-01-16 19:42:15 +01:00
StalderT 5a5347045c Update svgcanvas.js
correct https://github.com/SVG-Edit/svgedit/issues/55
2016-01-16 19:40:29 +01:00
Harikrishnan K 750c9c7141 Update svgutils.js
remove the commented 'if' to resolve #48
2015-12-11 12:04:03 +05:30
Jeff Schiller 96e5b2377e Only disable overview panel in Chrome 48-, not all Chrome 2015-12-07 07:53:28 -08:00
Jeff Schiller 87f92ce236 Fix tab indent 2015-12-03 17:27:28 -08:00
Jeff Schiller 03fbe49928 Hide Overview panel in Chrome. 2015-12-03 17:25:18 -08:00
Jeff Schiller c6255aaceb Update home page links to github 2015-12-03 00:24:28 -08:00
Philip Rogers 5986f1e411 Merge pull request #35 from StalderT/patch-1
Fix "page" and "delete" translations
2015-12-02 09:52:57 -08:00
StalderT c40c67748f Update lang.fa.js 2015-12-02 10:51:19 +01:00
StalderT 693de51a21 Update lang.yi.js 2015-12-02 10:48:54 +01:00
StalderT e4875ba514 Update lang.ro.js 2015-12-02 10:42:34 +01:00
Philip Rogers fca8c742f9 Switch imagelib to https urls, update project to be hosted over https 2015-12-01 22:15:28 -08:00
Philip Rogers 0f13c0570d Merge pull request #34 from SVG-Edit/intersection-list
Use getIntersectionList when available, remove suspendRedraws calls
2015-12-01 22:04:36 -08:00
StalderT 8ba484b5cb Update lang.zh-TW.js 2015-12-01 12:26:17 +01:00
StalderT 31f9b43f1c Update lang.zh-HK.js 2015-12-01 12:25:54 +01:00
StalderT 11e4175f2c Update lang.zh-CN.js 2015-12-01 12:22:25 +01:00
StalderT 81903988da Update lang.yi.js 2015-12-01 12:21:59 +01:00
StalderT 9939bf1f84 Update lang.vi.js 2015-12-01 12:20:44 +01:00
StalderT 1477b48a47 Update lang.uk.js 2015-12-01 12:19:39 +01:00
StalderT 9e59a7c334 Update lang.tr.js 2015-12-01 12:18:53 +01:00
StalderT 1771c7a24e Update lang.tl.js 2015-12-01 12:18:17 +01:00
StalderT b9e8b8ad1c Update lang.th.js 2015-12-01 12:17:55 +01:00
StalderT 3296647b36 Update lang.sw.js 2015-12-01 12:16:37 +01:00
StalderT 8a150f44bf Update lang.sv.js 2015-12-01 12:14:24 +01:00
StalderT 1e2e578e8f Update lang.sr.js 2015-12-01 12:12:28 +01:00
StalderT 9111fb7b7b Update lang.sq.js 2015-12-01 12:12:05 +01:00
StalderT 11cd561a88 Update lang.ru.js 2015-12-01 12:11:19 +01:00
StalderT 1e3def544b Update lang.ro.js 2015-12-01 12:10:50 +01:00
StalderT ffe7fb042d Update lang.pt-PT.js 2015-12-01 12:09:22 +01:00
StalderT b4a99becee Update lang.no.js 2015-12-01 12:08:43 +01:00
StalderT 832e4e3ef6 Update lang.nl.js 2015-12-01 12:08:16 +01:00
StalderT 7dc5f52264 Update lang.mt.js 2015-12-01 12:07:59 +01:00
StalderT ae246c6d16 Update lang.ms.js 2015-12-01 12:07:42 +01:00
StalderT 114a63e582 Update lang.mk.js 2015-12-01 12:07:25 +01:00
StalderT d8625d6c20 Update lang.lv.js 2015-12-01 12:07:07 +01:00
StalderT ec887e29fd Update lang.lt.js 2015-12-01 12:06:47 +01:00
StalderT 9ff1eaef0f Update lang.ko.js 2015-12-01 12:06:19 +01:00
StalderT 6b276cef46 Update lang.ja.js 2015-12-01 12:06:00 +01:00
StalderT 97f0ff959b Update lang.it.js 2015-12-01 12:05:40 +01:00
StalderT 97f27fa706 Update lang.is.js 2015-12-01 12:05:18 +01:00
StalderT 0cd931fdec Update lang.id.js 2015-12-01 12:04:59 +01:00
StalderT 3af3537eee Update lang.hu.js 2015-12-01 12:04:26 +01:00
StalderT d213983acd Update lang.hr.js 2015-12-01 12:04:06 +01:00
StalderT 64ff6434bd Update lang.hi.js 2015-12-01 12:03:30 +01:00
StalderT 2ff1827c4c Update lang.he.js 2015-12-01 12:02:34 +01:00
StalderT 3f97780057 Update lang.gl.js 2015-12-01 12:01:57 +01:00
StalderT 263098c544 Update lang.ga.js 2015-12-01 12:01:11 +01:00
StalderT 2cee136268 Update lang.fy.js 2015-12-01 12:00:44 +01:00
StalderT c071c7c150 Update lang.fr.js 2015-12-01 11:53:09 +01:00
StalderT e9f1de2057 Update lang.fi.js 2015-12-01 11:51:54 +01:00
StalderT 27c247e0ef Update lang.fa.js 2015-12-01 11:51:29 +01:00
StalderT 59a4284487 Update lang.et.js 2015-12-01 11:51:00 +01:00
StalderT 1ebd7174b2 Update lang.es.js 2015-12-01 11:46:11 +01:00
StalderT 76f528eabe Update lang.el.js 2015-12-01 11:39:11 +01:00
StalderT 26acb1429a Update lang.de.js 2015-12-01 11:37:53 +01:00
StalderT e7d8c34b6d Update lang.da.js 2015-12-01 11:34:17 +01:00
StalderT 1da1a56db4 Update lang.cy.js 2015-12-01 11:33:45 +01:00
StalderT aa9cd93bfe Update lang.cs.js 2015-12-01 11:32:54 +01:00
StalderT afcda71283 Update lang.ca.js 2015-12-01 11:32:15 +01:00
StalderT de0ad3e91a Update lang.bg.js 2015-12-01 11:31:37 +01:00
StalderT 8ecf951091 Update lang.be.js 2015-12-01 11:31:11 +01:00
StalderT c76905325b Update lang.ar.js 2015-12-01 11:29:45 +01:00
StalderT 6b13bd5978 Update lang.af.js 2015-12-01 11:28:54 +01:00
Jeff Schiller d68c964588 Merge pull request #30 from progers/master
Fix icons in Safari due to a redefinition of the xmlns attribute
2015-11-30 20:45:03 -08:00
Jeff Schiller b9b05b3370 Merge branch 'master' of https://github.com/SVG-Edit/svgedit 2015-11-30 19:08:26 -08:00
Jeff Schiller 3f0db99c6c Use SVGElement.getIntersectionList() for multiselect. Remove some try-catch statements 2015-11-30 19:08:13 -08:00
Jeff Schiller 59303eb6cc Remove all suspendRedraws 2015-11-30 18:59:53 -08:00
Philip Rogers 243aa04d67 Merge pull request #33 from StalderT/patch-2
Update lang.de.js
2015-11-30 11:28:59 -08:00
StalderT 9ab7917393 Update lang.de.js 2015-11-30 15:47:56 +01:00
StalderT bdcd9fcb04 Update lang.fr.js
fix "delete" "move_down" "move_back" french translation
2015-11-30 15:46:28 +01:00
Philip Rogers 68580b5664 Fix icons in Safari due to a redefinition of the xmlns attribute 2015-11-29 17:59:28 -08:00
Philip Rogers c5dadfbe77 Include upstream fix for shape editing: 11f7e5a958 2015-11-06 21:08:23 -08:00
Philip Rogers 7e3f9e037d Add pathseg.js, a polyfill for the SVGPathSeg API
The SVGPathSeg API is being removed from the spec [1] and is being
removed in Chromium 47 [2]. I implemented a drop-in polyfill[3] so
svg-edit users are not broken as browsers migrate away from the
path seg api.

This patch simply imports the upstream pathseg.js and updates all
dependencies. With this change all tests pass in Chrome 46 (with
the path seg api), Chrome 47 (without the path seg api), and
there are no changes to tests in Safari 9.01 or Firefox 43. I
also manually tested svg-edit while developing the polyfill and
could not find any broken features.

[1] https://lists.w3.org/Archives/Public/www-svg/2015Jun/0044.html
[2] https://groups.google.com/a/chromium.org/d/msg/blink-dev/EDC3cBg9mCU/OvElJgOWCgAJ
[3] https://github.com/progers/pathseg
2015-11-04 19:25:30 -08:00
Jeff Schiller b8fc4eef01 Merge pull request #13 from mynext/master
Added class support
2015-10-12 07:24:48 -07:00
Ian f1b67e4159 Update svgcanvas.js
Changed docs and return value to match if unsuccessful
2015-09-30 11:24:16 +01: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
Daniel Davis 9c45785cdd Changed jQuery absolute link to HTTPS
This is needed to display icon buttons (and other functionality) in browsers that block mixed content.
2015-09-03 15:24:42 +09: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
Jeff Schiller 7008583b15 Merge pull request #2 from ibrierley/master
Fix of pathtool deleting path when moving ctrl points.
2015-07-15 07:54:30 -07:00
ibrierley 85a68c3f42 fixed indentation and extra vars 2015-07-15 13:02:03 +02:00
Brett Zamir 072ca75c94 Let's let config.js take advantage of all other head-loaded scripts like jquery-ui if useful 2015-07-09 18:24:35 -07:00
ibrierley 5bd4952a13 formatting 2015-07-06 12:44:36 +02:00
ibrierley 7d278dbfd8 formatting 2015-07-06 12:42:25 +02:00
ibrierley 92caa0a8d7 indentation 2015-07-06 12:39:41 +02:00
Ian 75dbd66561 Update path.js 2015-07-06 11:36:24 +01:00
ibrierley fbbd740c79 fixed pathtool bug, where browsers would delete path with pathseg error in console. Worked around this by copying 'item' object, but could possibly be optimised further by only copying required pars of object 2015-07-06 12:21:37 +02:00
portablejim 692817d610 Fix delete element hover text in english locale file.
"Delete Layer" -> "Delete Element(s)"
2015-06-20 10:15:01 +10:00
portablejim a62f7c1c5a Make context menu group option work. 2015-06-16 18:17:52 +10:00
Brett Zamir 7a1273eb93 Strip trailing spaces
git-svn-id: http://svg-edit.googlecode.com/svn/trunk@2891 eee81c28-f429-11dd-99c0-75d572ba1ddd
2014-06-23 03:54:52 +00:00
Brett Zamir 0ac9754dbd further indenting fixes
git-svn-id: http://svg-edit.googlecode.com/svn/trunk@2890 eee81c28-f429-11dd-99c0-75d572ba1ddd
2014-06-22 22:46:40 +00:00
Brett Zamir 35a44998bf Apply Slovenian locale patches by jaka@freeapproved.com with a few fixes (use tab indents, fix JS object, update 2 outdated keys)
git-svn-id: http://svg-edit.googlecode.com/svn/trunk@2889 eee81c28-f429-11dd-99c0-75d572ba1ddd
2014-06-22 22:43:53 +00:00
Brett Zamir e8a15a5582 Some error reporting in fileopen.php
git-svn-id: http://svg-edit.googlecode.com/svn/trunk@2888 eee81c28-f429-11dd-99c0-75d572ba1ddd
2014-06-13 15:38:20 +00:00
Brett Zamir 6bffe68d65 PDF export in server_opensave extension
git-svn-id: http://svg-edit.googlecode.com/svn/trunk@2886 eee81c28-f429-11dd-99c0-75d572ba1ddd
2014-06-13 14:58:46 +00:00
Brett Zamir c9d7d008fa Comment on line of code appearing unnecessary
git-svn-id: http://svg-edit.googlecode.com/svn/trunk@2884 eee81c28-f429-11dd-99c0-75d572ba1ddd
2014-06-13 08:25:38 +00:00
Brett Zamir 6d7b874ef1 Fix case issue impacting server save of SVG files (usually not used by modern browsers given the checks)
git-svn-id: http://svg-edit.googlecode.com/svn/trunk@2883 eee81c28-f429-11dd-99c0-75d572ba1ddd
2014-06-13 08:16:47 +00:00
Brett Zamir b1f88d2b94 Address issue with Unicode text in SVG icons; jshint
git-svn-id: http://svg-edit.googlecode.com/svn/trunk@2880 eee81c28-f429-11dd-99c0-75d572ba1ddd
2014-06-13 02:45:12 +00:00
Brett Zamir d84b1d267f Simplify encodeUTF8 function; ensure base 64 decoding also uses new decodeUTF8
git-svn-id: http://svg-edit.googlecode.com/svn/trunk@2879 eee81c28-f429-11dd-99c0-75d572ba1ddd
2014-06-12 23:42:27 +00: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 c9544ce5bf Add reference to custom.css in appcache
git-svn-id: http://svg-edit.googlecode.com/svn/trunk@2871 eee81c28-f429-11dd-99c0-75d572ba1ddd
2014-05-23 12:35:27 +00:00
Brett Zamir eb0cb2e92d Add a custom.css stylesheet for customizations not requiring modification of the main editor
git-svn-id: http://svg-edit.googlecode.com/svn/trunk@2869 eee81c28-f429-11dd-99c0-75d572ba1ddd
2014-05-23 12:28:07 +00:00
Brett Zamir 6afa75adda Rename labels to fix issue 1206 of confusing labels ("Open Image"->"Open SVG" and "Import SVG"->"Import Image")
git-svn-id: http://svg-edit.googlecode.com/svn/trunk@2867 eee81c28-f429-11dd-99c0-75d572ba1ddd
2014-05-22 23:55:05 +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 bddf4c2324 todo
git-svn-id: http://svg-edit.googlecode.com/svn/trunk@2864 eee81c28-f429-11dd-99c0-75d572ba1ddd
2014-05-22 11:24:18 +00:00
Brett Zamir 09dd5e7975 Add todo
git-svn-id: http://svg-edit.googlecode.com/svn/trunk@2863 eee81c28-f429-11dd-99c0-75d572ba1ddd
2014-05-22 11:03:53 +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 36dfb2bd17 Rmv extra var. declaration
git-svn-id: http://svg-edit.googlecode.com/svn/trunk@2859 eee81c28-f429-11dd-99c0-75d572ba1ddd
2014-05-22 10:01:51 +00:00
Brett Zamir 1941959449 Update canvg (https://code.google.com/p/canvg/source/detail?spec=svn202&r=202 ); check for empty images in canvg
git-svn-id: http://svg-edit.googlecode.com/svn/trunk@2857 eee81c28-f429-11dd-99c0-75d572ba1ddd
2014-05-22 07:40:17 +00:00
Brett Zamir 8fd81d158f Indicate new config for exportWindowType
git-svn-id: http://svg-edit.googlecode.com/svn/trunk@2856 eee81c28-f429-11dd-99c0-75d572ba1ddd
2014-05-22 07:39:13 +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
Jon Phillips 5fa1f574e0 fixed a formatting issue
git-svn-id: http://svg-edit.googlecode.com/svn/trunk@2850 eee81c28-f429-11dd-99c0-75d572ba1ddd
2014-05-22 03:00:00 +00:00
Brett Zamir 73a4804324 Ensure all dependencies available for canvg-using extensions (server_moinsave, server_opensave)
git-svn-id: http://svg-edit.googlecode.com/svn/trunk@2849 eee81c28-f429-11dd-99c0-75d572ba1ddd
2014-05-22 02:56:00 +00:00
Brett Zamir 905dac6979 Update manifest to include some more dynamically loaded files
git-svn-id: http://svg-edit.googlecode.com/svn/trunk@2848 eee81c28-f429-11dd-99c0-75d572ba1ddd
2014-05-22 02:42:18 +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 ad6dad8d65 Spacing
git-svn-id: http://svg-edit.googlecode.com/svn/trunk@2845 eee81c28-f429-11dd-99c0-75d572ba1ddd
2014-05-22 01:28:32 +00:00
Jon Phillips e9c8515caf Added Openclipart support
git-svn-id: http://svg-edit.googlecode.com/svn/trunk@2844 eee81c28-f429-11dd-99c0-75d572ba1ddd
2014-05-21 06:05:34 +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 b574628d36 Apply patch by stuart.moore@spektrix.com to fix issue #1205
git-svn-id: http://svg-edit.googlecode.com/svn/trunk@2840 eee81c28-f429-11dd-99c0-75d572ba1ddd
2014-05-08 04:06:54 +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 35e171a15f Return when no selected element to ungroup
git-svn-id: http://svg-edit.googlecode.com/svn/trunk@2837 eee81c28-f429-11dd-99c0-75d572ba1ddd
2014-05-08 03:14:59 +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 f854c00f4c Utilize PNG export instead as per issue 1201
git-svn-id: http://svg-edit.googlecode.com/svn/trunk@2824 eee81c28-f429-11dd-99c0-75d572ba1ddd
2014-04-09 07:01:25 +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 20361c88d1 Update functions available to embedded editor; fix important ID situation with embedded API
git-svn-id: http://svg-edit.googlecode.com/svn/trunk@2821 eee81c28-f429-11dd-99c0-75d572ba1ddd
2014-04-09 06:51:05 +00:00
Brett Zamir 2726f5f048 Change deprecated Attr.nodeValue to Attr.value
git-svn-id: http://svg-edit.googlecode.com/svn/trunk@2820 eee81c28-f429-11dd-99c0-75d572ba1ddd
2014-04-09 05:40:22 +00:00
Brett Zamir e07d4e61be Change deprecated Attr.nodeValue to Attr.value
git-svn-id: http://svg-edit.googlecode.com/svn/trunk@2819 eee81c28-f429-11dd-99c0-75d572ba1ddd
2014-04-09 05:38:20 +00:00