MeasuringListener
Interface in @bimworks/viewer3d.
API catalogue · @bimworks/viewer3d · Interface
interface MeasuringListenerMembers#
| 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#
blur?(measurement: Measurement): voidThe mouse pointer has left the measurement (label)
Parameters#
| Name | Type | Description |
|---|---|---|
measurement |
Measurement |
cancelled#
cancelled?(measurement: Measurement): voidThe 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#
committed?(measurement: Measurement): voidThe 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#
deleted?(measurements: Iterable<Measurement>): voidThe 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#
hover?(measurement: Measurement): voidThe mouse is hovering over the measurement (label)
Parameters#
| Name | Type | Description |
|---|---|---|
measurement |
Measurement |
selected#
selected?(measurement: Measurement): voidThe given measurement was selected, either by the user clicking it, or by an external API call
Parameters#
| Name | Type | Description |
|---|---|---|
measurement |
Measurement |
startedNew#
startedNew?(measurement: Measurement): voidA new measurement was started
Parameters#
| Name | Type | Description |
|---|---|---|
measurement |
Measurement |
startedUpdate#
startedUpdate?(measurement: Measurement): voidAn 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#
toolChanged?(measurement: Measurement | null): voidThe 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#
unselected?(measurement: Measurement): voidThe given measurement was unselected, either by the user clicking somewhere else, or by an external API call
Parameters#
| Name | Type | Description |
|---|---|---|
measurement |
Measurement |