tapspace
Version:
A zoomable user interface lib for web apps
21 lines (19 loc) • 604 B
JavaScript
module.exports = function (alt) {
// @Viewport:renderTransform(alt)
//
// Updates the element.style.transform according to the viewport basis.
//
// You need to call this function only when you have manually edited
// or replaced the basis.tran property.
//
// Parameters:
// alt
// optional plane2 transition to render instead of this.tran.
// .. See TransformerComponent:renderTransform for details.
//
// Delegate to each space.
const spaces = this.hyperspace.getChildren()
for (let i = 0; i < spaces.length; i += 1) {
spaces[i].renderTransform(alt)
}
}