ui: plan 01-27 done #1
@@ -93,8 +93,10 @@
|
|||||||
handle.viewport.moveCenter(cx, cy);
|
handle.viewport.moveCenter(cx, cy);
|
||||||
// `MovedEvent.type` is a closed literal union over the
|
// `MovedEvent.type` is a closed literal union over the
|
||||||
// built-in plugin names; `"animate"` is the closest
|
// built-in plugin names; `"animate"` is the closest
|
||||||
// match for a programmatic move and the renderer's
|
// match for a programmatic move. The renderer's
|
||||||
// listeners read only `viewport`.
|
// listeners (and `pixi-viewport@6`'s own plugins)
|
||||||
|
// read only `viewport` — no consumer switches on
|
||||||
|
// `type`, so the choice is informational.
|
||||||
handle.viewport.emit("moved", {
|
handle.viewport.emit("moved", {
|
||||||
viewport: handle.viewport,
|
viewport: handle.viewport,
|
||||||
type: "animate",
|
type: "animate",
|
||||||
|
|||||||
Reference in New Issue
Block a user