bitbybit.dev v1.0.0-rc.1
    Preparing search index...
    Index

    Constructors

    • Parameters

      • Optionaltext: string
      • OptionalfontUrl: string
      • OptionalfontSize: number
      • Optionalheight: number
      • Optionalrotation: number
      • Optionalorigin: Vector3
      • Optionaldirection: Vector3
      • OptionaloriginAlignment: recAlignmentEnum

      Returns Text3DUrlDto

    Properties

    text: string

    The type of font to use

    bitbybit.dev
    
    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.

    https://git-cdn.bitbybit.dev/latest/fonts/Tektur/Tektur-Bold.ttf
    
    fontSize: number

    The size of the font

    1.5
    

    0

    Infinity

    0.1

    height: number

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

    0.2
    

    0

    Infinity

    0.1

    rotation: number

    The rotation of the generated text

    0
    

    0

    Infinity

    15

    origin: Vector3

    Origin of the text

    [0, 0, 0]
    
    direction: Vector3

    Direction of the text

    [0, 1, 0]
    
    originAlignment: recAlignmentEnum

    Origin alignment

    centerMiddle