Reference·JavaScript · @bimworks/viewer3dJavaScript

MeasuringListener

Interface in @bimworks/viewer3d.

API catalogue · @bimworks/viewer3d · Interface

TypeScript#
interface MeasuringListener

Members#

Member Kind Description
blur Method The mouse pointer has left the measurement (label)
cancelled Method The adding or editing of a Measurement was cancelled (for new measurements it is not added to the list of measurements, for edits the original state is resto…
committed Method The given measurement was committed, it should be considered final. Also fired after an edit of an existing measurement has been completed
deleted Method The given Measurement(s) were deleted from the set of measurements, for efficiency reasons this can also be an iterable of Measurements
hover Method The mouse is hovering over the measurement (label)
selected Method The given measurement was selected, either by the user clicking it, or by an external API call
startedNew Method A new measurement was started
startedUpdate Method An existing measurement was started to be edited, e.g. the user started dragging a point of a finalized AreaMeasurement. When the point is dropped, committed…
toolChanged Method The running tool, or the measurement whose point is being dragged, changed in a way a user interface shows: a point placed or taken back, snapping switched o…
unselected Method The given measurement was unselected, either by the user clicking somewhere else, or by an external API call

blur#

TypeScript#
blur?(measurement: Measurement): void

The mouse pointer has left the measurement (label)

Parameters#

Name Type Description
measurement Measurement

cancelled#

TypeScript#
cancelled?(measurement: Measurement): void

The adding or editing of a Measurement was cancelled (for new measurements it is not added to the list of measurements, for edits the original state is restored)

Parameters#

Name Type Description
measurement Measurement

committed#

TypeScript#
committed?(measurement: Measurement): void

The given measurement was committed, it should be considered final. Also fired after an edit of an existing measurement has been completed

Parameters#

Name Type Description
measurement Measurement

deleted#

TypeScript#
deleted?(measurements: Iterable<Measurement>): void

The given Measurement(s) were deleted from the set of measurements, for efficiency reasons this can also be an iterable of Measurements

Parameters#

Name Type Description
measurements Iterable<Measurement>

hover#

TypeScript#
hover?(measurement: Measurement): void

The mouse is hovering over the measurement (label)

Parameters#

Name Type Description
measurement Measurement

selected#

TypeScript#
selected?(measurement: Measurement): void

The given measurement was selected, either by the user clicking it, or by an external API call

Parameters#

Name Type Description
measurement Measurement

startedNew#

TypeScript#
startedNew?(measurement: Measurement): void

A new measurement was started

Parameters#

Name Type Description
measurement Measurement

startedUpdate#

TypeScript#
startedUpdate?(measurement: Measurement): void

An existing measurement was started to be edited, e.g. the user started dragging a point of a finalized AreaMeasurement. When the point is dropped, committed is fired again; when the edit is cancelled (Escape), cancelled is fired and the original position is restored

Parameters#

Name Type Description
measurement Measurement

toolChanged#

TypeScript#
toolChanged?(measurement: Measurement | null): void

The running tool, or the measurement whose point is being dragged, changed in a way a user interface shows: a point placed or taken back, snapping switched or suspended with Shift, the area or reference mode, a move/rotate gesture

Parameters#

Name Type Description
measurement Measurement | null

unselected#

TypeScript#
unselected?(measurement: Measurement): void

The given measurement was unselected, either by the user clicking somewhere else, or by an external API call

Parameters#

Name Type Description
measurement Measurement