UNPKG

tapspace

Version:

A zoomable user interface lib for web apps

14 lines (13 loc) 254 B
module.exports = function () { // @Edge:getLength() // // Get length of the edge. // // Return // a Distance // const p0 = this.at(this.startpoint) const p1 = this.at(this.endpoint) const dist = p0.getDistanceTo(p1) return dist }