Creates a new StrokeCapture bound to a canvas element.
The HTMLCanvasElement to listen for pointer events on.
Colour, width, and sampling density settings.
Attaches pointer event listeners to the canvas. Must be called before the student can draw.
Removes pointer event listeners from the canvas. Any in-progress stroke is discarded.
Returns true if a stroke is currently in progress (pen is down).
true while the pointer is pressed against the canvas.
Registers the callback invoked when a stroke is completed (pen-up).
Receives the completed Stroke.
Registers the callback invoked on every pointer-move sample.
Receives the latest PressurePoint for live ink rendering.
Listens for stylus pointer events on a canvas and emits completed strokes.