Bitbybit Docs
    Preparing search index...

    Class Text3DUrlDto (Advanced.Text3D)

    Index

    Constructors

    • Parameters

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

      Returns Text3DUrlDto

    Properties

    text: string

    O tipo de letra a usar

    bitbybit.dev
    
    fontUrl: string

    O URL do tipo de letra a carregar e usar. Se for fornecido um URL, o tipo de letra será carregado com opentype.js. Os formatos suportados são: ttf, otf, woff. Note que Woff2 não é suportado pelo opentype.js por ser um formato comprimido.

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

    O tamanho da letra

    1.5
    

    0

    Infinity

    0.1

    height: number

    A altura da extrusão do texto, se for 0 será devolvida uma face e não um sólido

    0.2
    

    0

    Infinity

    0.1

    rotation: number

    A rotação do texto gerado

    0
    

    0

    Infinity

    15

    origin: Vector3

    Origem do texto

    [0, 0, 0]
    
    direction: Vector3

    Direção do texto

    [0, 1, 0]
    
    originAlignment: recAlignmentEnum

    Alinhamento da origem

    centerMiddle