DimensionLine Class

NOTES: - offset length can be set by user in world coordinates

Hierarchy

Constructors

Properties

DIMENSION_OFFSET_DEFAULT: number = 20
DIMENSION_ROUND_DEFAULT: boolean = true
DIMENSION_TEXTSIZE_DEFAULT: number = 10
end: Point
interactive: boolean = false
offsetLength: Number
offsetVec: Vector
param: string = null
round: boolean = ...
roundDecimals: number = 0
shape: AnyShape = null
showUnits: boolean = false
start: Point
static: boolean = false
textSize: number
units: ModelUnits = null
uuid: string
value: number

Methods

  • Calculate a offset length

    Returns number

  • Place SVG arrow on position and rotation. Tip of the arrow is pivot

    Parameters

    Returns string

  • bind parameter to this dimension line and make it interactive

    Parameters

    • paramName: string

    Returns void

  • Get rotation in SVG coordinate system (so mirror y!)

    Returns number

  • Generate SVG for this dimension line if 3D the Dimension Line is projected to XY plane NOTE: we need to transform from Archiyou coordinate system to the SVG one (flip y)

    Returns string

  • Update when linked Shape is updated

    Returns void

  • Update position after linked Shape has moved !!!! IMPORTANT !!!! Improve this method

    Returns void

Generated using TypeDoc