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
05c91d8250
Fix #173 : Implement elliptical Arc support in path SVG shape
2017-12-28 17:55:45 +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
bdc3d5b562
Change Double.pi to .pi
2017-10-23 15:45:59 +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
shipinev
7217120853
Merge branch 'master' into task/swiftlint
...
# Conflicts:
# Source/animation/layer_animation/FuncBounds.swift
# Source/animation/layer_animation/PathBounds.swift
# Source/model/geom2d/GeomUtils.swift
# Source/render/RenderUtils.swift
# Source/svg/SVGParser.swift
# Source/svg/SVGSerializer.swift
2017-10-19 15:01:09 +07:00
Victor Sukochev
27443fd43a
Merge pull request #209 from exyte/feature/parse-svg-clip-path
...
Feature/parse svg clip path
2017-10-19 12:32:54 +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
8c95c8612a
Fix alpha channel to SVG opacity serialization
2017-10-18 12:52:08 +07:00
Yuriy Kashnikov
2857d28b1c
Fix color to SVG conversion in SVG serializer
2017-10-18 11:22:47 +07:00
shipinev
d241aee7a8
Format SVG Parser file
2017-10-16 16:38:41 +07:00
shipinev
85ec22d79c
Correct and clean up SVG Parser file
2017-10-16 16:33:01 +07:00
Yuriy Kashnikov
e3d4498970
Fix skewX and skewY in SVG parser
2017-10-16 16:23:35 +07:00
shipinev
9d3a96bca4
Add SwiftLint configuration and apply autocorrection
2017-10-16 16:13:54 +07:00
Yuriy Kashnikov
32a037901f
Support short rgb notation in SVG parser
2017-10-16 14:07:43 +07:00
Anton Marunko
4aec82fd10
Fix for aspect fit content mode
2017-10-12 18:50:09 +07:00
Yuriy Kashnikov
a641ea32ec
Fix tests and prettify transform
2017-10-10 14:34:10 +07:00
Yuriy Kashnikov
7f58995f62
Handle baseline for text element
2017-10-10 13:59:41 +07:00
Yuriy Kashnikov
7a55066265
Implement forced placing, i.e. always do matrix transform
2017-10-09 20:43:08 +07:00
Yuriy Kashnikov
8520622b2f
Fix transform and add more complex test
2017-10-09 17:27:40 +07:00
Yuriy Kashnikov
7b95e13b61
Add transform for text and image
2017-10-09 15:29:29 +07:00
Yuriy Kashnikov
b9d175f0aa
Combine all defs on top of the SVG file
2017-10-09 14:47:48 +07:00
Yuriy Kashnikov
535536959a
Implement straightforward clip serialization
2017-10-09 13:49:46 +07:00
Yuriy Kashnikov
9828a5b2a0
Merge pull request #190 from exyte/bug/fix-image-serialization
...
Fix Image to SVG serialization
2017-10-09 11:25:39 +07:00
Yuriy Kashnikov
882c19798c
Add tests for SVG image serialization
2017-10-06 17:45:36 +07:00
Yuriy Kashnikov
8c6f9d777c
Merge pull request #187 from exyte/bug/fix-text-parameters
...
Fix SVG parser for text anchor and stroke in text elements
2017-10-06 17:17:10 +07:00
Yuriy Kashnikov
a001162b8b
Fix Image to SVG serialization
2017-10-06 17:12:31 +07:00
Yuriy Kashnikov
a6af6f0782
Fix relative/absolute placing for Shapes in SVG serializer
2017-10-06 12:42:27 +07:00
Yuriy Kashnikov
36d65c9365
Fix ellipse test
2017-10-06 10:13:59 +07:00
Yuriy Kashnikov
77ed4dc2bf
Implement arc to SVG serialiation
...
For details see https://www.w3.org/TR/SVG/implnote.html#ArcImplementationNotes
2017-10-06 00:43:51 +07:00
Yuriy Kashnikov
18b579b425
Fix text constructors
...
- Pass text anchor
- Pass stroke
2017-10-05 11:39:30 +07:00
Anton Marunko
397628e96f
Fixes for serializer optional section format
2017-10-04 11:54:14 +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
cf74a919ff
Remove unnecessary namespace prefix in Serializer
2017-09-22 15:46:05 +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
Yuriy Kashnikov
d27e20e1f5
Fix review comments
...
- Update SVG tests: added basic test for ellipse.svg
- Handle optional params via Optional
2017-09-13 16:02:04 +03:00
Yuriy Kashnikov
524b734fc1
Improve SVG Serializer
...
- Support transform and placing
- Expose height and width
2017-09-13 11:54:54 +03: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
2845efb93c
Support Macaw.Text in serializer
2017-08-18 12:34:46 +07:00
Yuriy Kashnikov
cd4d3ce8f6
Support Macaw.Image in serializer
2017-08-18 12:18:47 +07:00
Yuriy Kashnikov
2c9cf915f8
Minor fixes
2017-08-17 16:56:46 +07:00
Yuriy Kashnikov
6be05cb99d
Minor fixes
...
- Same style for string interpolation
- Indentation control
2017-08-17 16:42:48 +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
Yuriy Kashnikov
d80ba98062
Support rgb(
color notation in SVG parser
2017-08-16 12:00:00 +07:00
manindaniil
d71442b4a6
add first example
2017-08-11 17:47:02 +07:00
manindaniil
ce1fce6998
first success build
2017-08-11 15:08:31 +07:00
manindaniil
536bc08709
update classes...20%
2017-08-10 20:01:11 +07:00
manindaniil
10766c3403
added platform files for ios/macos
2017-08-10 18:26:02 +07:00
manindaniil
bd397ec4eb
fix svg parser
2017-05-15 00:36:34 +07:00
Khoren Markosyan
5234142a21
Fixed conflicts.
2017-03-09 17:15:14 +04:00
Khoren Markosyan
c287e6b16f
Merge remote-tracking branch 'original/master' into fix_warnings
2017-03-09 17:11:09 +04:00
Yuri Strot
0f536c7729
Translate SVG id attribute to Node.tag
2017-03-07 17:52:21 +07:00
Khoren Markosyan
03f3d7b73d
Fixed all warnings in project.
2017-03-06 21:00:05 +04:00
Viktor Sukochev
bc0aeb8a2e
SVGView constructor default values
2017-02-16 16:53:35 +07:00
Yuri Strot
58b95f3166
Fix #68 : Change SVGParser.parse signature
2017-01-26 22:10:33 +07:00
shipinev
6b8b9ec744
#86 : Add ability to instantiate SVGView programmatically
2017-01-24 20:22:48 +07:00
Viktor Sukochev
23dadfd5e0
Cathage project dependencies attached as sources
2017-01-16 21:43:22 +07:00
Viktor Sukochev
23fb87cb6b
Fixing minor warnings
2017-01-16 14:24:44 +07:00
shipinev
b1532680fa
Fix incorrect fill color parsing in SVG parser
2016-12-30 10:51:28 +07:00
shipinev
2bae64ffb3
Prevent SVG view from repeatable file parsing when layoutSubviews is called
2016-12-19 16:08:51 +07:00
shipinev
0074bd7dfe
SVG parser performance improvements
2016-12-16 21:03:12 +07:00
shipinev
88cd2699f0
SVG parser improvements
2016-12-16 21:03:12 +07:00
shipinev
4979390a35
Add proper fill color handling for SVG shapes and masks
2016-12-08 16:21:57 +07:00
shipinev
e480eb4dc5
Add SVG named color codes
2016-12-08 16:14:08 +07:00
shipinev
49467744ec
Fix #72 . Correct initial fill property color (according to SVG specification)
2016-12-07 12:58:00 +07:00
shipinev
7a5f59c755
Fix #68 . Change SVGParser.parse signature
2016-12-02 15:10:52 +07:00
shipinev
e9f3e220fc
Add mask support to SVG parser
2016-12-02 14:19:53 +07:00
Viktor Sukochev
4e80e4b04a
Using static root node for SVGView
2016-12-01 21:08:31 +07:00
Viktor Sukochev
49cfee7629
Updating SVGView content on layout change
2016-12-01 16:08:26 +07:00
shipinev
1d0cdc8093
Convert degrees to radians when parsing SVG element transform
2016-11-30 17:59:58 +07:00
Viktor Sukochev
81756b619b
Minor fixes
2016-11-29 13:45:49 +07:00
shipinev
606f733fa0
Fix #67 . Implement SVGView
2016-11-24 17:45:16 +07:00
Victor Sukochev
0c471cfc09
Buildable example
2016-09-29 17:17:59 +06:00
Victor Sukochev
bed4386799
Raw automated swift 3.0 conversion (not buildable)
2016-09-27 19:45:31 +06:00
Viktor Sukochev
3d519ceac1
Macaw xcodeproject updated to swift 2.3
2016-09-20 21:17:58 +06:00
Alexandra Novikova
e328232fa3
Add polyline and polycurve
2016-09-13 20:00:39 +07:00
Yuri Strot
4ec5c6299a
Fix Gradient.userSpace. Update ShapesExampleView.
2016-09-12 01:16:20 +07:00
Alexandra Novikova
da87758cfe
Fix user space bounds for radial gradient
2016-09-07 16:05:41 +07:00
Alexandra Novikova
64d465d53c
Implement radial gradient rendering
2016-09-06 17:21:17 +07:00
Alexandra Novikova
f930fdc8d2
Implement gradient stroke rendering and multiple gradient improvements
2016-09-05 19:33:56 +07:00
Alexandra Novikova
89d6b83868
properly render stroke with gradient fill
2016-09-05 13:40:57 +07:00
Alexandra Novikova
7c1a2eb082
add missing stroke parameters
2016-09-01 20:35:59 +07:00
Alexandra Novikova
7cee788eb4
fix path parsing
2016-09-01 18:26:29 +07:00
Alexandra Novikova
d1eef8dab7
fix path parsing issues and gradient parsing (percentage values)
2016-09-01 18:26:29 +07:00
Alexandra Novikova
2ec0356380
add gradient fill support to stroke
2016-09-01 18:26:29 +07:00
Alexandra Novikova
356183788f
add SVG gradient support
2016-09-01 18:26:29 +07:00
Alexandra Novikova
2878006349
fix stroke attribute
2016-09-01 18:26:29 +07:00
Alexandra Novikova
e752c9515f
implement tspan parsing
2016-09-01 18:26:29 +07:00
Alexandra Novikova
136686c6b9
implement opacity support
2016-09-01 18:26:29 +07:00
Alexandra Novikova
b735dc9ff6
include negative values in transform attributes
2016-09-01 18:26:29 +07:00
Alexandra Novikova
d1eac37c75
fix group transform
2016-09-01 18:26:29 +07:00
Alexandra Novikova
2004126af0
add 'defs' and 'use' parsing
2016-09-01 18:26:29 +07:00
Victor Sukochev
872ca49bdb
Macaw framework project for carthage and testing
2016-09-01 14:59:15 +06:00
Yuri Strot
54cf059368
Fix #44 : First argument should be named in every Macaw method
2016-08-29 19:02:01 +07:00
Yuri Strot
c132e87b0f
Replace Node.pos with Node.place.
2016-08-29 18:39:47 +07:00
Yuri Strot
12093138e5
Clean up path API
2016-08-26 20:10:45 +07:00
Victor Sukochev
97909c34cf
Relative to parent animation support
2016-08-25 15:45:28 +06:00
Yuri Strot
1c270fdb41
Avoid Font.bold/italic/... properties.
2016-08-23 14:22:03 +07:00
Yuri Strot
e603cf268b
Clean up MacawView and SVGParser API.
2016-08-16 20:45:09 +07:00
Alexandra Novikova
2769530d4c
Add image and text parsing, refactor
2016-07-25 12:49:56 +07:00
Alexandra Novikova
5a262c410e
Add transform parsing to SVG parser
2016-07-25 12:49:33 +07:00
Alexandra Novikova
e787d35587
add group test and refactor
2016-06-21 21:07:56 +06:00
Alexandra Novikova
b15dcbbfc7
fix SVG grouping and styling
2016-06-17 16:58:56 +06:00
Victor Sukochev
8b9c7f648d
Default stroke mode
2016-05-19 15:05:18 +02:00
Victor Sukochev
11082eedf8
Relative path segments parsing support
2016-05-19 12:28:02 +02:00
Victor Sukochev
8d7b3ff980
Negative number separation syntax support
2016-05-19 12:03:55 +02:00
Victor Sukochev
b400bc0d6d
Vertial/Horizonal line parsing support, fixes
2016-05-18 18:06:10 +02:00
shipinev
7a3dd2e0e4
Basic SVG Path parser
2016-04-21 12:06:16 +03:00