LabelTextObjectOptions
Constructor
constructor
constructor(options: object): LabelTextObjectOptions
Parameters:
Name | Type | Required | Default | Description |
---|---|---|---|---|
options | object | Yes | - | |
options.autoScale | boolean | No | false | Scale automatically the label in order to keep the same size idependently to the distance to the camera. |
options.levelOfDetails | LevelOfDetails | No | new LevelOfDetails() | Dynamically change properties depending on the distance to the camera. |
options.isPermanentDisplay | boolean | No | true | Always visible if true, otherwise only when selected. |
options.offset | { x: number, y: number, z: number } | No | { x: 0, y: 0, z: 0 } | Position offset |
options.opacity | number | No | 1 | number in the range of 0.0 - 1.0 indicating how transparent the image is. |
options.orientationMode | LABEL_ORIENTATION_MODES.BILLBOARD | LABEL_ORIENTATION_MODES.STATIC | No | LABEL_ORIENTATION_MODES.BILLBOARD | |
options.rotation | number | No | 0 | the rotation, only when orientationMode is Static |
options.scale | { x: number, y: number, z: number } | No | { x: 1, y: 1, z: 1 } | |
options.style | TextStyleOptions | No | new TextStyleOptions() | |
options.text | string | Yes | - | The text, use \n to include line break. |