Bitbybit Docs
    Preparing search index...

    Class DrawPathDto<T> (Inputs.JSCAD)

    The options draw.drawAnyAsync passes on when the entity is a JSCAD 2D path, drawn as a line through its points: color, opacity, line width and the line to reuse when redrawing.

    Type Parameters

    • T
    Index

    Constructors

    Properties

    Constructors

    • Provide options without default values

      Type Parameters

      • T

      Parameters

      • Optionalpath: JSCADEntity
      • Optionalcolour: string
      • Optionalopacity: number
      • Optionalwidth: number
      • Optionalupdatable: boolean
      • OptionalpathMesh: T

      Returns DrawPathDto<T>

    Properties

    The 2D path to draw as a line; a closed path is drawn back to its first point

    undefined
    
    colour: string

    Hex color of the line; a path colored with colors.colorize keeps its own color instead

    #444444
    
    opacity: number

    How opaque the line is, from 0 for invisible to 1 for solid

    1
    

    0

    1

    0.1

    width: number

    Thickness of the drawn line

    10
    

    0

    Infinity

    1

    updatable: boolean

    When true, the drawn line can be refreshed in place on later draws by passing it back as pathMesh

    false