Andrea Bogazzi
568e2ed2c0
attemp to fix jscs crash
2015-03-31 01:46:38 +02:00
kangax
220256c267
Extract regex out of method
2015-02-07 14:14:32 +01:00
Andrea Bogazzi
552c6a833c
Update text.js
2014-10-28 17:12:10 +01:00
Andrea Bogazzi
c25a152bf9
Update parser.js
2014-10-20 00:51:50 +02:00
Andrea Bogazzi
30eaf11872
Update parser.js
2014-10-03 08:36:30 +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
f8e6ae9461
Update parser.js
...
Allow first example of stroke svg import to work properly
2014-09-26 09:52:33 +02:00
Juriy Zaytsev
ec1db65110
Merge pull request #1694 from asturur/FillRule-misunderstanding
...
Fill rule misunderstanding
2014-09-23 11:32:06 +02:00
Andrea Bogazzi
af1138a686
Divided FillRule from globalCompositeOperation
2014-09-23 08:53:56 +02:00
kangax
0c41880e97
Add maximumLineLength restriction of 120 chars and space after comma
2014-09-22 20:40:39 +02:00
Andrea Bogazzi
eef80ebaf2
Update parser.js
2014-09-21 01:16:25 +02:00
Andrea Bogazzi
b43492554a
Update parser.js
...
Added comment for future reference
2014-08-28 00:04:07 +02:00
Andrea Bogazzi
4c4ba5bfe0
Update parser.js
...
Added comment for future reference
2014-08-27 23:09:31 +02:00
Andrea Bogazzi
cd7bea6183
Update parser.js
...
Better than getting 0px width and height.
Specs say that when they are missing we should consider 100%, in our case 100% will be 100px because we don't have anything to compare the SVG to before adding the SVG into a canvas.
Otherwise we could take canvas widht and height.
2014-08-27 14:17:33 +02:00
Andrea Bogazzi
2fe200e178
Update parser.js
...
Forgot one variable.
2014-08-16 16:26:08 +02:00
Andrea Bogazzi
74a9ac9d48
Update parser.js
...
Changed variable names, For loop in While loop and typing error.
2014-08-16 16:18:48 +02:00
Andrea Bogazzi
78db91225f
Update parser.js
...
Changed parsegradient to consider href element
2014-08-16 08:15:07 +02:00
Juriy Zaytsev
2cc901f2f7
Merge pull request #1595 from asturur/Load-Gradient-before-reviver
...
Load gradient before reviver
2014-08-13 19:14:48 +02:00
Andrea Bogazzi
e157437476
Update parser.js
...
Delete function from parser. moved in element parser.
2014-08-13 11:40:20 +02:00
Juriy Zaytsev
5e65dd54b2
Merge pull request #1574 from asturur/tag-symbol
...
Tag symbol
2014-08-09 00:31:17 +02:00
Andrea Bogazzi
ea942e3580
Update parser.js
...
This was missing.
Now if width and height get parse correctly.
They were even before but if it was width 18pt ( so 18 * 1.33 pixels ) and wievbox was 18, before no scaling was calculated.
2014-08-07 16:23:09 +02:00
Andrea Bogazzi
8eaba61b17
Update parser.js
...
Add support to catch attributes from symbol nodes.
This is a quick hack.
To have full support symbol should managed as defs and then copied as g, without display attribute.
But before adding tons of code, let's just make it work.
2014-08-07 16:11:31 +02:00
Andrea Bogazzi
5e0dc2211b
Update parser.js
...
Adding scaling of translating that was wiped by some commit
2014-08-05 12:42:58 +02:00
kangax
818ab118b3
JSCS changes; Prepare for JSCS ignore support; down to 51 failures
2014-08-03 16:47:27 +02:00
Andrea Bogazzi
221dc595a5
Update parser.js
2014-07-27 16:58:54 +02:00
Andrea Bogazzi
ce2530661c
Update parser.js
2014-07-26 19:19:22 +02:00
asturur
cf1aa0049a
Update parser.js
...
if we delete it , it won't pass to child graphic elements.
if this fillopacity is specified on a container element, it will change color of container element and then disappear. Color would then go to child element.
But if fill is specified on child element and fillopacity on parent element, this has to stay.
2014-07-21 06:47:40 +02:00
asturur
d78451a6b9
Update parser.js
...
Don't miss A tags, they behave like g tags.
2014-07-20 14:38:22 +02:00
asturur
85ba574458
Update parser.js
...
Restored parseUseDirectives functionality, maintaining getElementsByTagName and changing logic of running trought the list.
2014-07-20 13:44:44 +02:00
asturur
481b40549e
Update parser.js
...
I should not multiply the translating values.
Fixes mathformla that was still outside the screen
2014-07-20 13:36:52 +02:00
asturur
21591588d5
Update parser.js
...
remove statements (2?) for travis
2014-07-19 10:23:06 +02:00
asturur
12f5c6356e
Update parser.js
2014-07-18 20:42:21 +02:00
asturur
a52e081c25
Update parser.js
...
I forgot to delete one piece.
2014-07-18 20:07:24 +02:00
asturur
56b4caebbe
Update parser.js
2014-07-18 16:37:55 +02:00
kangax
3df3c396a2
Fix unit tests
2014-07-18 13:11:18 +02:00
Juriy Zaytsev
2c6cafe34f
Merge pull request #1496 from Kienz/jsdocFixes
...
JSDoc + JSCS tweaks - Part 1
2014-07-17 18:52:54 +02:00
asturur
5ca64ad636
Update parser.js
2014-07-17 16:25:59 +02:00
Stefan Kienzle
b34387d10e
JSDoc + JSCS tweaks - Part 1
2014-07-17 16:18:57 +02:00
asturur
bd4c7a0c4d
Update parser.js
2014-07-16 18:56:10 +02:00
asturur
0d4320c018
Update parser.js
...
Use parseUnit to normalize pt,pc,mm,in,cm to px.
2014-07-16 15:34:54 +02:00
kangax
69fdc220e1
Add JSDoc validation in JSCS. Few style/doc fixes.
2014-07-16 11:45:50 +02:00
Paul Kaplan
bbd1dd2d99
Simplify point parsing logic
...
The SVG spec basically allows delimiting numbers and pairs of numbers
with either whitespace or commas, so convert all commas to whitespace,
split on whitespace and remove the `asPairs` logic
2014-07-14 09:59:03 -05:00
Paul Kaplan
112dce71a3
Allow whitespace around commas in point parsing
...
Per the SVG spec:
http://www.w3.org/TR/SVG/shapes.html#PointsBNF
2014-07-12 18:08:03 -05:00
Juriy Zaytsev
0f2e306a64
Merge pull request #1425 from asturur/use-tag-use
...
Support use tag
2014-06-25 12:25:06 +02:00
asturur
b21820cc6b
Update parser.js
...
Changed getElementsByTagName with queryselectorall, allow to go just on "use" node , but all of them ( getElementsByTagName doesn't , it select just first level of child.
Removed tagname check now useless.
2014-06-25 08:02:42 +02:00
asturur
4ccc2c83ba
Update parser.js
...
Moved in a separate function.
Tried to fix sneaky tabs and spaces.
2014-06-24 15:17:59 +02:00
kangax
492253e5ca
JSCS tweaks. Down to 114 failures.
2014-06-24 14:12:17 +02:00
asturur
52c9792e15
Use of tag use
...
Deep cloning nodes that should be used before normal document parsing.
2014-06-24 13:12:27 +02:00
asturur
049259cc09
style parsing fix
...
code style should be ok this time
2014-06-22 20:51:04 +02:00
asturur
35eebc0376
Update parser.js
2014-06-21 14:22:10 +02:00