Bitbybit Docs
    Preparing search index...

    Class DimensionStyleDto (Advanced.Dimensions)

    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

    标注线的颜色

    #ffffff
    
    lineThickness: number

    标注线的粗细

    0.01
    

    0.01

    0.5

    0.01

    extensionLineLength: number

    尺寸界线超出标注线的长度

    0.2
    

    0

    Infinity

    0.1

    arrowTailLength: number

    箭尾超出箭头尖端的延伸长度

    0.2
    

    0

    Infinity

    0.1

    textColor: string

    标注文本的颜色

    #ffffff
    
    textSize: number

    标注文本的大小

    16
    

    0

    Infinity

    2

    textFontWeight: number

    标注文本的字体粗细

    400
    

    100

    900

    100

    textBackgroundColor: string

    文本的背景颜色(如需要)

    #000000
    
    textBackgroundOpacity: number

    文本背景的不透明度

    0.0
    

    0

    1

    0.1

    textBackgroundStroke: boolean

    是否在文本背景周围显示描边

    false
    
    textBackgroundStrokeThickness: number

    文本背景周围描边的粗细

    8
    

    1

    20

    1

    textBackgroundRadius: number

    文本背景圆角的角半径

    40
    

    0

    100

    5

    textStableSize: boolean

    文本是否应无论相机距离如何都保持稳定的大小

    false
    
    arrowSize: number

    箭头的大小

    0.05
    

    0

    Infinity

    0.01

    arrowColor: string

    箭头的颜色

    #ffffff
    
    showArrows: boolean

    是否显示箭头/圆锥

    true
    
    textBillboard: boolean

    文本是否应为公告板模式(始终面向相机)

    true
    
    occlusionCheckInterval: number

    检查遮挡的频率,以毫秒为单位(仅用于 GUI 模式)

    100
    

    50

    1000

    50

    alwaysOnTop: boolean

    标注是否应始终渲染在其他对象之上

    false