Options
All
  • Public
  • Public/Protected
  • All
Menu

Class MeasureTwoPointSVG

Hierarchy

  • MeasureTwoPointSVG

Index

Constructors

constructor

Properties

assistLineAry

assistLineAry: Line[]

Optional assistRuntimeLine

assistRuntimeLine: Line

currentResult

currentResult: MeasureTwoPointResult

dashLineStyle

dashLineStyle: string

Optional finalLine

finalLine: Line

finalLineColor

finalLineColor: string

inputMap

inputMap: InputMap

isLoop

isLoop: boolean

lineWidth

lineWidth: number

pointAry

pointAry: Vector3[]

pointColor

pointColor: string

precision

precision: number

resultAry

svgPointAry

svgPointAry: Circle[]

total

total: number

unit

unit: UnitName

viewer

viewer: Viewer

x

x: number

xLineColor

xLineColor: string

y

y: number

yLineColor

yLineColor: string

z

z: number

zLineColor

zLineColor: string

Methods

calcDistance

  • 计算俩点之间的距离

    Parameters

    Returns void

    俩点之间的距离

calculateEnd

choosePoint

deleteAllResult

  • deleteAllResult(): void
  • 删除所有测量数据

    Returns void

deleteFromResultAry

destroy

  • destroy(): void
  • 销毁测量

    Returns void

destroyAssist

  • destroyAssist(): void
  • 销毁辅助线

    Returns void

destroyResult

disableSnap

  • disableSnap(): void
  • 关闭捕捉点

    Returns void

drawFromPointAry

  • 根据传入的俩点绘制测量点线

    Parameters

    Returns void

enableSnap

  • enableSnap(): void
  • 开启捕捉点

    Returns void

endDraw

  • endDraw(): void
  • 结束绘制

    Returns void

getCurrentResult

getResultAry

getSnapPoint

  • getSnapPoint(): undefined | Vector3
  • 获取捕捉点

    Returns undefined | Vector3

init

  • init(): void
  • 开始测量

    Returns void

onMousemove

startDrawLine

  • startDrawLine(): Promise<void>
  • Returns Promise<void>

updatePrecision

  • updatePrecision(precision: number): void
  • 更新精度

    Parameters

    • precision: number

      精度

    Returns void

updateUnit

  • 更新单位

    Parameters

    • unit: UnitName

      'km' | 'm' | 'cm' | 'mm'

    Returns void

vector3AryToNumAry

  • vector3AryToNumAry(vec3Ary: Vector3[]): number[]
  • Parameters

    Returns number[]