Commit Graph

412 Commits (005a864c98428dd3789d6f44018ef9f7235ae8f1)

Author SHA1 Message Date
Jeff Schiller a20d175681 Resizing rotated elements behaves better (though the bbox selector still has the wrong dimensions at the end of a drag, I may live with it for this release)
git-svn-id: http://svg-edit.googlecode.com/svn/trunk@393 eee81c28-f429-11dd-99c0-75d572ba1ddd
2009-08-17 03:11:30 +00:00
Jeff Schiller eb97d20600 Fix Issue 92: Update rotation angle when selecting an element
git-svn-id: http://svg-edit.googlecode.com/svn/trunk@392 eee81c28-f429-11dd-99c0-75d572ba1ddd
2009-08-16 19:18:22 +00:00
Jeff Schiller a61da29f34 Properly size bounding box based on rotation angle of shape. Doesn't work at all for resizing rotated elements
git-svn-id: http://svg-edit.googlecode.com/svn/trunk@391 eee81c28-f429-11dd-99c0-75d572ba1ddd
2009-08-16 18:00:56 +00:00
Jeff Schiller 8ada7b4bea Create separate getBBox() function on the SvgCanvas and use that
git-svn-id: http://svg-edit.googlecode.com/svn/trunk@390 eee81c28-f429-11dd-99c0-75d572ba1ddd
2009-08-16 15:07:00 +00:00
Jeff Schiller 121a6c148d Rotation angle now preserved with drag/move
git-svn-id: http://svg-edit.googlecode.com/svn/trunk@389 eee81c28-f429-11dd-99c0-75d572ba1ddd
2009-08-16 14:56:22 +00:00
Jeff Schiller 1a97363ea9 Add stroke-linecap and -linejoin to the whitelist. Made freehand scribble have rounded lines. Moved from using DOM properties to using get/setAttribute(). Changing the rotation angle will change the rotation of an element (but moving/resizing it will snap it back
git-svn-id: http://svg-edit.googlecode.com/svn/trunk@388 eee81c28-f429-11dd-99c0-75d572ba1ddd
2009-08-16 06:02:26 +00:00
Jeff Schiller 299cf0215c Fix bug: If SVG source was changed, selectorParentGroup was thrown away meaning you could no longer create a poly
git-svn-id: http://svg-edit.googlecode.com/svn/trunk@387 eee81c28-f429-11dd-99c0-75d572ba1ddd
2009-08-16 02:48:00 +00:00
Jeff Schiller a69ea2ed1d Fix absolute path when resizing. Remove suspendRedraw for path (only making one DOM call)
git-svn-id: http://svg-edit.googlecode.com/svn/trunk@386 eee81c28-f429-11dd-99c0-75d572ba1ddd
2009-08-15 10:53:56 +00:00
Jeff Schiller 16f7caa078 Add suspendRedraw() around path resizing.
git-svn-id: http://svg-edit.googlecode.com/svn/trunk@385 eee81c28-f429-11dd-99c0-75d572ba1ddd
2009-08-15 04:40:33 +00:00
Jeff Schiller c83d515fe9 Fix resizing of arbitrary paths (for all segment types). Add polygon to whitelist.
git-svn-id: http://svg-edit.googlecode.com/svn/trunk@384 eee81c28-f429-11dd-99c0-75d572ba1ddd
2009-08-15 04:37:08 +00:00
Jeff Schiller 93611c6c71 Add angle spinner to select panel - does nothing yet
git-svn-id: http://svg-edit.googlecode.com/svn/trunk@383 eee81c28-f429-11dd-99c0-75d572ba1ddd
2009-08-14 22:50:34 +00:00
Jeff Schiller 28020bc2e2 White list for transform attribute. White list radialGradient. White list gradientTransform, gradientUnits, spreadMethod attributes for gradients.
git-svn-id: http://svg-edit.googlecode.com/svn/trunk@382 eee81c28-f429-11dd-99c0-75d572ba1ddd
2009-08-14 22:36:54 +00:00
Pavol Rusnak 1b78ee99c3 replace show source icon by the one created by wormsxulla
git-svn-id: http://svg-edit.googlecode.com/svn/trunk@381 eee81c28-f429-11dd-99c0-75d572ba1ddd
2009-08-14 21:14:51 +00:00
Alexis Deveria 4b3975948b Fixed Issue 79: Pasting/Cloning causes selectors to become hidden
git-svn-id: http://svg-edit.googlecode.com/svn/trunk@380 eee81c28-f429-11dd-99c0-75d572ba1ddd
2009-08-14 18:35:48 +00:00
Pavol Rusnak fb411b346a enhance logo and set favicon
git-svn-id: http://svg-edit.googlecode.com/svn/trunk@379 eee81c28-f429-11dd-99c0-75d572ba1ddd
2009-08-14 17:25:58 +00:00
Jeff Schiller 66e69f45f4 Fix Issue 87 via Alexis' patch: remove poly artifacts when switching mode in mid-creation of poly
git-svn-id: http://svg-edit.googlecode.com/svn/trunk@378 eee81c28-f429-11dd-99c0-75d572ba1ddd
2009-08-14 15:50:11 +00:00
Jeff Schiller d653745a70 Fix Issue 91: set paint to 'none' if not set during update of toolbar
git-svn-id: http://svg-edit.googlecode.com/svn/trunk@372 eee81c28-f429-11dd-99c0-75d572ba1ddd
2009-08-13 15:51:30 +00:00
Jeff Schiller 83275046b4 Fix Bug 80: add text controls for x,y (merge Alexis' patch)
git-svn-id: http://svg-edit.googlecode.com/svn/trunk@371 eee81c28-f429-11dd-99c0-75d572ba1ddd
2009-08-13 15:42:41 +00:00
Jeff Schiller 794db6ba98 Fix rest of Issue 34: Can now drag the poly points around in polyedit mode
git-svn-id: http://svg-edit.googlecode.com/svn/trunk@368 eee81c28-f429-11dd-99c0-75d572ba1ddd
2009-08-08 22:17:59 +00:00
Jeff Schiller 5a91365e31 Ensure current_poly is cleared when going into select mode
git-svn-id: http://svg-edit.googlecode.com/svn/trunk@367 eee81c28-f429-11dd-99c0-75d572ba1ddd
2009-08-08 14:09:30 +00:00
Jeff Schiller 6cb95656e0 Track current poly. Toggle between select and polyedit mode when clicking on the currently selected poly. polyedit mode does nothing now but show the points
git-svn-id: http://svg-edit.googlecode.com/svn/trunk@366 eee81c28-f429-11dd-99c0-75d572ba1ddd
2009-08-08 14:03:14 +00:00
Jeff Schiller dfb022fe6f Added poly point grips during creation. Fix bug where elements moved by arrow keys were not undo-able
git-svn-id: http://svg-edit.googlecode.com/svn/trunk@365 eee81c28-f429-11dd-99c0-75d572ba1ddd
2009-08-08 03:36:01 +00:00
Jeff Schiller 79a80e6d2e Check in results of trying (unsuccessfully) to fix 84.
git-svn-id: http://svg-edit.googlecode.com/svn/trunk@364 eee81c28-f429-11dd-99c0-75d572ba1ddd
2009-08-07 20:11:45 +00:00
Jeff Schiller e7a9446bbb Fix Issue 83: Allow polygons to be filled (change freehand sketches to polylines, whitelist polylines, recalculate polylines upon dragging/resizing)
git-svn-id: http://svg-edit.googlecode.com/svn/trunk@363 eee81c28-f429-11dd-99c0-75d572ba1ddd
2009-08-07 17:19:32 +00:00
Jeff Schiller 8db79e5c83 Truncate poly coordinates to integers
git-svn-id: http://svg-edit.googlecode.com/svn/trunk@360 eee81c28-f429-11dd-99c0-75d572ba1ddd
2009-08-07 05:55:11 +00:00
Jeff Schiller ab3fa8e925 First half of Issue 34 fixed: Can create polygons now. Also change default fill to red and default stroke-width to 5. Moved some functions around for convenience
git-svn-id: http://svg-edit.googlecode.com/svn/trunk@359 eee81c28-f429-11dd-99c0-75d572ba1ddd
2009-08-07 05:44:55 +00:00
Jeff Schiller 381e09be87 Add JS functionality for poly button, then disable it for now
git-svn-id: http://svg-edit.googlecode.com/svn/trunk@358 eee81c28-f429-11dd-99c0-75d572ba1ddd
2009-08-07 03:46:51 +00:00
Jeff Schiller 7dbc6fcfa2 Add poly tool button (does nothing)
git-svn-id: http://svg-edit.googlecode.com/svn/trunk@357 eee81c28-f429-11dd-99c0-75d572ba1ddd
2009-08-07 03:41:11 +00:00
Jeff Schiller e15af8fc65 Add clickable logo to top-left of editor
git-svn-id: http://svg-edit.googlecode.com/svn/trunk@356 eee81c28-f429-11dd-99c0-75d572ba1ddd
2009-08-07 03:33:41 +00:00
Jeff Schiller 86173b1832 Fix Issue 78: Merge copy/paste button into one clone button
git-svn-id: http://svg-edit.googlecode.com/svn/trunk@354 eee81c28-f429-11dd-99c0-75d572ba1ddd
2009-08-06 11:43:19 +00:00
Jeff Schiller 1840240003 Remove trailing commas
git-svn-id: http://svg-edit.googlecode.com/svn/trunk@351 eee81c28-f429-11dd-99c0-75d572ba1ddd
2009-08-04 03:14:23 +00:00
Pavol Rusnak 7c9915712a fix paths to images
git-svn-id: http://svg-edit.googlecode.com/svn/trunk@350 eee81c28-f429-11dd-99c0-75d572ba1ddd
2009-08-03 16:39:06 +00:00
Pavol Rusnak 3d3d20c53e update wave gadget xml
git-svn-id: http://svg-edit.googlecode.com/svn/trunk@349 eee81c28-f429-11dd-99c0-75d572ba1ddd
2009-08-03 16:36:50 +00:00
Jeff Schiller d1d91c556e Fix several bugs with gradient picking. Uplift to latest jGraduate.
git-svn-id: http://svg-edit.googlecode.com/svn/trunk@348 eee81c28-f429-11dd-99c0-75d572ba1ddd
2009-08-01 05:03:51 +00:00
Jeff Schiller 70c9361e1c Fix image path for jgraduate
git-svn-id: http://svg-edit.googlecode.com/svn/trunk@347 eee81c28-f429-11dd-99c0-75d572ba1ddd
2009-07-31 02:23:56 +00:00
Jeff Schiller 05ff4be18f Fix Issue 33: Gradient picker for fill/stroke. Also start to optimize suspendRedraw/unsuspend. Added vector image of logo.
git-svn-id: http://svg-edit.googlecode.com/svn/trunk@346 eee81c28-f429-11dd-99c0-75d572ba1ddd
2009-07-30 22:45:59 +00:00
Jeff Schiller f987b37526 Fix MIME type on jPicker CSS and add missing PNGs
git-svn-id: http://svg-edit.googlecode.com/svn/trunk@345 eee81c28-f429-11dd-99c0-75d572ba1ddd
2009-07-23 00:06:27 +00:00
Jeff Schiller 75f1fe1adf Set title for picker to specify stroke/fill
git-svn-id: http://svg-edit.googlecode.com/svn/trunk@344 eee81c28-f429-11dd-99c0-75d572ba1ddd
2009-07-22 22:52:04 +00:00
Jeff Schiller 1c9993d438 Uplift to jPicker 1.0.9
git-svn-id: http://svg-edit.googlecode.com/svn/trunk@343 eee81c28-f429-11dd-99c0-75d572ba1ddd
2009-07-22 22:47:59 +00:00
Jeff Schiller 5e4ebfa7a9 Added PNG version of logo from Christian
git-svn-id: http://svg-edit.googlecode.com/svn/trunk@340 eee81c28-f429-11dd-99c0-75d572ba1ddd
2009-07-22 18:05:29 +00:00
Jeff Schiller f8fd9a7be8 Fix Issue 77: Declare charset
git-svn-id: http://svg-edit.googlecode.com/svn/trunk@335 eee81c28-f429-11dd-99c0-75d572ba1ddd
2009-07-20 13:56:01 +00:00
Jeff Schiller 35cb72ea4e Add artwork for align buttons
git-svn-id: http://svg-edit.googlecode.com/svn/trunk@328 eee81c28-f429-11dd-99c0-75d572ba1ddd
2009-07-15 13:13:57 +00:00
Jeff Schiller 9c841384bd Add empty paint_picker div. Also add defs to the whitelist
git-svn-id: http://svg-edit.googlecode.com/svn/trunk@325 eee81c28-f429-11dd-99c0-75d572ba1ddd
2009-07-14 12:52:39 +00:00
Jeff Schiller 35092be25d Fade flyouts slowly the first time they are opened
git-svn-id: http://svg-edit.googlecode.com/svn/trunk@324 eee81c28-f429-11dd-99c0-75d572ba1ddd
2009-07-13 19:47:48 +00:00
Jeff Schiller 0e45cc46ef Minor tightening of code
git-svn-id: http://svg-edit.googlecode.com/svn/trunk@323 eee81c28-f429-11dd-99c0-75d572ba1ddd
2009-07-13 19:41:09 +00:00
Pavol Rusnak a09a3ecc69 added icons for cut, copy, paste
git-svn-id: http://svg-edit.googlecode.com/svn/trunk@322 eee81c28-f429-11dd-99c0-75d572ba1ddd
2009-07-13 14:12:32 +00:00
Jeff Schiller 535d55ccda Fix Issue 51: Implement Copy/Paste
git-svn-id: http://svg-edit.googlecode.com/svn/trunk@320 eee81c28-f429-11dd-99c0-75d572ba1ddd
2009-07-13 13:51:00 +00:00
Jeff Schiller bfb108a7d0 Fixed a bug where selecting an element and then clicking off the element would delete it (resulted from change to how obj_num is handled)
git-svn-id: http://svg-edit.googlecode.com/svn/trunk@318 eee81c28-f429-11dd-99c0-75d572ba1ddd
2009-07-13 04:12:25 +00:00
Jeff Schiller 4f4d42ff85 Prevent change source command if user did not change the source
git-svn-id: http://svg-edit.googlecode.com/svn/trunk@317 eee81c28-f429-11dd-99c0-75d572ba1ddd
2009-07-13 03:52:31 +00:00
Jeff Schiller b73ed5afc8 Check in draft source button
git-svn-id: http://svg-edit.googlecode.com/svn/trunk@316 eee81c28-f429-11dd-99c0-75d572ba1ddd
2009-07-13 03:46:27 +00:00