Andrea Bogazzi
701a62053d
make group transform support general transforms
2015-10-24 15:38:46 +02:00
Andrea Bogazzi
cda0611326
Add support for skew objects.
2015-09-17 14:22:12 +02:00
Andrea Bogazzi
5966b5e319
toObject returns deep cloning if necessary
2015-08-11 11:10:51 +02:00
Andrea Bogazzi
0841c886b0
Update object.js
2015-08-10 01:38:28 +02:00
Andrea Bogazzi
f805e57297
Update rect.js
2015-07-20 12:57:13 +02:00
sapics
79db396d3a
fix unit test error in google chrome
2015-05-23 08:47:42 +09:00
Andrea Bogazzi
80c3012646
Update object_origin.mixin.js
2015-05-02 19:13:44 +02:00
kangax
94f7035624
Lint unit tests and fix errors/warnings
2015-04-23 11:47:35 +02:00
Andrea Bogazzi
f4385b2de9
Fix line accuray issue, remove some duplicate code, do not force width = 1 on 0. Fix object render method to render 0-dimensions lines
...
Check how this version could behave in general rendering.
2014-11-20 22:34:47 +01:00
Andrea Bogazzi
af1138a686
Divided FillRule from globalCompositeOperation
2014-09-23 08:53:56 +02:00
asturur
a95897313f
Update object.js
...
i need bigger spacebar.
or better i need to stick something on comma key that press even space after it.
Something that can bend down in one direction but not in the other, so when i press comma it push spacebar down, and when i press spacebar i don't fire a comma!
2014-06-24 15:34:18 +02:00
asturur
62d281bd3d
Update object.js
...
I'm not sure, i'm sorry i tried to guess.
2014-06-24 14:12:39 +02:00
Kienz
fd3ace05bb
[BACK_INCOMPAT] Possibility to remove multiple fabric.Objects from collection (canvas, group) - this (canvas, group or object) is returned instead of delete object
...
Update unit tests - use strictEqual for some cases
Add multiple objects raised `object:added` for last added object first - now 1st added object raises 1st `object:added` event, 2nd object raises 2nd `object:added`…
2013-12-07 11:07:46 +01:00
Kienz
67fd4253f3
Fix unit tests
2013-11-20 19:47:30 +01:00
kangax
330784ac2c
[BACK_INCOMPAT] Change default objects' originX/originY to left/top
2013-11-04 00:15:49 +01:00
kangax
c6ff46269c
Preserve canvas reference in fabric.Object#toDataURL. Closes #938
2013-10-31 16:00:31 +01: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
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
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
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
78dc27a029
Call abort in context of an object. Closes #803
2013-08-23 14:30:33 +02:00
kangax
2407dbba49
Implement clipTo serialization, deserialization, and initialization. Closes #583 . Closes #677 . Closes #676
2013-06-02 23:04:54 +02:00
kangax
d23cbcbb3a
Fix unit tests
2013-05-23 20:16:08 +02:00
Kienz
d80fec5df1
Better strokeDashArray support + Fixes
...
- fabric.Text has now strokeDashArray support (only native support)
- fabric.Text.fill = null should now work
- Fix save/restore context in render methods => setLineDash affected drawBorder/drawControls
- Add strokeLineCap (default "butt"), strokeLineJoin (default "miter") and strokeMiterLimit (default 10)
- Add support for fabric.Object#fromElement for strokeDashArray (and other stroke properties)
- Add @default tag to properties (JSDoc 3)
- strokeDashArray now only works if stroke property is defined
- Add trokeLineCap (default "round"), strokeLineJoin (default "round") to fabric.BaseBrush
- Updated unit tests
2013-05-18 13:01:34 +02:00
Kienz
6e612facc6
Fix isContainedWithinRect and isContainedWithinObject, Add fabric.Object.containsPoint
2013-05-09 19:41:04 +02:00
kangax
a47128afa4
Add support for same options in fabric.Object#toDataURL as there are in fabric.Canvas#toDataURL. Closes #609
2013-05-06 11:52:16 -04:00
kangax
35d5cf220f
[BACK_INCOMPAT] Make fabric.Object#toDataURL synchronous. Fix fabric.Object#cloneAsImage to preserve angle. Closes #596
2013-05-01 14:49:42 -04:00
kangax
fcc0c5cbbb
Only call change and complete callbacks once, when animating multiple properties. Closes #544
2013-04-06 12:44:10 +02:00
kangax
d24d6307e5
[BACK_INCOMPAT] fabric.Object.setActive(…) -> fabric.Object.set('active', …). fabric.Object.isActive is gone (use active instead)
2013-03-29 16:26:27 +01:00
Kienz
3a0a2c7fd2
Implement fabric.StaticCanvas#moveTo to move object to specified level in stack of drawn objects
...
You can also move fabric.Group objects in the grub objects stack to a specified level.
Add unit tests for moveTo.
2013-03-22 15:10:44 +01:00
kangax
9fb9b1ca34
Fix unit tests
2013-03-10 20:58:48 +01:00
kangax
43dd170f5b
Add fabric.Object#visible property. Closes #342 . Version 1.0.13.
2013-03-06 18:45:18 +01:00
kangax
9be89b2f2f
drawCorners -> drawControls, for consistency. Remove unused hasCorners and use hasControls instead of hideCorners. Version 1.0.12
2013-02-20 13:19:22 +01:00
kangax
5ee9b13a92
Add support for shadows (via fabric.Shadow)
2013-02-04 20:49:05 +01:00
kangax
7121830ca6
Merge dynamic origin branch into master. Version 1.0.0
2012-12-29 20:04:24 +01:00
kangax
2735d543e2
Merge master. Enable hasRotatingPoint by default (now that objects are not rotated via corners)
2012-12-26 11:18:17 +01:00
kangax
894988b508
Fix browser-based unit tests
2012-12-23 23:30:01 +01:00
kangax
4ae8b9d725
Simplify object straightening logic. Thanks @woutercommandeur. Closes #362 .
2012-12-22 20:20:54 +01:00
kangax
882d7085d8
Fix fabric.Object#cloneAsImage on node. Closes #336 . Version 0.9.34
2012-12-20 19:49:51 +01:00
kangax
245de99834
Fix unit tests
2012-12-16 21:11:38 +01:00
kangax
f9eeeb2916
Fix unit tests.
2012-10-14 02:53:25 +02:00
kangax
999f7f5231
Account for bounding box in scaleToWidth/scaleToHeight. Fix #271 . Version 0.9.12.
2012-10-08 19:35:37 +02:00
kangax
b555245780
Add support for animating multiple properties.
2012-10-03 23:45:49 +02:00
kangax
762cfb7b8a
Fix unit tests. Add loadFromJSON test for previous fix. Version 0.9.5.
2012-09-02 12:28:52 -04:00
kangax
db37e1e855
Add convenience methods to objects, utilizing new object.canvas property — reference to a canvas to which an object was added last. Add unit tests for new methods.
2012-08-20 18:23:54 +02:00
kangax
fe9d927d47
Move site into a different repository.
2012-08-10 17:20:04 +02:00
kangax
fe08e6aa3b
Revamp site to use jekyll.
2011-09-07 18:02:17 -04:00
kangax
628efcdc70
fabric.Element is renamed to fabric.Canvas, which makes more sense. fabric.Element is kept for compatibility reasons (but is deprecated). Bump version to 0.3.
2011-06-28 19:14:40 -04:00
kangax
0a9d835b12
Dynamically generate accessors based on state properties — width, height, fill, opacity, scaleX, scaleY, etc. For example, rect.set('fill', 'red') can now be replaced with rect.setFill('red'), and rect.get('opacity') with rect.getOpacity().
2011-05-31 00:56:01 -04:00
kangax
d7fd8f0af3
fabric.Object#set can now be passed an object of property/value pairs rather than just property and value. E.g.: rect.set({ width: 100, height: 50, fill: 'red' }).
2011-05-29 21:59:48 -04:00