Function: inkSignals()
inkSignals(
source,opts?):InkSignals
Defined in: reactive.ts:69
Bind a surface's drawing to Solid signals.
ts
// store.ts — the surface is durable, so the binding hangs off it
export const ink = durable("ink", () => inkSignals(paper));
// graph.ts — the drawing is now just another dependency
stats: cell(
() => ({ strokes: ink.strokes(), live: ink.live() }),
({ strokes, live }) => summarize(strokes, live),
)Parameters
source
opts?
liveHz?
number