Commit Graph

774 Commits (73b2b93bab23059315b661faef02d3878664198d)

Author SHA1 Message Date
Alexis Deveria ff7af498a3 Made lines follow 45 degree angles when holding shift, made selection box fit better on zoom, updated canvg
git-svn-id: http://svg-edit.googlecode.com/svn/trunk@1531 eee81c28-f429-11dd-99c0-75d572ba1ddd
2010-04-20 20:29:30 +00:00
Alexis Deveria 91b033a470 Fixed issue 135: Missing the ability to align a single object (relative to page). Also started converting labels to icons
git-svn-id: http://svg-edit.googlecode.com/svn/trunk@1526 eee81c28-f429-11dd-99c0-75d572ba1ddd
2010-04-16 19:16:44 +00:00
Alexis Deveria fee4405d36 Mostly fixed issue 70 (export as PNG option) by using Gabe Lerner's canvg library
git-svn-id: http://svg-edit.googlecode.com/svn/trunk@1521 eee81c28-f429-11dd-99c0-75d572ba1ddd
2010-04-14 17:30:25 +00:00
Alexis Deveria ce14aba200 Fixed bug from last fix on selecting text on transformed elements
git-svn-id: http://svg-edit.googlecode.com/svn/trunk@1520 eee81c28-f429-11dd-99c0-75d572ba1ddd
2010-04-13 15:52:00 +00:00
Alexis Deveria d99a609d98 Fixed more text-related bugs, added double and triple click actions
git-svn-id: http://svg-edit.googlecode.com/svn/trunk@1519 eee81c28-f429-11dd-99c0-75d572ba1ddd
2010-04-13 15:28:52 +00:00
Alexis Deveria bc7510acfb More minor improvents to text edit mode
git-svn-id: http://svg-edit.googlecode.com/svn/trunk@1518 eee81c28-f429-11dd-99c0-75d572ba1ddd
2010-04-12 20:28:39 +00:00
Alexis Deveria 7ac3d0456b Made more improvents to textedit mode, now works on transformed elements
git-svn-id: http://svg-edit.googlecode.com/svn/trunk@1517 eee81c28-f429-11dd-99c0-75d572ba1ddd
2010-04-12 19:11:35 +00:00
Alexis Deveria 010d395590 Added textedit mode to support text editing. Still in progress, only supports text without transforms
git-svn-id: http://svg-edit.googlecode.com/svn/trunk@1516 eee81c28-f429-11dd-99c0-75d572ba1ddd
2010-04-12 15:59:46 +00:00
Alexis Deveria a9219e46a8 Fixed issue 528. Also made undo/redo work on image href change (was apparently broken)
git-svn-id: http://svg-edit.googlecode.com/svn/trunk@1514 eee81c28-f429-11dd-99c0-75d572ba1ddd
2010-04-09 16:01:09 +00:00
Alexis Deveria 75e42d2407 Fixed issue 531 by preventing attempt to transform a metadata element
git-svn-id: http://svg-edit.googlecode.com/svn/trunk@1512 eee81c28-f429-11dd-99c0-75d572ba1ddd
2010-04-09 12:37:17 +00:00
Alexis Deveria 8841ec47db Fixed issues 529 and 530, started some work on better <a> element support
git-svn-id: http://svg-edit.googlecode.com/svn/trunk@1511 eee81c28-f429-11dd-99c0-75d572ba1ddd
2010-04-08 13:34:18 +00:00
Alexis Deveria d2bbd0b127 Fixed misc bugs, made root only include namespace declarations when necessary
git-svn-id: http://svg-edit.googlecode.com/svn/trunk@1510 eee81c28-f429-11dd-99c0-75d572ba1ddd
2010-04-07 18:18:28 +00:00
Alexis Deveria 30e8bc486c Fixed wireframe mode for blurry elements, added partial undo functionality
git-svn-id: http://svg-edit.googlecode.com/svn/trunk@1509 eee81c28-f429-11dd-99c0-75d572ba1ddd
2010-04-06 20:16:07 +00:00
Alexis Deveria 66c5cb4866 Added basic support for gaussianBlur effect
git-svn-id: http://svg-edit.googlecode.com/svn/trunk@1508 eee81c28-f429-11dd-99c0-75d572ba1ddd
2010-04-06 18:40:10 +00:00
Jacques Distler 058f87e615 Preserve height and width, when re-editing an existing SVG document.
git-svn-id: http://svg-edit.googlecode.com/svn/trunk@1507 eee81c28-f429-11dd-99c0-75d572ba1ddd
2010-04-06 18:36:24 +00:00
Alexis Deveria 9b04d4689e Applied patch by aobjects, fixes issue 512
git-svn-id: http://svg-edit.googlecode.com/svn/trunk@1504 eee81c28-f429-11dd-99c0-75d572ba1ddd
2010-04-06 13:12:54 +00:00
Jacques Distler b4d10c41c3 Fix a noncy bug.
Fix a bug where the fill panel would not appear.

