Class Label

Hierarchy

  • Object3D
    • Label

Constructors

  • Parameters

    Returns Label

Properties

geometry: InstancedBufferGeometry
instanceAttrBuffer: InstancedInterleavedBuffer
instanceAttrData: Float32Array
instanceBoxPosition: InterleavedBufferAttribute
instanceBoxSize: InterleavedBufferAttribute
instanceCharPosition: InterleavedBufferAttribute
instanceCharSize: InterleavedBufferAttribute
instanceUv: InterleavedBufferAttribute
labelPool: LabelPool
lineHeight: number = 1
material: LabelMaterial
mesh: InstancedMesh<BufferGeometry<NormalBufferAttributes>, Material | Material[], InstancedMeshEventMap>
pickingMaterial: LabelMaterial
text: string = ""

Methods

  • Returns void

  • Parameters

    • x: number
    • y: number

    Returns void

  • Values should be in working (linear-srgb) color space

    Parameters

    • r: number
    • g: number
    • b: number
    • a: number = 1

    Returns void

  • Parameters

    • billboard: boolean

    Returns void

  • Values should be in working (linear-srgb) color space

    Parameters

    • r: number
    • g: number
    • b: number
    • a: number = 1

    Returns void

  • Parameters

    • lineHeight: number

    Returns void

  • Enable or disable size attenuation. Setting this to false also requires that billboarding is enabled.

    Parameters

    • sizeAttenuation: boolean

    Returns void

  • Parameters

    • text: string

    Returns void