PitchKit
API Reference@pitchkit/coreInterfaces

AnnotateLayer

Defined in: packages/core/src/scene/types.ts:32

Text labels: one <text> per datum, offset from its anchor point in pixels.

Type Parameters

Type ParameterDefault type
Tunknown

Properties

PropertyModifierTypeDescriptionDefined in
className?readonlystringApplied as the <text> element's class attribute; styling escape hatch (PRD §8.7).packages/core/src/scene/types.ts:41
datareadonlyreadonly T[]-packages/core/src/scene/types.ts:34
labelreadonlyAccessor<T, string>-packages/core/src/scene/types.ts:37
offsetX?readonlyAccessor<T, number>-packages/core/src/scene/types.ts:38
offsetY?readonlyAccessor<T, number>-packages/core/src/scene/types.ts:39
typereadonly"annotate"-packages/core/src/scene/types.ts:33
xreadonlyAccessor<T, number>-packages/core/src/scene/types.ts:35
yreadonlyAccessor<T, number>-packages/core/src/scene/types.ts:36

On this page