1
1
mirror of https://github.com/exyte/Macaw.git synced 2024-09-17 16:07:44 +03:00
Commit Graph

1069 Commits

Author SHA1 Message Date
Daniil Manin
8affa6f988 Fix #395: add type == .A 2019-05-23 19:18:25 +07:00
Daniil Manin
3266afc07a Fix #395: improvements for SVGParser for readData, flags for 'a' path segment type may not be separated properly 2019-05-23 18:40:56 +07:00
Daniil Manin
922a68bf6f change location of SVGKeys 2019-05-22 16:22:32 +07:00
Daniil Manin
d08bd4a60b Fix #388: add enum Keys with fill, color and currentColor 2019-05-22 14:15:40 +07:00
Daniil Manin
9a3c7293f3 Fix #388: fix fill for group with currentColor 2019-05-20 17:05:45 +07:00
Yuri Strot
c8c9505b83
Merge pull request #574 from exyte/bug/548-ImageContextStack-is-not-safe
Remove imageContextStack, add scale property to CGContext
2019-05-17 14:21:21 +07:00
Daniil Manin
231d1ba982 #548 remove imageContextStack, add scale property to CGContext 2019-05-16 18:09:50 +07:00
Daniil Manin
b80402fd65 #528 fix memory leak with Image objects 2019-05-16 15:33:35 +07:00
Alisa Mylnikova
f3b07a6385 Remove content animation attempts 2019-05-15 16:26:59 +07:00
Yuri Strot
34d2382d93 Avoid NPE mentioned in #571: LoadFont with "bold" weight will crash 2019-05-13 19:36:55 +07:00
Alisa Mylnikova
94e52d6bd2 Fix for MacOS 2019-05-08 13:21:48 +07:00
Alisa Mylnikova
eabb1810f0 Move layer to renderer 2019-05-08 13:13:50 +07:00
Alisa Mylnikova
44dfb89d16 Add animation layer hierarchy 2019-04-30 15:13:39 +07:00
Yuri Strot
916240f118 #561: Built-in zoom support (Fix OSX build) 2019-04-08 19:27:57 +07:00
Yuri Strot
84602c48a0 WIP #561: Built-in zoom support 2019-04-08 17:29:41 +07:00
Yuri Strot
9a1abccbb6
Merge pull request #535 from exyte/fix/387
Fix #387: add "system" color support for SVG parser
2019-04-08 16:57:55 +07:00
Mark Goldin
6f1d0b102b Fix #387: use opacity for system colors 2019-04-08 16:30:36 +07:00
Yuri Strot
428dcde7c4 Fix code warnings 2019-04-04 14:59:48 +07:00
Anton Marunko
a77830e88e Added missing import 2019-03-27 01:01:19 +06:00
Anton Marunko
c53ba5cefc Adding overriding isEqual to avoid bugs 2019-03-27 00:29:04 +06:00
Anton Marunko
1a68c1f916 Fix for initializers 2019-03-27 00:04:20 +06:00
Anton Marunko
bb3cb69616 moved to swift 5 2019-03-26 17:58:13 +06:00
Alisa Mylnikova
5f09ddff61 Remove all renderers actually used in animation itself 2019-03-25 11:39:26 +07:00
Alisa Mylnikova
605cbe8024 Remove weak thing 2019-03-22 13:39:36 +07:00
Alisa Mylnikova
c7bba3438b Replace top renderers with top layers 2019-03-22 13:14:45 +07:00
Yuri Strot
c1cebea871
Merge pull request #541 from f3dm76/fix/redisplaying-layers
Remove extra layers
2019-03-18 19:16:11 +07:00
Alisa Mylnikova
9e8ea14f6d Separate file for WeakThing 2019-03-18 17:46:58 +07:00
Yuri Strot
9124c94e72
Merge pull request #537 from K-Be/master
Added support of kerning to Text
2019-03-18 17:30:53 +07:00
Eduard Sergeev
f26c234fa8 Override toPath() for Path. 2019-03-14 12:52:41 +07:00
Eduard Sergeev
c33ac908bc Override toPath() for Polyline. 2019-03-14 12:52:23 +07:00
Eduard Sergeev
90f8ca6c43 Override toPath() for Polygon. 2019-03-14 12:52:16 +07:00
Eduard Sergeev
78fb030e12 Override toPath() for Line. 2019-03-14 12:52:09 +07:00
Eduard Sergeev
90e8c66ced Override toPath() for Point. 2019-03-14 12:52:02 +07:00
Eduard Sergeev
6bebe3ba70 Override toPath() for Arc. Darwin is needed for sin/cos. 2019-03-14 12:51:48 +07:00
Eduard Sergeev
65b658dd39 Override toPath() for Circle. 2019-03-14 12:51:33 +07:00
Eduard Sergeev
6758c3bbe0 Override toPath() for Rect. 2019-03-14 12:51:22 +07:00
Eduard Sergeev
fd64147a3a Move toPath() out of Locus extension to make it overridable.
Change access modifiers for helper functions.
2019-03-14 12:51:00 +07:00
Mark Goldin
9da0e017b7 Fix #387: refactor "system" color support for SVG parser 2019-03-11 00:46:12 +07:00
Alisa Mylnikova
1b1ea7f62d Remove extra layers 2019-03-06 16:06:55 +07:00
Yuri Strot
ec167bf9f7 Fix #536: Class Pattern has internal constructor 2019-03-01 23:52:03 +07:00
Andrew Romanov
14db8659e3 renamed kern to kerning, fixed tests for kerning attribute 2019-03-01 23:42:01 +07:00
Andrew Romanov
ca65880621 property kern renamed to kerning 2019-03-01 21:31:59 +07:00
Mark Goldin
9f9821a8ac wip on Fix 387 - add "system" color support for SVG parser 2019-02-28 18:07:41 +07:00
Andrew Romanov
2b5f671d60 added support of kerning to Text. Added example for text rendering. 2019-02-28 13:53:40 +07:00
Alisa Mylnikova
f460922413 Fix layers redisplaying 2019-02-14 16:56:57 +07:00
Yuri Strot
e4c3bcd759 Fix ambiguous XMLElement reference 2019-02-14 14:23:34 +07:00
Yuri Strot
8c9fd67892 Formatting and test fixes 2019-02-13 19:53:12 +07:00
Yuri Strot
aadc9f3f68 Fix few issues in opacity support PR
* Better parsing of opacity value
* Safe code for wrong input
* Correct formatting
* Avoid incorrect visibility handler
2019-02-13 19:42:56 +07:00
ZHENG Shilin
7f437e8e52 support opacity in svg element 2019-02-13 19:10:37 +07:00
Alisa Mylnikova
70fd57ea9d Merge branch 'master' into taks/animationLayers 2019-02-13 12:25:30 +07:00
Alisa Mylnikova
f1c2109985 Fix disappearing nodes 2019-02-12 18:05:12 +07:00
Yuri Strot
d0826bb8d0 Fix animation optimization when there is no layout 2019-02-12 17:12:22 +07:00
Yuri Strot
e882f93f05 Optimize animations when there is no layout 2019-02-12 16:19:28 +07:00
Yuri Strot
95a01d8657
Merge pull request #526 from f3dm76/task/pattern-fill
Task/pattern fill
2019-02-12 12:25:53 +07:00
Yuri Strot
baea2ccfc6 Fix #473 and #474: custom fonts are not loaded correctly 2019-02-11 18:59:13 +07:00
Alisa Mylnikova
88ceef15d8 Merge branch 'master' into taks/animationLayers 2019-02-11 18:33:45 +07:00
Alisa Mylnikova
1659f6b9ef Force display layers while animating
Little improvements

