1
1
mirror of https://github.com/exyte/Macaw.git synced 2024-11-11 01:42:35 +03:00
Commit Graph

298 Commits

Author SHA1 Message Date
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