Andrea Bogazzi
053e419dbb
Refinements to strokeUniform property ( #5527 )
...
* new Object property strokeUniform allows the stroke width to always stay the same width as object scales
* fix for height
* Update src/shapes/object.class.js
Co-Authored-By: stefanhayden <alt255@gmail.com>
* trying the other function
* different transformed function
* added a visual test
* fixed title
* test svg
* import value from svg
* add svg import test
* more tests
2019-02-17 23:08:39 +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
3af833930f
more compliant gradient parsing ( #5375 )
...
* more compliant gradient parsing
* fixed back the getElementById
2018-11-08 09:04:00 +01:00
Andrea Bogazzi
38999b867a
fixed loading in ie11 ( #5307 )
2018-10-14 13:00:48 +02:00
Sergey
5c3f3a9594
Fix loadSVGFromUrl bug #5252 ( #5263 )
...
* Fix loadSVGFromURL bug
2018-09-27 22:35:33 -04:00
Sergey
6f9dbb981d
Fix clipPath in node.js error #5260 ( #5262 )
2018-09-23 17:54:38 -04:00
Andrea Bogazzi
f7e9177dbe
fix fontsize parsing ( #5258 )
2018-09-22 20:43:23 +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
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
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
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
Alexey Smirnov
addea82c53
Add letter spacing support for svg ( #3718 )
...
* add letter spacing support for svg
* fix letter spacing for Parser
* Update itext.svg_export.js
* Update text.class.js
2018-04-01 18:44:18 +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
Stefan Hayden
b114d8d0ee
Parser RegEx update ( #4003 )
...
* better regex and attribute validation as well as public accesss to the regex
* lint
2017-08-14 13:52:52 +02:00
Andrea Bogazzi
5a791a8291
fixed origins ( #4170 )
...
* fixed origins
* fixed origins
2017-08-04 11:20:50 +02:00
neopheus
3b06e685ef
Some modifications ( #4137 )
...
* unnecessary semicolon
* comment error
* expression simplified
* simply function
* jsdoc update
2017-07-29 11:41:32 +02:00
Stefan Hayden
3cee915a6b
return all svg elements as a 4th function param when loading an svg ( #4002 )
2017-06-14 21:53:11 +02:00
Andrea Bogazzi
da7ba025a1
missed one parseSVGDoc ( #3977 )
2017-06-01 15:28:37 +02:00
Andrea Bogazzi
5a86ad9f07
bring out element chain ( #3973 )
2017-06-01 14:45:50 +02:00
Andrea Bogazzi
f877f52f2a
fix gradient toSVG for radial gradients ( #3807 )
...
* support svg crossorigin on images
* fix gradient export
* added tests
2017-03-26 10:22:10 +02:00
Asturur
e4a42e054f
support svg crossorigin on images
2017-03-25 18:45:54 +01: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
88b9f7ef21
Changes to canvas svg export ( #3599 )
...
* change to parser
* fixed broken function;
* some changes to code reuse
2017-01-01 16:11:54 +01:00
Andrea Bogazzi
9422fd39be
Objectcaching ( #3317 )
2016-11-13 21:00:10 +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
489230bdf5
add callback with null argument to failed xml load ( #2994 )
2016-05-21 14:34:17 +02:00
Andrea Bogazzi
c4911406ac
Fix createSVGFontFacesMarkup ( #2935 )
...
* Update parser.js
2016-05-03 14:05:17 +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
ac92abc3fb
Add font face markup for styles and all text classes
2016-02-18 11:10:24 +01:00
Juriy Zaytsev
9dfa164c16
Merge pull request #2738 from asturur/svg-pars
...
Svg pars
2016-02-01 01:43:13 -05:00
Todd Christensen
0cdd9416b6
Fallback to styleElement.text for IE9.
...
IE9 doesn't provide a `textContent` property on this object. This caused
errors when trying to import SVG files with `<style>` inside them.
2016-01-26 10:51:14 -08:00
Andrea Bogazzi
55a106ea58
add optional space between transform list
2016-01-17 16:13:46 +01:00
Andrea Bogazzi
280746592c
check for default color property if attribute is not present
2015-12-22 01:29:11 +01:00
Jim Rodovich
17c4962e19
Fix importing paths with rotate transforms with anchor coordinates.
2015-11-23 13:25:04 -06:00
Andrea Bogazzi
3520a51d21
Fix getElementByID polyfill and added failing test for it
2015-08-21 14:44:23 +02:00
Juriy Zaytsev
7c81f464b8
Merge pull request #2399 from asturur/parse-x-y-svg-atttrs
...
Parse x y svg attributes
2015-08-09 19:29:59 -04:00
Andrea Bogazzi
cf19c6f6cc
Update parser.js
2015-08-10 01:21:56 +02:00
Andrea Bogazzi
0edd147b0e
Update group.class.js
2015-08-08 14:30:24 +02:00
Andrea Bogazzi
f519bd422a
Update parser.js
2015-07-17 11:36:41 +02:00
Andrea Bogazzi
d9d8c715fd
Update parser.js
2015-07-17 09:48:46 +02:00
Andrea Bogazzi
2315fafde1
Update parser.js
2015-06-26 12:07:03 +02:00
sapics
7e9f17186f
just code simpler
2015-06-11 11:16:41 +09:00
Andrea Bogazzi
3b460d9034
Fix fore removing last ; followed by spaces
2015-06-02 22:31:54 +02:00
Andrea Bogazzi
734cea4780
Update parser.js
2015-05-13 08:27:23 +02:00
Andrea Bogazzi
de4449231d
Add alternative to get elementById
2015-05-13 07:53:13 +02:00