bitbybit.dev v1.0.0-rc.1
    Preparing search index...

    Class SetDocLabelColorDto<T>

    DTO for setting the color of a label in a document. Takes the document handle directly instead of docId.

    Type Parameters

    • T
    Index

    Constructors

    Properties

    Constructors

    • Type Parameters

      • T

      Parameters

      • Optionaldocument: T
      • Optionallabel: string
      • Optionalr: number
      • Optionalg: number
      • Optionalb: number
      • Optionala: number

      Returns SetDocLabelColorDto<T>

    Properties

    document: T

    Assembly document handle from buildAssemblyDocument or loadStepToDoc

    undefined
    
    label: string

    Label of the part/instance to color

    undefined
    
    r: number

    Red component (0.0 - 1.0)

    0.5
    

    0

    1

    0.01

    g: number

    Green component (0.0 - 1.0)

    0.5
    

    0

    1

    0.01

    b: number

    Blue component (0.0 - 1.0)

    0.5
    

    0

    1

    0.01

    a: number

    Alpha component (0.0 - 1.0, 1.0 = opaque)

    1.0
    

    0

    1

    0.01