Stefan Kienzle
9c6565491b
Don't fire 'selection:created' if only one object exists
2013-10-23 09:18:07 +02:00
Kienz
0f9612b69f
Fix object selection with shift key - Closes issue #912
2013-10-22 20:33:20 +02:00
Jason Gauci
6bbc1798f1
Do not name the requirejs module (see http://requirejs.org/docs/api.html#modulename )
2013-10-20 21:10:19 -07:00
Kienz
3b0b9b7d80
Doc additions. Add examples to fabric.Image.filters
2013-10-13 18:46:51 +02:00
Juriy Zaytsev
b92e9575e0
Merge pull request #866 from rykerwilliams/master
...
Update Events / Gestures modules with event.js 1.1.3
2013-10-12 14:13:02 -07:00
Kienz
5adf772a64
Invisible objects are no longer selectable with "selection-mode" (canvas.selection = true) - Closes issue #891
2013-10-09 20:57:41 +02:00
rykerwilliams
5bf42c099f
Add custom object properties to clone function.
2013-10-06 17:02:36 -04:00
rykerwilliams
d40509d688
Remove diff tool change.
2013-10-06 16:41:27 -04:00
rykerwilliams
5445f52db3
Remove canvas_wheel_event.mixin.js. Change wrapping to bind.
2013-10-06 16:35:09 -04:00
rykerwilliams
8fafe15649
Merge branch 'master' of https://github.com/kangax/fabric.js
2013-10-05 21:02:45 -04:00
kangax
5608e17b1a
Add fabric.Polyline example and an inline link to constructor
2013-10-05 12:50:29 +02:00
kangax
eef047a5b3
Add check for skipTextAlign in fabric.Text
2013-10-05 12:50:29 +02:00
kangax
a0c508c1d5
Fix selectable=false objects getting incorrectly selected. Closes #880
2013-10-01 16:52:11 +02:00
kangax
82d9a15fee
Fix left aligning in Node. Version 1.3.7
2013-09-30 18:37:45 +02:00
kangax
f93a0e4313
Fix text rendering offsets on Node by simplifying things
2013-09-30 16:15:00 +02:00
kangax
6cd767c479
Fix offsets of underline/line-through/overline text decoration and line sharpness
2013-09-30 13:38:12 +02:00
kangax
4b65f9f682
Fix removal of default values in fabric.Text#toObject
2013-09-30 13:38:12 +02:00
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
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
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
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
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
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
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
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
rykerwilliams
f083a3dabb
Forgot __onShake method.
2013-09-23 10:55:00 -04:00
rykerwilliams
88aa0df407
Added new custom version of event.js. Added event listeners for shake, drag and orientation change.
...
Custom version available: https://github.com/rykerwilliams/Event.js
2013-09-23 10:10:40 -04:00
rykerwilliams
888f324e46
Casing Issue. Remove unneed variables.
2013-09-21 17:51:51 -04:00
rykerwilliams
9283530837
Add wheel event mixin.
2013-09-21 17:41:06 -04: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
kangax
6de9f65702
Fix animation abort
2013-09-19 19:49:51 +02:00
kangax
24836cbdaf
Call abort earlier in animation loop (makes it possible to abort immediately)
2013-09-19 19:49:51 +02:00
kangax
d29a1d9ccd
Uncomment fabric.Object#getPointByOrigin
2013-09-19 19:49:51 +02:00
Juriy Zaytsev
e627c8804a
Merge pull request #856 from Kienz/patch-2
...
Fix wrong object order in `fabric.Group.toSVG`
2013-09-18 13:34:29 -07:00
Kienz
cb510b9ef3
Fixed fabric.Group.toSVG- object order was wrong
2013-09-18 19:17:50 +02:00
Kienz
815ca4ec70
Fixed fabric.Tectvertical position
2013-09-18 17:28:36 +02:00
Juriy Zaytsev
3c50e72548
Merge pull request #853 from Kienz/patch-1
...
Avoid unnecessary `renderAll` calls in mousedown and mouseup events
2013-09-18 06:17:51 -07:00
Kienz
516fa76b68
Fix jshint error
2013-09-18 08:23:36 +02:00
Kienz
721ac7a8c2
Doc additions - document object parameter
2013-09-17 22:42:58 +02:00
Stefan Kienzle
23a4685d22
Avoid unnecessary renderAll calls in mousedown and mouseup events.
...
Tested it with `canvas.selection = true/false`.
2013-09-17 18:45:54 +02:00
Kienz
ba2a0e6dff
Fixed fabric.PatternBrush- brush style was not applied during the drawing mode
2013-09-16 19:05:23 +02:00
kangax
dbc96349ce
Refactoring
2013-09-15 20:29:20 +02:00
Kienz
e69c19029a
Fixed object.toDataURL if object's originX/originY != 'center'
...
Add documentation to object.toDataURL for options object
Alias "jpg" format to "jpeg". Closes #806
2013-09-15 18:02:15 +02:00
kangax
b077905781
Avoid creation of exports global var as this messes up QUnit (and probably something else)
2013-09-14 20:40:40 +02:00
kangax
408a8b9de6
Alias "jpg" format to "jpeg". Closes #806
2013-09-14 18:44:44 +02:00
Kienz
26e784aede
Move setColorfrom fabric.Text to fabric.Object
...
Fixed "enum" notation
`fabric.Object.setGradient` is now chainable
Doc additions
Add `fabric.Object.setPatternFill`unit test
Add chainable tests to some methods
2013-09-14 17:10:49 +02:00
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