Since playSegments() can already be used to change the loop segment on a running animation, I think it'd make sense to also have a public setLoop() method that changes the loop parameter of an animation without having to recreate the animation item.
You can already achieve this by setting animationItem.loop = true/false directly, but this isn't documented, nor does it work in the Web Worker.
Since
playSegments()
can already be used to change the loop segment on a running animation, I think it'd make sense to also have a publicsetLoop()
method that changes the loop parameter of an animation without having to recreate the animation item.You can already achieve this by setting
animationItem.loop = true/false
directly, but this isn't documented, nor does it work in the Web Worker.