Bitbybit Docs
    Preparing search index...

    Class Text3DUrlParsedDto (Advanced.Text3D)

    The inputs of advanced.text3d.createWithUrl once the font file has been loaded, as the geometry is built from them: letterPaths holds the outlines read from the font in place of its URL.

    Index

    Constructors

    • Parameters

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

      Returns Text3DUrlParsedDto

    Properties

    text: string

    The string to build. Spaces leave a gap but produce no character shape.

    bitbybit.dev
    
    letterPaths: any

    The outline of each character, read from the font, scaled to fontSize and shifted for originAlignment. It replaces the font URL once the font has been loaded.

    undefined
    
    fontSize: number

    The size of the font in model units, the height of its em square; capital letters come out somewhat smaller.

    1.5
    

    0

    Infinity

    0.1

    height: number

    How far each letter is extruded along direction, in model units. 0 returns flat letter faces instead of solids.

    0.2
    

    0

    Infinity

    0.1

    rotation: number

    Spins the text about direction around the point on origin, in degrees.

    0
    

    0

    Infinity

    15

    origin: Vector3

    The point the anchor chosen by originAlignment is placed on.

    [0, 0, 0]
    
    direction: Vector3

    The direction the letters face and are extruded along; the text lies in the plane perpendicular to it.

    [0, 1, 0]
    
    originAlignment: recAlignmentEnum

    Which point of the text lands on its anchor: left, center or right combined with top, middle or bottom. The offsets come from the text's bounding box, and the bottom positions sit on the baseline.

    centerMiddle