Fix
2019-02-11 17:59:14 +07:00
Alisa Mylnikova
29bb3a5726 Create new node instead of changing the old one
Fix
2019-02-11 17:48:26 +07:00
Yuri Strot
ccb125d872 Use layout cache during animation start 2019-02-08 20:46:08 +07:00
Alisa Mylnikova
a247dc9e4e Code review changes 2019-02-07 16:24:30 +07:00
Alisa Mylnikova
c966b85f02 Perform requested changes 2019-02-07 13:59:40 +07:00
Alisa Mylnikova
0d2bd69d75 Add patterns
Update Pattern model

Fix

Cherry pick

Last cherry pick

Fix

Merge fixes
2019-02-07 13:42:52 +07:00
Anton Marunko
c7196470ef Fix lint warnings 2019-01-29 10:14:12 +06:00
Anton Marunko
ec179435bd Fix build for mac os 2019-01-29 10:13:13 +06:00
Yuri Strot
4dceea892b Fix #347: Fill color disappears if there is stroke color 2019-01-25 20:45:27 +07:00
Yuri Strot
b41616557e
Merge pull request #515 from vahotm/master
Respect dx/dy attributes and calculate node position more precisely
2018-12-27 14:30:07 +07:00
Alisa Mylnikova
b4510d327d Test fixes
Extra optional

