The §45 autoResize seam: subscribes onResize to the host's surface-size
changes and returns the unsubscribe.
A function the host supplies rather than a ResizeObserver this package
constructs — the discipline PointerInput uses for PointerSurface and this
class already uses for ApplicationOptions.now. four/application
compiles with no DOM lib and must run in Node, in a worker, and in a headless
test, so it names no DOM type; in a browser the whole adapter is five lines:
The returned function is called exactly once, by Application.dispose
(§83: what the application subscribed, the application unsubscribes). It must
be safe to call after the surface itself has gone.
The §45
autoResizeseam: subscribesonResizeto the host's surface-size changes and returns the unsubscribe.A function the host supplies rather than a
ResizeObserverthis package constructs — the disciplinePointerInputuses forPointerSurfaceand this class already uses for ApplicationOptions.now.four/applicationcompiles with no DOM lib and must run in Node, in a worker, and in a headless test, so it names no DOM type; in a browser the whole adapter is five lines:The returned function is called exactly once, by Application.dispose (§83: what the application subscribed, the application unsubscribes). It must be safe to call after the surface itself has gone.