Skip to content

KBE3D / KBCore / Cesium / LabelGraphics / ConstructorOptions

接口: ConstructorOptions

Initialization options for the LabelGraphics constructor

属性

show?

optional show: boolean | Property

A boolean Property specifying the visibility of the label.


text?

optional text: string | Property

A Property specifying the text. Explicit newlines '\n' are supported.


font?

optional font: string | Property

A Property specifying the CSS font.


style?

optional style: Property | LabelStyle

A Property specifying the LabelStyle.


scale?

optional scale: number | Property

A numeric Property specifying the scale to apply to the text.


showBackground?

optional showBackground: boolean | Property

A boolean Property specifying the visibility of the background behind the label.


backgroundColor?

optional backgroundColor: Color | Property

A Property specifying the background Color.


backgroundPadding?

optional backgroundPadding: Property | Cartesian2

A Cartesian2 Property specifying the horizontal and vertical background padding in pixels.


pixelOffset?

optional pixelOffset: Property | Cartesian2

A Cartesian2 Property specifying the pixel offset.


eyeOffset?

optional eyeOffset: Property | Cartesian3

A Cartesian3 Property specifying the eye offset.


horizontalOrigin?

optional horizontalOrigin: Property | HorizontalOrigin

A Property specifying the HorizontalOrigin.


verticalOrigin?

optional verticalOrigin: Property | VerticalOrigin

A Property specifying the VerticalOrigin.


heightReference?

optional heightReference: Property | HeightReference

A Property specifying what the height is relative to.


fillColor?

optional fillColor: Color | Property

A Property specifying the fill Color.


outlineColor?

optional outlineColor: Color | Property

A Property specifying the outline Color.


outlineWidth?

optional outlineWidth: number | Property

A numeric Property specifying the outline width.


translucencyByDistance?

optional translucencyByDistance: Property | NearFarScalar

A NearFarScalar Property used to set translucency based on distance from the camera.


pixelOffsetScaleByDistance?

optional pixelOffsetScaleByDistance: Property | NearFarScalar

A NearFarScalar Property used to set pixelOffset based on distance from the camera.


scaleByDistance?

optional scaleByDistance: Property | NearFarScalar

A NearFarScalar Property used to set scale based on distance from the camera.


distanceDisplayCondition?

optional distanceDisplayCondition: Property | DistanceDisplayCondition

A Property specifying at what distance from the camera that this label will be displayed.


disableDepthTestDistance?

optional disableDepthTestDistance: number | Property

A Property specifying the distance from the camera at which to disable the depth test to.

KBE3D @3.0.0 Copyright © 2024-present KBE3D