Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

  • DimensionStyleDto

Index

Constructors

constructor

  • new DimensionStyleDto(lineColor?: string, lineThickness?: number, extensionLineLength?: number, arrowTailLength?: number, textColor?: string, textSize?: number, textFontWeight?: number, textBackgroundColor?: string, textBackgroundOpacity?: number, textBackgroundStroke?: boolean, textBackgroundStrokeThickness?: number, textBackgroundRadius?: number, textStableSize?: boolean, arrowSize?: number, arrowColor?: string, showArrows?: boolean, textBillboard?: boolean, occlusionCheckInterval?: number, alwaysOnTop?: boolean): DimensionStyleDto
  • Parameters

    • Optional lineColor: string
    • Optional lineThickness: number
    • Optional extensionLineLength: number
    • Optional arrowTailLength: number
    • Optional textColor: string
    • Optional textSize: number
    • Optional textFontWeight: number
    • Optional textBackgroundColor: string
    • Optional textBackgroundOpacity: number
    • Optional textBackgroundStroke: boolean
    • Optional textBackgroundStrokeThickness: number
    • Optional textBackgroundRadius: number
    • Optional textStableSize: boolean
    • Optional arrowSize: number
    • Optional arrowColor: string
    • Optional showArrows: boolean
    • Optional textBillboard: boolean
    • Optional occlusionCheckInterval: number
    • Optional alwaysOnTop: boolean

    Returns DimensionStyleDto

Properties

alwaysOnTop

alwaysOnTop: boolean

Whether dimensions should always render on top of other objects

default

false

arrowColor

arrowColor: string

Color of arrow heads

default

#ffffff

arrowSize

arrowSize: number

Size of arrow heads

default

0.05

minimum

0

maximum

Infinity

step

0.01

arrowTailLength

arrowTailLength: number

Length of arrow tail extensions beyond arrow tips

default

0.2

minimum

0

maximum

Infinity

step

0.1

extensionLineLength

extensionLineLength: number

Length of extension lines beyond dimension line

default

0.2

minimum

0

maximum

Infinity

step

0.1

lineColor

lineColor: string

Color of dimension lines

default

#ffffff

lineThickness

lineThickness: number

Thickness of dimension lines

default

0.01

minimum

0.01

maximum

0.5

step

0.01

occlusionCheckInterval

occlusionCheckInterval: number

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

default

100

minimum

50

maximum

1000

step

50

showArrows

showArrows: boolean

Whether to show arrow heads/cones

default

true

textBackgroundColor

textBackgroundColor: string

Background color of text (if needed)

default

#000000

textBackgroundOpacity

textBackgroundOpacity: number

Opacity of text background

default

0.0

minimum

0

maximum

1

step

0.1

textBackgroundRadius

textBackgroundRadius: number

Corner radius for text background rounding

default

40

minimum

0

maximum

100

step

5

textBackgroundStroke

textBackgroundStroke: boolean

Whether to show stroke around text background

default

false

textBackgroundStrokeThickness

textBackgroundStrokeThickness: number

Thickness of the stroke around text background

default

8

minimum

1

maximum

20

step

1

textBillboard

textBillboard: boolean

Whether text should billboard (always face camera)

default

true

textColor

textColor: string

Color of dimension text

default

#ffffff

textFontWeight

textFontWeight: number

Font weight of dimension text

default

400

minimum

100

maximum

900

step

100

textSize

textSize: number

Size of dimension text

default

16

minimum

0

maximum

Infinity

step

2

textStableSize

textStableSize: boolean

Whether text should maintain stable size regardless of camera distance

default

false

Generated using TypeDoc