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 (27 loc) 720 B
import IllegalArgumentException from '../../../../java/lang/IllegalArgumentException' export default class Location { interfaces_ () { return [] } getClass () { return Location } static toLocationSymbol (locationValue) { switch (locationValue) { case Location.EXTERIOR: return 'e' case Location.BOUNDARY: return 'b' case Location.INTERIOR: return 'i' case Location.NONE: return '-' default: } throw new IllegalArgumentException('Unknown location value: ' + locationValue) } static get INTERIOR () { return 0 } static get BOUNDARY () { return 1 } static get EXTERIOR () { return 2 } static get NONE () { return -1 } }