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.
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).