Commit graph

901 commits

Author SHA1 Message Date
kangax
f5f29a3925 Create group of circles in CircleBrush for better performance. Closes #530 2013-09-14 13:59:10 +02:00
kangax
44265e3c97 Create group of rectangles in spray brush for better performance 2013-09-14 13:55:21 +02:00
kangax
eeb0f72bd4 Move fabric.Rect's stateProperties to prototype for more efficient memory usage 2013-09-14 13:54:18 +02:00
kangax
c1a818ac33 Add support for cropping in toDataURL. Closes #449. Version 1.2.14 2013-09-14 12:42:25 +02:00
kangax
40e27b7392 Document text accessors 2013-09-13 19:03:05 +02:00
Stefan Kienzle
539afb8d97 Some small changes in fabric.Observable 2013-09-13 16:18:18 +02:00
Juriy Zaytsev
a7489774fd Merge pull request #840 from Kienz/patch-2
`fabric.Observable.on` and `fabric.Observable.off` can add/remove multiple handlers (object with key/value pairs). Closes #838
2013-09-12 14:49:31 -07:00
Kienz
1e1adc7831 fabric.Observable.on and fabric.Observable.off can add/remove multiple handlers (object with key/value pairs)
Update jsdoc
Add unit tests
2013-09-12 20:43:31 +02:00
Kienz
9f6dea5d9e Add reviver function to fabric.Canvas.loadFromJSON (and loadFromDatalessJSON)
Add unit test
2013-09-12 20:10:23 +02:00
kangax
5ebd697978 [BACK_INCOMPAT] Remove selectable, hasControls, hasBorders, hasRotatingPoint, transparentCorners, perPixelTargetFind from default object/json representation of objects. Fix includeDefaultValues. Version 1.2.13. Closes #795 2013-09-11 11:41:00 +02:00
kangax
95c97f5447 [BACK_INCOMPAT] Object rotation now happens around originX/originY point UNLESS centerTransform=true. Version 1.2.12. Closes #439 2013-09-09 16:39:39 +02:00
kangax
bec5787267 Update docs 2013-09-09 02:42:16 +02:00
kangax
36cd31b7a3 Fix object:modified firing incorrectly with groups. Closes #717 2013-09-09 02:27:19 +02:00
kangax
0fc54d4f7f Fix Point and Intersection docs. Build distribution. 2013-09-06 19:12:57 +02:00
Juriy Zaytsev
62740ff27b Merge pull request #828 from bernardofd/master
Replace the Streams interface with FS.readFile() in asset loading on Node.js
2013-09-06 10:04:55 -07:00
Bernardo F. Domingues
806a44e3c3 Renaming "url" to "path" for clarity reasons 2013-09-06 11:39:28 -03:00
Bernardo Figuerêdo Domingues
67d1a4732c Replacing Streams interface for FS.readFile to load assets in the Node.js module 2013-09-06 11:36:09 -03:00
Stefan Kienzle
d190c31e8b Renamed fabric.Shadow.getShadow to fabric.Shadow.toString 2013-09-05 18:09:34 +02:00
Juriy Zaytsev
ed1c116793 Merge pull request #823 from Kienz/patch-1
[BACK_INCOMPAT] `fabric.Text.textShadow`was removed and `fabric.BaseBrush` shadow properties removed (new `fabric.BaseBrush.shadow`)
2013-09-03 12:27:13 -07:00
kangax
70213ea92f Tweak build.js; build distribution 2013-09-03 21:23:35 +02:00
kangax
4559918688 Resolve conflicts 2013-09-03 21:18:29 +02:00
kangax
fc3bc45920 Fix text decoration offset for text with originY=top 2013-09-03 21:17:00 +02:00
Drew Lustro
1f993e92b8 requirejs support added via "requirejs" build.sh option
$ node build modules=ALL requirejs
- dist/all* is clean of changes
- fixed bug in build.sh that would prevent dist/all.require.js from compiling properly
- Updated test.js to include test_script.js fixtures
- NOTE: Qunit tests largely incompatible with requirejs version... need more
insight on how Qunit works to get fabric in the namespace since it is
no longer a global when built as an AMD module.
2013-09-03 14:15:12 -04:00
Kienz
b638487686 Performance optimization - removed senseless code 2013-09-03 19:18:16 +02:00
Kienz
8c74f2b335 [BACK_INCOMPAT] fabric.Text#textShadow has been removed - new fabric.Text.shadow property (type of fabric.Shadow)
[BACK_INCOMPAT] `fabric.BaseBrush`shadow properties are combined into one property => `fabric.BaseBrush.shadow`(shadowColor, shadowBlur, shadowOffsetX, shadowOffsetY no longer exist)
Removed fabric.Text.getText method => is generated with `fabric.util.createAccessors`
`fabric.Shadow` can now initialized with string or object (e.g. '10px 10px 5px rgb(0,0,255)', 'rgb(0,0,255) 10px 10px 5px', {color: 'gb(0,0,255)', offsetX: 10, offsetY: 10, blur: 5})
`fabric.Shadow.getShadow`to get css3 declaration of shadow (String)
`fabric.Object.set('shadow', value)`is now the same as `fabric.Shadow.setShadow(value)`
Add unit tests
2013-09-03 19:11:21 +02:00
kangax
d7469c6a93 Make selectable=false objects propagate events through 2013-09-03 12:01:26 +02:00
kangax
ec32a3c399 Make on/off/trigger chainable 2013-09-03 11:52:10 +02:00
kangax
c262cd306d When firing event, call handler in context of object firing event 2013-09-03 11:43:46 +02:00
kangax
28fa7a8b3f Add fabric.Object#hoverCursor; just like fabric.Canvas#hoverCursor but on object level 2013-09-03 11:43:10 +02:00
kangax
e1df87c64c Some (non-breaking) text changes to allow for more granular line height 2013-09-01 00:10:12 +02:00
kangax
e620e634b2 Add backwards-incompat doc notes 2013-08-31 12:52:30 +02:00
Stefan Kienzle
89f3ab0668 Fix fabric.Circle.set for radius - update width/height if radius is set
Closes issue #811
2013-08-30 11:51:08 +02:00
kangax
507dff705b Fix tint filter. Thanks @mewdriller 2013-08-30 01:13:29 +02:00
Kienz
345ed3f5e9 Fix fabric.Text#fontFamily in SVG output - Closes issue #813
Add unit tests
2013-08-29 22:06:24 +02:00
kangax
434bfb2c6d Fix fabric.Canvas subclassing; fabric.Canvas, fabric.StaticCanvas now created via createClass. 2013-08-28 15:17:25 +02:00
Kienz
f31a62a25c Add encoding to canvas.toSVG(options)
Add unit tests for canvas.toSVG
2013-08-27 20:32:15 +02:00
kangax
78dc27a029 Call abort in context of an object. Closes #803 2013-08-23 14:30:33 +02:00
Jaak Sarv
2cd96f7933 Fixed bug where object selection borders where misaligned 2013-08-22 18:05:12 +03:00
Juriy Zaytsev
b708fbafa4 Merge pull request #799 from vegasje/feature/allow-touch-scrolling
Simple boolean option on canvas to allow scrolling on touchscreen devices
2013-08-21 15:19:22 -07:00
Jeremy Watkins
143203d99d Adding a default allowTouchScrolling value, along with a description of its purpose 2013-08-21 15:01:00 -07:00
Stefan Kienzle
55d5d99fdc Fix loadFromJSON for image objects without image filters 2013-08-21 10:08:35 +02:00
Jeremy Watkins
d728951ccf Simple boolean option on canvas to allow scrolling on touchscreen devices 2013-08-20 10:44:53 -07:00
kangax
d1bcd18de5 Fix resolveNamespace 2013-08-17 20:18:06 +02:00
Stefan Kienzle
bd60887ef2 Remove cursor reset in __onMouseUp (old fix for firefox). Closes issue #793 2013-08-15 16:06:26 +02:00
Juriy Zaytsev
751f39cc58 Merge pull request #792 from Kienz/maskFilter
Update `fabric.Image.filters.Mask` - based on https://github.com/kangax/fabric.js/pull/667 (@aleph1)
2013-08-14 13:00:49 -07:00
kangax
a2e4d30a82 Add fabric.Canvas#skipTargetFind 2013-08-14 21:51:00 +02:00
Stefan Kienzle
901ee7f942 Update fabric.Image.filters.Mask - based on https://github.com/kangax/fabric.js/pull/667 (@aleph1)
[BACK_INCOMPAT] `fabric.Image._initFilters` is now async, add parameter callback
Add `fabric.util.resolveNamespace` - used to get correct klass in `fabric.util.enlivenObjects`
Doc additions
2013-08-14 18:07:56 +02:00
kangax
a5ab1baf24 Don't call setCoords when rendering text 2013-08-14 13:54:39 +02:00
kangax
4b1d1140eb Doc additions 2013-08-14 12:55:09 +02:00
kangax
3317010fdf Add support for fabric.Text#skipFillStrokeCheck 2013-08-14 12:55:08 +02:00