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

Method callback

app/views/editor/level/treema_nodes.js:103–110  ·  view source on GitHub ↗
(e)

Source from the content-addressed store, hash-verified

101 }
102
103 callback (e) {
104 const x = Math.min(e.points[0].x, e.points[1].x)
105 const y = Math.min(e.points[0].y, e.points[1].y)
106 this.data.pos = { x, y, z: 0 }
107 this.data.width = Math.abs(e.points[0].x - e.points[1].x)
108 this.data.height = Math.min(e.points[0].y - e.points[1].y)
109 return this.refreshDisplay()
110 }
111
112 createWorldBounds () {}
113}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected