| 116 | module.exports.WorldViewportNode = (WorldViewportNode = class WorldViewportNode extends TreemaNode.nodeMap.object { |
| 117 | // selecting ratio'd dimensions in the world, ie the camera in level scripts |
| 118 | constructor (...args) { |
| 119 | super(...Array.from(args || [])) |
| 120 | this.callback = this.callback.bind(this) |
| 121 | if (this.settings.world == null) { console.error('Viewport Treema node needs a World included in the settings.') } |
| 122 | if (this.settings.view == null) { console.error('Viewport Treema node needs a RootView included in the settings.') } |
| 123 | } |
| 124 | |
| 125 | buildValueForDisplay (valEl, data) { |
| 126 | super.buildValueForDisplay(valEl, data) |