git-svn-id: http://svg-edit.googlecode.com/svn/trunk@1500 eee81c28-f429-11dd-99c0-75d572ba1ddd
2010-04-02 05:09:32 +00:00
Alexis Deveria 81d7c9f631 Added support for stroke-linecap
git-svn-id: http://svg-edit.googlecode.com/svn/trunk@1498 eee81c28-f429-11dd-99c0-75d572ba1ddd
2010-04-01 20:20:24 +00:00
Alexis Deveria 753270d730 Reduced repetitive styling code
git-svn-id: http://svg-edit.googlecode.com/svn/trunk@1497 eee81c28-f429-11dd-99c0-75d572ba1ddd
2010-04-01 20:01:20 +00:00
Alexis Deveria e445baeadd Added stroke-linejoin support together with experimental UI for stroke styles
git-svn-id: http://svg-edit.googlecode.com/svn/trunk@1496 eee81c28-f429-11dd-99c0-75d572ba1ddd
2010-04-01 19:02:36 +00:00
Alexis Deveria 363b456431 Fixed issue 360, allows panning with middle mouse button or left mouse button while holding spacebar
git-svn-id: http://svg-edit.googlecode.com/svn/trunk@1494 eee81c28-f429-11dd-99c0-75d572ba1ddd
2010-04-01 16:00:50 +00:00
Jeff Schiller edae9befd9 Correct remapping of shorthand curve commands (q,Q,s,S)
git-svn-id: http://svg-edit.googlecode.com/svn/trunk@1493 eee81c28-f429-11dd-99c0-75d572ba1ddd
2010-04-01 04:56:51 +00:00
Jeff Schiller 942ccd469d Fix part of Issue 518: Translates now handled for nested uses in groups
git-svn-id: http://svg-edit.googlecode.com/svn/trunk@1492 eee81c28-f429-11dd-99c0-75d572ba1ddd
2010-04-01 04:55:10 +00:00
Alexis Deveria 104d4370a1 Made import of gradients on stroke work, fixed issue 516
git-svn-id: http://svg-edit.googlecode.com/svn/trunk@1487 eee81c28-f429-11dd-99c0-75d572ba1ddd
2010-03-29 18:06:51 +00:00
Jeff Schiller effc4200e9 Issue 115: First attempt at an eye-dropper extension/tool. Also add color-interpolation-filters attribute to whitelist
git-svn-id: http://svg-edit.googlecode.com/svn/trunk@1486 eee81c28-f429-11dd-99c0-75d572ba1ddd
2010-03-29 03:22:42 +00:00
Alexis Deveria cb5b6e2d2d Largely fixed issue 469 by converting gradients to use objectBoundingBox
git-svn-id: http://svg-edit.googlecode.com/svn/trunk@1476 eee81c28-f429-11dd-99c0-75d572ba1ddd
2010-03-26 20:30:01 +00:00
Alexis Deveria 508c72e5a7 Fixed major part of issue 459 by providing warning onbeforeunload when appropriate
git-svn-id: http://svg-edit.googlecode.com/svn/trunk@1473 eee81c28-f429-11dd-99c0-75d572ba1ddd
2010-03-26 17:51:41 +00:00
Alexis Deveria 5c847f6493 Fixed/Integrated support for open/closing subpaths, fixed hidden flyout arrows on smaller icons in Opera, added support for loading extensions in config, uplifted to jQuery 1.4.2 and jQuery UI 1.8
git-svn-id: http://svg-edit.googlecode.com/svn/trunk@1470 eee81c28-f429-11dd-99c0-75d572ba1ddd
2010-03-24 20:13:13 +00:00
Alexis Deveria 2ba315bc96 More internal re-arranging and support for new config options
git-svn-id: http://svg-edit.googlecode.com/svn/trunk@1464 eee81c28-f429-11dd-99c0-75d572ba1ddd
2010-03-16 19:28:57 +00:00
Alexis Deveria 2b4270163e Added support for loading config data from URL, prevented creation of unneeded global variables
git-svn-id: http://svg-edit.googlecode.com/svn/trunk@1459 eee81c28-f429-11dd-99c0-75d572ba1ddd
2010-03-12 20:43:33 +00:00
Alexis Deveria 85a7f57e78 Changed basic structure for improved integration and customization, introduces global svgEditor object
git-svn-id: http://svg-edit.googlecode.com/svn/trunk@1456 eee81c28-f429-11dd-99c0-75d572ba1ddd
2010-03-11 21:07:13 +00:00
Alexis Deveria 750e6456b3 Improved path node deleting behaviour, added functions to get svgCanvas vars: getContentElem, getRootElem and getSelectedElems
git-svn-id: http://svg-edit.googlecode.com/svn/trunk@1455 eee81c28-f429-11dd-99c0-75d572ba1ddd
2010-03-11 15:27:18 +00:00
Alexis Deveria 38a244bcc6 Fixed bug where attributes were being removed from gradient element on serialization in Opera
git-svn-id: http://svg-edit.googlecode.com/svn/trunk@1454 eee81c28-f429-11dd-99c0-75d572ba1ddd
2010-03-10 19:03:05 +00:00
Alexis Deveria 037c641b11 Updated jGraduate and made radialGradients work as expected, fixing issue 298
git-svn-id: http://svg-edit.googlecode.com/svn/trunk@1452 eee81c28-f429-11dd-99c0-75d572ba1ddd
2010-03-10 18:17:48 +00:00
Alexis Deveria 57da0c02f3 Added fade-in SMIL animation when creating most elements in SMIL-enabled browsers
git-svn-id: http://svg-edit.googlecode.com/svn/trunk@1451 eee81c28-f429-11dd-99c0-75d572ba1ddd
2010-03-10 15:07:28 +00:00
Jeff Schiller 5c02c98a3f Send zoom modifications to extensions, patch by JL2008
git-svn-id: http://svg-edit.googlecode.com/svn/trunk@1450 eee81c28-f429-11dd-99c0-75d572ba1ddd
2010-03-09 16:10:23 +00:00
Jacques Distler f8be6ee1a5 Small whitespace nicety
git-svn-id: http://svg-edit.googlecode.com/svn/trunk@1448 eee81c28-f429-11dd-99c0-75d572ba1ddd
2010-03-07 00:25:38 +00:00
Jacques Distler 7b5b7c4fdf Noncy bugs fixed.
git-svn-id: http://svg-edit.googlecode.com/svn/trunk@1447 eee81c28-f429-11dd-99c0-75d572ba1ddd
2010-03-06 05:04:15 +00:00
Alexis Deveria fde7386d75 Added 'add sub-path' button to pathedit context panel
git-svn-id: http://svg-edit.googlecode.com/svn/trunk@1443 eee81c28-f429-11dd-99c0-75d572ba1ddd
2010-03-03 19:26:09 +00:00
Jacques Distler 5f6830745b SVG-Edit-generated IDs can now sport a nonce (to uniquify them). The value of the nonce is recorded as an se:nonce attribute on the root <svg> element.
The default behaviour is as before. But, if you call svgCanvas.randomizeIds() or if setSvgString() detects an se:nonce attribute on the root <svg> element, this will trigger the new behaviour (in the latter case, using the existing nonce).

