Open source transition.* library
Code is MIT licensed; see https://www.coronalabs.com/links/code/license
Corona transition.* library
Home Page: https://docs.coronalabs.com/api/library/transition/
Open source transition.* library
Code is MIT licensed; see https://www.coronalabs.com/links/code/license
A weird issue here.
tween._transitionHasCompleted
is set to false (unnecessarily, I think; the default nil would already do the same job), but never to true, in particular in the if
part just above. I think the cases where this flag is tested might actually be okay, since the tween has already been added to the completed listeners and then quickly evicted, but I'm not certain.
Since I figured at this point the library details will be, at best, slow to change, I wrote some predicates making use of internal members: IsCancelled()
, IsCompleted()
, etc. That's where I ran afoul of this. ๐ In an earlier iteration of these APIs I was using the onComplete
handler and friends, piggybacking any user-provided listeners atop them if needed; however, doing so artificially limited the logic to transitions launched by my own wrappers, and this even affected other utilities in the same module.
Lacking a proper _transitionHasCompleted
, my current fallback is "not paused, and the time has elapsed?", basically mirroring the logic in the library. This will be very slightly off the event.time
used internally, so occasionally will be a frame off, but it's probably not so bad.
Anyhow, I'd submit a PR if this were urgent, but I mostly wanted to mention it. Maybe adding some predicates like I described, officially, would be a decent idea? (I have similar stuff for timers, though without problems there.)
It would be very helpful if transition.to function had onEnterFrame additional callback in params:
transition.to(obj, {
time: 1000,
onEnterFrame = function(event)
-- call each frame
end
})
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.