For AI agents: a documentation index is available at /llms.txt. Markdown versions of all pages are available by appending .md to any URL.

Class LineAtlas

A LineAtlas lets us reuse rendered dashed lines by writing many of them to a texture and then fetching their positions using LineAtlas.getDash.

the width

the height

Index

Constructors

  • Parameters

    • width: number
    • height: number

    Returns LineAtlas

Properties

bytes: number
dashEntry: { [_: string]: DashEntry }
data: Uint8Array
dirty: boolean
height: number
nextRow: number
texture: WebGLTexture
width: number

Methods

  • Parameters

    • dasharray: number[]
    • round: boolean

    Returns DashEntry

  • Parameters

    Returns void

  • Get or create a dash line pattern.

    Parameters

    • dasharray: number[]

      the key (represented by numbers) to get the dash texture

    • round: boolean

      whether to add circle caps in between dash segments

    Returns DashEntry

    position of dash texture in DashEntry

  • Parameters

    • dasharray: number[]
    • lineAtlasWidth: number
    • stretch: number

    Returns DashRange[]

Was this helpful?