tapspace
Version:
A zoomable user interface lib for web apps
21 lines (18 loc) • 455 B
JavaScript
module.exports = function (space, position) {
// @Viewport:prependChild(space, position)
//
// Add a Space or Plane as the first child of the Viewport Hyperspace.
// See also Viewport:addChild
//
// Parameters:
// space
// a Space or Plane.
// position
// optional Point. The position for the space origin.
//
// Returns:
// this, for chaining
//
this.hyperspace.prependChild(space, position)
return this
}