FreakingGenius - v0.1.0
    Preparing search index...

    Class ExerciseRenderer

    Paints exercise content and live student ink onto the device canvas.

    const renderer = new ExerciseRenderer(canvasEl);
    strokeCapture.onStrokeUpdate((pt) => renderer.addLivePoint(pt));
    strokeCapture.onStrokeComplete((s) => renderer.commitStroke(s));
    primitiveRenderer.onPrimitivesUpdated(() => renderer.redraw());
    Index

    Constructors

    Methods

    • Redraws all layers (exercise primitives + committed ink + live ink). Idempotent — safe to call many times per second from animation loops.

      Returns void