Last updated

API / geotoolkit3d / scene / Text2d / Text2d

Namespace: Text2d

scene.Text2d.Text2d

Table of contents

Type Aliases

Contents

Type Aliases

CommonOptions

Ƭ CommonOptions: Object

Type declaration

NameTypeDescription
issizeindevice?booleanSet to true if the text should always be drawn with the same size, no matter of how far it is
outline?OutlineOptionsIf provided, text will have outline
style?TypeDefine the text style (color, font, size and more). If the option.outline.enable is true, outline color will be used instead.
text?number | stringDefine the text to display.

Options

Ƭ Options: CommonOptions & { color?: string | RgbaColor ; dontmanuallyupdate?: boolean ; font?: string }

options object


OutlineOptions

Ƭ OutlineOptions: Object

Outline options

Type declaration

NameTypeDescription
enable?booleanSet 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?booleanText2d option.outline.enabled (with a d) is deprecated since 5.0 for consistency. Please use the option 'enable' instead. Deprecated
innercolor?string | CanvasGradient | CanvasPatternDefine the inner color for text with outline
outlinecolor?string | CanvasGradient | CanvasPatternDefine the outline color for text with outline
thickness?numberDefine the outline thickness