Commit graph

26 commits

Author SHA1 Message Date
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
Andrea Bogazzi
ffe01ab9f6
ClipPath to svg (#5234)
* svg plain examples works

* more code reuse in visual tests
2018-09-16 16:39:54 +02:00
Andrea Bogazzi
2a476e4277
Clip path parsing (#4786)
* first pass done

* restarted-clippaths

* some changes to element parser

* shared attribute

* done one piece

* cleaned

* mmm going there

* so far so good

* a very first draft

* removed dist

* sovled conflict

* now solved

* now solved

* some improvements

* toObject and fromObject added

* toObject and fromObject added

* more small changes

* added simple tests

* bumpedup qunit

* a test for svg export

* no ist

* more svg exporpt

* fix lint

* make possible to clip canvas

* improved JSOCS

* no builds

* invalidate cache anyway

* changes

* changes

* changes

* mmm working
2018-08-23 01:06:07 +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
a2f9c9f205
Fix image import from SVG when width/height are larger than element (#4450)
* fixed

* removed extra function;

* fix import of preserver

* added tests

* fixed test names
2017-11-12 01:30:22 +01:00
Andrea Bogazzi
c41ef91fca Image meet or slice with cropX and cropY value (#4055)
* working example
* fixed tests
2017-07-03 12:20:10 +02:00
Andrea Bogazzi
145bd3b03f Force async (#3996)
* removed forced async
* tests
* fixed lint
2017-06-11 21:36:51 +02:00
Andrea Bogazzi
5a86ad9f07 bring out element chain (#3973) 2017-06-01 14:45:50 +02:00
Andrea Bogazzi
7517b951ab Remove PathGroups for Groups. (#3969)
* removed pathGroups
2017-06-01 11:02:32 +02:00
Asturur
e4a42e054f support svg crossorigin on images 2017-03-25 18:45:54 +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
98f2d1b3dd ignore svg namespace (#3081)
* ignore svg namespace
2016-07-03 23:52:25 +02:00
Andrea Bogazzi
a70321f9a8 Update elements_parser.js 2014-09-21 01:15:39 +02:00
kangax
a3d40878d6 Update JSCS to 1.6, fix errors, hook up travis 2014-08-30 13:18:43 +04:00
Andrea Bogazzi
1e49598693 Update elements_parser.js
Fixing spaces
2014-08-16 16:05:16 +02:00
Andrea Bogazzi
77911424ce Update elements_parser.js
Changed Resolvegradient function for fill and stroke
2014-08-16 08:11:50 +02:00
Andrea Bogazzi
70b879b8b9 Update elements_parser.js
Added mono-object resolveGradient function. to be called befor reviver function.
2014-08-13 11:46:39 +02:00
asturur
848005c61b Update elements_parser.js 2014-07-18 15:13:19 +02:00
asturur
347debb677 Update elements_parser.js
slicing one by one, doesn't make the array bigger. so the index value is still effective.
If you slice by 0 the array grows up and so index loose meaning.
2014-07-18 07:19:37 +02:00
Michael Sievers
3faf5f0bae Added missing semicolon 2014-02-18 13:44:02 +01:00
Michael Sievers
bd2a235b12 Move ElementsParser instance methods to prototype 2014-02-18 13:44:01 +01:00
Michael Sievers
d44bde4605 Added semicolon to satisfy jshint 2014-02-18 13:43:20 +01:00
Michael Sievers
179ad93dc5 Make ElementsParser a constructor function and create instances in fabric.parseElements 2014-02-18 13:43:19 +01:00
kangax
d2f6a9033e Add JSCS validation & change bunch of things for conformance. Down to 333 failures from ~1000. 2014-02-16 16:36:14 -05:00
kangax
dbd9193703 Debounce element parsing. Thanks @biovisualize. Closes #1052 2013-12-14 12:19:54 +01:00
kangax
6cb941c116 Extract elements parsing into a separate object (ElementsParser) 2013-11-04 17:12:05 +01:00