1
1
mirror of https://github.com/exyte/Macaw.git synced 2024-09-21 09:59:10 +03:00
Commit Graph

104 Commits

Author SHA1 Message Date
Alisa Mylnikova
5cfe028494 Better aspect ratio implementation 2018-04-03 15:09:49 +07:00
Alisa Mylnikova
49e16e9f52 Better Align implementation 2018-04-03 13:17:43 +07:00
Alisa Mylnikova
26ee61a2c8 Merge remote-tracking branch 'Macaw/master' into task/svgViewBox 2018-03-30 11:53:42 +07:00
Alisa Mylnikova
50803e10ff Add test for viewBox 2018-03-29 17:28:05 +07:00
Yuri Strot
54a417be7d Optimize prepare phase of SVG parser and make "style" place-independent as well as "defs". 2018-03-29 16:00:39 +07:00
Alisa Mylnikova
22c77a3cf1 Add helper for aspectFill/Fit transformations 2018-03-29 15:40:08 +07:00
Alisa Mylnikova
858dfddd38 Support 'preserveAspectRatio' attribute 2018-03-29 12:02:21 +07:00
Alisa Mylnikova
3ace85105e Fix #87: Support <svg> viewBox attribute 2018-03-28 14:51:25 +07:00
Alisa Mylnikova
7177d9fe12 Fixed tests 2018-03-28 14:15:19 +07:00
Alisa Mylnikova
a59c6312cf Fix #289: Defs section can be declared anywhere in SVG file 2018-03-27 18:06:17 +07:00
Viktor Sukochev
214cbaf084 SVGParser: exponential format fix 2018-03-12 23:50:17 +07:00
Yuri Strot
931583e12c Fix #261: "D" attribute of path parsed incorrectly 2017-12-28 18:31:39 +07:00
Yuri Strot
3d2814ed5b Fix SVG style order issue 2017-12-20 23:18:00 +07:00
Yuri Strot
fe809749a3 Fix broken SVG tests 2017-12-20 16:36:35 +07:00
Yuri Strot
0b7c3cb978 Fix #250: Bad position of a shape's group 2017-12-20 16:13:04 +07:00
Yuri Strot
be5839ccf6 Fix #236: SVGView transparency 2017-12-20 15:46:33 +07:00
Yuri Strot
c82404f771 Fix #238: Improve gradient API and implementation.
* New API: LinearGradient(degree, stops)
* Linear gradient can be used with any degree now
* Replace var fields to let fields in all gradient classes
2017-12-13 20:18:18 +07:00
Anton Marunko
6eaf65e5ef Swift lint autocorrect fixes 2017-11-30 15:38:27 +07:00
Yuri Strot
724c28c36a
Merge pull request #232 from amarunko/bug/path-parsing
Fix for values parsing (dot separated)
2017-11-29 20:42:26 +07:00
Yuri Strot
3eed3b1949
Merge pull request #230 from amarunko/bug/path-commands
Fix for zm case in path commands
2017-11-29 20:40:42 +07:00
Anton Marunko
14d845c607 Removing not useful condition 2017-11-29 15:45:17 +07:00
Anton Marunko
6fbe4450c2 Fix for values parsing (dot separated) 2017-11-29 15:38:41 +07:00
Anton Marunko
989866b387 Characters warnings fixes 2017-11-29 14:24:00 +07:00
Anton Marunko
c99e25e755 Fix for zm case in path commands 2017-11-29 14:08:37 +07:00
Dmitry Shipinev
4bd5d79371
Merge pull request #215 from exyte/task/lint-type-name
Set correct Func2D typealias name
2017-11-22 18:42:44 +07:00
shipinev
a99882d9da Replace legacy convenience functions with Swift constructors 2017-10-23 16:03:54 +07:00
Yuriy Kashnikov
2ae04afa97 Refactor locus to path implementation
- Extract locusToPath to extension of Locus
- Refactor and prettify SVG tests
2017-10-23 15:45:59 +07:00
shipinev
425a3f4b56 Lint project files 2017-10-19 15:09:09 +07:00
Yuriy Kashnikov
9b34d18d27 Implement clip-path support in SVG parser
- Fix Locus to Path conversion: all should be counter-clockwise,
otherwise fill-rulle=nonzero will not work properly and paths
will have donut holes
- Fix Arc serialization: parse largeArc and sweep flags properly
- Add test for clip
2017-10-18 17:48:42 +07:00
Yuriy Kashnikov
e3d4498970 Fix skewX and skewY in SVG parser 2017-10-16 16:23:35 +07:00
Yuriy Kashnikov
32a037901f Support short rgb notation in SVG parser 2017-10-16 14:07:43 +07:00
Yuriy Kashnikov
18b579b425 Fix text constructors
- Pass text anchor
- Pass stroke
2017-10-05 11:39:30 +07:00
Yuriy Kashnikov
20d48db7ab Add grammar checks to style parser 2017-10-03 17:11:13 +07:00
Yuriy Kashnikov
5de677eefe Coerce Substring to String in parseStyle method 2017-10-03 16:58:38 +07:00
Yuriy Kashnikov
ac012dfb5b Add implementation for style classes support in SVG parser 2017-10-03 13:04:11 +07:00
Yuriy Kashnikov
2190f817ea Merge pull request #174 from exyte/feature/enhance-support-for-svg-text-attributes
Feature/enhance support for svg text attributes
2017-09-29 17:12:39 +07:00
Yuriy Kashnikov
0ec26a878f Fix stroke fill color parsing 2017-09-29 15:25:39 +07:00
Yuriy Kashnikov
b3c2469597 Resolve merge conflict for parseText method 2017-09-29 12:58:54 +07:00
Yuriy Kashnikov
5156ceff57 Fix default baseline for Text in SVG 2017-09-21 15:57:20 +07:00
Viktor Sukochev
dac8552e82 Merge remote-tracking branch 'origin/master' into swift4 2017-09-14 15:11:16 +07:00
Victor Sukochev
dd3d1a72b7 Merge pull request #163 from exyte/feature/add-macaw-to-svg-serializer
Aadd Macaw to SVG serializer
2017-09-14 11:56:58 +07:00
Anton Marunko
ea8b6e3f6b Warnings fixes for deprecated substring method of String class 2017-09-12 18:32:07 +07:00
Viktor Sukochev
868ab5602d Merge remote-tracking branch 'origin/master' into swift4 2017-09-12 14:59:15 +07:00
Yuriy Kashnikov
d140291208 Add 'transparent' value handling to SVG parser 2017-09-07 16:46:25 +03:00
Simon Corsin
1fb5d8246d Respecting fill color opacity for rgb and color constant. 2017-09-06 13:52:23 -04:00
Viktor Sukochev
c5d93a69c3 Basic conversion 2017-08-28 14:56:52 +07:00
Viktor Sukochev
ffff19619e Merge branch 'macos_support'
# Conflicts:
#	Source/animation/AnimationImpl.swift
#	Source/animation/AnimationProducer.swift
#	Source/animation/types/AnimationSequence.swift
#	Source/animation/types/CombineAnimation.swift
#	Source/animation/types/ContentsAnimation.swift
#	Source/animation/types/MorphingAnimation.swift
#	Source/animation/types/OpacityAnimation.swift
#	Source/animation/types/ShapeAnimation.swift
#	Source/animation/types/TransformAnimation.swift
#	Source/animation/types/animation_generators/MorphingGenerator.swift
#	Source/animation/types/animation_generators/OpacityGenerator.swift
#	Source/animation/types/animation_generators/ShapeAnimationGenerator.swift
#	Source/animation/types/animation_generators/TransformGenerator.swift
#	Source/model/scene/Node.swift
#	Source/render/NodeRenderer.swift
#	Source/svg/SVGConstants.swift
#	Source/svg/SVGParser.swift
#	Source/views/NodesMap.swift
2017-08-25 16:32:30 +07:00
Yuriy Kashnikov
9e8f739b3f Implement Macaw to SVG serializer
- Add Macaw to SVG serializer
- Add basic test for serializer
- Fix default LineCap in Parses
- Add default linecap and linejoin values to SVGConstants
2017-08-17 16:08:36 +07:00
Yuriy Kashnikov
b81e82372c Simplify nesting with compound if-let 2017-08-16 14:16:18 +07:00
Yuriy Kashnikov
995dd5344d Fix rgb string unwrapping
Color conversion should default to black if parsing failed
2017-08-16 14:05:40 +07:00