Constructor for the LabelManager class.
Optional
initialLabels: Label[] = []An optional array of initial labels to populate the manager.
Gets a label by its name.
The name of the label to retrieve.
The label if found, otherwise undefined.
Converts the LabelManager instance to a JSON object.
The JSON representation of the labels.
Static
fromCreates a LabelManager instance from a JSON object.
The JSON object to convert.
The LabelManager instance created from the JSON object.
LabelManager
Description
This class manages a collection of labels used in annotations.