Interface: RemoteHostOptions
Defined in: remote.ts:215
Properties
onScroll?
optionalonScroll?: (du,dv) =>void
Defined in: remote.ts:231
A pan gesture: move the view by a fraction of the plane. The APP decides what that means.
Parameters
du
number
dv
number
Returns
void
onSignal?
optionalonSignal?: (peer,data) =>void
Defined in: remote.ts:235
Signaling from a viewer (peer is its relay-stamped id) — feed the peer connection.
Parameters
peer
string | undefined
data
unknown
Returns
void
onZoom?
optionalonZoom?: (centerU,centerV,scale) =>void
Defined in: remote.ts:233
A pinch: multiply zoom by scale about a normalized center.
Parameters
centerU
number
centerV
number
scale
number
Returns
void
params?
optionalparams?: (mode) =>PencilParams
Defined in: remote.ts:229
Resolve the brush for a stroke's declared mode. The host owns the brush — the wire carries mode, not a parameter block, so a re-tuned preset takes effect in one place and the iPad's preview and the host's ink cannot drift apart per-stroke. Defaults to the shipped presets; the Lab passes its live knobs, which is what lets a remote stroke be tuned by the sliders in front of you while the iPad is drawing it.
Parameters
mode
Returns
send
send: (
message) =>void
Defined in: remote.ts:216
Parameters
message
Returns
void
size
size: () =>
Surface
Defined in: remote.ts:220
The host canvas in CSS px: what normalized coordinates are mapped onto.
Returns
surface
surface: () =>
PencilSurface
Defined in: remote.ts:218
The surface the remote strokes are drawn into — the host's own paper.