Bitbybit Docs
    Preparing search index...

    Class SphereTextDto (Inputs.JSCAD)

    Feeds text.sphericalText: the text and font options of TextDto plus the size of the spheres every stroke is chained from.

    Index

    Constructors

    • Parameters

      • Optionaltext: string
      • Optionalradius: number
      • Optionalsegments: number
      • OptionalxOffset: number
      • OptionalyOffset: number
      • Optionalheight: number
      • OptionallineSpacing: number
      • OptionalletterSpacing: number
      • Optionalalign: jscadTextAlignEnum
      • OptionalextrudeOffset: number

      Returns SphereTextDto

    Properties

    text: string

    The characters to write; a newline starts a new line and a character outside plain ASCII becomes a question mark

    Hello World
    
    radius: number

    Radius of the spheres, in model units, which is half the thickness of the strokes

    0.1
    

    0

    Infinity

    0.1

    segments: number

    Number of facets around each sphere and pieces in curved strokes; more makes the letters rounder

    24
    

    0

    Infinity

    1

    xOffset: number

    Where the text starts along X before it is centered, in model units

    0
    

    -Infinity

    Infinity

    0.1

    yOffset: number

    Where the baseline of the first line sits along Y, in model units

    0
    

    -Infinity

    Infinity

    0.1

    height: number

    Height of a capital letter, in model units; the whole text scales with it

    1
    

    0

    Infinity

    0.1

    lineSpacing: number

    Step from one line down to the next as a multiple of the letter height; 1.4 leaves a 40 percent gap

    1.4
    

    -Infinity

    Infinity

    0.1

    letterSpacing: number

    Multiplies the step from one letter to the next; 1 is the font's own spacing and 2 spreads letters twice as far apart

    1
    

    -Infinity

    Infinity

    0.1

    How the lines of a multi-line text line up: to the left, the center or the right

    center
    
    extrudeOffset: number

    Pulls the strokes inward by half this amount, in model units, so thick strokes keep the intended letter size

    0
    

    -Infinity

    Infinity

    0.1