UNPKG

tapspace

Version:

A zoomable user interface lib for web apps

19 lines (17 loc) 341 B
module.exports = function (distance) { // @Distance:isLessThan(distance) // // Test if this is less than the given distance. // // Parameters: // distance // a Distance // // Return // a boolean // if (distance.transitRaw) { distance = distance.transitRaw(this.basis) } return this.dist < distance }