Skip to main content
Version: 4.1.0

DistanceMeasuringStore

Index

Constructors

constructor

  • new DistanceMeasuringStore(): DistanceMeasuringStore
  • Returns DistanceMeasuringStore

Properties

color

color: string

finish

finish: Point2D

fontSize

fontSize: number

isCreating

isCreating: boolean

lineWidth

lineWidth: number

start

start: Point2D

transformedFinish

transformedFinish: Point2D

transformedStart

transformedStart: Point2D

staticreadonlyDEFAULT_COLOR

DEFAULT_COLOR: #62D96B = "#62D96B"

staticreadonlyDEFAULT_FONTSIZE

DEFAULT_FONTSIZE: 14 = 14

staticreadonlyDEFAULT_WIDTH

DEFAULT_WIDTH: 1.5 = 1.5

Accessors

showCurve

  • get showCurve(): boolean
  • Returns boolean

styleString

  • get styleString(): string
  • Returns string

Methods

resetPos

  • resetPos(): void
  • Returns void

setColor

  • setColor(color: string): void
  • Parameters

    • color: string

    Returns void

setFinish

  • setFinish(x: number, y: number): void
  • Parameters

    • x: number
    • y: number

    Returns void

setFontSize

  • setFontSize(size: number): void
  • Parameters

    • size: number

    Returns void

setIsCreating

  • setIsCreating(isCreating: any): void
  • Parameters

    • isCreating: any

    Returns void

setLineWidth

  • setLineWidth(width: number): void
  • Parameters

    • width: number

    Returns void

setStart

  • setStart(x: number, y: number): void
  • Parameters

    • x: number
    • y: number

    Returns void

updateTransformedPos

  • updateTransformedPos(spatialTransform: Transform2D): void
  • Parameters

    • spatialTransform: Transform2D

    Returns void