| 34 | |
| 35 | module.exports.WorldPointNode = (WorldPointNode = class WorldPointNode extends TreemaNode.nodeMap.point2d { |
| 36 | constructor (...args) { |
| 37 | super(...Array.from(args || [])) |
| 38 | this.callback = this.callback.bind(this) |
| 39 | if (this.settings.world == null) { console.error('Point Treema node needs a World included in the settings.') } |
| 40 | if (this.settings.view == null) { console.error('Point Treema node needs a RootView included in the settings.') } |
| 41 | } |
| 42 | |
| 43 | buildValueForDisplay (valEl, data) { |
| 44 | super.buildValueForDisplay(valEl, data) |