Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

  • Text3DUrlDto

Index

Constructors

constructor

  • Parameters

    • Optional text: string
    • Optional fontUrl: string
    • Optional fontSize: number
    • Optional height: number
    • Optional rotation: number
    • Optional origin: Vector3
    • Optional direction: Vector3
    • Optional originAlignment: recAlignmentEnum

    Returns Text3DUrlDto

Properties

direction

direction: Vector3

Direction of the text

default

[0, 1, 0]

fontSize

fontSize: number

The size of the font

default

1.5

minimum

0

maximum

Infinity

step

0.1

fontUrl

fontUrl: string

The font URL to load and use. If Url is provided then font will be loaded using opentype.js. Supported formats are: ttf, otf, woff. Please note that Woff2 is not supported by opentype.js as it is a compressed format.

default

https://cdn.jsdelivr.net/gh/bitbybit-dev/bitbybit-assets@latest/fonts/Tektur/Tektur-Bold.ttf

height

height: number

The height of the font extrusion, if 0 then face will be returned and not a solid

default

0.2

minimum

0

maximum

Infinity

step

0.1

origin

origin: Vector3

Origin of the text

default

[0, 0, 0]

originAlignment

originAlignment: recAlignmentEnum

Origin alignment

default

centerMiddle

rotation

rotation: number

The rotation of the generated text

default

0

minimum

0

maximum

Infinity

step

15

text

text: string

The type of font to use

default

bitbybit.dev

Generated using TypeDoc