kangax
191ce1aa69
Build distribution, fix unit test
2013-08-30 13:52:24 +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
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
Kienz
026df90193
Add fabric.Image.filters.Mask unit test
2013-08-18 21:01:50 +02:00
Kienz
a61b384684
Add toJSON back to image filters
...
Add toJSON to unit tests
2013-08-09 20:37:56 +02:00
Kienz
f2035da955
Add image filter tests
...
Doc fixes
2013-08-09 19:59:30 +02:00
Stefan Kienzle
6599d393ac
Fix fabric.Image.setElement - now _element and _originalElement (until now _originalImage) are set. Closes #745
...
Add additional parameter callback (invoked after filters habe been applied).
Fix `fabric.Image.fromObject` - don't overwrite image width/height with object width/height.
`fabric.Image.applyFilters` only resets _originalElement - fixes issue if object's width/height are different to _originaElement's width/height
[BACK_INCOMPAT] Renamed `fabric.Image.filters` method `toJSON` -> `toObject`
Fix serializiation of fabric.Image filter objects
2013-08-09 14:18:27 +02:00
Kienz
b63a943137
Renamed property renderOnAddition to renderOnAddRemove
...
fabric.Canvas.renderAll can now be disabled on removing objects (renderOnAddRemove = false)
Add tests for renderOnAddRemove (add, insertAt and remove)
jsdoc additions
2013-08-07 21:01:45 +02:00
kangax
67b54a44a5
Fix pattern toSVG
2013-07-22 22:00:03 +02:00
kangax
974ed943b8
Fix polyline, polygon tests and JSHint warnings
2013-07-22 14:39:07 +02:00
Kienz
c9d866dcf9
Fixed fabric.PathGroup.fromObject - use fabric.util.enlivenObjects to instatiate fabric.Path objects
...
Corrected jsdoc tags for fabric.PathGroup.fromObject, fabric.Path.fromObject and fabric.Path.fromElement
Fixed quint tests for fabric.Path and fabric.PathGroup
2013-07-18 22:21:19 +02:00
kangax
c8cab03aac
[BACK_INCOMPAT] fabric.Path.fromObject is now async. fabric.Canvas#loadFromDatalessJSON is deprecated.
2013-07-12 22:38:21 +02:00
kangax
21f87bb63a
Fix polygon/polyline tests and minor cleanup
2013-07-07 22:25:01 +02:00
kangax
33fd6c66b5
Version 1.2.1
2013-07-06 16:04:29 +02:00
Kienz
520b2258d3
Convert opacity value into float value. If stop-opacity is set as attribute (not as style attribute) el.getAttribute('stop-opacity') returns null. Problem exists since commit a0b7fa4eb9.
...
Add default value rgb(0,0,0) for stop-color and 1 for stop-opacity.
Add more gradient tests.
2013-07-02 21:09:50 +02:00
kangax
6597b8919b
Make sure only existent custom properties included in output. Closes #713
2013-06-19 12:49:45 +02:00
Kienz
57de0f7f3a
Add more tests to gradient (distinguish between linearGradient and radialGradient)
2013-06-18 22:34:18 +02:00
kangax
be8e921e57
Fix nested matrix multiplication. Closes #705
2013-06-13 23:10:33 +02:00
kangax
5bd8ba28d6
Fix loadFromJSON callback when objects array is empty. Closes #703
2013-06-13 13:39:17 +02:00
kangax
044f5ed483
Fix rect positioning when loading from JSON. Closes #522
2013-06-03 02:24:41 +02:00
kangax
5a28acb032
Fix toJSON/toSVG serialization when there's active group on canvas. Closes #645
2013-06-03 01:55:51 +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
221146997c
Fix pattern initialization from function string. Closes #442 . Version 1.1.18
2013-06-02 22:07:16 +02:00
kangax
1c1b7e4b95
Fix function body matching regex. Add fabric.util.getFunctionBody
2013-06-01 18:08:36 +02:00
Kienz
2c29c0cfab
Fix typo, add hsl/hsla (with whitespaces) unit tests and move stuff outside of functions
2013-05-25 19:42:31 +02:00
Kienz
1ba6d1345e
Merge remote-tracking branch 'origins/master' into parseSVGOpacity
2013-05-25 11:32:59 +02:00
Kienz
66fc8f4d4b
Parse SVG stroke-opacity and fill-opacity
...
- SVG attribute opacity is now used for object's opacity
- fill-opacity and stroke-opacity are added to stroke and fill color value
- Add hsl/hsla support (e.g. hsl(270, 80%, 10%), hsla(320, 10%, 66%, 0.5))
- Add support for rgb/rgba values with whitespaces around values (e.g. rgba( 255 , 100 , 50 , 0.1 )) and percentage values (e.g. rgb(100%, 67%, 15%, 0.8))
- Delete stroke and strokeWidth from fabric.Text (defined in fabric.Object)
- New unit test for parse stroke-opacity and fill-opacity
- Update unit tests (new tests for hsl/hsla and rgb/rgba (whitespaces and percentage values))
- Change equal and deepEqual parameter order (e.g. equal(actualValue, expectedValue, message))
- Doc additions
2013-05-25 11:03:09 +02:00
kangax
d23cbcbb3a
Fix unit tests
2013-05-23 20:16:08 +02:00
Kienz
c03c556177
Fix wrong positioned bounding box of fabric.Polygon and fabric.Polyline objects
...
- Substract minX and minY from points.x/points.y (_calcDimensions)
- Same in fromElement - but only if minX or minY is negative
2013-05-23 20:02:44 +02:00
Kienz
f0ca6b7b8f
Remove fabric.Group.containsPoint => uses now fabric.Object.containsPoint
...
Update group unit test - containsPoint checks now scaled group and group with padding
Fix text unit test (complexity, toString)
2013-05-20 18:41:16 +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
kangax
c65b1f5e7d
Add support for parsing shorthand font declaration in styles, such as "font: italic 12px Arial,Helvetica,sans-serif"
2013-05-12 13:01:23 -04: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
eeecde62a8
Normalize style values. Closes #598
2013-05-01 02:58: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
c16dcf88a4
Change inline docs to conform to jsdoc3
2013-04-24 12:58:04 -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
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
kangax
fcc0c5cbbb
Only call change and complete callbacks once, when animating multiple properties. Closes #544
2013-04-06 12:44:10 +02:00
kangax
5a3d59c3a7
Fix text unit test
2013-04-04 14:03:08 +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
kangax
40bda07140
Fix fabric.Canvas#clipTo. Thanks @sn3p
2013-03-24 18:09:55 +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
919f95a0a0
Move collection-related methods to fabric.Collection, shared by fabric.Canvas and fabric.Group.
2013-03-20 10:28:35 +01:00
kangax
d89bbf0d8d
Temporarily comment out unit tests that fail due to Node 0.10 bug ( https://github.com/joyent/node/issues/5011 )
2013-03-19 13:10:33 +01:00