You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I want to only show the animation of the 3rd stroke of the character 迄 (i.e. the stroke "乙" that is below "𠂉"), and I want the previous strokes to be already drawn.
What I tried (attempt 1)
I obtained the desired behavior by drawing the previous strokes at a very fast speed and when the desired stroke is about to be drawn, the speed is changed to a slower speed.
As you can see above, the value of strokeAnimationSpeed is changed by accessing its value through _options. However, this method is not recommended, as mentioned in this reply in which @Chaning mentioned that any instance var with a _ prefix is not considered part of the public API and could be removed in future versions.
What I tried (attempt 2)
I also tried specifying the option strokeAnimationSpeed to animateStroke, but there was no effect caused. Apparently the only option that animateStroke accepts is onComplete.
I'd appreciate if someone could suggest a better alternative. For the time being, I'll be using the method I described above in (attempt 1).
The text was updated successfully, but these errors were encountered:
rodrigomorales1
changed the title
Draw a specific stroke and make previous strokes to be already drawn.
Draw a specific stroke and make previous strokes to be already drawn
Oct 26, 2022
What I want to do
I want to only show the animation of the 3rd stroke of the character 迄 (i.e. the stroke "乙" that is below "𠂉"), and I want the previous strokes to be already drawn.
What I tried (attempt 1)
I obtained the desired behavior by drawing the previous strokes at a very fast speed and when the desired stroke is about to be drawn, the speed is changed to a slower speed.
As you can see above, the value of
strokeAnimationSpeed
is changed by accessing its value through_options
. However, this method is not recommended, as mentioned in this reply in which @Chaning mentioned that any instance var with a_
prefix is not considered part of the public API and could be removed in future versions.What I tried (attempt 2)
I also tried specifying the option
strokeAnimationSpeed
toanimateStroke
, but there was no effect caused. Apparently the only option thatanimateStroke
accepts isonComplete
.Note
I'd appreciate if someone could suggest a better alternative. For the time being, I'll be using the method I described above in (attempt 1).
The text was updated successfully, but these errors were encountered: