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

29 lines (28 loc) 705 B
export default class SweepLineInterval { constructor() { SweepLineInterval.constructor_.apply(this, arguments) } static constructor_() { this._min = null this._max = null this._item = null if (arguments.length === 2) { const min = arguments[0], max = arguments[1] SweepLineInterval.constructor_.call(this, min, max, null) } else if (arguments.length === 3) { const min = arguments[0], max = arguments[1], item = arguments[2] this._min = min < max ? min : max this._max = max > min ? max : min this._item = item } } getMin() { return this._min } getItem() { return this._item } getMax() { return this._max } }