Commit graph

1496 commits

Author SHA1 Message Date
Juriy Zaytsev
bfcd95b7a4 Merge pull request #878 from Kienz/patch-1
Add reviver function to `fabric.Canvas.toSVG` - Closes #690
2013-09-29 04:04:37 -07:00
Kienz
14d053e9b2 Fix unit test 2013-09-29 10:21:55 +02:00
Juriy Zaytsev
28bc4c7658 Merge pull request #879 from Kienz/patch-2
Include sourcePath in `fabric.PathGroup` only if its defined
2013-09-29 01:07:16 -07:00
Kienz
922e7ab159 Include sourcePath in fabric.PathGroup only if its defined
Doc additions
2013-09-29 09:56:29 +02:00
Kienz
61835602f9 Remove toGrayscale from fabric.PathGroup and fabric.Collection 2013-09-29 09:49:41 +02:00
Kienz
e94eb59012 Add @example for toSVG with reviver function 2013-09-29 09:28:27 +02:00
Kienz
be86429b32 Add reviver function to fabric.Canvas.toSVG.
Reviver function accepts one parameter (svg string representation of object instance) and should return svg string.
Add qunit test.
2013-09-29 09:22:44 +02:00
kangax
12f272d2fc Build distribution 2013-09-28 23:47:53 +02:00
kangax
f5775eb2f4 Add rectangles optimization to Spray brush 2013-09-28 23:47:53 +02:00
kangax
4b78a2d819 Fix includeDefaultValues to account for stateProperties of specific objects 2013-09-28 23:47:53 +02:00
kangax
ec120452c5 Add x/y in fabric.Rect#stateProperties. Make toObject remove them when includeDefaultValues=false. 2013-09-28 23:47:53 +02:00
kangax
f2ad6e5be6 [BACK_INCOMPAT] Move "backgroundColor" from fabric.Text to fabric.Object (only works with text for now). Remove fabric.Object#overlayFill. Remove fabric.Canvas.toGrayscale, fabric.Object#toGrayscale, and fabric.Object#overlayFill. Version 1.3.5 2013-09-28 23:47:53 +02:00
Kienz
fa2f18a77a Add more docs.
Examples, tutorial and demo links.
2013-09-28 12:31:32 +02:00
kangax
bbb73dcde3 Add more docs 2013-09-27 22:22:28 +02:00
kangax
485b3569d3 Add docs 2013-09-27 22:22:28 +02:00
kangax
bd2857e49a Add link for mask filter 2013-09-27 22:22:28 +02:00
Juriy Zaytsev
2f29c01264 Merge pull request #870 from aspectit/scrollTop
Fix mouse handling inside a scrollable div.
2013-09-27 04:50:07 -07:00
Juriy Zaytsev
3345156793 Merge pull request #873 from Kienz/docAddtions
Doc additions
2013-09-26 12:12:28 -07:00
Kienz
7792b1274b Doc additions
Add example and jsfiddle link to `canvas.loadFromJSON`
2013-09-26 21:04:10 +02:00
Kienz
9de6c9a473 Doc additions
Add examples and links to jsfiddle to `fabric.Object.setGradient`, `fabric.Object.setPatternFill`, `fabric.Object.setShadow` and `fabric.Canvas.toDataURL
2013-09-26 20:17:53 +02:00
kangax
db8f0515f1 Add docs for object accessors. Build distribution. 2013-09-26 19:55:17 +02:00
Kienz
8e7c74fa92 Update CHANGELOG.md 2013-09-26 18:55:12 +02:00
Juriy Zaytsev
a8ad0dc785 Merge pull request #872 from Kienz/patch-1
[BACK_INCOMPAT] Split `centerTransform` into the properties `centeredScaling` and `centeredRotation` - Fixes #782
2013-09-26 09:45:46 -07:00
Kienz
30ffd894d6 Add missing doc additions of previous commit from kangax 2013-09-26 18:43:13 +02:00
Kienz
5f9edecd18 [BACK_INCOMPAT] Split fabric.Object.centerTransform and fabric.Canvas.centerTransform into the properties centeredScaling and centeredRotation
centeredScaling: Define if object scaling should be centered (true). Default = false.
centeredRotation: Define if object rotates around center (true) or around origin (originX/originY) point (false).  Default = false.
Pressed altKey negates the behavior.
2013-09-26 18:19:17 +02:00
kangax
365b2dc0a9 Doc additions 2013-09-26 17:50:28 +02:00
Juriy Zaytsev
aeaa5fcb00 Merge pull request #857 from briefbanane/master
Allow toggling of flipX/Y to flip the whole group
2013-09-26 06:04:11 -07:00
kangax
41ab3a0064 Doc additions 2013-09-26 14:12:02 +02:00
Michael Elsdörfer
08bae85093 Fix mouse handling inside a scrollable div. 2013-09-25 23:36:41 +02:00
Fabian Ebner
44756d4a57 Handle addWithUpdate removeWithUpdate and destroy differently 2013-09-25 22:42:13 +02:00
Fabian Ebner
61fff6b8c6 Clean up code and fix rotation issue 2013-09-25 21:50:09 +02:00
kangax
812717b207 Add fabric.Object#evented. fabric.Object#selectable now fires events again, but can not be selected. However, evented=false does not receive events at all. 2013-09-25 19:05:57 +02:00
Fabian Ebner
5576759eb4 Preserve rotation after flipping when group isn't selected anymore 2013-09-25 15:34:30 +02:00
kangax
7e9e27aba5 Fix object loading yet again 2013-09-24 18:34:32 +02:00
kangax
15a6a3c3df Fix objects enlivening with sparse arrays. Version 1.3.3 2013-09-24 15:58:52 +02:00
kangax
5dc3bcff6d Build distribution. Version 1.3.2 2013-09-24 13:25:38 +02:00
kangax
83ca60e885 Fix resolveNamespace and getKlass on node 2013-09-24 13:25:38 +02:00
Fabian Ebner
f02c657f84 If group was flipped and is destroyed always re-flip children 2013-09-24 12:47:39 +02:00
Fabian Ebner
6e96b3f1fb Allow flipping in fabric.Group to change the object positions permanently 2013-09-24 12:38:11 +02:00
Juriy Zaytsev
3e5abfcd6d Merge pull request #867 from Kienz/patch-1
Remove check for `fabric.Color` because only string values are allowed for color parameter
2013-09-23 09:15:44 -07:00
Stefan Kienzle
0a4bbfb4bb Remove check for fabric.Color because only string values are allowed for color parameter. Otherwise initialization breaks if opacity is not defined. 2013-09-23 17:56:07 +02:00
kangax
0a0e93ded9 Update dist files 2013-09-23 14:37:57 +02:00
kangax
89a1a11563 Fix exports again. Version 1.3.1 2013-09-23 14:34:07 +02:00
kangax
a173a2daa5 Avoid exports global var creation in non-requirejs build (as it conflicts with underscore, qunit, etc.) 2013-09-23 14:19:56 +02:00
Juriy Zaytsev
0327a2dc99 Merge pull request #862 from Kienz/tintFilter
[BACK_INCOMPAT] Initialization of `fabric.Image.filters.Tint` is now different
2013-09-20 14:28:58 -07:00
Kienz
cabc63c633 Fixed unit test 2013-09-20 22:38:37 +02:00
Stefan Kienzle
60e9d0f144 [BACK_INCOMPAT] Initialization of fabric.Image.filters.Tint is now different - options.color: color string value, options.opacity: 0..1
Now you can define opacity of the tint filter (by rgba/hsla colors or with opacity attribute)
Doc additions
2013-09-20 19:51:55 +02:00
Juriy Zaytsev
e41ec97701 Update CHANGELOG.md 2013-09-19 22:58:29 +02:00
kangax
4befebb19d Build distribution with remote changes 2013-09-19 19:50:59 +02:00
kangax
6de9f65702 Fix animation abort 2013-09-19 19:49:51 +02:00