AnnotationGroup

class AnnotationGroup<A extends Annotation>

An Annotation class that contains a group of Annotations.

Type parameters

  • A: Annotation

Constructors

(config: AnnotationGroupConfig <A>): AnnotationGroup

Type parameters

  • A: Annotation

Parameters

  • config: AnnotationGroupConfig

Properties

end

end: number

group

group: A []

The group of Annotations that live in this object.

id

id: string

start

start: number

Methods

add

add(ann: A | A []): void

Add an Annotation or list of Annotations to the group.

Parameters

  • ann: A | A []

Returns: void

addAnnotation

addAnnotation(ann: A): void

Add an Annotation to the group.

Parameters

  • ann: A

Returns: void