UNPKG

node-red-contrib-tak-registration

Version:

A Node-RED node to register to TAK and to help wrap files as datapackages to send to TAK

26 lines (24 loc) 640 B
import LineSegment from '../../geom/LineSegment' import Envelope from '../../geom/Envelope' export default class MonotoneChainSelectAction { constructor () { this.tempEnv1 = new Envelope() this.selectedSegment = new LineSegment() } select () { if (arguments.length === 1) { // const seg = arguments[0] } else if (arguments.length === 2) { const mc = arguments[0] const startIndex = arguments[1] mc.getLineSegment(startIndex, this.selectedSegment) this.select(this.selectedSegment) } } interfaces_ () { return [] } getClass () { return MonotoneChainSelectAction } }