@itwin/measure-tools-react
Version:
Frontend framework and tools for measurements
52 lines • 3.52 kB
JavaScript
/*---------------------------------------------------------------------------------------------
* Copyright (c) Bentley Systems, Incorporated. All rights reserved.
* See LICENSE.md in the project root for license terms and full copyright notice.
*--------------------------------------------------------------------------------------------*/
/** List of well-known measurement style sets. */
export var WellKnownMeasurementStyle;
(function (WellKnownMeasurementStyle) {
WellKnownMeasurementStyle["Default"] = "default";
WellKnownMeasurementStyle["DefaultLocked"] = "default-locked";
WellKnownMeasurementStyle["Faded"] = "faded";
})(WellKnownMeasurementStyle || (WellKnownMeasurementStyle = {}));
/** Enumeration for different scenarios where a measurement handles a button event. */
export var MeasurementButtonHandledEvent;
(function (MeasurementButtonHandledEvent) {
/** Measurement did not respond to button event. */
MeasurementButtonHandledEvent[MeasurementButtonHandledEvent["No"] = 0] = "No";
/** Measurement did respond to button event. */
MeasurementButtonHandledEvent[MeasurementButtonHandledEvent["Yes"] = 1] = "Yes";
/** Measurement did respond to button event, and consume the event so the system does not further processs it. */
MeasurementButtonHandledEvent[MeasurementButtonHandledEvent["YesConsumeEvent"] = 2] = "YesConsumeEvent";
})(MeasurementButtonHandledEvent || (MeasurementButtonHandledEvent = {}));
/**
* Event Id used to sync UI components. Used to refresh visibility or enable state of control.
*/
export var MeasurementSyncUiEventId;
(function (MeasurementSyncUiEventId) {
/** The set of selected measurements has changed. */
MeasurementSyncUiEventId["MeasurementSelectionSetChanged"] = "measurementselectionsetchanged";
/** The measurement that the user is currently creating in a tool (the dynamic measurement) has changed. */
MeasurementSyncUiEventId["DynamicMeasurementChanged"] = "dynamicmeasurementchanged";
})(MeasurementSyncUiEventId || (MeasurementSyncUiEventId = {}));
/** Defines a list of well known viewport types. */
export var WellKnownViewType;
(function (WellKnownViewType) {
/** Special case: ANY viewport is acceptable to draw in. This is a default value. */
WellKnownViewType["Any"] = "any";
/** Special case: ANY Spatial viewport is acceptable to draw in. Subclasses do not matter. */
WellKnownViewType["AnySpatial"] = "anySpatial";
/** Special case: ANY Drawing viewport is acceptable to draw in. Subclasses do not matter. */
WellKnownViewType["AnyDrawing"] = "anyDrawing";
/** ONLY a viewport that has a SpatialViewState or OrthographicViewState (e.g. built-in imodeljs views). If the viewstate is a subclass then it is not valid. */
WellKnownViewType["Spatial"] = "spatial";
/** ONLY a viewport that has a DrawingViewState (e.g. built-in imodeljs views). If the viewstate is a subclass then it is not valid. */
WellKnownViewType["Drawing"] = "drawing";
/** ONLY a viewport that is a cross-section (xSection) view (Civil-specific). */
WellKnownViewType["XSection"] = "xsection";
/** ONLY a viewport that is a profile view (Civil-specific). */
WellKnownViewType["Profile"] = "profile";
/** ONLY a viewport that is a SheetViewState (e.g. built-in imodeljs views). If the viewstate is a subclass then it is not valid. */
WellKnownViewType["Sheet"] = "sheet";
})(WellKnownViewType || (WellKnownViewType = {}));
//# sourceMappingURL=MeasurementEnums.js.map