UNPKG

tapspace

Version:

A zoomable user interface lib for web apps

19 lines (17 loc) 470 B
const scalar2 = require('affineplane').scalar2 module.exports = function (newBasis) { // @Area:transitRaw(newBasis) // // Represent the area in another basis. // Unlike changeBasis, returns a plain number without basis data. // // Parameters: // newBasis // a Component // // Return // a scalar2, a number. The area in the new basis. // const tran = this.basis.getTransitionTo(newBasis) return scalar2.transitFrom(this.area, tran) }