Curtis Hard
753242a2db
Skips creating groups for groups that have no children
...
- reverted float scanning, looking for an alternative
2016-12-05 21:38:09 +00:00
Curtis Hard
952d4cfee1
Utils fixes
2016-12-05 20:50:25 +00:00
Curtis Hard
805e9e4907
Various performance increases, mainly working out floats and parsing the strings
2016-12-05 16:47:43 +00:00
Curtis Hard
fabb38b887
Added identifier method for the SVG
2016-11-15 15:45:32 +00:00
Curtis Hard
f6dcc0e2d8
Fixes issues with delegates not being set correct
...
- Also added delegate method for handling sub SVG’s being found, which gives you the parsed SVG aswell as its SVG source string.
2016-11-14 21:41:04 +00:00
Curtis Hard
a42ef50c95
Added support for rendering SVG sprite sheets
...
- Also added support for creating SVG object from a string.
2016-10-28 22:28:48 +01:00
Curtis Hard
14f9d44816
Fixed a memory crash -
...
Also fixes issue with not finding glyphs due to the root elements not being parsed correctly.
2016-09-26 10:46:29 +01:00
Curtis Hard
a81a01c023
Images now render without needing to be a def
2016-07-14 21:02:37 +01:00
Curtis Hard
a34ae58333
FIxed an issue with rect's not drawing correctly with transforms due to the x and y attribute.
...
Also made IJSVGParser find common atrtibutes and apply itself to the parent node. This fixes a few drawing issues with inheritence and winding rules.
2016-06-03 09:42:19 +01:00
Curtis Hard
b27eabcd29
added imageWithSize:flipped: and so on
...
- Also fixed a bug with rect's attributes being removed now I have changed how the DEF's and reusable elements are being parsed and rendered
2016-06-01 12:07:38 +01:00
Curtis Hard
5a03e8c27c
Added very basic support for Patterns
...
- Also added IJSVGUnit so that graidents know if to work out from the current bounds or not when creating the angle points
- Added IJSVGImage which is a wrapper around loading base64 encoded images
- Added IJSVGPattern which is based on IJSVGGroup and will draw a pattern inside a nodes clipped path
2016-05-29 11:30:07 +01:00
Curtis Hard
6e05317cd2
Added much better CSS support
...
Added use of combinators such as +, ~ and >
2016-01-20 09:05:13 +00:00
Curtis Hard
75404eee7b
Moved a few methods to C instead of Object-C
2016-01-20 08:42:51 +00:00
Curtis Hard
0292c5193b
Better rule support
2016-01-19 22:09:16 +00:00
Curtis Hard
64ad9c9718
Changes...
2016-01-19 14:30:38 +00:00
Curtis Hard
c1690e5cc0
Attemting to get combinators to work...
2016-01-18 23:18:58 +00:00
Curtis Hard
79f936e821
Added enum ready for adding the comibator parsing
2016-01-18 16:36:58 +00:00
Curtis Hard
0845338e33
Added basic CSS support
...
Matches basic CSS such as ".test#test2 div.bacon {}" and so on.
2016-01-16 16:35:20 +00:00
Curtis Hard
9b50c41bfe
Removed case 2 long hand
2015-12-12 01:01:58 +00:00
Curtis Hard
d50d375d19
Various changes to how Radial gradients are computed
2015-12-12 00:43:17 +00:00
Curtis Hard
b1f5d6b34d
Improved gradient support and transforms
...
Much improved gradient support - even with radial. Also fixed various issues with transforms such as rotating around a point. Still unsure about gradientTransform rotate units as they are specified in fractions and not points...
2015-12-11 15:12:48 +00:00
Curtis Hard
cdcd1bc2ee
Various fixes
2015-12-09 13:01:40 +00:00
Curtis Hard
2a2acb9d76
Fixes a big bug that stopped the last character of a command being parsed
2015-10-02 17:43:01 +01:00
Curtis Hard
da1e71f799
Fixes crashes when an error occurs
2015-09-30 17:38:08 +01:00
Curtis Hard
8a314dad8c
Fixes crash when unable to parse XML
2015-09-28 16:54:48 +01:00
Curtis Hard
6686e20b6e
Performance increase... read the notes..
...
Improvements to the parser, benchmarked this is now 19.4x faster then the previous version at reading and parsing SVG files, took the average down from 380ms for about 300 fairly complex files down to 24ms... :-)
2015-09-21 22:58:41 +01:00
Curtis Hard
cbd0d5192d
Fairly big update, read description...
...
This change includes various error handling methods on all relevant object initializers - also rewrote how we parse floats from strings, this seems to be about 2x quicker at parsing SVG's then it was previously :-)
2015-09-17 22:37:36 +01:00
Curtis Hard
14b18554fb
Fixes for clip paths not being transformed correctly.
2015-08-10 18:41:41 +01:00
Curtis Hard
a6395fcd04
Fixes memory leak
2015-05-23 15:14:29 +01:00
Curtis Hard
a86e347b4c
Added support for converting fonts to SVG's
...
Also added support for reading glyphs from icon fonts
2015-05-23 15:13:24 +01:00
Curtis Hard
a2584a7611
Fixes issues related to quadratic relative commands
2015-05-19 21:47:41 +01:00
Curtis Hard
4a5a466b5c
Added support for Mask element
2015-05-19 18:11:28 +01:00
Curtis Hard
a8a0446e87
Added display none support
2015-04-13 19:25:13 +01:00
Curtis Hard
4804fe4db3
Added elliptical arc command (finally)
...
Various other fixes and tweaks
2015-04-13 19:13:52 +01:00
Curtis Hard
a2cd536676
Loads of fixes for rendering
...
Fixes for rendering and improves feature set for complicated SVG's
2015-04-11 13:38:21 +01:00
Curtis Hard
6be9936a1d
Fixed various issues
...
Added line join style and fixed various rendering bugs
2015-04-10 21:57:45 +01:00
Curtis Hard
8b4ce4ef61
Parser fixes and style computation
...
FIxed various issues with parser not finding linked elements. Also added much better support for style attribute. Also added overal viewbox clipping and various other fixes.
2015-04-10 20:09:46 +01:00
Curtis Hard
2cc26e5dfb
Now uses lstat to calcuate the cost of memory for the image cache
2015-02-02 21:01:33 +00:00
Curtis Hard
c11e8ad026
Fixed compiler issues when using the 10.10 SDK
2014-12-29 20:34:53 +00:00
Curtis Hard
613bf38ba7
Fixed move command issue
...
Some SVG's use a relative move to command as the first command in the path, I dont know why, they should be absolute, so this is a work around for them as they will normally crash the bezier path
2014-10-26 12:57:27 +00:00
Curtis Hard
c76a83c07d
Fixed issue with no color being specified
2014-09-16 21:22:18 +01:00
Curtis Hard
1e5a6e5a91
Fixed compiler warnings
2014-09-12 23:19:41 +01:00
Curtis Hard
891af1f566
Fixed memory leak with caching
2014-09-12 15:36:49 +01:00
Curtis Hard
33d627a3d0
Few things to do with "default" colours if not defined
2014-09-08 21:52:34 +01:00
Curtis Hard
d656fb6d3f
Fixed issue with winding rule
2014-09-08 13:40:58 +01:00
Curtis Hard
fab275561e
Now implements pasteboard protocol and supports PDF generation
2014-09-06 13:40:10 +01:00
Curtis Hard
689c21dc83
Moved into source
2014-09-05 18:02:27 +01:00