Skip to content

InstancedArrowsData

Defined in: core/backend.ts:206

SoA for a batch of instanced triangle arrowheads (directed-link tips).

optional bends?: Float32Array<ArrayBufferLike>

Defined in: core/backend.ts:218

Optional per-arrow bend (#104 N6c), matching the link’s, so the head aligns with the bent end tangent.


colors: Uint8Array

Defined in: core/backend.ts:216

RGBA bytes per arrow, length 4 * count.


count: number

Defined in: core/backend.ts:249


optional endOffsetsChanged?: Uint32Array<ArrayBufferLike>

Defined in: core/backend.ts:248

The instances whose end offsets were rewritten in place since the last emit (#509), as flat [start, end) ranges, uploaded alone while the arrays are the ones the layer holds (see InstancedCirclesData.offsetsChanged).


optional fade?: Float32Array<ArrayBufferLike>

Defined in: core/backend.ts:237

Indexed draw only: a per-instance alpha multiplier (the cross-fade band); absent = 1. Length count.


optional groups?: Float32Array<ArrayBufferLike>

Defined in: core/backend.ts:222

Per-instance highlight group (#162): the arrow’s source node id. Length count.


optional groups2?: Float32Array<ArrayBufferLike>

Defined in: core/backend.ts:224

The other endpoint (target) id for undirected hover (#162); -1/absent when unused. Length count.


optional half?: boolean

Defined in: core/backend.ts:220

Draw a one-sided half arrowhead (#104 N6c) — for bent map links, so reciprocal heads don’t collide.


optional index?: Float32Array<ArrayBufferLike>

Defined in: core/backend.ts:234

Indexed draw (#447): with index, the style arrays above (everything but sources/targets, groups/groups2/selected included) are instead per-edge tables of tableCount entries, kept resident on the GPU and re-uploaded only when an array reference changes; index lists the edges to draw — count of them, one instance each, whose pick id is its edge id — and sources/targets stay per instance (the listed edges’ ends, which move with the layout). Edge ids must be below 2^24 (float-exact).


radii: Float32Array

Defined in: core/backend.ts:212

Target node radius per arrow (active sizeMode units), length count — the boundary setback.


optional selected?: Uint8Array<ArrayBufferLike>

Defined in: core/backend.ts:226

Per-instance selected flag (0/1) for shader-driven dim/recolour (#162). Length count.


sizes: Float32Array

Defined in: core/backend.ts:214

arrow size (active sizeMode units) per arrow, length count.


optional sourceOffsets?: Float32Array<ArrayBufferLike>

Defined in: core/backend.ts:244

Optional per-instance offsets of the two ends (#509), in the layer’s size units: an end is drawn at project(P) + offset px in screen mode and at P + offset in world mode; the bend and the setbacks follow the offset ends. Length 2 * count each; absent ⇒ no offset, with no buffer and no upload. Uploaded only when the array is a new object. Plain draws only: an indexed draw (index) takes no offsets.


sources: Float32Array

Defined in: core/backend.ts:208

[x, y] source centre per arrow (for orientation), length 2 * count.


optional tableCount?: number

Defined in: core/backend.ts:235


optional targetOffsets?: Float32Array<ArrayBufferLike>

Defined in: core/backend.ts:245


targets: Float32Array

Defined in: core/backend.ts:210

[x, y] target centre per arrow, length 2 * count; the tip is set back by radii in-shader.