Andrea Bogazzi
0e261137ca
fixing path exports to SVG ( #5438 )
...
* fixing path exports to SVG
* extend svg import tests
* added a failing test for the SVG export
* more tests for polygons
2018-12-25 21:58:13 +01:00
Andrea Bogazzi
aadfea00fa
various small svg fixes ( #5424 )
...
* various small svg fixes
* no debugger
* fontsize parsing fix - again
* added a visual test
* use min 9px
* added comment
2018-12-09 23:13:27 +01:00
Blob
3b314d11cc
Add strokeDashOffset and svg corresponding attribute ( #5398 )
...
* Add strokeDashOffset and svg corresponding attribute
2018-11-23 00:56:00 +01:00
Andrea Bogazzi
a7ff2bfb10
Rework SVG code to have clipPath friendly transformations ( #5284 )
...
* so far i think i broke everything
* halp super hard
* this is what i wanted
* fixed error
* some fixes
* svg-working
* less code
* fixed shadow for text and groups
* fixed tests
* one file test more
* fixed lint
* works
* ok more tests
* remove a lint issue
* removed unused method
2018-10-07 15:43:37 -04:00
Andrea Bogazzi
bafc28d3fc
Svg import improvements ( #4984 )
...
* test
* svg-import-fixes
* svg-import-fixes
* ok done
* adapted tests to new values
2018-05-29 10:28:02 +02:00
Andrea Bogazzi
2e532cc362
Limit sin and cosin very small floats on 90/270 degrees ( #4734 )
...
* so far ok
* fix transformations decimal
* remove some changes
* less changes
* test passing
* less calculation
* added shortcut
* modified tests
2018-02-18 15:56:27 +01:00
Stefan Hayden
0fc71349a6
Paint order ( #4303 )
...
* makes fabric aware of the paint-order svg2 spec to swap the paint order of stroke and fill
2017-09-17 22:47:35 +02:00
Andrea Bogazzi
c03111824c
Update deps ( #4315 )
...
* try replace tests
* modified tests for new qunit
* lint tests
2017-09-17 11:44:57 +02:00
Andrea Bogazzi
69d377b992
Output version ( #4251 )
...
* output version in json
* fixed tests
* fixed lint
2017-08-29 22:23:42 +02:00
Andrea Bogazzi
5367cfa8e3
Add tests for sourcePath changes ( #4108 )
...
* modified path
* added tests
2017-07-18 08:38:19 +02:00
Andrea Bogazzi
145bd3b03f
Force async ( #3996 )
...
* removed forced async
* tests
* fixed lint
2017-06-11 21:36:51 +02:00
Andrea Bogazzi
ff2909ebf8
fixed cache for first draw ( #3870 )
...
* fixed cache for first draw
* fixed tests
2017-04-23 13:44:22 +02:00
Andrea Bogazzi
5cd1111195
fix reload from json ( #3691 )
...
* fix reload from json
* fix just on path
2017-02-14 00:40:02 -05:00
Andrea Bogazzi
08f60adbea
switch to eslint ( #3229 )
...
* switch to eslint 2.x
* fix src
* fix tests
2016-09-10 15:14:23 +02:00
Andrea Bogazzi
a0ba49ea5d
Use reviver also for background and overlay image in svg export ( #2975 )
...
* Use reviver also for background and overlay image
2016-05-17 02:56:25 +02:00
Andrea Bogazzi
cda0611326
Add support for skew objects.
2015-09-17 14:22:12 +02:00
Andrea Bogazzi
f805e57297
Update rect.js
2015-07-20 12:57:13 +02:00
Andrea Bogazzi
d36945f6e2
Update path.class.js
2015-07-15 16:50:25 +02:00
Ulrich Sossou
4603ec9581
Replace empty values of stroke-dasharray in unit tests by 'none'
2015-05-18 07:00:36 +01:00
sapics
60d7495608
unit test for detect path initialize bug
2015-04-16 17:01:06 +09:00
Andrea Bogazzi
79d9618352
Fix single path toSVG export.
2015-01-20 01:49:16 +01:00
Andrea Bogazzi
af1138a686
Divided FillRule from globalCompositeOperation
2014-09-23 08:53:56 +02:00
Andrea Bogazzi
0a6600ecb7
Update path.js
2014-09-18 14:54:36 +02:00
Jim Rodovich
7d0c9ebb28
Add spec for multiple M/m commands being preserved.
...
This wasn't ever broken, but taken with the previous spec it makes more clear that there's a difference between `M 1,2 3,4` and `M 1,2 M 3,4`.
2014-06-06 10:37:24 -05:00
Jim Rodovich
ac095b9bd7
Add spec for multiple M/m coordinates being converted to L/l.
2014-05-30 10:16:02 -05:00
Juriy Zaytsev
a20e329213
Merge pull request #1317 from rodovich/leading-decimal
...
Be able to parse numbers with no digits before the decimal point.
2014-05-09 00:31:46 +02:00
Jim Rodovich
849cfde78d
Add test for parsing numbers with no digits before the decimal point.
2014-05-08 14:08:17 -05:00
Jim Rodovich
63fa09e8ee
Update unit tests to use degrees for imported SVG rotations.
2014-05-08 13:53:00 -05:00
Kienz
61f65bc206
Fix path regExp for compressed path commands
...
Fix regExp for e^x numbers
Add unit test for e^x numbers
2014-01-12 13:50:03 +01:00
kangax
ea811cbb23
Fix fabric.Path#path being "cloned" by reference
2013-12-31 09:29:14 -05:00
kangax
330784ac2c
[BACK_INCOMPAT] Change default objects' originX/originY to left/top
2013-11-04 00:15:49 +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
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
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
33fd6c66b5
Version 1.2.1
2013-07-06 16:04:29 +02:00
kangax
2407dbba49
Implement clipTo serialization, deserialization, and initialization. Closes #583 . Closes #677 . Closes #676
2013-06-02 23:04:54 +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
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
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
43dd170f5b
Add fabric.Object#visible property. Closes #342 . Version 1.0.13.
2013-03-06 18:45:18 +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
245de99834
Fix unit tests
2012-12-16 21:11:38 +01:00
kangax
2329ef59fe
Add support for specifying additional properties to return in toObject, toJSON. Fix #272 .
2012-11-30 23:46:09 +01:00
kangax
f9eeeb2916
Fix unit tests.
2012-10-14 02:53:25 +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
04bb0aad66
Add "hasControls" and "hasBorders" options to fabric.Object. "hasControls", when set to false allows to fully disable controls rendering (and mouse detection); hasBorders does the same for object borders. Fix failing unit tests. Update QUnit.
2011-08-02 19:35:02 -04:00
kangax
c046bbd5f1
Closes #34 — Support multiple sequences of command arguments in SVG paths.
2011-07-09 15:50:44 -04:00