FreakingGenius - v0.1.0
    Preparing search index...

    Stores and exposes tutor annotation primitives for overlay rendering.

    const annotations = new AnnotationLayer();
    annotations.onUpdated(() => exerciseRenderer.redraw());
    primitiveRenderer.registerLayer('annotations', annotations);
    Index

    Constructors

    Methods

    • Registers a callback invoked whenever the annotation list changes.

      Parameters

      • cb: () => void

        Called (with no arguments) after any mutation.

      Returns void

    • Removes a primitive by its id field.

      Parameters

      • primitiveId: string

        The unique ID of the primitive to remove.

      Returns boolean

      true if a primitive with that ID was found and removed.