@twinfinity/core
    Preparing search index...

    Class GroupBuffers

    Per-group typed-array storage. Grown in place by doubling; never shrinks. The exposed slab is a stable view: same array references across rebuilds, just count and extent updated.

    Index

    Constructors

    Properties

    arcOffset: Float32Array
    capacity: number = 0
    color: Float32Array
    entityId: Uint32Array
    layerIdx: Uint8Array
    linetypeIdx: Uint8Array
    segEnd: Float32Array
    segStart: Float32Array
    width: Float32Array

    Methods

    • Resize the backing typed arrays down to exactly fit the current count when slack exceeds threshold. Preserves data; mutates this.slab to point at the new arrays. No-op if already tight.

      Parameters

      • threshold: number

      Returns void

    • Parameters

      • needed: number

      Returns void