-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(toPoints): do not add extra point for z if first and previous poi…
…nts are the same BREAKING CHANGE: no longer adds an additional point for path z command if previous and first points already the same
- Loading branch information
1 parent
464f0a6
commit 90cb1b2
Showing
2 changed files
with
21 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
90cb1b2
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@colinmeinke Thanks, Wow. This is where has been my bug month ago, i just leaved it for later, but you fixed it. Nice. About
svg-points
andpoints
- you want implementwilderness-core
latest script to these apps, for users make own library which core issvg-points and points
? Thanks90cb1b2
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@dalisoft cool - I'm not sure what you mean by:
Can you explain in a different way?
90cb1b2
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
In wilderness-core i've seen code piece where normalises non-group <-> group, curve normalisation and much more for complex transform including
transform[]
syntax. Would be nice, if you implement these inpoints
while callingadd
function. For some users (like me) to maintain own morph/svg library while core would besvg-points
/points
. Thanks.There i describe why i asked this:
I solved my complex morph tween (for missing points) with nearest and worked good, but for some larger/more subpath shapes this makes like game, but your solution makes it more real and live. So i decided to maintain for create my own library (private will be, or public, not sure, credit tags always i give).
I want like this syntax for me.
I hope you understand why i mean. This way gives me much flexibility as i worked with
tween
for 5-years even i maintainingES6
version of this lib (it's not ad).Anyway i learned ES6 from you, as your code motivated me. Thanks a lot. Thanks for reply too
90cb1b2
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ah I understand what you mean now, thanks for explaining. Hmm, I don't think I want to make those functions part of the public api. However, you could use the
shape
function, which will equalise shapes and returns an object that you could then get what you need from. Something like this:A FrameShape is an object that include the following props:
points
- the shape's points (unless it's a group shape)childFrameShapes
- and array of children (only if the shape is a group)I hope that helps.
90cb1b2
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for giving code to get what i need. Thanks for amazing library.