tapspace
Version:
A zoomable user interface lib for web apps
19 lines (16 loc) • 371 B
JavaScript
module.exports = (Plane) => {
return function () {
// @tapspace.createPlane()
// @Plane.create
//
// Create a flat container for items and other planes.
//
// Return
// a Plane
//
// Create element for the plane.
const elem = document.createElement('div')
elem.className = 'affine-plane'
return new Plane(elem)
}
}