Pane surfaces only: the content’s intrinsic size for the given
viewport, driving the pane’s scrollbars. Called when the view is
created, the document changes, the viewport resizes, or requestDraw
fires. Omit for fit-to-viewport views; the inspector never measures.
advance
advance(seconds: number) -> boolean
Advances animation state. Return true to keep receiving frames.
The user scrolled the text editor. x/y are scroll percentages and
line is the fractional top visible line. Never fired for scrolls the
host performed on the view’s behalf (scrollEditorTo), so handlers can
follow without echo bookkeeping.
paneScrolled
paneScrolled(x: number, y: number) -> ()
The user scrolled the preview pane (measured views only). x/y are the
new offsets in content coordinates. Never fired for scrolls the host
applied from editor:scrollTo.
paneWheel
paneWheel(dx: number, dy: number) -> ()
Raw wheel/trackpad input over an unmeasured (self-scrolling) preview,
in pixels with positive y scrolling down. Implement to route pane
input into the view’s own scrolling; without it the host falls back
to scrolling the paired text editor.
pointerDown
pointerDown(event: PointerEvent) -> ()
Pointer input over the preview surface, in the same coordinate space
draw receives. Signatures match the Layout protocol so live artboards
can forward events directly (board:pointerDown(event), …).