Fix
2018-12-20 13:58:52 +07:00
Alisa Mylnikova
bfd2cfcc56 Use current content layout during animation 2018-12-17 18:26:33 +07:00
Ivan Samalazau
c629f3e016 Respect dx/dy attributes and calculate node position more precisely 2018-12-12 18:35:32 +03:00
Alisa Mylnikova
2aac5dad1c Fix wrong hair initial posotion 2018-11-30 16:52:36 +07:00
Alisa Mylnikova
52dc2d9bc8 Fix renderers' z positions
a
2018-11-30 16:49:35 +07:00
Yuri Strot
35ccef2964 Combine use transform with transform of referenced node to fix issues mentioned in #495 2018-11-19 17:26:05 +07:00
Yuri Strot
9d031b85ac Fix issue with nested "use" tags, mentioned in #495 2018-11-19 17:17:08 +07:00
Yuri Strot
0f7b63457c Fix lint warnings 2018-11-19 17:15:02 +07:00
Alisa Mylnikova
9ceb34b742 Improvements 2018-11-14 11:42:45 +07:00
Alisa Mylnikova
178c66529a NodePath 2018-11-13 18:56:48 +07:00
Alisa Mylnikova
8df49c8be5 Replace array with struct 2018-11-12 15:44:42 +07:00
Alisa Mylnikova
10f3d0e77d Fix #502: Finding the tap location inside a group 2018-11-09 17:35:23 +07:00
Yuri Strot
b2b412b5d3
Merge pull request #506 from f3dm76/task/removeGlobalMaps
Remove nodes map
2018-11-09 16:03:46 +07:00
Alisa Mylnikova
4f23e4672a Code review improvements 2018-11-09 12:19:58 +07:00
Alisa Mylnikova
5ea809f7b3 Little optimization 2018-11-07 17:10:54 +07:00
Alisa Mylnikova
3d875f731e Restore tag search 2018-11-02 15:02:07 +07:00
Alisa Mylnikova
149332e6e6 Fix z positions test 2018-11-02 13:58:40 +07:00
Yuri Strot
d7b9a5d8ba Fix OSX build 2018-11-02 03:06:58 +07:00
Yuri Strot
20177d5ae4 Fix #468: Convert node to an image without using a MacawView 2018-11-01 19:04:14 +07:00
Alisa Mylnikova
da870907a7 Remove nodes map 2018-11-01 17:30:16 +07:00
Yuri Strot
bbb9a60866 Fix #500: Mask attributes ignored 2018-10-30 19:46:37 +07:00
Yuri Strot
1018b76ae7 Fix recursive use and clipPath parsing 2018-10-30 18:09:49 +07:00
Yuri Strot
4dc3781b9a Fix #501: "use" should work for elements defined after "use" 2018-10-29 21:37:40 +07:00
Yuri Strot
3d54e18f31 Fix #499: "display: none" should hide group in any case 2018-10-29 19:55:13 +07:00
Yuri Strot
fc1f2f49a7 Fix #498: gradientTransform doesn't affect radial gradient radius 2018-10-29 17:37:10 +07:00
Yuri Strot
7706236ec8 Add CSSParser to macOS and make some more lint fixes 2018-10-29 14:09:20 +07:00
Yuri Strot
6714da462d
Merge pull request #497 from fangpenlin/fang/bugfix-496/line-dash-phase-not-set-for-stroke-offset-animation-bug
Fix lineDashPhase not set for Stroke.offset bug
2018-10-29 13:21:47 +07:00
Yuri Strot
edda796bbc Add CSSParser to the project and fix lint warnings 2018-10-29 13:20:18 +07:00
Fang-Pen Lin
10e58b876b
Fix lineDashPhase not set for Stroke.offset bug 2018-10-28 23:07:02 -07:00
Yuri Strot
a0b0feeb68 Improve CSS parsing: tag/id selector support, fix few issues 2018-10-26 19:50:48 +07:00
Yuri Strot
1625519066 Fix default color with opacity 2018-10-26 19:48:29 +07:00
Yuri Strot
994a08e264 Fix #494: SVGParser should support XML namespaces 2018-10-26 15:42:35 +07:00
Yuri Strot
379ef44bf1 Fix #493: Support group selectors in CSS part of SVG 2018-10-25 21:30:44 +07:00
Yuri Strot
978a0ca068 Fix #492: Allow parsing of styles in defs section 2018-10-23 17:54:16 +07:00
Yuri Strot
5f24d92dd2 Fix #491: Image.src update doesn't refresh image 2018-10-22 18:28:42 +07:00
Yuri Strot
3f8ee4e77c
Merge pull request #486 from devsedo/refactor
Small optimization.
2018-10-18 16:52:44 +07:00
Anton Marunko
0c55873cb0 Fix bounds problem related to animations crashing 2018-10-12 18:15:30 +06:00
Yuri Strot
3aa1f88605 Update macOS version to use Swift 4.2 2018-10-04 14:43:11 +07:00
Eduard Sergeev
64a76402ee Return a result as soon as possible. 2018-10-03 20:19:30 +07:00
Anton Marunko
eb518e31f6 Throw errors instead of fatal error calling 2018-10-02 14:11:05 +06:00
Anton Marunko
bbd422ce28 Control Statement Violation: if, for, guard, switch, while, and catch statements shouldn't unnecessarily wrap their conditionals or arguments in parentheses. 2018-10-01 14:43:10 +06:00
Anton Marunko
2758cad298 Remove deinit from group 2018-10-01 14:42:19 +06:00
Anton Marunko
6f2ea3a7de Formatting fixes (swift 4.2 style) 2018-09-27 17:31:09 +06:00
Anton Marunko
24e0449826 Moving changed only for iOS classes to platform specific methods and structs + RenderUtils methods for converting LineJoin and LineCap moved to appropriate structs 2018-09-27 17:30:04 +06:00
Alisa Mylnikova
7c1a7655e6 Sort test references alphabetically 2018-09-14 16:56:06 +07:00
Alisa Mylnikova
cb34f7843c Swift 4.2 adaptation 2018-09-04 17:31:00 +07:00
Yuri Strot
af9727e79a
Merge pull request #471 from aure/master
Avoiding crash on multi-touch
2018-09-04 10:14:42 +00:00
Alisa Mylnikova
1c70253be6 Fix fan-menu buttons 2018-09-04 16:48:58 +07:00
Aurelius Prochazka
46d8a81739 Avoid force unwrapping of the initial touch index 2018-09-03 00:58:09 -07:00
Yuri Strot
dd1ad89f53
Merge pull request #463 from f3dm76/task/elastic
Add spring to transform animation
2018-08-31 08:08:09 +00:00
Alisa Mylnikova
fb7590bdd1 Move caTimingFunctions away 2018-08-24 17:00:26 +07:00
Alisa Mylnikova
8a0f35932b Attempt to fix fill animations 2018-08-24 16:38:06 +07:00
Alisa Mylnikova
385de819b3 Revert "Fix #462: Animation of fill var not happening after the first tap"
This reverts commit 8bf5f643af.
2018-08-24 16:05:15 +07:00
mylnikova.alisa
d8c5a36805
Fix #469: Fatal error with fills on animation 2018-08-24 12:12:02 +07:00
Yuri Strot
f7c167556d
Merge pull request #467 from f3dm76/task/cycleShapeAnimation
Fix #462: Animation of fill var not happening after the first tap
2018-08-23 07:44:57 +00:00
Yuri Strot
c88693af05
Merge pull request #452 from exyte/bug/parser-styles-fix
Fixes for styles attributes
2018-08-23 07:43:05 +00:00
Yuri Strot
c0ecdb5190
Merge pull request #450 from exyte/feature/equtable-for-Fill
Implementing equality for Fill
2018-08-23 07:41:54 +00:00
Yuri Strot
ba6512ea89
Merge pull request #460 from cHaLkdusT/master
Improving API structure for readability
2018-08-23 07:37:27 +00:00
Alisa Mylnikova
8bf5f643af Fix #462: Animation of fill var not happening after the first tap 2018-08-21 18:01:29 +07:00
Aurelius Prochazka
be9cec1bcf Store a lowercased font for multiple checks 2018-08-20 01:37:51 -07:00
Alisa Mylnikova
24c8e0b8f1 Add spring to transform animation
Add chain function

