UNPKG

tapspace

Version:

A zoomable user interface lib for web apps

30 lines (25 loc) 686 B
// Fractal generates an infinite sequence of origin planes, // according to its template. Fractal creates an origin plane // for each iteration of its template. const Fractal = function (params) { // Construct a fractal // // Parameters: // params, an object with props // template // The fractal generator template. // It is an object with props: // constructor // destructor // visibleDepth // integer // } module.exports = Fractal const proto = Fractal.prototype proto.addTemplate = function (template) { // Registers a template } proto.removeTemplate = function (templateName) { // Unregister a template }