canvas-pan
Pan and/or zoom the canvas to scene-pixel coordinates (canvas.animatePan), for everyone's view. All fields optional — omit x/y to keep the current centre, omit scale to keep the current zoom. Coordinates are scene pixels, not grid squares. Use canvas-ping to draw attention to a spot instead.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| x | No | Scene-pixel X to centre on. Omit to keep current. | |
| y | No | Scene-pixel Y to centre on. Omit to keep current. | |
| scale | No | Zoom level (1 = 100%). Omit to keep current. | |
| duration | No | Animation duration in ms. |