API / geotoolkit3d / scene / Text2d / Text2d
Type Aliases
Type Aliases
Ƭ CommonOptions: Object
| Name | Type | Description |
|---|---|---|
issizeindevice? | boolean | Set to true if the text should always be drawn with the same size, no matter of how far it is |
outline? | OutlineOptions | If provided, text will have outline |
style? | Type | Define the text style (color, font, size and more). If the option.outline.enable is true, outline color will be used instead. |
text? | number | string | Define the text to display. |
Ƭ Options: CommonOptions & { color?: string | RgbaColor ; dontmanuallyupdate?: boolean ; font?: string }
options object
Ƭ OutlineOptions: Object
Outline options
| Name | Type | Description |
|---|---|---|
enable? | boolean | Set to false in order to disable the text outline, and ignore outline color settings. If true, outlinecolor will override other TextStyle and text color options. |
enabled? | boolean | Text2d option.outline.enabled (with a d) is deprecated since 5.0 for consistency. Please use the option 'enable' instead. Deprecated |
innercolor? | string | CanvasGradient | CanvasPattern | Define the inner color for text with outline |
outlinecolor? | string | CanvasGradient | CanvasPattern | Define the outline color for text with outline |
thickness? | number | Define the outline thickness |