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

    Constructors

    • Parameters

      • OptionallineColor: string
      • OptionallineThickness: number
      • OptionalextensionLineLength: number
      • OptionalarrowTailLength: number
      • OptionaltextColor: string
      • OptionaltextSize: number
      • OptionaltextFontWeight: number
      • OptionaltextBackgroundColor: string
      • OptionaltextBackgroundOpacity: number
      • OptionaltextBackgroundStroke: boolean
      • OptionaltextBackgroundStrokeThickness: number
      • OptionaltextBackgroundRadius: number
      • OptionaltextStableSize: boolean
      • OptionalarrowSize: number
      • OptionalarrowColor: string
      • OptionalshowArrows: boolean
      • OptionaltextBillboard: boolean
      • OptionalocclusionCheckInterval: number
      • OptionalalwaysOnTop: boolean

      Returns DimensionStyleDto

    Properties

    lineColor: string

    Color of dimension lines

    #ffffff
    
    lineThickness: number

    Thickness of dimension lines

    0.01
    

    0.01

    0.5

    0.01

    extensionLineLength: number

    Length of extension lines beyond dimension line

    0.2
    

    0

    Infinity

    0.1

    arrowTailLength: number

    Length of arrow tail extensions beyond arrow tips

    0.2
    

    0

    Infinity

    0.1

    textColor: string

    Color of dimension text

    #ffffff
    
    textSize: number

    Size of dimension text

    16
    

    0

    Infinity

    2

    textFontWeight: number

    Font weight of dimension text

    400
    

    100

    900

    100

    textBackgroundColor: string

    Background color of text (if needed)

    #000000
    
    textBackgroundOpacity: number

    Opacity of text background

    0.0
    

    0

    1

    0.1

    textBackgroundStroke: boolean

    Whether to show stroke around text background

    false
    
    textBackgroundStrokeThickness: number

    Thickness of the stroke around text background

    8
    

    1

    20

    1

    textBackgroundRadius: number

    Corner radius for text background rounding

    40
    

    0

    100

    5

    textStableSize: boolean

    Whether text should maintain stable size regardless of camera distance

    false
    
    arrowSize: number

    Size of arrow heads

    0.05
    

    0

    Infinity

    0.01

    arrowColor: string

    Color of arrow heads

    #ffffff
    
    showArrows: boolean

    Whether to show arrow heads/cones

    true
    
    textBillboard: boolean

    Whether text should billboard (always face camera)

    true
    
    occlusionCheckInterval: number

    How often to check for occlusion in milliseconds (only for GUI modes)

    100
    

    50

    1000

    50

    alwaysOnTop: boolean

    Whether dimensions should always render on top of other objects

    false