ui: plan 01-27 done #1
@@ -93,8 +93,10 @@
|
||||
handle.viewport.moveCenter(cx, cy);
|
||||
// `MovedEvent.type` is a closed literal union over the
|
||||
// built-in plugin names; `"animate"` is the closest
|
||||
// match for a programmatic move and the renderer's
|
||||
// listeners read only `viewport`.
|
||||
// match for a programmatic move. The renderer's
|
||||
// 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", {
|
||||
viewport: handle.viewport,
|
||||
type: "animate",
|
||||
|
||||
Reference in New Issue
Block a user