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

Method callback

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

Source from the content-addressed store, hash-verified

149 }
150
151 callback (e) {
152 if (!e) { return }
153 const target = {
154 x: shorten((e.points[0].x + e.points[1].x) / 2),
155 y: shorten((e.points[0].y + e.points[1].y) / 2)
156 }
157 this.set('target', target)
158 const bounds = e.camera.normalizeBounds(e.points)
159 this.set('zoom', shorten(WIDTH / bounds.width))
160 return this.refreshDisplay()
161 }
162})
163
164module.exports.WorldBoundsNode = (WorldBoundsNode = (function () {

Callers

nothing calls this directly

Calls 2

shortenFunction · 0.85
setMethod · 0.45

Tested by

no test coverage detected