kangax
249c330ed6
Add fabric.util.groupSVGElements for creating fabric.<Element> or fabric.PathGroup out of a group of elements.
2012-06-23 19:28:53 +02:00
kangax
83582467d6
Merge master
2012-06-23 18:18:02 +02:00
kangax
9926d8389a
[BACK_INCOMPAT] Remove CANVAS_WIDTH, CANVAS_HEIGHT properties from fabric.Canvas.prototype (as they're no longer used anywhere). Lowercase some of the fabric.Canvas.prototype properties, for consistency: CURSOR -> defaultCursor, ROTATION_CURSOR -> rotationCursor, HOVER_CURSOR -> hoverCursor, CONTAINER_CLASS -> containerClass.
2012-06-23 00:18:41 +02:00
kangax
9d36e26d71
Fix "mouse:down", "mouse:move", "mouse:up" events not firing during free drawing mode.
2012-06-22 17:25:15 +02:00
kangax
5d803c9778
Fire "mouse:down", "mouse:move", "mouse:up" events during free drawing mode.
2012-06-22 17:05:07 +02:00
kangax
dd43c23e86
Check for callback presence in fabric.Group.fromObject.
2012-06-21 09:59:48 +02:00
kangax
126c2aa507
Merge master
2012-06-20 17:43:39 +02:00
kangax
d6f7c9effb
fabric.Canvas#setOverlayImage now correctly returns a reference to a canvas instance.
2012-06-19 20:33:46 +02:00
kangax
1706361616
Fix bug with rendering of subsequent "S" commands, where reflection of control point would be considering 1st control point of previous command, not 2nd one. Closes #177 .
2012-06-17 13:25:17 +02:00
kangax
da2ed018d8
Fix fabric.util.requestAnimFrame erroring out due to wrong "context".
2012-06-15 17:35:05 +02:00
kangax
cd59885370
Fix port recognition from URL when loading SVG's via node.
2012-06-14 14:12:42 +02:00
kangax
5e29a2b319
Fix bugs in fabric.Object#animate (thanks Anton Ignatov).
2012-06-13 13:30:53 +02:00
kangax
b5d76f752d
Add more image filters (Sepia, Sepia2, Brightness, Noise, GradientTransparency) based on Stoyan's demo — http://www.phpied.com/pixel-manipulation-in-canvas/ Fix bug with fabric.Image and filters.
2012-06-11 19:17:24 +02:00
kangax
b701627f42
Fix "stroke-width" being ignored in style attribute.
2012-06-10 12:13:12 +02:00
kangax
09585654a8
Cloned canvas now preserves background image (and all of its properties) properly.
2012-06-07 16:24:44 +02:00
kangax
e17fe9ddef
Prevent error in fabric.Object#toDataURL when called before setCoords.
2012-06-07 16:24:44 +02:00
kangax
9e605340c1
Fix subclassing mechanism to work correctly with 2+ level deep inheritance. Closes #134 . Closes #141 .
2012-06-07 16:24:44 +02:00
Tim de Koning
a64ae3d9eb
XML entities should be escaped globally!
2012-06-07 15:24:00 +02:00
kangax
bb389e4723
Removing active object now fires "selection:cleared" events. Closes #121 .
2012-06-07 12:47:15 +02:00
kangax
9130ab7f60
Add "object:added" event. Fires when object is added to canvas (either via canvas.add or canvas.insertAt).
2012-06-07 12:32:58 +02:00
kangax
7791e9c2e0
IE fix for gradient parsing.
2012-06-07 12:32:58 +02:00
kangax
1bfa25acf4
Render canvas after setting background image.
2012-06-07 12:32:57 +02:00
Juriy Zaytsev
a239bdd2a8
Merge pull request #168 from garg/master
...
Fix `fabric.Object#toDataURL` to take bounding rectangle dimensions into consideration. Add `fabric.Object#getBoundingRectWidth`, `fabric.Object#getBoundingRectHeight`.
2012-05-31 14:50:06 -07:00
kangax
78eda278d1
Fix double tap issue in iOS. Closes #146 .
2012-06-01 01:42:11 +04:00
garg
49a51b1388
Added getBoundingRectHeight and getBoundingRectWidth and changed toDataURL to use those instead of getHeight and getWidth.
2012-05-30 20:30:42 -03:00
Maciej Gajewski
752339aa3e
Rotation point now works after flipY.
2012-05-29 13:04:25 +02:00
Maciej Gajewski
1d037645b9
Added ability to set cursor for rotation point just as default cursor.
2012-05-29 12:42:41 +02:00
kangax
e4dbab85f1
Fix xml parser initialization.
2012-05-29 12:29:20 +04:00
kangax
ecdd0fb980
Try using "xmldom" instead of "o3-xml".
2012-05-28 17:22:37 +04:00
kangax
af67423df9
fabric.Image now renders image according to current width/height (not width/height of original image).
2012-05-27 23:48:00 +04:00
kangax
35afa0c9c1
Fix size of selection border of scaled circles. Closes #157 .
2012-05-25 15:34:01 +04:00
kangax
0e79544c12
Preserve hasControls, hasBorders, hasRotatingPoint values during serialization. Closes #163 .
2012-05-21 14:24:33 +04:00
kangax
c7f31d9d0e
Export backgroundImage, backgroundImageOpacity, backgroundImageStretch in SVG. Closes #125 .
2012-05-16 15:25:18 +04:00
kangax
9584ae2759
"backgroundImage", "backgroundImageOpacity", and "backgroundImageStretch" are now preserved correctly (when saving canvas to JSON/loading from JSON). Closes #139 .
2012-05-16 14:51:10 +04:00
kangax
09d6a6451d
Revert circle as rotating control for now (will need to figure out why scaling occurs there).
2012-05-15 18:36:34 +04:00
kangax
c5bf683d63
Display circle as rotating control, rather than square.
2012-05-15 18:01:57 +04:00
kangax
7451d8978a
Set cursor to "crosshair" when hovering over rotating control.
2012-05-15 18:01:38 +04:00
kangax
5cbd8bdb8a
Merge remote-tracking branch 'Kienz/master'
2012-05-15 16:53:57 +04:00
Kienz
b3b99e6aee
Fix problem when hasRotatingPoint = 'false'. In this case the behavior is the same as before: corner-controls: scale + rotate.
2012-05-15 15:36:19 +03:00
kangax
a5efac75bb
Merge remote-tracking branch 'Kienz/master'
2012-05-15 16:14:15 +04:00
Kienz
475e3ae1ce
Bugfix seperate rotating point
2012-05-15 14:56:55 +03:00
Kienz
7c0a2e65cd
Bugfix seperate rotating point
2012-05-15 14:54:39 +03:00
kangax
60f6bdfa60
Merge remote-tracking branch 'Kienz/master'
2012-05-15 15:08:03 +04:00
Kienz
ee380cc3a0
Revert "Revert "Separate rotating corner""
...
This reverts commit cc41222b0d .
2012-05-15 00:46:05 +02:00
Kienz
cc41222b0d
Revert "Separate rotating corner"
...
This reverts commit d95894f5c2 .
2012-05-15 00:44:38 +02:00
Kienz
d95894f5c2
Separate rotating corner
...
These changes are based on the easel.ly project. The separate rotate
corner can enabled/disabled by the option hasRotatingPoint
(true/false). By default the option is set to false.
Maybe you can have a look at these changes.
2012-05-15 00:35:20 +02:00
Kienz
33c7cda3aa
Group selection by holding shift key if canvas.selection = false no longer possible
2012-05-14 12:25:02 +03:00
Juriy Zaytsev
351ec5d48f
Merge pull request #155 from balthazar/master
...
Add easing functions.
2012-05-13 07:43:06 -07:00
kangax
7c95155c2e
Add fabric.Canvas#getSelectionElement for retrieval of canvas element on which object selection is drawn.
2012-05-13 18:37:28 +04:00
kangax
5a2eb2e3df
[BACK_INCOMPAT] fabric.Canvas#getContext now returns context of canvas element on which all objects are drawn. fabric.Canvas#getSelectionContext returns context of canvas element on which object selection is drawn.
2012-05-13 18:30:12 +04:00