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

67 Commits

Author SHA1 Message Date
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
Yuriy Kashnikov
8e2504aa6b Add test with absolute C and S cubic curves 2017-10-20 17:24:27 +07:00
Yuriy Kashnikov
b5bc3ef5e5 Fix path bounds for cubic curves
- Add 1 and 0 to solutions along to extrema they should be
  considered as point for bounding box
- Refactor test harness
- Add separate tests for absolute and relative cubic bounds
2017-10-20 16:33:19 +07:00
Yuriy Kashnikov
45979a16ff Fix cubic curve bounding box computation 2017-10-20 15:26:05 +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
6925209d88 Fix clip test 2017-10-19 00:08:35 +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
Yuriy Kashnikov
703ce5d3ef Merge pull request #206 from exyte/bug/fix-skewx-skewy-in-svg-parser
Fix skewX and skewY in SVG parser
2017-10-17 08:48:18 +07:00
Yuriy Kashnikov
0c0ea87996 Merge pull request #202 from exyte/bug/fix-path-bounds-calculation
Add bounds computation via derivative
2017-10-16 22:56:28 +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
9055efc5c9 Remove test with incorrect bezier curve 2017-10-13 17:05:32 +07:00
Yuriy Kashnikov
0d05f5e6bf Add bounds computation via derivative 2017-10-13 16:20:07 +07:00
Yuriy Kashnikov
1fd0376694 Fix horizontal path bounds 2017-10-12 16:38:57 +07:00
Yuriy Kashnikov
bb8017b72e Fix path bounds calculation
After this fix bounds for pathbounds1.svg will be correct.
Bounds for pathbounds2.svg still not.
2017-10-12 15:41:46 +07:00
Yuriy Kashnikov
a641ea32ec Fix tests and prettify transform 2017-10-10 14:34:10 +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
527ea134dc Add basic test for text transform 2017-10-09 16:16:01 +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
3c9ff9e0fd Fix duplicating resource (logo) name 2017-10-09 11:05:55 +07:00
Yuriy Kashnikov
aaaa7218f8 Add logo.png to fix Image serialization tests 2017-10-06 17:56:20 +07:00
Yuriy Kashnikov
882c19798c Add tests for SVG image serialization 2017-10-06 17:45:36 +07:00
Yuriy Kashnikov
4f9d7e04b6 Fix Arc tests 2017-10-06 17:14:57 +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
ac012dfb5b Add implementation for style classes support in SVG parser 2017-10-03 13:04:11 +07:00
Yuriy Kashnikov
a4cf382a9c Update stroke-width in SVG tests 2017-09-29 16:22:21 +07:00
Yuriy Kashnikov
08003735ab Port MacawTests to Mac OS X
- Wrap parts into platform dependent macro
- Disable the following tests:
    MacawTests/Animation/CombineAnimationTests.swift
    MacawTests/Animation/DelayedAnimationTests.swift
    MacawTests/Animation/SequenceAnimationTests.swift
    MacawTests/Bounds/ImageBoundsTests.swift
    MacawTests/Bounds/NodeBoundsTests.swift

Add proper text weight rendering

Enhance support for SVG text attributes

- Support `text-anchor` in parser, serializer, and renderer
- Support `font-weight` in parser and serializer
- Support `stroke` (width/fill color) in parser, serializer, and
  renderer
2017-09-29 14:25:46 +07:00
Yuriy Kashnikov
09f8421261 Add basic tests for SVG Parser and Serializer 2017-09-20 16:01:33 +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
Viktor Sukochev
dd383a248c Tests target updated to swift 4 2017-08-28 15:01:04 +07:00
Yuriy Kashnikov
cd4d3ce8f6 Support Macaw.Image in serializer 2017-08-18 12:18:47 +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
manindaniil
536bc08709 update classes...20% 2017-08-10 20:01:11 +07:00
Viktor Sukochev
a2b4a04821 Image consturctor for UIImage added. Image bounds tests 2017-06-06 23:39:51 +07:00
manindaniil
df562e7e63 polygon/polyline fix + add path test 2017-05-11 13:11:38 +07:00
manindaniil
797ed9f884 add tests 2017-05-11 11:34:20 +07:00
Viktor Sukochev
885a60ab42 XCode 8.3 warnings fix 2017-05-05 16:23:35 +07:00
Viktor Sukochev
696724b142 More tests for absoluteIndex 2017-04-28 18:09:35 +07:00
Viktor Sukochev
8025e4fcaf Hidden zIndex fix 2017-04-28 17:45:30 +07:00
Viktor Sukochev
a0ef02712d Reverting some changes to API 2017-03-09 21:08:17 +07:00