Skip to main content

abstract AnnotationSystem<TSystem>

Abstract base for all annotation sub-systems operating on a TechnicalDrawing.

Extended by​

Type parameters​

Type parameterDescription
TSystem extends DrawingSystemDescriptorA DrawingSystemDescriptor that declares the item, data, style, and handle types for this specific system.

Properties​

_item​

Internal

readonly _item: TSystem["item"]

Declaration-only type marker. Never set at runtime. Used by DrawingAnnotations.getBySystem for variance-free type inference: TypeScript can read TSystem["item"] from this covariant readonly field without triggering the invariance issues of the styles DataMap events.

Methods​

pickHandle()​

abstract pickHandle(drawing, ray, threshold?): null | object

Return the closest pickable handle on drawing for the given world-space ray, or null if nothing is within threshold units.

Parameters​

ParameterType
drawingTechnicalDrawing
rayRay
threshold?number

Returns​

null | object