(e)
| 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 | |
| 164 | module.exports.WorldBoundsNode = (WorldBoundsNode = (function () { |