MCPcopy Create free account
hub / github.com/codecombat/codecombat / constructor

Method constructor

app/views/editor/level/treema_nodes.js:118–123  ·  view source on GitHub ↗
(...args)

Source from the content-addressed store, hash-verified

116module.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)

Callers

nothing calls this directly

Calls 1

errorMethod · 0.45

Tested by

no test coverage detected