git-svn-id: http://svg-edit.googlecode.com/svn/trunk@1436 eee81c28-f429-11dd-99c0-75d572ba1ddd
2010-02-27 22:55:53 +00:00
Jacques Distler cf4e097316 Fix issue 503.
git-svn-id: http://svg-edit.googlecode.com/svn/trunk@1435 eee81c28-f429-11dd-99c0-75d572ba1ddd
2010-02-27 22:46:20 +00:00
Jeff Schiller 7b99425c8e Add an id input field in the context panel. Users can see and change the ID of elements now
git-svn-id: http://svg-edit.googlecode.com/svn/trunk@1433 eee81c28-f429-11dd-99c0-75d572ba1ddd
2010-02-26 23:56:36 +00:00
Alexis Deveria 89ed9b3985 Fixed bug on deleting first node of open path and made imported closed paths have correct end segment
git-svn-id: http://svg-edit.googlecode.com/svn/trunk@1431 eee81c28-f429-11dd-99c0-75d572ba1ddd
2010-02-26 19:44:41 +00:00
Alexis Deveria 21ba2823ce PathActions overhaul, fixes issue 435 and issue 443
git-svn-id: http://svg-edit.googlecode.com/svn/trunk@1430 eee81c28-f429-11dd-99c0-75d572ba1ddd
2010-02-26 18:18:21 +00:00
Jacques Distler 706b8e3ec8 Expand Whitelist
Add some things, that we need, to the whitelist.

git-svn-id: http://svg-edit.googlecode.com/svn/trunk@1429 eee81c28-f429-11dd-99c0-75d572ba1ddd
2010-02-25 13:59:54 +00:00
Jeff Schiller d4c93087fc Handle viewboxes with non-zero left,top. Minor fix for bboxes of <use>, <foreignObject>
git-svn-id: http://svg-edit.googlecode.com/svn/trunk@1427 eee81c28-f429-11dd-99c0-75d572ba1ddd
2010-02-22 02:58:19 +00:00
Jeff Schiller 6039875f5a Now remap xlink:href attributes when importing <use>, <filter>, <pattern>, <textPath> and gradients.
git-svn-id: http://svg-edit.googlecode.com/svn/trunk@1426 eee81c28-f429-11dd-99c0-75d572ba1ddd
2010-02-22 02:22:08 +00:00
Jeff Schiller 6e15924461 Reidentify all elements imported into the drawing. Add tests for it.
Still to do: Remap all xlink:href attributes, filter attribute, possibly others.



git-svn-id: http://svg-edit.googlecode.com/svn/trunk@1425 eee81c28-f429-11dd-99c0-75d572ba1ddd
2010-02-22 00:56:19 +00:00
Jeff Schiller fc82f2965b More work on properly sizing imported SVG.
Still ignores preserveAspectRatio, percentages, units on import <svg>.
Also ignores zoom level of SVG-edit.



git-svn-id: http://svg-edit.googlecode.com/svn/trunk@1423 eee81c28-f429-11dd-99c0-75d572ba1ddd
2010-02-21 16:36:50 +00:00
Jeff Schiller 5b0f6e480c Corrected bbox problem for <metadata> elements.
Imported SVG now inserted into a new <g> element instead of child <svg> element.
Sizing of imported SVG will still be wrong.
Added three example clipart images.



git-svn-id: http://svg-edit.googlecode.com/svn/trunk@1422 eee81c28-f429-11dd-99c0-75d572ba1ddd
2010-02-21 03:27:10 +00:00
Jeff Schiller cc20d81633 Fix breakage two revisions ago. Add base raw import of SVG file into current layer (very broken at the moment).
git-svn-id: http://svg-edit.googlecode.com/svn/trunk@1421 eee81c28-f429-11dd-99c0-75d572ba1ddd
2010-02-21 01:12:59 +00:00
Jeff Schiller 400eb1e1cc Add x,y to <svg> whitelist. Remove @transform as this is not a valid value on a <svg>
git-svn-id: http://svg-edit.googlecode.com/svn/trunk@1419 eee81c28-f429-11dd-99c0-75d572ba1ddd
2010-02-20 23:04:13 +00:00
Jacques Distler 7236577141 Fix some small issues with foreignObject tool
Don't disable line tool after using foreignObject  tool.
Don't set stroke to 'none' after using foreignObject  editor.

git-svn-id: http://svg-edit.googlecode.com/svn/trunk@1411 eee81c28-f429-11dd-99c0-75d572ba1ddd
2010-02-19 14:09:46 +00:00
Jacques Distler 98be8d5f81 Fix Issue 489: The href attribute on image elements was being created without a prefix.
setAttributeNS(nsuri, name, value) takes a qname, not a localname as its 2nd argument. (This is not to be confused with getAttributeNS(nsuri, name), which takes a localname as its 2nd argument.)