Replace spring with elastic

Return value func for transform

Remove chain

ccee

Add elasticity paramenter
2018-08-20 14:23:39 +07:00
Aurelius Prochazka
1ab4dfd3bf Moved lowercasing as to not be destructive 2018-08-19 17:46:44 -07:00
Julius Lundang
362d2a6f12 👌 Updating code due to code review changes.
* Updated SVGParserError to conform to Equatable so we can throwing functions
2018-08-19 17:04:28 +08:00
Julius Lundang
eddd77ba84 🎨 Improving API structure for readability
 Updating tests
2018-08-17 17:54:52 +08:00
Yuri Strot
5c1ae4e8e5
Merge pull request #453 from f3dm76/task/serializer
Add clip, mask, transformedLocus to serializer
2018-08-17 09:42:33 +00:00
Alisa Mylnikova
769d608b35 Serializer: toString -> serialize 2018-08-17 16:27:35 +07:00
Anton Marunko
a59d057254
Merge pull request #454 from exyte/bug/animation-layout
Bug/animation layout
2018-08-16 17:05:24 +07:00
Anton Marunko
ee7e29c004 Fix for leak in renderer init 2018-08-08 18:29:43 +07:00
Anton Marunko
738e2a95af Added dispose on deinit 2018-08-08 18:23:01 +07:00
Anton Marunko
72bdcf57d4 handlers links leak fixed 2018-08-08 18:22:35 +07:00
Anton Marunko
2b8aae47b7 Formatting fix 2018-08-08 18:21:59 +07:00
Anton Marunko
79a0cf4f74 Fix leak in animation cache 2018-08-08 18:21:50 +07:00
Anton Marunko
84c964b829 Optimise deletion of group node 2018-08-08 18:21:32 +07:00
Anton Marunko
d1bf4eb688 Removing group elements 2018-08-08 12:55:55 +07:00
Anton Marunko
d04206ab22 Formatting issues 2018-08-07 20:12:18 +07:00
Anton Marunko
248450c458 Cleaning nodesMap for group 2018-08-07 20:11:38 +07:00
Anton Marunko
c088e491c8 Unowned handler in Variable 2018-08-07 20:10:56 +07:00
Anton Marunko
70980f1768 Fix memory leak in renderer 2018-08-06 19:41:34 +07:00
Anton Marunko
80170a9e27 Fix for breaking changes in LayoutHelper transform 2018-08-02 11:15:16 +07:00
Anton Marunko
1f67c3484d Fix for breaking changes in GeomUtils 2018-07-27 15:31:30 +07:00
Anton Marunko
9585751066 Fix for animation utils 2018-07-24 14:54:26 +07:00
Alisa Mylnikova
c4928cea4e Change default bg color to white 2018-07-23 18:24:08 +07:00
Anton Marunko
23633818e4 Removing default stroking of animated paths 2018-07-23 17:46:42 +07:00
Anton Marunko
ca9cc43e69 Fix for svg canvas in animation transfroms 2018-07-23 17:45:45 +07:00