DylanPaulusSEL
87c994d741
Feature/add href parsing ( #5156 )
...
* Add href support for parsing use directives (svg)
* Add href support for parsing use directives (svg)
* Add href support for parsing use directives (svg)
* Fix linting errors
* add xlink:href test
* Update parser.js
2018-08-13 01:24:36 +02:00
Andrea Bogazzi
77862ef41c
fix the parsing of the URL part of a property. ( #4881 )
...
* fix gradient parse url
* added test
* fix lint
2018-04-01 20:39:49 +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
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
145bd3b03f
Force async ( #3996 )
...
* removed forced async
* tests
* fixed lint
2017-06-11 21:36:51 +02:00
Andrea Bogazzi
211edecdfd
Fix opacity parsing from classes and from fill-opacity ( #3747 )
...
* fix to parser
* fix opacity parsing
* fix opacity parsing
* added tests
* fix for parsing attributes equalt to 0
* added test
* fixed better
* removed fix
2017-02-27 02:18:23 +01: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
7dad30c156
support style merging from css ( #3114 )
...
* supportstylemerging
* added test
2016-07-18 08:56:40 +02:00
Andrea Bogazzi
98f2d1b3dd
ignore svg namespace ( #3081 )
...
* ignore svg namespace
2016-07-03 23:52:25 +02:00
Andrea Bogazzi
a5192e487f
Fix svg parsing/rendering regressions ( #2887 )
...
* fix regression in svg parsing
* Added tests to catch regression
* Update parser.js
* Update parser.js
2016-04-13 01:44:15 +02:00
Andrea Bogazzi
917e7afa6a
Update parser.js
2015-12-26 14:11:10 +01:00
Juriy Zaytsev
8c2a882e64
Fix some unit tests
2015-12-24 11:22:00 -05:00
Andrea Bogazzi
127df5f000
Update parser.js
2015-12-22 01:34:45 +01:00
Andrea Bogazzi
3520a51d21
Fix getElementByID polyfill and added failing test for it
2015-08-21 14:44:23 +02:00
Andrea Bogazzi
d9d8c715fd
Update parser.js
2015-07-17 09:48:46 +02:00
Andrea Bogazzi
7df9caa17a
Update parser.js
2015-06-26 12:33:10 +02:00
Andrea Bogazzi
452383594a
Update parser.js
2015-06-02 23:05:54 +02:00
kangax
94f7035624
Lint unit tests and fix errors/warnings
2015-04-23 11:47:35 +02:00
Andrea Bogazzi
552c6a833c
Update text.js
2014-10-28 17:12:10 +01:00
Andrea Bogazzi
e5e1aef378
Update parser.js
...
Fix parser test after change in skew matrix.
We should think about using some toFixed with number of decimals ( 6 at least ? )
2014-10-07 10:58:44 +02:00
Andrea Bogazzi
b2e2767053
Update getCssRule to exit on empty styles tag.
...
Test unit added.
2014-09-27 20:05:39 +02:00
Andrea Bogazzi
10666e9006
Update parser.js
2014-09-26 14:03:11 +02:00
Andrea Bogazzi
af1138a686
Divided FillRule from globalCompositeOperation
2014-09-23 08:53:56 +02:00
Andrea Bogazzi
18a23cf690
Update parser.js
2014-09-21 01:16:59 +02:00
Andrea Bogazzi
78561cc257
Update parser.js
2014-07-26 19:34:30 +02:00
Andrea Bogazzi
4d74abaa53
Update parser.js
2014-07-26 19:19:59 +02:00
asturur
93aafb9d7a
Update parser.js
...
modified test.
2014-07-21 06:48:49 +02:00
kangax
3df3c396a2
Fix unit tests
2014-07-18 13:11:18 +02:00
Paul Kaplan
a1cde528dc
Add test for whitespace between commas
2014-07-14 09:57:14 -05:00
Jim Rodovich
63fa09e8ee
Update unit tests to use degrees for imported SVG rotations.
2014-05-08 13:53:00 -05: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
be8e921e57
Fix nested matrix multiplication. Closes #705
2013-06-13 23:10:33 +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
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
kangax
eeecde62a8
Normalize style values. Closes #598
2013-05-01 02:58:59 -04:00
kangax
c11abb377f
Fix tests. Build distribution. Version 0.9.35.
2012-12-23 15:28:08 +01: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
e7aafae9e7
Add support for "opacity" attribute.
2011-06-14 17:28:54 -04:00
kangax
6af48ed1c7
Fix couple more unit tests.
2011-05-11 18:34:52 -04:00
kangax
5c7440cc13
Fix leaking of one element's attribute values onto another (following) element during SVG parsing.
2011-04-29 16:44:49 -04:00
kangax
7a28d275a3
Add test for issue #25 about parseSVGDocument and rect element.
2011-04-28 16:37:21 -04:00
kangax
34e2fbafc9
Prevent errors in parser.js unit tests.
2011-02-13 15:29:03 -05:00
kangax
80148361f3
Add support for parsing <image> SVG elements and creating fabric.Image instances out of them. Backwards-compatibility note: fabric.parseElements changed signature from (elements, options) to (elements, callback, options) and is now an "asynchronous" method -- doesn't return a value, but instead passes it to a callback function (second argument).
2011-01-07 19:53:19 -05:00
kangax
2eea8d4468
Fix style attribute parsing + tests. Add one more shape to the demo (which utilizes style attribute).
2011-01-06 17:13:07 -05:00
kangax
19a82b2b50
Add test for elements inside <defs> being ignored.
2011-01-06 15:38:20 -05:00
kangax
f2f37e5ffd
Update unit tests count. Add link to project on github to a demo page. Fix one of the remaining failing json tests.
2010-09-09 17:37:32 -04:00
kangax
69d83c6484
Add information about test suite results in IE 6 & 7. Few tweaks to make test suite run in IE6.
2010-07-26 15:39:00 -04:00
Juriy Zaytsev
33ad430a62
Rename test files: canvas_* --> *
2010-07-24 00:15:13 -04:00