Skip to content

Interface: Label3D

Defined in: plot3d/plot3d.ts:95

A text label pinned to a point in data space, re-projected every frame.

Properties

align?

ts
optional align?: CanvasTextAlign;

Defined in: plot3d/plot3d.ts:107

Horizontal alignment about the projected point. Default "center".


baseline?

ts
optional baseline?: CanvasTextBaseline;

Defined in: plot3d/plot3d.ts:109

Vertical alignment about the projected point. Default "middle".


color?

ts
optional color?: string;

Defined in: plot3d/plot3d.ts:100


dx?

ts
optional dx?: number;

Defined in: plot3d/plot3d.ts:104

Screen-space nudge in CSS px, applied after projection.


dy?

ts
optional dy?: number;

Defined in: plot3d/plot3d.ts:105


font?

ts
optional font?: string;

Defined in: plot3d/plot3d.ts:102

CSS font shorthand. Default "11px system-ui, sans-serif".


text

ts
text: string;

Defined in: plot3d/plot3d.ts:99


x

ts
x: number;

Defined in: plot3d/plot3d.ts:96


y

ts
y: number;

Defined in: plot3d/plot3d.ts:97


z

ts
z: number;

Defined in: plot3d/plot3d.ts:98

MIT licensed. WebGL2 required.