Skip to content

InstancedHalfArrowsData

Defined in: core/backend.ts:230

SoA for a batch of instanced half-arrow links (#104 N6) — the “map of networks” directed-link glyph: one filled shape per link, pinched to the source centre and ending in a barbed arrowhead on the target boundary, bowed around a shared centre curve (see network/half-link.ts). All world units.

bends: Float32Array

Defined in: core/backend.ts:240

Bend per link (⟂ offset as a fraction of the chord, #296; sign picks the bow side), length count.


colors: Uint8Array

Defined in: core/backend.ts:242

RGBA bytes per link, length 4 * count.


count: number

Defined in: core/backend.ts:273


optional endOffsetsChanged?: Uint32Array<ArrayBufferLike>

Defined in: core/backend.ts:272

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:261

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:246

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


optional groups2?: Float32Array<ArrayBufferLike>

Defined in: core/backend.ts:248

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


optional index?: Float32Array<ArrayBufferLike>

Defined in: core/backend.ts:258

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:236

[r0, r1] source/target node radii per link, length 2 * count (the tip lands on r1).


optional samples?: number

Defined in: core/backend.ts:244

Path samples (M) per bezier edge of the strip; a draw setting, not per-instance. Default 24.


optional selected?: Uint8Array<ArrayBufferLike>

Defined in: core/backend.ts:250

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


optional sourceOffsets?: Float32Array<ArrayBufferLike>

Defined in: core/backend.ts:268

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:232

[x, y] world source centre per link, length 2 * count.


optional tableCount?: number

Defined in: core/backend.ts:259


optional targetOffsets?: Float32Array<ArrayBufferLike>

Defined in: core/backend.ts:269


targets: Float32Array

Defined in: core/backend.ts:234

[x, y] world target centre per link, length 2 * count.


widths: Float32Array

Defined in: core/backend.ts:238

[width, oppositeWidth] per link, length 2 * count (opposite width spaces the source foot).