Commit graph

30 commits

Author SHA1 Message Date
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
Renamed from test/unit/canvas_parser.js (Browse further)