Yuri Strot
566c5482c2
Fix #217 : Set opaque for LinearGradient
2017-11-23 16:47:21 +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
Yuriy Kashnikov
b4d271c8d0
Merge pull request #210 from exyte/feature/parse-svg-clip-path
...
Refactor locus to path implementation
2017-10-23 20:54:56 +07:00
shipinev
de32500287
Set correct Func2D typealias name
2017-10-23 16:12:50 +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
Yuriy Kashnikov
3d5e39a6ba
Merge pull request #212 from exyte/bug/fix-cubic-curve-bounds-computation
...
Bug/fix cubic curve bounds computation
2017-10-20 17:52:03 +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
ff7c3e2df7
Merge pull request #207 from exyte/task/swiftlint
...
Integrate SwiftLint in project
2017-10-19 15:44:31 +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
shipinev
bc02ad310d
Add SwiftLint to macOS target
2017-10-19 14:38:29 +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
b0165deebd
Add Locus to Path util functions
2017-10-18 17:46:18 +07:00
Yuriy Kashnikov
da6c83eb9d
Merge pull request #208 from exyte/bug/fix-fill-color-in-serializer
...
Fix color to SVG conversion in SVG serializer
2017-10-18 13:35:55 +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
4c82045d4b
Add trasnform.svg resource
2017-10-16 16:47:23 +07:00
shipinev
a0407ea18e
Add format
option to autocorrect command
2017-10-16 16:39:53 +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
661c684f24
Merge pull request #204 from exyte/bug/fix-rgb-notation
...
Support short rgb notation in SVG parser
2017-10-16 15:17:22 +07:00
Yuriy Kashnikov
32a037901f
Support short rgb notation in SVG parser
2017-10-16 14:07:43 +07:00
Yuriy Kashnikov
4bfb9f50da
Remove todos
2017-10-13 17:47:24 +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
Victor Sukochev
aa1d3c9163
Merge pull request #201 from amarunko/bug/content-mode-fix
...
Fix for aspect fit content mode
2017-10-12 19:00:29 +07:00
Anton Marunko
4aec82fd10
Fix for aspect fit content mode
2017-10-12 18:50:09 +07:00
Yuriy Kashnikov
7af984eb1b
Merge pull request #200 from exyte/bug/fix-path-bounds-calculation
...
Bug/fix path bounds calculation
2017-10-12 16:55:35 +07:00
Yuriy Kashnikov
c4bf083ec9
Fix vertical path bounds calculation
2017-10-12 16:44:30 +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
Victor Sukochev
58f1d320f8
Merge pull request #199 from exyte/bug/fix-path-bounds
...
Path bounds fix for s cubic curve
2017-10-11 17:15:45 +07:00
Yuriy Kashnikov
2b6e746e0e
Path bounds fix for s cubic curve
2017-10-11 17:02:06 +07:00
Yuriy Kashnikov
abc9296458
Merge pull request #196 from exyte/bug/fix-text-transform
...
Bug/fix text transform
2017-10-10 14:42:46 +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
811fef8a18
Merge pull request #195 from exyte/qfix/fix-warning-in-text-renderer
...
Fix minor warning in Text renderer
2017-10-09 17:58:32 +07:00
Yuriy Kashnikov
12b37c8293
Fix minor warning in Text renderer
2017-10-09 17:37:16 +07:00
Yuriy Kashnikov
5b13b90311
Merge pull request #194 from exyte/bug/fix-complex-transform
...
Bug/fix complex transform
2017-10-09 17:35:31 +07:00