git-svn-id: http://svg-edit.googlecode.com/svn/trunk@1410 eee81c28-f429-11dd-99c0-75d572ba1ddd
2010-02-18 17:41:07 +00:00
Alexis Deveria 78c9ae4ad7 Fixed issue 487: foreignObject extension breaks connect two objects tool and made sure both extensions work together
git-svn-id: http://svg-edit.googlecode.com/svn/trunk@1409 eee81c28-f429-11dd-99c0-75d572ba1ddd
2010-02-18 15:42:10 +00:00
Jeff Schiller 8e0bf800bf Fix Issue 486: Remove uses without href to prevent Safari crash. Turns all unit tests green
git-svn-id: http://svg-edit.googlecode.com/svn/trunk@1408 eee81c28-f429-11dd-99c0-75d572ba1ddd
2010-02-18 01:34:29 +00:00
Alexis Deveria 2c889f640b Dealt with remaining bug in issue 470: Support loading files with unit-based width/height
git-svn-id: http://svg-edit.googlecode.com/svn/trunk@1406 eee81c28-f429-11dd-99c0-75d572ba1ddd
2010-02-17 21:20:11 +00:00
Jeff Schiller 02425de805 Make xmlns:foo test go green in Opera
git-svn-id: http://svg-edit.googlecode.com/svn/trunk@1404 eee81c28-f429-11dd-99c0-75d572ba1ddd
2010-02-17 18:15:53 +00:00
Jeff Schiller 469868d731 Fix XML escaping problem in attributes, add unit test
git-svn-id: http://svg-edit.googlecode.com/svn/trunk@1400 eee81c28-f429-11dd-99c0-75d572ba1ddd
2010-02-17 15:51:57 +00:00
Jeff Schiller 19d9998743 Remove experimental drop-shadow for now as it slowed down the editor, especially at higher zoom levels (might look into CSS3 box-shadow one day)
git-svn-id: http://svg-edit.googlecode.com/svn/trunk@1399 eee81c28-f429-11dd-99c0-75d572ba1ddd
2010-02-17 15:12:08 +00:00
Jeff Schiller d78843beb0 Allow custom namespace prefixes as long as they map to one of our accepted namespace URIs (path by Jacques Distler)
git-svn-id: http://svg-edit.googlecode.com/svn/trunk@1396 eee81c28-f429-11dd-99c0-75d572ba1ddd
2010-02-17 06:44:03 +00:00
Jeff Schiller 8753c552f8 Fix Issue 478: markers, filters and clip paths now survive the conversion to path
git-svn-id: http://svg-edit.googlecode.com/svn/trunk@1394 eee81c28-f429-11dd-99c0-75d572ba1ddd
2010-02-16 18:54:41 +00:00
Jeff Schiller d6037a742e When serializing, use nodename (which includes namespace prefix). Patch by Jacques Distler
git-svn-id: http://svg-edit.googlecode.com/svn/trunk@1393 eee81c28-f429-11dd-99c0-75d572ba1ddd
2010-02-16 18:32:50 +00:00
Jeff Schiller c8d5ba7b7e Fix Issue 485: Make foreignObjects copyable (partial patch by Jacques Distler)
git-svn-id: http://svg-edit.googlecode.com/svn/trunk@1392 eee81c28-f429-11dd-99c0-75d572ba1ddd
2010-02-16 18:21:16 +00:00
Jeff Schiller 92b50b4a75 Fix Issue 484: correct namespace handling for xml: attrs (patch by Jacques Distler)
git-svn-id: http://svg-edit.googlecode.com/svn/trunk@1391 eee81c28-f429-11dd-99c0-75d572ba1ddd
2010-02-15 14:02:17 +00:00
Jeff Schiller 71e76c81b8 More fixes to namespace handling. Added <math> test case
git-svn-id: http://svg-edit.googlecode.com/svn/trunk@1390 eee81c28-f429-11dd-99c0-75d572ba1ddd
2010-02-14 14:50:04 +00:00
Jeff Schiller 88d61a3259 Fix Issue 482: Correct namespace prefix handling. Foreign content itself will declare the namespace, we don't need to do this in svgcontent
git-svn-id: http://svg-edit.googlecode.com/svn/trunk@1389 eee81c28-f429-11dd-99c0-75d572ba1ddd
2010-02-14 06:22:34 +00:00
Jeff Schiller c32284cfcb Fix typo in deepdive function from r1380
git-svn-id: http://svg-edit.googlecode.com/svn/trunk@1388 eee81c28-f429-11dd-99c0-75d572ba1ddd
2010-02-14 06:06:19 +00:00
Alexis Deveria b071bd91b5 Fixed bug on changing heights with percentages
git-svn-id: http://svg-edit.googlecode.com/svn/trunk@1382 eee81c28-f429-11dd-99c0-75d572ba1ddd
2010-02-12 14:56:54 +00:00
Alexis Deveria 13003a3de2 Fixed issue 446
git-svn-id: http://svg-edit.googlecode.com/svn/trunk@1381 eee81c28-f429-11dd-99c0-75d572ba1ddd
2010-02-12 14:23:55 +00:00
Jeff Schiller 8d4861d546 Fix rest of Issue 471: upon loading/setting the SVG, do a depth-first recalculateDimensions() on all nodes
git-svn-id: http://svg-edit.googlecode.com/svn/trunk@1380 eee81c28-f429-11dd-99c0-75d572ba1ddd
2010-02-12 03:54:49 +00:00
Jeff Schiller 9915407382 Fix part of Issue 471: path deformation when x,y happened to be zero
git-svn-id: http://svg-edit.googlecode.com/svn/trunk@1379 eee81c28-f429-11dd-99c0-75d572ba1ddd
2010-02-12 03:14:38 +00:00
Jeff Schiller 09d6066291 Fix Issue 474: Broke tools by forgetting the svgroot id
git-svn-id: http://svg-edit.googlecode.com/svn/trunk@1378 eee81c28-f429-11dd-99c0-75d572ba1ddd
2010-02-11 22:19:13 +00:00
Alexis Deveria eb8b9ab5e6 Made 'good' locale array be populated based on svg-editor.html, made namespaces only be added on serialization when used
git-svn-id: http://svg-edit.googlecode.com/svn/trunk@1377 eee81c28-f429-11dd-99c0-75d572ba1ddd
2010-02-11 21:24:15 +00:00
Jeff Schiller 507e50767f Fix Issue 473: WebKit browsers fixed for navigation, caused by r1368
git-svn-id: http://svg-edit.googlecode.com/svn/trunk@1376 eee81c28-f429-11dd-99c0-75d572ba1ddd
2010-02-11 01:28:25 +00:00
Jeff Schiller 5ce59294d1 Spoke too soon, with canvas drop-shadow on, zooming in Opera 10.10 causes immense slow-down
git-svn-id: http://svg-edit.googlecode.com/svn/trunk@1375 eee81c28-f429-11dd-99c0-75d572ba1ddd
2010-02-10 21:12:43 +00:00
Jeff Schiller 140ab45f7d Fix Opera bug with canvas shadow, thanks to a tip from Erik Dahlstrom
git-svn-id: http://svg-edit.googlecode.com/svn/trunk@1374 eee81c28-f429-11dd-99c0-75d572ba1ddd
2010-02-10 21:02:42 +00:00
Jeff Schiller ae214cfe0e Add a shadow to the canvas in Firefox (experimental)
git-svn-id: http://svg-edit.googlecode.com/svn/trunk@1373 eee81c28-f429-11dd-99c0-75d572ba1ddd
2010-02-10 20:12:48 +00:00
Alexis Deveria 984d6263c9 Added support for unit width/height when set in document properties
git-svn-id: http://svg-edit.googlecode.com/svn/trunk@1372 eee81c28-f429-11dd-99c0-75d572ba1ddd
2010-02-10 19:29:05 +00:00
Alexis Deveria 9590cf67f5 Fixed issue 470: Support loading files with unit-based width/height
git-svn-id: http://svg-edit.googlecode.com/svn/trunk@1371 eee81c28-f429-11dd-99c0-75d572ba1ddd
2010-02-10 17:54:14 +00:00
Jeff Schiller 35bcecc669 Remove now unnecessary math check in cleanupElement(). Move line-height property to the CSS where it belongs
git-svn-id: http://svg-edit.googlecode.com/svn/trunk@1369 eee81c28-f429-11dd-99c0-75d572ba1ddd
2010-02-10 15:57:25 +00:00
Jeff Schiller 98fc062e47 Make foreignObject with foreign content movable, resizable, rotatable
git-svn-id: http://svg-edit.googlecode.com/svn/trunk@1368 eee81c28-f429-11dd-99c0-75d572ba1ddd
2010-02-10 15:32:36 +00:00
Jeff Schiller 5628254649 Add MathML elements to whitelist and updates by Jacques Distler to handle foreignObject. Fix line-height in svgcanvas.
git-svn-id: http://svg-edit.googlecode.com/svn/trunk@1367 eee81c28-f429-11dd-99c0-75d572ba1ddd
2010-02-10 04:41:11 +00:00
Alexis Deveria 9df43ee7ba Fixed undo/redo bug (I think)
git-svn-id: http://svg-edit.googlecode.com/svn/trunk@1365 eee81c28-f429-11dd-99c0-75d572ba1ddd
2010-02-09 20:50:06 +00:00
Alexis Deveria 4b5011eb44 Largely added support for different units (issue 444)
git-svn-id: http://svg-edit.googlecode.com/svn/trunk@1364 eee81c28-f429-11dd-99c0-75d572ba1ddd
2010-02-09 20:15:52 +00:00
Alexis Deveria fd49cb2c89 Replaced heavy uses of getAttribute with .attr([])
git-svn-id: http://svg-edit.googlecode.com/svn/trunk@1363 eee81c28-f429-11dd-99c0-75d572ba1ddd
2010-02-09 14:23:34 +00:00
Alexis Deveria b25f8b6d92 Added fix to jQuery.attr() function to make it work with SVG elements, started work on marker color changing
git-svn-id: http://svg-edit.googlecode.com/svn/trunk@1355 eee81c28-f429-11dd-99c0-75d572ba1ddd
2010-02-08 16:39:14 +00:00
Jeff Schiller d5ec300b6b Add foreignObject to whitelist. Fix some HTML5 validation errors
git-svn-id: http://svg-edit.googlecode.com/svn/trunk@1352 eee81c28-f429-11dd-99c0-75d572ba1ddd
2010-02-06 17:42:54 +00:00
Jeff Schiller cb790bc6a0 Remove commented out debug code
git-svn-id: http://svg-edit.googlecode.com/svn/trunk@1349 eee81c28-f429-11dd-99c0-75d572ba1ddd
2010-02-06 00:38:59 +00:00
Jeff Schiller 1b2bb9c412 Much smoother freehand paths
git-svn-id: http://svg-edit.googlecode.com/svn/trunk@1348 eee81c28-f429-11dd-99c0-75d572ba1ddd
2010-02-06 00:35:32 +00:00
Alexis Deveria 6980e8b0de Made selection of middle arrow for lines convert them to polylines, made extension tools more easy to add, fixed opacity selection on selected connector
git-svn-id: http://svg-edit.googlecode.com/svn/trunk@1347 eee81c28-f429-11dd-99c0-75d572ba1ddd
2010-02-05 20:25:15 +00:00
Alexis Deveria a4f835a044 Made connectors be removed upon connected-element deletion. Made easier method for adding context panel options
git-svn-id: http://svg-edit.googlecode.com/svn/trunk@1345 eee81c28-f429-11dd-99c0-75d572ba1ddd
2010-02-05 16:11:19 +00:00
Jeff Schiller 7e8f5a312b Add scripts to convert between our language json files and po format (Issue 416)
git-svn-id: http://svg-edit.googlecode.com/svn/trunk@1344 eee81c28-f429-11dd-99c0-75d572ba1ddd
2010-02-05 15:40:31 +00:00
Alexis Deveria 2229ecdd45 Improved arrow handling, fixed issue 463
git-svn-id: http://svg-edit.googlecode.com/svn/trunk@1341 eee81c28-f429-11dd-99c0-75d572ba1ddd
2010-02-04 17:10:03 +00:00
Alexis Deveria e20d3dc39f Made connector lines start/end at bounding box edges, made arrow appear on end of line
git-svn-id: http://svg-edit.googlecode.com/svn/trunk@1336 eee81c28-f429-11dd-99c0-75d572ba1ddd
2010-02-03 18:42:00 +00:00
Jeff Schiller be0a5fa153 Fix setting stroke-width/style on single elements (broken in r1322)
git-svn-id: http://svg-edit.googlecode.com/svn/trunk@1335 eee81c28-f429-11dd-99c0-75d572ba1ddd
2010-02-03 18:20:25 +00:00
Jeff Schiller 71088b30fe Fix Issue 341: Smooth freehand tool into a path (especially in Opera)
git-svn-id: http://svg-edit.googlecode.com/svn/trunk@1334 eee81c28-f429-11dd-99c0-75d572ba1ddd
2010-02-03 14:50:48 +00:00
Alexis Deveria 06dc4f55bc Fixed Webkit bug related to issue 460: Path segments should remember their curvature
git-svn-id: http://svg-edit.googlecode.com/svn/trunk@1331 eee81c28-f429-11dd-99c0-75d572ba1ddd
2010-02-03 13:41:54 +00:00
Jeff Schiller fac9f84435 Fix Issue 460: Path points remember curvature (Firefox and Opera)
git-svn-id: http://svg-edit.googlecode.com/svn/trunk@1330 eee81c28-f429-11dd-99c0-75d572ba1ddd
2010-02-03 06:49:20 +00:00
Jeff Schiller 36f7da8ff1 Add symbol, pattern, tspan, textPath to whitelist. Also added some attributes missing in whitelist to other elements
git-svn-id: http://svg-edit.googlecode.com/svn/trunk@1329 eee81c28-f429-11dd-99c0-75d572ba1ddd
2010-02-02 23:45:52 +00:00
Alexis Deveria b4840e8f7f Fixed issue 456 by adding a svgCanvas.ready() function
git-svn-id: http://svg-edit.googlecode.com/svn/trunk@1328 eee81c28-f429-11dd-99c0-75d572ba1ddd
2010-02-02 20:45:16 +00:00
Alexis Deveria cf84f45d60 Rewrote connector extension to use SVG-Edit namespace attrs instead of ids/classes, removed extendWhitelist function, moved extensions to subfolder
git-svn-id: http://svg-edit.googlecode.com/svn/trunk@1326 eee81c28-f429-11dd-99c0-75d572ba1ddd
2010-02-02 18:42:43 +00:00
Jeff Schiller 2bb41c0c73 Fix Issue 384: Pick fill/stroke properties for groups
git-svn-id: http://svg-edit.googlecode.com/svn/trunk@1322 eee81c28-f429-11dd-99c0-75d572ba1ddd
2010-02-02 05:48:33 +00:00
Jeff Schiller 41366e8fd9 Add <marker> element and marker-end, marker-mid, marker-start attributes to whitelist
git-svn-id: http://svg-edit.googlecode.com/svn/trunk@1318 eee81c28-f429-11dd-99c0-75d572ba1ddd
2010-02-01 18:52:45 +00:00
Alexis Deveria bed10696d2 Split off the arrow part of the connector plugin to be its own arrows plugin (start on issue 308)
git-svn-id: http://svg-edit.googlecode.com/svn/trunk@1317 eee81c28-f429-11dd-99c0-75d572ba1ddd
2010-02-01 18:40:57 +00:00
Alexis Deveria f415aee687 Made various minor improvements to connector plugin
git-svn-id: http://svg-edit.googlecode.com/svn/trunk@1316 eee81c28-f429-11dd-99c0-75d572ba1ddd
2010-02-01 16:48:39 +00:00
Jeff Schiller 31ec4fec91 Fix Issue 412: Press 'A' to select all elements in the current layer
git-svn-id: http://svg-edit.googlecode.com/svn/trunk@1312 eee81c28-f429-11dd-99c0-75d572ba1ddd
2010-01-31 20:17:50 +00:00
Jeff Schiller 8ba1526e9f Add mask element and attribute to whitelist
git-svn-id: http://svg-edit.googlecode.com/svn/trunk@1310 eee81c28-f429-11dd-99c0-75d572ba1ddd
2010-01-31 07:11:57 +00:00
Jeff Schiller 0074d7f7c0 Add support in whitelist and remapElements() for <a> elements
git-svn-id: http://svg-edit.googlecode.com/svn/trunk@1307 eee81c28-f429-11dd-99c0-75d572ba1ddd
2010-01-29 20:30:10 +00:00
Jeff Schiller 81c304a68c Add whitelist support for clipPath, @clip-path and @clip-rule. Refactor code a tiny bit.
git-svn-id: http://svg-edit.googlecode.com/svn/trunk@1303 eee81c28-f429-11dd-99c0-75d572ba1ddd
2010-01-29 17:10:30 +00:00
Jeff Schiller 7c40486c39 Fix Issue 450: restore Created-By comment
git-svn-id: http://svg-edit.googlecode.com/svn/trunk@1299 eee81c28-f429-11dd-99c0-75d572ba1ddd
2010-01-29 14:11:04 +00:00
Jeff Schiller 6bd66dda1d Add metadata to whitelist
git-svn-id: http://svg-edit.googlecode.com/svn/trunk@1298 eee81c28-f429-11dd-99c0-75d572ba1ddd
2010-01-29 12:33:10 +00:00
Jeff Schiller be04bdc1c1 Fix Issue 62: can now set color to none right in the picker (uplift to jGraduate r71)
git-svn-id: http://svg-edit.googlecode.com/svn/trunk@1295 eee81c28-f429-11dd-99c0-75d572ba1ddd
2010-01-29 05:39:57 +00:00
Jeff Schiller 77406f4d02 Fix path remapping for H,V commands
git-svn-id: http://svg-edit.googlecode.com/svn/trunk@1291 eee81c28-f429-11dd-99c0-75d572ba1ddd
2010-01-28 03:08:53 +00:00
Jeff Schiller dd41cd6cea Fix bug in conversion of horiz/vert path segments
git-svn-id: http://svg-edit.googlecode.com/svn/trunk@1290 eee81c28-f429-11dd-99c0-75d572ba1ddd
2010-01-28 02:55:11 +00:00
Jeff Schiller faae299e96 Add transform attribute to use element in whitelist
git-svn-id: http://svg-edit.googlecode.com/svn/trunk@1289 eee81c28-f429-11dd-99c0-75d572ba1ddd
2010-01-28 02:42:28 +00:00
Jeff Schiller b0d13610bb Fix Issue 445: turn booleans back into numbers for arc path commands
git-svn-id: http://svg-edit.googlecode.com/svn/trunk@1288 eee81c28-f429-11dd-99c0-75d572ba1ddd
2010-01-28 02:37:53 +00:00
Alexis Deveria 363eef5d57 Added keyboard shortcut option for extension buttons, made import of connectors work, fixed issue 442
git-svn-id: http://svg-edit.googlecode.com/svn/trunk@1286 eee81c28-f429-11dd-99c0-75d572ba1ddd
2010-01-27 21:03:43 +00:00
Jeff Schiller ee393cd933 Fix parsing error with url() format with quotes in it
git-svn-id: http://svg-edit.googlecode.com/svn/trunk@1285 eee81c28-f429-11dd-99c0-75d572ba1ddd
2010-01-27 19:35:13 +00:00
Jeff Schiller 3eb89914b6 Convert style to attributes, but check xlink:href target outside the attribute loop
git-svn-id: http://svg-edit.googlecode.com/svn/trunk@1284 eee81c28-f429-11dd-99c0-75d572ba1ddd
2010-01-27 16:42:35 +00:00
Jeff Schiller ec1ab246d1 Added style attribute to whitelist and parse into XML attributes in sanitizeSvg(). Add filter and feGaussianBlur elements to whitelist
git-svn-id: http://svg-edit.googlecode.com/svn/trunk@1283 eee81c28-f429-11dd-99c0-75d572ba1ddd
2010-01-27 16:37:59 +00:00
Jeff Schiller 488e377062 Allow style for <stop> elements in the whitelist. Allow gradients to refer to each other in the whitelist. Update removeUnusedGrads() to account for this.
git-svn-id: http://svg-edit.googlecode.com/svn/trunk@1282 eee81c28-f429-11dd-99c0-75d572ba1ddd
2010-01-27 16:06:58 +00:00
Alexis Deveria 7890d47e06 Fixed issue 418 and issue 441
git-svn-id: http://svg-edit.googlecode.com/svn/trunk@1281 eee81c28-f429-11dd-99c0-75d572ba1ddd
2010-01-27 15:14:23 +00:00
Alexis Deveria d60fb28557 Made improvements to extension support as well as connector extension
git-svn-id: http://svg-edit.googlecode.com/svn/trunk@1279 eee81c28-f429-11dd-99c0-75d572ba1ddd
2010-01-26 21:28:52 +00:00
Alexis Deveria 75781771be Started on Issue 310: Move to Plugin Architecture, as well as Issue 200: flowchart (just connector lines for now)
git-svn-id: http://svg-edit.googlecode.com/svn/trunk@1277 eee81c28-f429-11dd-99c0-75d572ba1ddd
2010-01-25 21:22:03 +00:00
Jeff Schiller df3b22470c Fix Issue 436: Only convert path d attribute for path elements
git-svn-id: http://svg-edit.googlecode.com/svn/trunk@1275 eee81c28-f429-11dd-99c0-75d572ba1ddd
2010-01-22 01:47:50 +00:00
Alexis Deveria d3e72d8e4e Fixed some open path bugs
git-svn-id: http://svg-edit.googlecode.com/svn/trunk@1273 eee81c28-f429-11dd-99c0-75d572ba1ddd
2010-01-21 20:59:34 +00:00
Alexis Deveria b3a3a6af26 Added support for multiple segment lines on selection, mass segment type changes, and multi-selection on node cloning
git-svn-id: http://svg-edit.googlecode.com/svn/trunk@1272 eee81c28-f429-11dd-99c0-75d572ba1ddd
2010-01-21 20:12:49 +00:00
Alexis Deveria 3df4a5d616 Fixed issue 432
git-svn-id: http://svg-edit.googlecode.com/svn/trunk@1271 eee81c28-f429-11dd-99c0-75d572ba1ddd
2010-01-21 17:38:37 +00:00
Jeff Schiller 86ac38547f Add unit test for importing use. Add missing id attribute on use in whitelist
git-svn-id: http://svg-edit.googlecode.com/svn/trunk@1270 eee81c28-f429-11dd-99c0-75d572ba1ddd
2010-01-21 14:12:08 +00:00
Jeff Schiller c8e0a94d50 More JS tightening (collapse multiple variable declarations into one statement)
git-svn-id: http://svg-edit.googlecode.com/svn/trunk@1269 eee81c28-f429-11dd-99c0-75d572ba1ddd
2010-01-21 03:17:04 +00:00
Jeff Schiller 47a0faf93b Fix Issue 402: Freehand tools maxy not being reset
git-svn-id: http://svg-edit.googlecode.com/svn/trunk@1265 eee81c28-f429-11dd-99c0-75d572ba1ddd
2010-01-21 02:48:02 +00:00
Jeff Schiller e2f7aa9d96 Fix Issue 434: multiselecting one element now sets the current properties. Also, very minor refactoring of code to tighten things up
git-svn-id: http://svg-edit.googlecode.com/svn/trunk@1263 eee81c28-f429-11dd-99c0-75d572ba1ddd
2010-01-21 01:20:17 +00:00
Jeff Schiller 2518ec07d7 Fix Issue 424: scrub xlink:href to ensure it is a local reference only
git-svn-id: http://svg-edit.googlecode.com/svn/trunk@1262 eee81c28-f429-11dd-99c0-75d572ba1ddd
2010-01-20 22:58:38 +00:00
Jeff Schiller 0c0a935a57 Make copy/clone work on <use> elements
git-svn-id: http://svg-edit.googlecode.com/svn/trunk@1255 eee81c28-f429-11dd-99c0-75d572ba1ddd
2010-01-20 22:36:59 +00:00
Jeff Schiller c04d148dcb Initial support for <use> element (can only see, select, move, resize or rotate them). Also collapse a few var declarations and remove obsolete code
git-svn-id: http://svg-edit.googlecode.com/svn/trunk@1254 eee81c28-f429-11dd-99c0-75d572ba1ddd
2010-01-20 22:15:54 +00:00
Alexis Deveria 36caeb552a Fixed and efficiencized undo/redo on path editing functions
git-svn-id: http://svg-edit.googlecode.com/svn/trunk@1253 eee81c28-f429-11dd-99c0-75d572ba1ddd
2010-01-20 21:32:17 +00:00
Alexis Deveria 99edca083c Made more improvents to multi-path-node editing
git-svn-id: http://svg-edit.googlecode.com/svn/trunk@1252 eee81c28-f429-11dd-99c0-75d572ba1ddd
2010-01-20 20:34:03 +00:00
Alexis Deveria 828dfa2f9f Fixed multiple path node selection/move on zoom
git-svn-id: http://svg-edit.googlecode.com/svn/trunk@1250 eee81c28-f429-11dd-99c0-75d572ba1ddd
2010-01-20 17:26:12 +00:00
Jeff Schiller 220bd72b7a Remove logging, add empty console.dir for opera, stray comma in whitelist
git-svn-id: http://svg-edit.googlecode.com/svn/trunk@1248 eee81c28-f429-11dd-99c0-75d572ba1ddd
2010-01-20 16:14:32 +00:00
Jeff Schiller 37b9a3b426 Fix Issue 430: Update layers panel when opened SVG file does not have a viewBox attribute
git-svn-id: http://svg-edit.googlecode.com/svn/trunk@1247 eee81c28-f429-11dd-99c0-75d572ba1ddd
2010-01-20 15:24:50 +00:00
Alexis Deveria eb1aa6ffe9 Added initial support for multiple path node selection (issue 277)
git-svn-id: http://svg-edit.googlecode.com/svn/trunk@1245 eee81c28-f429-11dd-99c0-75d572ba1ddd
2010-01-19 21:14:53 +00:00
Alexis Deveria 783ad05a45 Improved pathedit efficiency, fixed clone node when selecting last node in open path
git-svn-id: http://svg-edit.googlecode.com/svn/trunk@1244 eee81c28-f429-11dd-99c0-75d572ba1ddd
2010-01-19 15:08:30 +00:00
Alexis Deveria a6edbc58bb Fixed issue 420
git-svn-id: http://svg-edit.googlecode.com/svn/trunk@1243 eee81c28-f429-11dd-99c0-75d572ba1ddd
2010-01-19 14:03:10 +00:00
Alexis Deveria 72c6cb59e8 Fixed bug where certain positioned elements could not be de-selected
git-svn-id: http://svg-edit.googlecode.com/svn/trunk@1242 eee81c28-f429-11dd-99c0-75d572ba1ddd
2010-01-18 21:18:46 +00:00
Alexis Deveria 0f46184757 Fixed background colors/URLs, element page alignment and clear option
git-svn-id: http://svg-edit.googlecode.com/svn/trunk@1241 eee81c28-f429-11dd-99c0-75d572ba1ddd
2010-01-18 20:30:59 +00:00
Alexis Deveria 29e2acc359 Finally fixed last zoom related bug
git-svn-id: http://svg-edit.googlecode.com/svn/trunk@1240 eee81c28-f429-11dd-99c0-75d572ba1ddd
2010-01-18 19:14:08 +00:00
Alexis Deveria 0927d04319 Fixed more zoom-related bugs (not all)
git-svn-id: http://svg-edit.googlecode.com/svn/trunk@1238 eee81c28-f429-11dd-99c0-75d572ba1ddd
2010-01-18 18:03:09 +00:00
Jeff Schiller d1e32d99d7 Expose SvgCanvas.matrixMultiply() and add starting unit-test framework (QUnit) and first test.
git-svn-id: http://svg-edit.googlecode.com/svn/trunk@1236 eee81c28-f429-11dd-99c0-75d572ba1ddd
2010-01-18 06:40:32 +00:00
Jeff Schiller 9a1f23a21b Fix Issue 403: Moving text elements changes the x,y values. Works for simple cases, but x,y values are not intuitive for stretched text elements
git-svn-id: http://svg-edit.googlecode.com/svn/trunk@1232 eee81c28-f429-11dd-99c0-75d572ba1ddd
2010-01-16 22:34:15 +00:00