Skip to main content

Interface: AnnotationController

Controller interface for the annotation overlay.

Properties​

PropertyTypeDescription
activebooleanWhether the presenter pointer tool is active.
canRedobooleanWhether there are undone strokes that can be redone.
canUndobooleanWhether there are strokes that can be undone.
colorstringActive ink color.
strokeCountnumberNumber of recorded strokes on the current scene.

Methods​

clear()​

clear(animate?: boolean): void

Clears all annotations, optionally with a 150ms dissolve.

Parameters​

ParameterType
animate?boolean

Returns​

void


redo()​

redo(): void

Restores the most recently undone stroke.

Returns​

void


undo()​

undo(): void

Removes the last drawn stroke.

Returns​

void