Skip to content

Instantly share code, notes, and snippets.

@kof
Last active August 29, 2015 14:03
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kof/ed7898eb285471ac3a7a to your computer and use it in GitHub Desktop.
Save kof/ed7898eb285471ac3a7a to your computer and use it in GitHub Desktop.
RenderController
SomeView.prototype.show = function() {
var prevAnimation = {
transition: {},
transform: {}
}
var thisAnimation = {
transition: {},
transform: {}
}
app.controller.show(this, thisAnimation, prevAnimation, callback)
}
@dmvaldman
Copy link

A lot depends on your use case.

Do you want individual renderables to be automatically removed? (in which case you would return a variable-length array of the renderables with their transforms in a .render function)

Does your entire Scene (made up of several renderables) transform in unison, or do you want atomic control of each renderable in your Scene? The former only requires RenderController.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment