ui: plan 01-27 done #1
@@ -91,9 +91,13 @@
|
|||||||
// (and any future per-move callback) sees the
|
// (and any future per-move callback) sees the
|
||||||
// change — matches the semantics of a user drag.
|
// change — matches the semantics of a user drag.
|
||||||
handle.viewport.moveCenter(cx, cy);
|
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`.
|
||||||
handle.viewport.emit("moved", {
|
handle.viewport.emit("moved", {
|
||||||
viewport: handle.viewport,
|
viewport: handle.viewport,
|
||||||
type: "manual",
|
type: "animate",
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
getViewport: () =>
|
getViewport: () =>
|
||||||
|
|||||||
Reference in New Issue
Block a user