Interface NormalisedLinePattern

A normalised representation of a line pattern, suitable for forwarding to a renderer (or for inspection by tools).

  • entries is always exactly MAX_LINE_PATTERN_ENTRIES long, zero-padded after len — so consumers can blindly read the whole array without a length check.
  • len === 0 means "solid" (no pattern); consumers should short-circuit the pattern walk in that case and fall through to whatever view-level fallback they implement (or render a continuous line if none).
  • period is the sum of in-use entries (entries[0..len-1]), the natural modulus base when walking the pattern along a segment. 0 when len === 0.
interface NormalisedLinePattern {
    entries: Float32Array<any>;
    len: number;
    period: number;
}

Properties

Properties

entries: Float32Array<any>
len: number
period: number