Bitbybit Docs
    Preparing search index...

    Class CylinderTextDto (Inputs.JSCAD)

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

    Index

    Constructors

    • Parameters

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

      Returns CylinderTextDto

    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
    
    extrusionHeight: number

    Length of the cylinders along Z, in model units; the strokes sit on the XY plane with half of it on each side

    0.5
    

    0

    Infinity

    0.1

    extrusionSize: number

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

    0.1
    

    0

    Infinity

    0.1

    segments: number

    Number of flat sides around each cylinder 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