kangax
775df6e836
Move state-related methods to stateful mixin
2013-05-01 09:29:57 -04:00
kangax
17974a55be
Reuse mt coordinate values in mtr coordinates. Closes #592
2013-05-01 03:06:04 -04:00
kangax
eeecde62a8
Normalize style values. Closes #598
2013-05-01 02:58:59 -04:00
Stefan Kienzle
6caf60670b
Fixed _renderFill - fallback for offsetX/offsetY
...
If object.fill.offsetX or object.fill.offsetY is undefined (e.g. fill = fabric.Gradient) browser might have problems (seen in firefox 3.6.28).
2013-04-30 16:27:01 +03:00
kangax
a6a5cb4a54
Load image via fabric.util.loadImage in cloneAsImage. Add fabric.util.createImage helper. Closes #593
2013-04-29 15:16:59 -04:00
kangax
f6da728aad
Add support for parsing "compressed" path data in SVG path's. Version 1.1.10
2013-04-29 11:12:20 -04:00
kangax
d755d64c76
Remove unnecessary renderAll calls. Thanks @Kienz. Closes #587
2013-04-26 21:49:13 -04:00
Stefan Kienzle
acfddabe16
Fire 'object:selected' only once
...
The event 'object:selected' should only be called on first activation.
Fixes #584
2013-04-26 11:55:13 +03:00
kangax
4e1a26cc11
Update docs
2013-04-25 14:21:32 -04:00
kangax
56e6107752
Doc fixes
2013-04-25 13:52:05 -04:00
kangax
c16dcf88a4
Change inline docs to conform to jsdoc3
2013-04-24 12:58:04 -04:00
kangax
40d5a52492
More robust rendering of text on Node.js; left-aligned text is now aligned consistently.
2013-04-24 12:50:38 -04:00
kangax
66c3c80d18
Fix doc
2013-04-22 09:26:57 -04:00
kangax
22de40dc54
Add support for pattern offsets (via fabric.Pattern#offsetX/offsetY). Version 1.1.8
2013-04-22 09:16:58 -04:00
kangax
dce3f6f6ca
Optimize _initDimensions to not create off-screen canvas every time. Closes #564
2013-04-20 12:04:45 -04:00
Juriy Zaytsev
9a34bbfba2
Merge pull request #568 from Kienz/patch-1
...
Return unselectable objects in canvas 'mouse:down' event
2013-04-20 08:58:41 -07:00
Kienz
d03da23d0a
- lockUniScaling now can't be overridden with shiftKey or uniScaleTransform property
...
- Pass event to object 'rotating'
- some refactoring
2013-04-20 15:01:09 +02:00
Stefan Kienzle
571887036f
Bugfix object.opacity == 0 in svg output
...
If object.opacity = 0 the svg output sets opacity to 1.
2013-04-19 14:35:52 +03:00
kangax
e56d37d9da
Fix text and line rendering in path group. Add support for multiple declarations in "transform" attribute. Fix stroke color of line. Version 1.1.7
2013-04-18 21:42:46 -04:00
Juriy Zaytsev
359df373c0
Merge pull request #569 from xxorax/master
...
Build canvas from json even if no object is sent
2013-04-18 15:13:55 -07:00
Martin Panel
4071fd7040
Fix backgroundImageLoaded not checked
2013-04-19 00:01:53 +02:00
Stefan Kienzle
53c8b074c2
findTarget now retuns unselectable objects
2013-04-18 17:51:53 +03:00
Stefan Kienzle
854d0db56c
Clear selection for unselectable object
...
Now objects are found even they are unselectable - expand _shouldClearSelection for unselectable objects.
Don't call findTarget() - new in parameter target.
2013-04-18 17:50:02 +03:00
Stefan Kienzle
99f31b5753
Return target on mouse:down (even for unselectable objects)
...
canvas 'mouse:down' event only returns selectable objects.
2013-04-18 17:42:47 +03:00
Tim Andres
3950298c75
Changed nestTransformMatrices to mutilplyTransformMatrices
2013-04-17 13:54:11 -04:00
Tim Andres
bd058e6a94
Fetched and merged upstream changes
2013-04-17 13:53:43 -04:00
Martin Panel
13acd4ee76
Build canvas from json even if no object is sent.
2013-04-17 02:11:56 +02:00
kangax
8879c73af7
Document lock* properties. Build distribution
2013-04-16 12:44:54 -04:00
Tim Andres
63809278d2
Documented new matrix multiplication utility
2013-04-16 02:26:22 -04:00
Tim Andres
e2bba99e98
Fixed path translation bug with SVG parsing
2013-04-16 01:49:42 -04:00
Stefan Kienzle
e73fe4625e
Return object reference in drawControls and drawBorders
...
Closes #556
2013-04-12 00:47:07 +03:00
kangax
e8c9c7b0f1
Fix group selection when animation is in progress. Thanks @Kienz
2013-04-10 16:46:16 +02:00
kangax
7f190662d1
Do not parse fill value if it's not a string (but, for example, a gradient or pattern)
2013-04-08 13:41:46 +02:00
Stefan Kienzle
185686738e
fabric.Rect.fromElement() are wrong positioned
...
If the left/top properties are 0 they are ignored - they are not normalized.
http://jsfiddle.net/Kienz/3SmUC
2013-04-08 09:25:33 +03:00
kangax
a0bc7b6904
Fix doc typo
2013-04-06 12:46:01 +02:00
kangax
fcc0c5cbbb
Only call change and complete callbacks once, when animating multiple properties. Closes #544
2013-04-06 12:44:10 +02:00
Stefan Kienzle
9c76ba0f92
Add svg element to async objects (reviver)
...
If async objects parsed (image), the reviver svg element is undefined.
You can see it here:
http://jsfiddle.net/Kienz/nhYww/
2013-04-05 19:06:02 +03:00
kangax
c22d9f0c18
req_handler -> reqHandler
2013-04-04 14:05:24 +02:00
kangax
97222fbaa1
Remove pathOffset from object/json output for now
2013-04-04 14:03:22 +02:00
kangax
4e74f4d7ab
Preserve group reference on objects in group after adding/removing some object from group. Closes #533
2013-04-04 13:58:08 +02:00
kangax
c294ae2b3a
[BACK_INCOMPAT] fabric.Text#strokeStyle -> stroke, for consistency with other objects. Closes #535
2013-04-04 13:58:08 +02:00
kangax
4be589019c
Fix positioning of line and image instances when part of a group
2013-04-04 13:58:08 +02:00
kangax
6e725ae18b
Support stroke on image instances. Closes #536
2013-04-04 13:58:08 +02:00
kangax
4d037e979a
Document strokeDashArray on fabric.Rect
2013-04-04 13:58:08 +02:00
Juriy Zaytsev
9e10349558
Merge pull request #531 from shiloa/master
...
Fix crash (segfault) on node.js if canvas loads images with secure url (https://...)
2013-04-04 04:55:14 -07:00
Juriy Zaytsev
2c7205fec1
Merge pull request #537 from Kienz/shadowBrush
...
Fix reset shadow of fabric brushes
2013-04-04 03:39:19 -07:00
Taher Haveliwala
bafc75b35c
The jsdoc params for fabric.Image.clone() were out of order, making
...
the jsdoc API reference for this method at
http://fabricjs.com/docs/symbols/fabric.Image.html
display an incorrect method summary (with the order of propertiesToInclude
and callback swapped).
2013-04-03 20:14:14 -07:00
Kienz
4e61f7eb2e
Fix reset shadow of fabric brushes
2013-04-03 21:09:31 +02:00
Kienz
f5eb524ddd
Don't set activeObject if clicked on activeGroup
...
canvas._activeGroup should be null if clicked on activeGroup.
Only set activeObject if target !== activeGroup.
2013-04-03 16:17:46 +03:00
Kienz
0fdb97f289
Activate clicked object if group selection is cleared
...
If group selection is cleared and pointer clicked other object
=> activate this object.
See issue #506
2013-04-03 16:07:27 +03:00