On this page

Class LineAtlas

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

    • ranges: any

    Returns void

  • Parameters

    • ranges: any
    • stretch: number
    • n: number

    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 any[]

Was this helpful?
SDK JS
Reference
LineAtlas