@itwin/ecschema-rpcinterface-tests 5.12.0-dev.1 → 5.12.0-dev.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/dist/bundled-tests.js +434 -187
- package/lib/dist/bundled-tests.js.map +1 -1
- package/package.json +15 -15
|
@@ -19596,7 +19596,7 @@ var GeoServiceStatus;
|
|
|
19596
19596
|
GeoServiceStatus[GeoServiceStatus["VerticalDatumConvertError"] = 147460] = "VerticalDatumConvertError";
|
|
19597
19597
|
GeoServiceStatus[GeoServiceStatus["CSMapError"] = 147461] = "CSMapError";
|
|
19598
19598
|
/**
|
|
19599
|
-
* @deprecated in 5.0 -
|
|
19599
|
+
* @deprecated in 5.0 - might be removed in next major version. This status is never returned.
|
|
19600
19600
|
*/
|
|
19601
19601
|
GeoServiceStatus[GeoServiceStatus["Pending"] = 147462] = "Pending";
|
|
19602
19602
|
})(GeoServiceStatus || (GeoServiceStatus = {}));
|
|
@@ -21096,7 +21096,7 @@ Symbol.dispose ??= Symbol("Symbol.dispose");
|
|
|
21096
21096
|
Symbol.asyncDispose ??= Symbol("Symbol.asyncDispose");
|
|
21097
21097
|
/**
|
|
21098
21098
|
* A type guard that checks whether the given argument implements `IDisposable` interface
|
|
21099
|
-
* @deprecated in 5.0 -
|
|
21099
|
+
* @deprecated in 5.0 - might be removed in next major version. Use isDisposable instead.
|
|
21100
21100
|
* @public
|
|
21101
21101
|
*/
|
|
21102
21102
|
function isIDisposable(obj) {
|
|
@@ -21135,7 +21135,7 @@ function disposeArray(list) {
|
|
|
21135
21135
|
* of this function is equal to return value of func. If func throws, this function also throws (after
|
|
21136
21136
|
* disposing the resource).
|
|
21137
21137
|
* @public
|
|
21138
|
-
* @deprecated in 5.0 -
|
|
21138
|
+
* @deprecated in 5.0 - might be removed in next major version. Use `using` declarations instead.
|
|
21139
21139
|
*/
|
|
21140
21140
|
function using(resources, func) {
|
|
21141
21141
|
if (!Array.isArray(resources))
|
|
@@ -22978,7 +22978,7 @@ class PerfLogger {
|
|
|
22978
22978
|
[Symbol.dispose]() {
|
|
22979
22979
|
this.logMessage();
|
|
22980
22980
|
}
|
|
22981
|
-
/** @deprecated in 5.0 -
|
|
22981
|
+
/** @deprecated in 5.0 - might be removed in next major version. Use [Symbol.dispose] instead. */
|
|
22982
22982
|
dispose() {
|
|
22983
22983
|
this[Symbol.dispose]();
|
|
22984
22984
|
}
|
|
@@ -24749,7 +24749,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
24749
24749
|
/**
|
|
24750
24750
|
* Mirrors the SpanKind enum from [@opentelemetry/api](https://open-telemetry.github.io/opentelemetry-js/enums/_opentelemetry_api.SpanKind.html)
|
|
24751
24751
|
* @public
|
|
24752
|
-
* @deprecated in 4.4 -
|
|
24752
|
+
* @deprecated in 4.4 - might be removed in next major version. OpenTelemetry Tracing helpers will become internal in a future release. Apps should use `@opentelemetry/api` directly.
|
|
24753
24753
|
*/
|
|
24754
24754
|
var SpanKind;
|
|
24755
24755
|
(function (SpanKind) {
|
|
@@ -24809,7 +24809,7 @@ function flattenObject(obj) {
|
|
|
24809
24809
|
/**
|
|
24810
24810
|
* Enables OpenTelemetry tracing in addition to traditional logging.
|
|
24811
24811
|
* @public
|
|
24812
|
-
* @deprecated in 4.4 -
|
|
24812
|
+
* @deprecated in 4.4 - might be removed in next major version. OpenTelemetry Tracing helpers will become internal in a future release. Apps should use `@opentelemetry/api` directly.
|
|
24813
24813
|
*/
|
|
24814
24814
|
class Tracing {
|
|
24815
24815
|
static _tracer;
|
|
@@ -28486,7 +28486,7 @@ var QueryRowFormat;
|
|
|
28486
28486
|
QueryRowFormat[QueryRowFormat["UseECSqlPropertyIndexes"] = 1] = "UseECSqlPropertyIndexes";
|
|
28487
28487
|
/** Each row is an object in which each non-null column value can be accessed by a [remapped property name]($docs/learning/ECSqlRowFormat.md).
|
|
28488
28488
|
* This format is backwards-compatible with the format produced by iTwin.js 2.x. Null values are omitted.
|
|
28489
|
-
* @deprecated in 4.11 -
|
|
28489
|
+
* @deprecated in 4.11 - might be removed in next major version. Switch to UseECSqlPropertyIndexes for best performance, and UseECSqlPropertyNames if you want a JSON object as the result.
|
|
28490
28490
|
*/
|
|
28491
28491
|
QueryRowFormat[QueryRowFormat["UseJsPropertyNames"] = 2] = "UseJsPropertyNames";
|
|
28492
28492
|
})(QueryRowFormat || (QueryRowFormat = {}));
|
|
@@ -28557,7 +28557,7 @@ class QueryOptionsBuilder {
|
|
|
28557
28557
|
* If set ECClassId, SourceECClassId and TargetECClassId system properties will return qualified name of class instead of a @typedef Id64String.
|
|
28558
28558
|
* @param val A boolean value.
|
|
28559
28559
|
* @returns @type QueryOptionsBuilder for fluent interface.
|
|
28560
|
-
* @deprecated in 4.11 -
|
|
28560
|
+
* @deprecated in 4.11 - might be removed in next major version. Use ecsql function ec_classname to get class name instead.
|
|
28561
28561
|
*/
|
|
28562
28562
|
setConvertClassIdsToNames(val) {
|
|
28563
28563
|
// eslint-disable-next-line @typescript-eslint/no-deprecated
|
|
@@ -31958,7 +31958,7 @@ var PrimitiveTypeCode;
|
|
|
31958
31958
|
})(PrimitiveTypeCode || (PrimitiveTypeCode = {}));
|
|
31959
31959
|
/** Metadata for a property.
|
|
31960
31960
|
* @beta
|
|
31961
|
-
* @deprecated in 5.0 -
|
|
31961
|
+
* @deprecated in 5.0 - might be removed in next major version. Use the `Property` class from @itwin/ecschema-metadata` instead.
|
|
31962
31962
|
*/
|
|
31963
31963
|
// eslint-disable-next-line @typescript-eslint/no-deprecated
|
|
31964
31964
|
class PropertyMetaData {
|
|
@@ -32044,7 +32044,7 @@ class PropertyMetaData {
|
|
|
32044
32044
|
}
|
|
32045
32045
|
/** Metadata for an Entity.
|
|
32046
32046
|
* @beta
|
|
32047
|
-
* @deprecated in 5.0 -
|
|
32047
|
+
* @deprecated in 5.0 - might be removed in next major version. Use `EntityClass` class from `@itwin/ecschema-metadata` instead.
|
|
32048
32048
|
*/
|
|
32049
32049
|
// eslint-disable-next-line @typescript-eslint/no-deprecated
|
|
32050
32050
|
class EntityMetaData {
|
|
@@ -33360,7 +33360,7 @@ var FontType;
|
|
|
33360
33360
|
* This class maps FontIds to FontProps.
|
|
33361
33361
|
* @note This API has never worked properly. Don't use it. Use [IModelDb.fonts]($backend) instead.
|
|
33362
33362
|
* @public
|
|
33363
|
-
* @deprecated in 5.0.0 -
|
|
33363
|
+
* @deprecated in 5.0.0 - might be removed in next major version. Use [IModelDb.fonts]($backend) instead.
|
|
33364
33364
|
*/
|
|
33365
33365
|
class FontMap {
|
|
33366
33366
|
fonts = new Map();
|
|
@@ -33824,7 +33824,7 @@ var GeoCoordStatus;
|
|
|
33824
33824
|
/** This temporary status is used to mark coordinates for which the conversion has not yet been processed by the backend
|
|
33825
33825
|
* as opposed to other coordinate conversions that may have been resolved otherwise (typically a cache).
|
|
33826
33826
|
* At the completion of the conversion promise no coordinates should have this status.
|
|
33827
|
-
* @deprecated in 5.0 -
|
|
33827
|
+
* @deprecated in 5.0 - might be removed in next major version. Pending is no longer returned as a status for coordinate conversions.
|
|
33828
33828
|
*/
|
|
33829
33829
|
GeoCoordStatus[GeoCoordStatus["Pending"] = -41556] = "Pending";
|
|
33830
33830
|
})(GeoCoordStatus || (GeoCoordStatus = {}));
|
|
@@ -56939,7 +56939,7 @@ const unknownIModelId = (req) => ({ iModelId: "undefined", key: req.parameters[0
|
|
|
56939
56939
|
/** The RPC interface for working with *snapshot* iModels.
|
|
56940
56940
|
* This interface is intended for desktop and mobile products. Web products are discouraged from registering this interface.
|
|
56941
56941
|
* @internal
|
|
56942
|
-
* @deprecated in 5.0 -
|
|
56942
|
+
* @deprecated in 5.0 - might be removed in next major version. Check [[IpcAppFunctions]] or [[CheckpointConnection]] for replacements.
|
|
56943
56943
|
*/
|
|
56944
56944
|
class SnapshotIModelRpcInterface extends _RpcInterface__WEBPACK_IMPORTED_MODULE_0__.RpcInterface {
|
|
56945
56945
|
/** Returns the SnapshotIModelRpcInterface client instance for the frontend. */
|
|
@@ -56955,15 +56955,15 @@ class SnapshotIModelRpcInterface extends _RpcInterface__WEBPACK_IMPORTED_MODULE_
|
|
|
56955
56955
|
NOTE: Please consult the README in this folder for the semantic versioning rules.
|
|
56956
56956
|
===========================================================================================*/
|
|
56957
56957
|
/**
|
|
56958
|
-
* @deprecated in 5.0 -
|
|
56958
|
+
* @deprecated in 5.0 - might be removed in next major version. Use [[IpcAppFunctions.openSnapshot]] in IPC applications, no replacement for Web applications.
|
|
56959
56959
|
*/
|
|
56960
56960
|
async openFile(_filePath, _opts) { return this.forward(arguments); }
|
|
56961
56961
|
/**
|
|
56962
|
-
* @deprecated in 4.10 -
|
|
56962
|
+
* @deprecated in 4.10 - might be removed in next major version. Use [[CheckpointConnection.openRemote]].
|
|
56963
56963
|
*/
|
|
56964
56964
|
async openRemote(_key, _opts) { return this.forward(arguments); }
|
|
56965
56965
|
/**
|
|
56966
|
-
* @deprecated in 5.0 -
|
|
56966
|
+
* @deprecated in 5.0 - might be removed in next major version. Use [[IpcAppFunctions.closeIModel]] in IPC applications, no replacement for Web applications.
|
|
56967
56967
|
*/
|
|
56968
56968
|
async close(_iModelRpcProps) { return this.forward(arguments); }
|
|
56969
56969
|
}
|
|
@@ -62026,7 +62026,7 @@ function computeChildTileProps(parent, idProvider, root) {
|
|
|
62026
62026
|
/** Deserializes tile content metadata.
|
|
62027
62027
|
* @throws [[TileReadError]]
|
|
62028
62028
|
* @internal
|
|
62029
|
-
* @deprecated in 4.0 -
|
|
62029
|
+
* @deprecated in 4.0 - might be removed in next major version. Use decodeTileContentDescription. I think tile agents (or their tests) are using this function.
|
|
62030
62030
|
*/
|
|
62031
62031
|
function readTileContentDescription(stream, sizeMultiplier, is2d, options, isVolumeClassifier) {
|
|
62032
62032
|
return decodeTileContentDescription({ stream, sizeMultiplier, is2d, options, isVolumeClassifier });
|
|
@@ -62456,7 +62456,7 @@ class SchemaContext {
|
|
|
62456
62456
|
/**
|
|
62457
62457
|
* Adds the given SchemaItem to the the SchemaContext by locating the schema, with the best match of SchemaMatchType.Exact, and
|
|
62458
62458
|
* @param schemaItem The SchemaItem to add
|
|
62459
|
-
* @deprecated in 4.0 -
|
|
62459
|
+
* @deprecated in 4.0 - might be removed in next major version. Use ecschema-editing package
|
|
62460
62460
|
*/
|
|
62461
62461
|
async addSchemaItem(schemaItem) {
|
|
62462
62462
|
const schema = await this.getSchema(schemaItem.key.schemaKey, _ECObjects__WEBPACK_IMPORTED_MODULE_0__.SchemaMatchType.Exact);
|
|
@@ -66044,7 +66044,7 @@ var SchemaMatchType;
|
|
|
66044
66044
|
(function (SchemaMatchType) {
|
|
66045
66045
|
/*
|
|
66046
66046
|
* Find exact VersionRead, VersionWrite, VersionMinor match as well as Data. NOTE data is not yet matched
|
|
66047
|
-
* @deprecated in 4.10 -
|
|
66047
|
+
* @deprecated in 4.10 - might be removed in next major version. Use Exact instead.
|
|
66048
66048
|
*/
|
|
66049
66049
|
SchemaMatchType[SchemaMatchType["Identical"] = 0] = "Identical";
|
|
66050
66050
|
/* Find exact VersionRead, VersionWrite, VersionMinor match. */
|
|
@@ -66144,7 +66144,7 @@ function parseSchemaItemType(type) {
|
|
|
66144
66144
|
* @param value The SchemaItemType to stringify.
|
|
66145
66145
|
* @return A string representing the provided SchemaItemType. If the type is not valid, an empty string is returned.
|
|
66146
66146
|
* @beta
|
|
66147
|
-
* @deprecated in 4.6.0 -
|
|
66147
|
+
* @deprecated in 4.6.0 - might be removed in next major version. SchemaItemType is a string enum so just use it directly
|
|
66148
66148
|
*/
|
|
66149
66149
|
function schemaItemTypeToString(value) {
|
|
66150
66150
|
return value; // TODO: Remove
|
|
@@ -70636,7 +70636,7 @@ class CustomAttributeClass extends _Class__WEBPACK_IMPORTED_MODULE_2__.ECClass {
|
|
|
70636
70636
|
static get schemaItemType() { return _ECObjects__WEBPACK_IMPORTED_MODULE_0__.SchemaItemType.CustomAttributeClass; }
|
|
70637
70637
|
_appliesTo;
|
|
70638
70638
|
/**
|
|
70639
|
-
* @deprecated in 4.8 -
|
|
70639
|
+
* @deprecated in 4.8 - might be removed in next major version. Use [[appliesTo]]
|
|
70640
70640
|
* */
|
|
70641
70641
|
get containerType() {
|
|
70642
70642
|
return this.appliesTo;
|
|
@@ -80193,9 +80193,7 @@ class AccuDraw {
|
|
|
80193
80193
|
if (point.y < 0.0)
|
|
80194
80194
|
adjustment = -adjustment;
|
|
80195
80195
|
angle += adjustment; // This is the angle measured from design x...
|
|
80196
|
-
|
|
80197
|
-
if (angle < 0)
|
|
80198
|
-
angle = (Math.PI * 2) + angle; // Negative bearings aren't valid?
|
|
80196
|
+
// core-quantity now applies the north-measured conversion itself (#9465); don't do it here too.
|
|
80199
80197
|
}
|
|
80200
80198
|
const formatterSpec = this.getAngleFormatter();
|
|
80201
80199
|
let formattedValue = angle.toString();
|
|
@@ -80235,10 +80233,8 @@ class AccuDraw {
|
|
|
80235
80233
|
case ItemField.ANGLE_Item:
|
|
80236
80234
|
parseResult = this.stringToAngle(input);
|
|
80237
80235
|
if (_itwin_core_quantity__WEBPACK_IMPORTED_MODULE_13__.Parser.isParsedQuantity(parseResult)) {
|
|
80238
|
-
|
|
80239
|
-
|
|
80240
|
-
else
|
|
80241
|
-
this._angle = parseResult.value;
|
|
80236
|
+
// core-quantity's Parser applies the north-measured conversion itself now (#9465).
|
|
80237
|
+
this._angle = parseResult.value;
|
|
80242
80238
|
break;
|
|
80243
80239
|
}
|
|
80244
80240
|
return _itwin_core_bentley__WEBPACK_IMPORTED_MODULE_0__.BentleyStatus.ERROR;
|
|
@@ -84667,7 +84663,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
84667
84663
|
* Use of this service requires an API key to be supplied via [[MapLayerOptions.BingMaps]] in the [[IModelAppOptions.mapLayerOptions]] passed to [[IModelApp.startup]].
|
|
84668
84664
|
* @public
|
|
84669
84665
|
* @extensions
|
|
84670
|
-
* @deprecated in 5.11.0. Provide a [[LocationProvider]] implementation via [[IModelAppOptions.geospatialProviders]].
|
|
84666
|
+
* @deprecated in 5.11.0 - will not be removed until after 2027-07-03. Provide a [[LocationProvider]] implementation via [[IModelAppOptions.geospatialProviders]].
|
|
84671
84667
|
* @note This class structurally satisfies [[LocationProvider]] but does not use an explicit `implements` clause
|
|
84672
84668
|
* because api-extractor forbids `@public` classes from referencing `@beta` interfaces (ae-incompatible-release-tags).
|
|
84673
84669
|
*/
|
|
@@ -90354,7 +90350,7 @@ class GraphicalEditingScope extends _BriefcaseTxns__WEBPACK_IMPORTED_MODULE_2__.
|
|
|
90354
90350
|
this._cleanup = undefined;
|
|
90355
90351
|
}
|
|
90356
90352
|
}
|
|
90357
|
-
/** @deprecated in 5.0 -
|
|
90353
|
+
/** @deprecated in 5.0 - might be removed in next major version. Use [Symbol.dispose] instead. */
|
|
90358
90354
|
dispose() {
|
|
90359
90355
|
this[Symbol.dispose]();
|
|
90360
90356
|
}
|
|
@@ -91824,14 +91820,14 @@ class IModelConnection extends _itwin_core_common__WEBPACK_IMPORTED_MODULE_1__.I
|
|
|
91824
91820
|
*/
|
|
91825
91821
|
onClose = new _itwin_core_bentley__WEBPACK_IMPORTED_MODULE_0__.BeEvent();
|
|
91826
91822
|
/** The font map for this IModelConnection. Only valid after calling #loadFontMap and waiting for the returned promise to be fulfilled.
|
|
91827
|
-
* @deprecated in 5.0.0 -
|
|
91823
|
+
* @deprecated in 5.0.0 - might be removed in next major version. If you need font Ids on the front-end for some reason, write an Ipc method that queries [IModelDb.fonts]($backend).
|
|
91828
91824
|
*/
|
|
91829
91825
|
fontMap; // eslint-disable-line @typescript-eslint/no-deprecated
|
|
91830
91826
|
_schemaContext;
|
|
91831
91827
|
_schemasPromise;
|
|
91832
91828
|
/** Load the FontMap for this IModelConnection.
|
|
91833
91829
|
* @returns Returns a Promise<FontMap> that is fulfilled when the FontMap member of this IModelConnection is valid.
|
|
91834
|
-
* @deprecated in 5.0.0 -
|
|
91830
|
+
* @deprecated in 5.0.0 - might be removed in next major version. If you need font Ids on the front-end for some reason, write an Ipc method that queries [IModelDb.fonts]($backend).
|
|
91835
91831
|
*/
|
|
91836
91832
|
async loadFontMap() {
|
|
91837
91833
|
if (undefined === this.fontMap) { // eslint-disable-line @typescript-eslint/no-deprecated
|
|
@@ -91955,7 +91951,7 @@ class IModelConnection extends _itwin_core_common__WEBPACK_IMPORTED_MODULE_1__.I
|
|
|
91955
91951
|
return this.isOpen ? this._snapRpc.request(props) : { status: 2 };
|
|
91956
91952
|
}
|
|
91957
91953
|
/** @internal
|
|
91958
|
-
* @deprecated in 4.8 -
|
|
91954
|
+
* @deprecated in 4.8 - might be removed in next major version. Use AccuSnap.doSnapRequest.
|
|
91959
91955
|
*/
|
|
91960
91956
|
async requestSnap(props) {
|
|
91961
91957
|
return this[_common_internal_Symbols__WEBPACK_IMPORTED_MODULE_12__._requestSnap](props);
|
|
@@ -91996,7 +91992,7 @@ class IModelConnection extends _itwin_core_common__WEBPACK_IMPORTED_MODULE_1__.I
|
|
|
91996
91992
|
return _itwin_core_common__WEBPACK_IMPORTED_MODULE_1__.IModelReadRpcInterface.getClientForRouting(this.routingContext.token).getMassProperties(this.getRpcProps(), requestProps);
|
|
91997
91993
|
}
|
|
91998
91994
|
/** Request mass properties for multiple elements from the backend.
|
|
91999
|
-
* @deprecated in 4.11 -
|
|
91995
|
+
* @deprecated in 4.11 - might be removed in next major version. Use [[IModelConnection.getMassProperties]].
|
|
92000
91996
|
*/
|
|
92001
91997
|
async getMassPropertiesPerCandidate(requestProps) {
|
|
92002
91998
|
return _itwin_core_common__WEBPACK_IMPORTED_MODULE_1__.IModelReadRpcInterface.getClientForRouting(this.routingContext.token).getMassPropertiesPerCandidate(this.getRpcProps(), requestProps);
|
|
@@ -92436,7 +92432,7 @@ class SnapshotConnection extends IModelConnection {
|
|
|
92436
92432
|
}
|
|
92437
92433
|
/** Open an IModelConnection to a remote read-only snapshot iModel from a key that will be resolved by the backend.
|
|
92438
92434
|
* @note This method is intended for web applications.
|
|
92439
|
-
* @deprecated in 4.10 -
|
|
92435
|
+
* @deprecated in 4.10 - might be removed in next major version. Use [[CheckpointConnection.openRemote]].
|
|
92440
92436
|
*/
|
|
92441
92437
|
static async openRemote(fileKey) {
|
|
92442
92438
|
const routingContext = _IModelRoutingContext__WEBPACK_IMPORTED_MODULE_6__.IModelRoutingContext.current || _IModelRoutingContext__WEBPACK_IMPORTED_MODULE_6__.IModelRoutingContext.default;
|
|
@@ -93021,7 +93017,7 @@ class SnapshotConnection extends IModelConnection {
|
|
|
93021
93017
|
* There is no guarantee that this view will be suitable for the purposes of any other applications.
|
|
93022
93018
|
* Most applications should ignore the default view and instead create a [[ViewState]] that fits their own requirements using APIs like [[ViewCreator3d]].
|
|
93023
93019
|
* @returns the Id of the default view as defined in the iModel's property table, or an invalid ID if no default view is defined.
|
|
93024
|
-
* @deprecated in 4.2 -
|
|
93020
|
+
* @deprecated in 4.2 - might be removed in next major version. Create a ViewState to your own specifications.
|
|
93025
93021
|
*/
|
|
93026
93022
|
async queryDefaultViewId() {
|
|
93027
93023
|
const iModel = this._iModel;
|
|
@@ -93411,7 +93407,7 @@ class IpcApp {
|
|
|
93411
93407
|
throw Object.assign(new _itwin_core_common__WEBPACK_IMPORTED_MODULE_1__.BackendError(err.errorNumber, err.iTwinErrorId.key, err.message, err.loggingMetadata), trimErr);
|
|
93412
93408
|
}
|
|
93413
93409
|
/** @internal
|
|
93414
|
-
* @deprecated in 4.8 -
|
|
93410
|
+
* @deprecated in 4.8 - might be removed in next major version. Use [[makeIpcProxy]] for a type-safe interface.
|
|
93415
93411
|
*/
|
|
93416
93412
|
static async callIpcChannel(channelName, methodName, ...args) {
|
|
93417
93413
|
return this[_common_internal_Symbols__WEBPACK_IMPORTED_MODULE_2__._callIpcChannel](channelName, methodName, ...args);
|
|
@@ -96718,7 +96714,7 @@ class HiliteSet {
|
|
|
96718
96714
|
/** Toggle the hilited state of one or more elements.
|
|
96719
96715
|
* @param arg the ID(s) of the elements whose state is to be toggled.
|
|
96720
96716
|
* @param onOff True to add the elements to the hilited set, false to remove them.
|
|
96721
|
-
* @deprecated in 5.0 -
|
|
96717
|
+
* @deprecated in 5.0 - might be removed in next major version. Use [[add]], [[remove]], [[replace]] instead.
|
|
96722
96718
|
*/
|
|
96723
96719
|
setHilite(arg, onOff) {
|
|
96724
96720
|
if (onOff) {
|
|
@@ -96786,14 +96782,14 @@ class SelectionSet {
|
|
|
96786
96782
|
}
|
|
96787
96783
|
/** Return true if elemId is in this `SelectionSet`.
|
|
96788
96784
|
* @see [[isSelected]]
|
|
96789
|
-
* @deprecated in 5.0 -
|
|
96785
|
+
* @deprecated in 5.0 - might be removed in next major version. Use `SelectionSet.elements.has(elemId)` instead.
|
|
96790
96786
|
*/
|
|
96791
96787
|
has(elemId) {
|
|
96792
96788
|
return !!elemId && this.elements.has(elemId);
|
|
96793
96789
|
}
|
|
96794
96790
|
/** Query whether an Id is in the selection set.
|
|
96795
96791
|
* @see [[has]]
|
|
96796
|
-
* @deprecated in 5.0 -
|
|
96792
|
+
* @deprecated in 5.0 - might be removed in next major version. Use `SelectionSet.elements.has(elemId)` instead.
|
|
96797
96793
|
*/
|
|
96798
96794
|
isSelected(elemId) {
|
|
96799
96795
|
return !!elemId && this.elements.has(elemId);
|
|
@@ -101073,7 +101069,7 @@ class ViewState extends _EntityState__WEBPACK_IMPORTED_MODULE_5__.ElementState {
|
|
|
101073
101069
|
/** Execute a function against each [[TileTreeReference]] associated with this view.
|
|
101074
101070
|
* This may include tile trees not associated with any [[GeometricModelState]] - e.g., context reality data.
|
|
101075
101071
|
* @note This method is inefficient (iteration cannot be aborted) and awkward (callback cannot be async nor return a value). Prefer to iterate using [[getTileTreeRefs]].
|
|
101076
|
-
* @deprecated in 5.0 -
|
|
101072
|
+
* @deprecated in 5.0 - might be removed in next major version. Use [[getTileTreeRefs]] instead.
|
|
101077
101073
|
*/
|
|
101078
101074
|
forEachTileTreeRef(func) {
|
|
101079
101075
|
for (const ref of this.getModelTreeRefs()) {
|
|
@@ -101471,11 +101467,10 @@ class ViewState extends _EntityState__WEBPACK_IMPORTED_MODULE_5__.ElementState {
|
|
|
101471
101467
|
origin.setFrom(vp.view.isSpatialView() ? vp.view.iModel.globalOrigin : _itwin_core_geometry__WEBPACK_IMPORTED_MODULE_1__.Point3d.create());
|
|
101472
101468
|
switch (orientation) {
|
|
101473
101469
|
case _itwin_core_common__WEBPACK_IMPORTED_MODULE_2__.GridOrientationType.View: {
|
|
101474
|
-
const
|
|
101475
|
-
vp.npcToWorld(centerWorld, centerWorld);
|
|
101470
|
+
const center = vp.npcToView(_itwin_core_common__WEBPACK_IMPORTED_MODULE_2__.NpcCenter);
|
|
101476
101471
|
rMatrix.setFrom(vp.rotation);
|
|
101477
|
-
rMatrix.
|
|
101478
|
-
origin.z =
|
|
101472
|
+
rMatrix.multiplyVectorInPlace(origin);
|
|
101473
|
+
origin.z = center.z;
|
|
101479
101474
|
rMatrix.multiplyTransposeVectorInPlace(origin);
|
|
101480
101475
|
break;
|
|
101481
101476
|
}
|
|
@@ -104171,7 +104166,7 @@ class Viewport {
|
|
|
104171
104166
|
this.onDisposed.raiseEvent(this);
|
|
104172
104167
|
this.detachFromView();
|
|
104173
104168
|
}
|
|
104174
|
-
/** @deprecated in 5.0 -
|
|
104169
|
+
/** @deprecated in 5.0 - might be removed in next major version. Use [Symbol.dispose] instead. */
|
|
104175
104170
|
dispose() {
|
|
104176
104171
|
this[Symbol.dispose]();
|
|
104177
104172
|
}
|
|
@@ -104572,7 +104567,7 @@ class Viewport {
|
|
|
104572
104567
|
}
|
|
104573
104568
|
}
|
|
104574
104569
|
/** Apply a function to every tile tree reference associated with the map layers displayed by this viewport.
|
|
104575
|
-
* @deprecated in 5.0 -
|
|
104570
|
+
* @deprecated in 5.0 - might be removed in next major version. Use [[mapTileTreeRefs]] instead.
|
|
104576
104571
|
*/
|
|
104577
104572
|
forEachMapTreeRef(func) {
|
|
104578
104573
|
if (this._mapTiledGraphicsProvider)
|
|
@@ -104584,7 +104579,7 @@ class Viewport {
|
|
|
104584
104579
|
}
|
|
104585
104580
|
;
|
|
104586
104581
|
/** Apply a function to every [[TileTreeReference]] displayed by this viewport.
|
|
104587
|
-
* @deprecated in 5.0 -
|
|
104582
|
+
* @deprecated in 5.0 - might be removed in next major version. Use [[getTileTreeRefs]] instead.
|
|
104588
104583
|
*/
|
|
104589
104584
|
forEachTileTreeRef(func) {
|
|
104590
104585
|
for (const ref of this.getTileTreeRefs()) {
|
|
@@ -105214,11 +105209,11 @@ class Viewport {
|
|
|
105214
105209
|
origin.setFrom(this.iModel.globalOrigin);
|
|
105215
105210
|
switch (this.view.getGridOrientation()) {
|
|
105216
105211
|
case _itwin_core_common__WEBPACK_IMPORTED_MODULE_2__.GridOrientationType.View: {
|
|
105217
|
-
const center = this.
|
|
105218
|
-
this.
|
|
105219
|
-
|
|
105212
|
+
const center = this.npcToView(_itwin_core_common__WEBPACK_IMPORTED_MODULE_2__.NpcCenter);
|
|
105213
|
+
rMatrix.setFrom(this.rotation);
|
|
105214
|
+
rMatrix.multiplyVectorInPlace(origin);
|
|
105220
105215
|
origin.z = center.z;
|
|
105221
|
-
|
|
105216
|
+
rMatrix.multiplyTransposeVectorInPlace(origin);
|
|
105222
105217
|
break;
|
|
105223
105218
|
}
|
|
105224
105219
|
case _itwin_core_common__WEBPACK_IMPORTED_MODULE_2__.GridOrientationType.WorldXY:
|
|
@@ -105242,24 +105237,24 @@ class Viewport {
|
|
|
105242
105237
|
eyeVec = this._viewingSpace.rotation.getRow(2);
|
|
105243
105238
|
eyeVec.normalizeInPlace();
|
|
105244
105239
|
(0,_LinePlaneIntersect__WEBPACK_IMPORTED_MODULE_12__.linePlaneIntersect)(point, point, eyeVec, origin, planeNormal, false);
|
|
105245
|
-
//
|
|
105246
|
-
const
|
|
105247
|
-
const
|
|
105248
|
-
|
|
105249
|
-
|
|
105240
|
+
// Get origin and point in the grid's local coordinate system.
|
|
105241
|
+
const pointGrid = point.clone();
|
|
105242
|
+
const originGrid = origin.clone();
|
|
105243
|
+
rMatrix.multiplyXYZtoXYZ(pointGrid, pointGrid);
|
|
105244
|
+
rMatrix.multiplyXYZtoXYZ(originGrid, originGrid);
|
|
105250
105245
|
// subtract off the origin
|
|
105251
|
-
|
|
105252
|
-
|
|
105246
|
+
pointGrid.y -= originGrid.y;
|
|
105247
|
+
pointGrid.x -= originGrid.x;
|
|
105253
105248
|
// round off the remainder to the grid distances
|
|
105254
105249
|
const gridSpacing = this.view.getGridSpacing();
|
|
105255
|
-
|
|
105256
|
-
|
|
105250
|
+
pointGrid.x = Viewport.roundGrid(pointGrid.x, gridSpacing.x);
|
|
105251
|
+
pointGrid.y = Viewport.roundGrid(pointGrid.y, gridSpacing.y);
|
|
105257
105252
|
// add the origin back in
|
|
105258
|
-
|
|
105259
|
-
|
|
105253
|
+
pointGrid.x += originGrid.x;
|
|
105254
|
+
pointGrid.y += originGrid.y;
|
|
105260
105255
|
// go back to root coordinate system
|
|
105261
|
-
|
|
105262
|
-
point.setFrom(
|
|
105256
|
+
rMatrix.multiplyTransposeVectorInPlace(pointGrid);
|
|
105257
|
+
point.setFrom(pointGrid);
|
|
105263
105258
|
}
|
|
105264
105259
|
/** @internal */
|
|
105265
105260
|
pointToGrid(point) {
|
|
@@ -114703,6 +114698,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
114703
114698
|
/* harmony export */ AccuDrawRotateCycleTool: () => (/* reexport safe */ _tools_AccuDrawTool__WEBPACK_IMPORTED_MODULE_102__.AccuDrawRotateCycleTool),
|
|
114704
114699
|
/* harmony export */ AccuDrawRotateElementTool: () => (/* reexport safe */ _tools_AccuDrawTool__WEBPACK_IMPORTED_MODULE_102__.AccuDrawRotateElementTool),
|
|
114705
114700
|
/* harmony export */ AccuDrawRotateFrontTool: () => (/* reexport safe */ _tools_AccuDrawTool__WEBPACK_IMPORTED_MODULE_102__.AccuDrawRotateFrontTool),
|
|
114701
|
+
/* harmony export */ AccuDrawRotatePointsTool: () => (/* reexport safe */ _tools_AccuDrawTool__WEBPACK_IMPORTED_MODULE_102__.AccuDrawRotatePointsTool),
|
|
114706
114702
|
/* harmony export */ AccuDrawRotateSideTool: () => (/* reexport safe */ _tools_AccuDrawTool__WEBPACK_IMPORTED_MODULE_102__.AccuDrawRotateSideTool),
|
|
114707
114703
|
/* harmony export */ AccuDrawRotateTopTool: () => (/* reexport safe */ _tools_AccuDrawTool__WEBPACK_IMPORTED_MODULE_102__.AccuDrawRotateTopTool),
|
|
114708
114704
|
/* harmony export */ AccuDrawRotateViewTool: () => (/* reexport safe */ _tools_AccuDrawTool__WEBPACK_IMPORTED_MODULE_102__.AccuDrawRotateViewTool),
|
|
@@ -119129,7 +119125,7 @@ class AtmosphereUniforms {
|
|
|
119129
119125
|
return true;
|
|
119130
119126
|
}
|
|
119131
119127
|
[Symbol.dispose]() { }
|
|
119132
|
-
/** @deprecated in 5.0 -
|
|
119128
|
+
/** @deprecated in 5.0 - might be removed in next major version. Use [Symbol.dispose] instead. */
|
|
119133
119129
|
dispose() {
|
|
119134
119130
|
this[Symbol.dispose]();
|
|
119135
119131
|
}
|
|
@@ -119215,7 +119211,7 @@ class BuffersContainer {
|
|
|
119215
119211
|
this._context = context;
|
|
119216
119212
|
this._vao = new VAOHandle(this._context);
|
|
119217
119213
|
}
|
|
119218
|
-
/** @deprecated in 5.0 -
|
|
119214
|
+
/** @deprecated in 5.0 - might be removed in next major version. Use [Symbol.dispose] instead. */
|
|
119219
119215
|
dispose() {
|
|
119220
119216
|
this[Symbol.dispose]();
|
|
119221
119217
|
}
|
|
@@ -119277,7 +119273,7 @@ class VAOHandle {
|
|
|
119277
119273
|
(0,_itwin_core_bentley__WEBPACK_IMPORTED_MODULE_0__.assert)(!this.isDisposed);
|
|
119278
119274
|
}
|
|
119279
119275
|
get isDisposed() { return this._arrayObject === undefined; }
|
|
119280
|
-
/** @deprecated in 5.0 -
|
|
119276
|
+
/** @deprecated in 5.0 - might be removed in next major version. Use [Symbol.dispose] instead. */
|
|
119281
119277
|
dispose() {
|
|
119282
119278
|
this[Symbol.dispose]();
|
|
119283
119279
|
}
|
|
@@ -122024,7 +122020,7 @@ class ClippingProgram {
|
|
|
122024
122020
|
[Symbol.dispose]() {
|
|
122025
122021
|
this._program = (0,_itwin_core_bentley__WEBPACK_IMPORTED_MODULE_0__.dispose)(this._program);
|
|
122026
122022
|
}
|
|
122027
|
-
/** @deprecated in 5.0 -
|
|
122023
|
+
/** @deprecated in 5.0 - might be removed in next major version. Use [Symbol.dispose] instead. */
|
|
122028
122024
|
dispose() {
|
|
122029
122025
|
this[Symbol.dispose]();
|
|
122030
122026
|
}
|
|
@@ -134152,7 +134148,7 @@ class ShaderProgram {
|
|
|
134152
134148
|
this._status = 2 /* CompileStatus.Uncompiled */;
|
|
134153
134149
|
}
|
|
134154
134150
|
}
|
|
134155
|
-
/** @deprecated in 5.0 -
|
|
134151
|
+
/** @deprecated in 5.0 - might be removed in next major version. Use [Symbol.dispose] instead. */
|
|
134156
134152
|
dispose() {
|
|
134157
134153
|
this[Symbol.dispose]();
|
|
134158
134154
|
}
|
|
@@ -134621,7 +134617,7 @@ class ShaderProgramExecutor {
|
|
|
134621
134617
|
ShaderProgramExecutor.freeParams();
|
|
134622
134618
|
this._isDisposed = true;
|
|
134623
134619
|
}
|
|
134624
|
-
/** @deprecated in 5.0 -
|
|
134620
|
+
/** @deprecated in 5.0 - might be removed in next major version. Use [Symbol.dispose] instead. */
|
|
134625
134621
|
dispose() {
|
|
134626
134622
|
this[Symbol.dispose]();
|
|
134627
134623
|
}
|
|
@@ -138262,7 +138258,7 @@ class SingularTechnique {
|
|
|
138262
138258
|
[Symbol.dispose]() {
|
|
138263
138259
|
this.program[Symbol.dispose]();
|
|
138264
138260
|
}
|
|
138265
|
-
/** @deprecated in 5.0 -
|
|
138261
|
+
/** @deprecated in 5.0 - might be removed in next major version. Use [Symbol.dispose] instead. */
|
|
138266
138262
|
dispose() {
|
|
138267
138263
|
this[Symbol.dispose]();
|
|
138268
138264
|
}
|
|
@@ -138319,7 +138315,7 @@ class VariedTechnique {
|
|
|
138319
138315
|
this._clippingPrograms.length = 0;
|
|
138320
138316
|
this._isDisposed = true;
|
|
138321
138317
|
}
|
|
138322
|
-
/** @deprecated in 5.0 -
|
|
138318
|
+
/** @deprecated in 5.0 - might be removed in next major version. Use [Symbol.dispose] instead. */
|
|
138323
138319
|
dispose() {
|
|
138324
138320
|
this[Symbol.dispose]();
|
|
138325
138321
|
}
|
|
@@ -139026,7 +139022,7 @@ class Techniques {
|
|
|
139026
139022
|
(0,_itwin_core_bentley__WEBPACK_IMPORTED_MODULE_0__.dispose)(tech);
|
|
139027
139023
|
this._list.length = 0;
|
|
139028
139024
|
}
|
|
139029
|
-
/** @deprecated in 5.0 -
|
|
139025
|
+
/** @deprecated in 5.0 - might be removed in next major version. Use [Symbol.dispose] instead. */
|
|
139030
139026
|
dispose() {
|
|
139031
139027
|
this[Symbol.dispose]();
|
|
139032
139028
|
}
|
|
@@ -155319,7 +155315,7 @@ class RealityTreeReference extends RealityModelTileTree.Reference {
|
|
|
155319
155315
|
div.innerHTML = strings.join("<br>");
|
|
155320
155316
|
return div;
|
|
155321
155317
|
}
|
|
155322
|
-
/** @deprecated in 5.0 -
|
|
155318
|
+
/** @deprecated in 5.0 - might be removed in next major version. Use [addAttributions] instead. */
|
|
155323
155319
|
addLogoCards(cards) {
|
|
155324
155320
|
if (this._rdSourceKey.provider === _itwin_core_common__WEBPACK_IMPORTED_MODULE_1__.RealityDataProvider.CesiumIonAsset && !cards.dataset.openStreetMapLogoCard) {
|
|
155325
155321
|
cards.dataset.openStreetMapLogoCard = "true";
|
|
@@ -157136,7 +157132,7 @@ class ArcGISMapLayerImageryProvider extends _tile_internal__WEBPACK_IMPORTED_MOD
|
|
|
157136
157132
|
}
|
|
157137
157133
|
}
|
|
157138
157134
|
}
|
|
157139
|
-
/** @deprecated in 5.0 -
|
|
157135
|
+
/** @deprecated in 5.0 - might be removed in next major version. Use [addAttributions] instead. */
|
|
157140
157136
|
addLogoCards(cards) {
|
|
157141
157137
|
if (!cards.dataset.arcGisLogoCard) {
|
|
157142
157138
|
cards.dataset.arcGisLogoCard = "true";
|
|
@@ -157421,7 +157417,7 @@ class BingAttribution {
|
|
|
157421
157417
|
function replaceHttpWithHttps(originalUrl) {
|
|
157422
157418
|
return originalUrl.startsWith("http:") ? "https:".concat(originalUrl.slice(5)) : originalUrl;
|
|
157423
157419
|
}
|
|
157424
|
-
/** @deprecated in 5.11.0. Bing Maps imagery is deprecated. For basemap imagery providers, see `@itwin/map-layers-formats`. */
|
|
157420
|
+
/** @deprecated in 5.11.0 - will not be removed until after 2027-07-03. Bing Maps imagery is deprecated. For basemap imagery providers, see `@itwin/map-layers-formats`. */
|
|
157425
157421
|
class BingMapsImageryLayerProvider extends _tile_internal__WEBPACK_IMPORTED_MODULE_3__.MapLayerImageryProvider {
|
|
157426
157422
|
_urlTemplate;
|
|
157427
157423
|
_urlSubdomains;
|
|
@@ -157490,7 +157486,7 @@ class BingMapsImageryLayerProvider extends _tile_internal__WEBPACK_IMPORTED_MODU
|
|
|
157490
157486
|
}
|
|
157491
157487
|
return matchingAttributions;
|
|
157492
157488
|
}
|
|
157493
|
-
/** @deprecated in 5.0 -
|
|
157489
|
+
/** @deprecated in 5.0 - might be removed in next major version. Use [addAttributions] instead. */
|
|
157494
157490
|
addLogoCards(cards, vp) {
|
|
157495
157491
|
const tiles = _IModelApp__WEBPACK_IMPORTED_MODULE_2__.IModelApp.tileAdmin.getTilesForUser(vp)?.selected;
|
|
157496
157492
|
const matchingAttributions = this.getMatchingAttributions(tiles);
|
|
@@ -157947,7 +157943,7 @@ class MapBoxLayerImageryProvider extends _tile_internal__WEBPACK_IMPORTED_MODULE
|
|
|
157947
157943
|
url = url.concat(`?${this._settings.accessKey.key}=${this._settings.accessKey.value}`);
|
|
157948
157944
|
return url;
|
|
157949
157945
|
}
|
|
157950
|
-
/** @deprecated in 5.0 -
|
|
157946
|
+
/** @deprecated in 5.0 - might be removed in next major version. Use [addAttributions] instead. */
|
|
157951
157947
|
addLogoCards(cards) {
|
|
157952
157948
|
if (!cards.dataset.mapboxLogoCard) {
|
|
157953
157949
|
cards.dataset.mapboxLogoCard = "true";
|
|
@@ -159684,7 +159680,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
159684
159680
|
|
|
159685
159681
|
/**
|
|
159686
159682
|
* Angle Property Description
|
|
159687
|
-
* @deprecated in 5.11.0. This appui-based quantity description API is deprecated. Use [createQuantityDescription]($frontend) to build a plain [PropertyDescription]($appui-abstract) with synchronous quantity formatting callbacks backed by [IModelApp.quantityFormatter]($frontend).
|
|
159683
|
+
* @deprecated in 5.11.0 - will not be removed until after 2027-07-03. This appui-based quantity description API is deprecated. Use [createQuantityDescription]($frontend) to build a plain [PropertyDescription]($appui-abstract) with synchronous quantity formatting callbacks backed by [IModelApp.quantityFormatter]($frontend).
|
|
159688
159684
|
* @beta
|
|
159689
159685
|
*/
|
|
159690
159686
|
// eslint-disable-next-line @typescript-eslint/no-deprecated
|
|
@@ -159701,7 +159697,7 @@ class AngleDescription extends _FormattedQuantityDescription__WEBPACK_IMPORTED_M
|
|
|
159701
159697
|
}
|
|
159702
159698
|
get formatterQuantityType() { return _quantity_formatting_QuantityFormatter__WEBPACK_IMPORTED_MODULE_1__.QuantityType.Angle; }
|
|
159703
159699
|
/**
|
|
159704
|
-
* @deprecated in 5.0 -
|
|
159700
|
+
* @deprecated in 5.0 - might be removed in next major version. Use the `kindOfQuantityName` property instead.
|
|
159705
159701
|
*/
|
|
159706
159702
|
get quantityType() { return "Angle"; }
|
|
159707
159703
|
get parseError() { return _IModelApp__WEBPACK_IMPORTED_MODULE_0__.IModelApp.localization.getLocalizedString("iModelJs:Properties.UnableToParseAngle"); }
|
|
@@ -159770,7 +159766,7 @@ function createQuantityDescription(props) {
|
|
|
159770
159766
|
}
|
|
159771
159767
|
/**
|
|
159772
159768
|
* Base Quantity Property Description
|
|
159773
|
-
* @deprecated in 5.11.0. This appui-based quantity description API is deprecated. Use [createQuantityDescription]($frontend) to build a plain [PropertyDescription]($appui-abstract) with synchronous quantity formatting callbacks backed by [IModelApp.quantityFormatter]($frontend).
|
|
159769
|
+
* @deprecated in 5.11.0 - will not be removed until after 2027-07-03. This appui-based quantity description API is deprecated. Use [createQuantityDescription]($frontend) to build a plain [PropertyDescription]($appui-abstract) with synchronous quantity formatting callbacks backed by [IModelApp.quantityFormatter]($frontend).
|
|
159774
159770
|
* @beta
|
|
159775
159771
|
*/
|
|
159776
159772
|
class FormattedQuantityDescription extends _itwin_appui_abstract__WEBPACK_IMPORTED_MODULE_1__.BaseQuantityDescription {
|
|
@@ -159857,7 +159853,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
159857
159853
|
|
|
159858
159854
|
/**
|
|
159859
159855
|
* Length Property Description
|
|
159860
|
-
* @deprecated in 5.11.0. This appui-based quantity description API is deprecated. Use [createQuantityDescription]($frontend) to build a plain [PropertyDescription]($appui-abstract) with synchronous quantity formatting callbacks backed by [IModelApp.quantityFormatter]($frontend).
|
|
159856
|
+
* @deprecated in 5.11.0 - will not be removed until after 2027-07-03. This appui-based quantity description API is deprecated. Use [createQuantityDescription]($frontend) to build a plain [PropertyDescription]($appui-abstract) with synchronous quantity formatting callbacks backed by [IModelApp.quantityFormatter]($frontend).
|
|
159861
159857
|
* @beta
|
|
159862
159858
|
*/
|
|
159863
159859
|
// eslint-disable-next-line @typescript-eslint/no-deprecated
|
|
@@ -159874,14 +159870,14 @@ class LengthDescription extends _FormattedQuantityDescription__WEBPACK_IMPORTED_
|
|
|
159874
159870
|
}
|
|
159875
159871
|
get formatterQuantityType() { return _quantity_formatting_QuantityFormatter__WEBPACK_IMPORTED_MODULE_1__.QuantityType.Length; }
|
|
159876
159872
|
/**
|
|
159877
|
-
* @deprecated in 5.0 -
|
|
159873
|
+
* @deprecated in 5.0 - might be removed in next major version. Use the `kindOfQuantityName` property instead.
|
|
159878
159874
|
*/
|
|
159879
159875
|
get quantityType() { return "Length"; }
|
|
159880
159876
|
get parseError() { return _IModelApp__WEBPACK_IMPORTED_MODULE_0__.IModelApp.localization.getLocalizedString("iModelJs:Properties.UnableToParseLength"); }
|
|
159881
159877
|
}
|
|
159882
159878
|
/**
|
|
159883
159879
|
* Survey Length Property Description
|
|
159884
|
-
* @deprecated in 5.11.0. This appui-based quantity description API is deprecated. Use [createQuantityDescription]($frontend) in new code. To preserve survey-length behavior, configure a dedicated [FormatsProvider]($quantity) such as [FormatSetFormatsProvider]($ecschema-metadata).
|
|
159880
|
+
* @deprecated in 5.11.0 - will not be removed until after 2027-07-03. This appui-based quantity description API is deprecated. Use [createQuantityDescription]($frontend) in new code. To preserve survey-length behavior, configure a dedicated [FormatsProvider]($quantity) such as [FormatSetFormatsProvider]($ecschema-metadata).
|
|
159885
159881
|
* @beta
|
|
159886
159882
|
*/
|
|
159887
159883
|
// eslint-disable-next-line @typescript-eslint/no-deprecated
|
|
@@ -159898,14 +159894,14 @@ class SurveyLengthDescription extends _FormattedQuantityDescription__WEBPACK_IMP
|
|
|
159898
159894
|
}
|
|
159899
159895
|
get formatterQuantityType() { return _quantity_formatting_QuantityFormatter__WEBPACK_IMPORTED_MODULE_1__.QuantityType.LengthSurvey; }
|
|
159900
159896
|
/**
|
|
159901
|
-
* @deprecated in 5.0 -
|
|
159897
|
+
* @deprecated in 5.0 - might be removed in next major version. Use the `kindOfQuantityName` property instead.
|
|
159902
159898
|
*/
|
|
159903
159899
|
get quantityType() { return "LengthSurvey"; }
|
|
159904
159900
|
get parseError() { return _IModelApp__WEBPACK_IMPORTED_MODULE_0__.IModelApp.localization.getLocalizedString("iModelJs:Properties.UnableToParseLength"); }
|
|
159905
159901
|
}
|
|
159906
159902
|
/**
|
|
159907
159903
|
* Engineering Length Property Description
|
|
159908
|
-
* @deprecated in 5.11.0. This appui-based quantity description API is deprecated. Use [createQuantityDescription]($frontend) to build a plain [PropertyDescription]($appui-abstract) with synchronous quantity formatting callbacks backed by [IModelApp.quantityFormatter]($frontend).
|
|
159904
|
+
* @deprecated in 5.11.0 - will not be removed until after 2027-07-03. This appui-based quantity description API is deprecated. Use [createQuantityDescription]($frontend) to build a plain [PropertyDescription]($appui-abstract) with synchronous quantity formatting callbacks backed by [IModelApp.quantityFormatter]($frontend).
|
|
159909
159905
|
* @beta
|
|
159910
159906
|
*/
|
|
159911
159907
|
// eslint-disable-next-line @typescript-eslint/no-deprecated
|
|
@@ -159922,7 +159918,7 @@ class EngineeringLengthDescription extends _FormattedQuantityDescription__WEBPAC
|
|
|
159922
159918
|
}
|
|
159923
159919
|
get formatterQuantityType() { return _quantity_formatting_QuantityFormatter__WEBPACK_IMPORTED_MODULE_1__.QuantityType.LengthEngineering; }
|
|
159924
159920
|
/**
|
|
159925
|
-
* @deprecated in 5.0 -
|
|
159921
|
+
* @deprecated in 5.0 - might be removed in next major version. Use the `kindOfQuantityName` property instead.
|
|
159926
159922
|
*/
|
|
159927
159923
|
get quantityType() { return "LengthEngineering"; }
|
|
159928
159924
|
get parseError() { return _IModelApp__WEBPACK_IMPORTED_MODULE_0__.IModelApp.localization.getLocalizedString("iModelJs:Properties.UnableToParseLength"); }
|
|
@@ -161877,7 +161873,7 @@ class Decorations {
|
|
|
161877
161873
|
this.viewOverlay = undefined;
|
|
161878
161874
|
this.normal = undefined;
|
|
161879
161875
|
}
|
|
161880
|
-
/** @deprecated in 5.0 -
|
|
161876
|
+
/** @deprecated in 5.0 - might be removed in next major version. Use [Symbol.dispose] instead. */
|
|
161881
161877
|
dispose() {
|
|
161882
161878
|
this[Symbol.dispose]();
|
|
161883
161879
|
}
|
|
@@ -162178,7 +162174,7 @@ class GraphicBranch {
|
|
|
162178
162174
|
[Symbol.dispose]() {
|
|
162179
162175
|
this.clear();
|
|
162180
162176
|
}
|
|
162181
|
-
/** @deprecated in 5.0 -
|
|
162177
|
+
/** @deprecated in 5.0 - might be removed in next major version. Use [Symbol.dispose] instead. */
|
|
162182
162178
|
dispose() {
|
|
162183
162179
|
this[Symbol.dispose]();
|
|
162184
162180
|
}
|
|
@@ -168206,7 +168202,7 @@ class Tile {
|
|
|
168206
168202
|
this._state = 5 /* TileState.Abandoned */;
|
|
168207
168203
|
this.disposeChildren();
|
|
168208
168204
|
}
|
|
168209
|
-
/** @deprecated in 5.0 -
|
|
168205
|
+
/** @deprecated in 5.0 - might be removed in next major version. Use [Symbol.dispose] instead. */
|
|
168210
168206
|
dispose() {
|
|
168211
168207
|
this[Symbol.dispose]();
|
|
168212
168208
|
}
|
|
@@ -170885,7 +170881,7 @@ class TileTree {
|
|
|
170885
170881
|
this._isDisposed = true;
|
|
170886
170882
|
(0,_itwin_core_bentley__WEBPACK_IMPORTED_MODULE_0__.dispose)(this.rootTile);
|
|
170887
170883
|
}
|
|
170888
|
-
/** @deprecated in 5.0 -
|
|
170884
|
+
/** @deprecated in 5.0 - might be removed in next major version. Use [Symbol.dispose] instead. */
|
|
170889
170885
|
dispose() {
|
|
170890
170886
|
this[Symbol.dispose]();
|
|
170891
170887
|
}
|
|
@@ -171224,7 +171220,7 @@ class TileTreeReference /* implements RenderMemory.Consumer */ {
|
|
|
171224
171220
|
* @beta
|
|
171225
171221
|
*/
|
|
171226
171222
|
get planarClipMaskPriority() { return _itwin_core_common__WEBPACK_IMPORTED_MODULE_2__.PlanarClipMaskPriority.DesignModel; }
|
|
171227
|
-
/** @deprecated in 5.0 -
|
|
171223
|
+
/** @deprecated in 5.0 - might be removed in next major version. Use [addAttributions] instead. */
|
|
171228
171224
|
addLogoCards(_cards, _vp) { }
|
|
171229
171225
|
/** Add attribution logo cards for the tile tree source logo cards to the viewport's logo div.
|
|
171230
171226
|
* @beta
|
|
@@ -171892,7 +171888,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
171892
171888
|
* passed to [[IModelApp.startup]].
|
|
171893
171889
|
* @public
|
|
171894
171890
|
* @extensions
|
|
171895
|
-
* @deprecated in 5.11.0. Provide an [[ElevationProvider]] and [[GeoidProvider]] implementation via [[IModelAppOptions.geospatialProviders]].
|
|
171891
|
+
* @deprecated in 5.11.0 - will not be removed until after 2027-07-03. Provide an [[ElevationProvider]] and [[GeoidProvider]] implementation via [[IModelAppOptions.geospatialProviders]].
|
|
171896
171892
|
* @note This class structurally satisfies both [[ElevationProvider]] and [[GeoidProvider]] but does not use an explicit
|
|
171897
171893
|
* `implements` clause because api-extractor forbids `@public` classes from referencing `@beta` interfaces (ae-incompatible-release-tags).
|
|
171898
171894
|
*/
|
|
@@ -171968,14 +171964,14 @@ class BingElevationProvider {
|
|
|
171968
171964
|
}
|
|
171969
171965
|
/** Get the height (altitude) at a given iModel coordinate. The height is geodetic (WGS84 ellipsoid)
|
|
171970
171966
|
* If geodetic is true (the default) then height is returned in the Ellipsoidal WGS84 datum. If geodetic is false then sea level height is returned using the Earth Gravitational Model 2008 (EGM2008 2.5').
|
|
171971
|
-
* @deprecated in 5.11.0. Use [[ElevationProvider.getHeight]] via [[IModelApp.elevationProvider]] instead.
|
|
171967
|
+
* @deprecated in 5.11.0 - will not be removed until after 2027-07-03. Use [[ElevationProvider.getHeight]] via [[IModelApp.elevationProvider]] instead.
|
|
171972
171968
|
* @public
|
|
171973
171969
|
*/
|
|
171974
171970
|
async getHeightValue(point, iModel, geodetic = true) {
|
|
171975
171971
|
return this.getHeight(iModel.spatialToCartographicFromEcef(point), geodetic);
|
|
171976
171972
|
}
|
|
171977
171973
|
/** Get the height (altitude) range for a given iModel project extents. The height values are geodetic (WGS84 ellipsoid).
|
|
171978
|
-
* @deprecated in 5.11.0. Use standalone [[getHeightRange]] function instead.
|
|
171974
|
+
* @deprecated in 5.11.0 - will not be removed until after 2027-07-03. Use standalone [[getHeightRange]] function instead.
|
|
171979
171975
|
* @public
|
|
171980
171976
|
*/
|
|
171981
171977
|
async getHeightRange(iModel) {
|
|
@@ -171991,7 +171987,7 @@ class BingElevationProvider {
|
|
|
171991
171987
|
return heights ? _itwin_core_geometry__WEBPACK_IMPORTED_MODULE_3__.Range1d.createArray(heights) : _itwin_core_geometry__WEBPACK_IMPORTED_MODULE_3__.Range1d.createNull();
|
|
171992
171988
|
}
|
|
171993
171989
|
/** Get the average height (altitude) for a given iModel project extents. The height values are geodetic (WGS84 ellipsoid).
|
|
171994
|
-
* @deprecated in 5.11.0. Use standalone [[getHeightAverage]] function instead.
|
|
171990
|
+
* @deprecated in 5.11.0 - will not be removed until after 2027-07-03. Use standalone [[getHeightAverage]] function instead.
|
|
171995
171991
|
* @public
|
|
171996
171992
|
*/
|
|
171997
171993
|
async getHeightAverage(iModel) {
|
|
@@ -172233,7 +172229,7 @@ class CesiumTerrainProvider extends _internal__WEBPACK_IMPORTED_MODULE_8__.Terra
|
|
|
172233
172229
|
this._iTwinId = opts.iTwinId;
|
|
172234
172230
|
this._tokenTimeOut = _itwin_core_bentley__WEBPACK_IMPORTED_MODULE_0__.BeTimePoint.now().plus(computeCesiumTokenTimeoutInterval(expiresAt));
|
|
172235
172231
|
}
|
|
172236
|
-
/** @deprecated in 5.0 -
|
|
172232
|
+
/** @deprecated in 5.0 - might be removed in next major version. Use [addAttributions] instead. */
|
|
172237
172233
|
addLogoCards(cards) {
|
|
172238
172234
|
if (cards.dataset.cesiumIonLogoCard)
|
|
172239
172235
|
return;
|
|
@@ -172866,7 +172862,7 @@ class ImageryMapTileTree extends _internal__WEBPACK_IMPORTED_MODULE_4__.RealityT
|
|
|
172866
172862
|
this._rootTile = new ImageryMapTile(params.rootTile, this, rootQuadId, this.getTileRectangle(rootQuadId));
|
|
172867
172863
|
}
|
|
172868
172864
|
get tilingScheme() { return this._imageryLoader.imageryProvider.tilingScheme; }
|
|
172869
|
-
/** @deprecated in 5.0 -
|
|
172865
|
+
/** @deprecated in 5.0 - might be removed in next major version. Use [addAttributions] instead. */
|
|
172870
172866
|
addLogoCards(cards, vp) {
|
|
172871
172867
|
// eslint-disable-next-line @typescript-eslint/no-deprecated
|
|
172872
172868
|
this._imageryLoader.addLogoCards(cards, vp);
|
|
@@ -172920,7 +172916,7 @@ class ImageryTileLoader extends _internal__WEBPACK_IMPORTED_MODULE_4__.RealityTi
|
|
|
172920
172916
|
get maxDepth() { return this._imageryProvider.maximumZoomLevel; }
|
|
172921
172917
|
get minDepth() { return this._imageryProvider.minimumZoomLevel; }
|
|
172922
172918
|
get priority() { return _internal__WEBPACK_IMPORTED_MODULE_4__.TileLoadPriority.Map; }
|
|
172923
|
-
/** @deprecated in 5.0 -
|
|
172919
|
+
/** @deprecated in 5.0 - might be removed in next major version. Use [addAttributions] instead. */
|
|
172924
172920
|
addLogoCards(cards, vp) {
|
|
172925
172921
|
// eslint-disable-next-line @typescript-eslint/no-deprecated
|
|
172926
172922
|
this._imageryProvider.addLogoCards(cards, vp);
|
|
@@ -173680,7 +173676,7 @@ class ArcGISMapLayerFormat extends ImageryMapLayerFormat {
|
|
|
173680
173676
|
return new _internal__WEBPACK_IMPORTED_MODULE_0__.ArcGISMapLayerImageryProvider(settings);
|
|
173681
173677
|
}
|
|
173682
173678
|
}
|
|
173683
|
-
/** @deprecated in 5.11.0. Bing Maps imagery is deprecated. For basemap imagery providers, see `@itwin/map-layers-formats`. */
|
|
173679
|
+
/** @deprecated in 5.11.0 - will not be removed until after 2027-07-03. Bing Maps imagery is deprecated. For basemap imagery providers, see `@itwin/map-layers-formats`. */
|
|
173684
173680
|
class BingMapsMapLayerFormat extends ImageryMapLayerFormat {
|
|
173685
173681
|
static formatId = "BingMaps";
|
|
173686
173682
|
static createImageryProvider(settings) {
|
|
@@ -173848,7 +173844,7 @@ class MapLayerImageryProvider {
|
|
|
173848
173844
|
});
|
|
173849
173845
|
}
|
|
173850
173846
|
get tilingScheme() { return this.useGeographicTilingScheme ? this._geographicTilingScheme : this._mercatorTilingScheme; }
|
|
173851
|
-
/** @deprecated in 5.0 -
|
|
173847
|
+
/** @deprecated in 5.0 - might be removed in next major version. Use [addAttributions] instead. */
|
|
173852
173848
|
addLogoCards(_cards, _viewport) { }
|
|
173853
173849
|
/**
|
|
173854
173850
|
* Add attribution logo cards for the data supplied by this provider to the [[Viewport]]'s logo div.
|
|
@@ -176273,7 +176269,7 @@ class MapTileTreeReference extends _internal__WEBPACK_IMPORTED_MODULE_7__.TileTr
|
|
|
176273
176269
|
}
|
|
176274
176270
|
return info;
|
|
176275
176271
|
}
|
|
176276
|
-
/** @deprecated in 5.0 -
|
|
176272
|
+
/** @deprecated in 5.0 - might be removed in next major version. Use [addAttributions] instead. */
|
|
176277
176273
|
addLogoCards(cards, vp) {
|
|
176278
176274
|
const tree = this.treeOwner.tileTree;
|
|
176279
176275
|
if (tree) {
|
|
@@ -176913,7 +176909,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
176913
176909
|
* @public
|
|
176914
176910
|
*/
|
|
176915
176911
|
class TerrainMeshProvider {
|
|
176916
|
-
/** @deprecated in 5.0 -
|
|
176912
|
+
/** @deprecated in 5.0 - might be removed in next major version. Use [addAttributions] instead. */
|
|
176917
176913
|
addLogoCards(_cards, _vp) { }
|
|
176918
176914
|
/** Add attribution logo cards for the terrain data supplied by this provider to the [[Viewport]]'s logo div.
|
|
176919
176915
|
* For example, a provider that produces meshes from [Bing Maps](https://docs.microsoft.com/en-us/bingmaps/rest-services/elevations/) would be required to
|
|
@@ -177082,8 +177078,10 @@ class AccuDrawShortcutInputCollector extends _Tool__WEBPACK_IMPORTED_MODULE_2__.
|
|
|
177082
177078
|
_IModelApp__WEBPACK_IMPORTED_MODULE_1__.IModelApp.accuDraw.requestInputFocus(); // re-grab focus when auto-focus tool setting set...
|
|
177083
177079
|
}
|
|
177084
177080
|
async onDataButtonDown(ev) {
|
|
177085
|
-
if (this._impl.doDataButtonDown(ev))
|
|
177081
|
+
if (this._impl.doDataButtonDown(ev)) {
|
|
177082
|
+
_IModelApp__WEBPACK_IMPORTED_MODULE_1__.IModelApp.accuDraw.processHints(); // Process pending hints pre-exit so they don't override savedState "ignoreFlags"...
|
|
177086
177083
|
await this.exitTool();
|
|
177084
|
+
}
|
|
177087
177085
|
return _Tool__WEBPACK_IMPORTED_MODULE_2__.EventHandled.No;
|
|
177088
177086
|
}
|
|
177089
177087
|
async onUnsuspend() {
|
|
@@ -177121,8 +177119,10 @@ class AccuDrawShortcutViewTool extends _ViewTool__WEBPACK_IMPORTED_MODULE_3__.Vi
|
|
|
177121
177119
|
_IModelApp__WEBPACK_IMPORTED_MODULE_1__.IModelApp.accuDraw.requestInputFocus(); // re-grab focus when auto-focus tool setting set...
|
|
177122
177120
|
}
|
|
177123
177121
|
async onDataButtonDown(ev) {
|
|
177124
|
-
if (this._impl.doDataButtonDown(ev))
|
|
177122
|
+
if (this._impl.doDataButtonDown(ev)) {
|
|
177123
|
+
_IModelApp__WEBPACK_IMPORTED_MODULE_1__.IModelApp.accuDraw.processHints(); // Process pending hints pre-exit so they don't override savedState "ignoreFlags"...
|
|
177125
177124
|
await this.exitTool();
|
|
177125
|
+
}
|
|
177126
177126
|
return _Tool__WEBPACK_IMPORTED_MODULE_2__.EventHandled.No;
|
|
177127
177127
|
}
|
|
177128
177128
|
async onUnsuspend() {
|
|
@@ -177169,6 +177169,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
177169
177169
|
/* harmony export */ AccuDrawRotateCycleTool: () => (/* binding */ AccuDrawRotateCycleTool),
|
|
177170
177170
|
/* harmony export */ AccuDrawRotateElementTool: () => (/* binding */ AccuDrawRotateElementTool),
|
|
177171
177171
|
/* harmony export */ AccuDrawRotateFrontTool: () => (/* binding */ AccuDrawRotateFrontTool),
|
|
177172
|
+
/* harmony export */ AccuDrawRotatePointsTool: () => (/* binding */ AccuDrawRotatePointsTool),
|
|
177172
177173
|
/* harmony export */ AccuDrawRotateSideTool: () => (/* binding */ AccuDrawRotateSideTool),
|
|
177173
177174
|
/* harmony export */ AccuDrawRotateTopTool: () => (/* binding */ AccuDrawRotateTopTool),
|
|
177174
177175
|
/* harmony export */ AccuDrawRotateViewTool: () => (/* binding */ AccuDrawRotateViewTool),
|
|
@@ -177194,6 +177195,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
177194
177195
|
/* harmony import */ var _IModelApp__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../IModelApp */ "../../core/frontend/lib/esm/IModelApp.js");
|
|
177195
177196
|
/* harmony import */ var _Tool__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./Tool */ "../../core/frontend/lib/esm/tools/Tool.js");
|
|
177196
177197
|
/* harmony import */ var _AccuDrawShortcutTool__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./AccuDrawShortcutTool */ "../../core/frontend/lib/esm/tools/AccuDrawShortcutTool.js");
|
|
177198
|
+
/* harmony import */ var _common_render_GraphicType__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../common/render/GraphicType */ "../../core/frontend/lib/esm/common/render/GraphicType.js");
|
|
177197
177199
|
/*---------------------------------------------------------------------------------------------
|
|
177198
177200
|
* Copyright (c) Bentley Systems, Incorporated. All rights reserved.
|
|
177199
177201
|
* See LICENSE.md in the project root for license terms and full copyright notice.
|
|
@@ -177209,6 +177211,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
177209
177211
|
|
|
177210
177212
|
|
|
177211
177213
|
|
|
177214
|
+
|
|
177212
177215
|
// cSpell:ignore dont unlockedz
|
|
177213
177216
|
function normalizedDifference(point1, point2, out) {
|
|
177214
177217
|
return point2.vectorTo(point1).normalizeWithLength(out).mag;
|
|
@@ -177271,15 +177274,13 @@ class AccuDrawShortcuts {
|
|
|
177271
177274
|
}
|
|
177272
177275
|
static updateACSByPoints(acs, vp, points, isDynamics) {
|
|
177273
177276
|
const accudraw = _IModelApp__WEBPACK_IMPORTED_MODULE_5__.IModelApp.accuDraw;
|
|
177274
|
-
if (!accudraw.isEnabled)
|
|
177275
|
-
return false;
|
|
177276
177277
|
let accept = false;
|
|
177277
177278
|
const vec = [new _itwin_core_geometry__WEBPACK_IMPORTED_MODULE_1__.Vector3d(), new _itwin_core_geometry__WEBPACK_IMPORTED_MODULE_1__.Vector3d(), new _itwin_core_geometry__WEBPACK_IMPORTED_MODULE_1__.Vector3d()];
|
|
177278
177279
|
acs.setOrigin(points[0]);
|
|
177279
177280
|
switch (points.length) {
|
|
177280
177281
|
case 1:
|
|
177281
177282
|
acs.setRotation(vp.rotation);
|
|
177282
|
-
if (!isDynamics) {
|
|
177283
|
+
if (!isDynamics && accudraw.isEnabled) {
|
|
177283
177284
|
accudraw.published.origin.setFrom(points[0]);
|
|
177284
177285
|
accudraw.published.flags = _AccuDraw__WEBPACK_IMPORTED_MODULE_2__.AccuDrawFlags.SetOrigin;
|
|
177285
177286
|
accudraw.flags.fixedOrg = true;
|
|
@@ -177291,7 +177292,7 @@ class AccuDrawShortcuts {
|
|
|
177291
177292
|
break;
|
|
177292
177293
|
}
|
|
177293
177294
|
if (vp.view.is3d()) {
|
|
177294
|
-
if (normalizedCrossProduct(accudraw.axes.y, vec[0], vec[1]) < 0.00001) {
|
|
177295
|
+
if (accudraw.isEnabled && normalizedCrossProduct(accudraw.axes.y, vec[0], vec[1]) < 0.00001) {
|
|
177295
177296
|
vec[2].set(0.0, 0.0, 1.0);
|
|
177296
177297
|
if (normalizedCrossProduct(vec[2], vec[0], vec[1]) < 0.00001) {
|
|
177297
177298
|
vec[2].set(0.0, 1.0, 0.0);
|
|
@@ -177300,7 +177301,7 @@ class AccuDrawShortcuts {
|
|
|
177300
177301
|
}
|
|
177301
177302
|
normalizedCrossProduct(vec[0], vec[1], vec[2]);
|
|
177302
177303
|
acs.setRotation(_itwin_core_geometry__WEBPACK_IMPORTED_MODULE_1__.Matrix3d.createRows(vec[0], vec[1], vec[2]));
|
|
177303
|
-
if (!isDynamics) {
|
|
177304
|
+
if (!isDynamics && accudraw.isEnabled) {
|
|
177304
177305
|
accudraw.published.origin.setFrom(points[0]);
|
|
177305
177306
|
accudraw.published.flags = _AccuDraw__WEBPACK_IMPORTED_MODULE_2__.AccuDrawFlags.SetOrigin | _AccuDraw__WEBPACK_IMPORTED_MODULE_2__.AccuDrawFlags.SetNormal;
|
|
177306
177307
|
accudraw.published.vector.setFrom(vec[0]);
|
|
@@ -178021,7 +178022,11 @@ class AccuDrawShortcuts {
|
|
|
178021
178022
|
accudraw.unlockAllFields();
|
|
178022
178023
|
}
|
|
178023
178024
|
}
|
|
178024
|
-
/**
|
|
178025
|
+
/**
|
|
178026
|
+
* Immediate tool to toggle AccuDraw's availability for the current session.
|
|
178027
|
+
* @note AccuDraw is enabled by default
|
|
178028
|
+
* @beta
|
|
178029
|
+
*/
|
|
178025
178030
|
class AccuDrawSessionToggleTool extends _Tool__WEBPACK_IMPORTED_MODULE_6__.Tool {
|
|
178026
178031
|
static toolId = "AccuDraw.SessionToggle";
|
|
178027
178032
|
async run() {
|
|
@@ -178029,7 +178034,11 @@ class AccuDrawSessionToggleTool extends _Tool__WEBPACK_IMPORTED_MODULE_6__.Tool
|
|
|
178029
178034
|
return true;
|
|
178030
178035
|
}
|
|
178031
178036
|
}
|
|
178032
|
-
/**
|
|
178037
|
+
/**
|
|
178038
|
+
* Immediate tool to toggle AccuDraw on/off temporarily for the current interactive tool.
|
|
178039
|
+
* @note Typically used to disable AccuDraw for a single data button.
|
|
178040
|
+
* @beta
|
|
178041
|
+
*/
|
|
178033
178042
|
class AccuDrawSuspendToggleTool extends _Tool__WEBPACK_IMPORTED_MODULE_6__.Tool {
|
|
178034
178043
|
static toolId = "AccuDraw.SuspendToggle";
|
|
178035
178044
|
async run() {
|
|
@@ -178037,7 +178046,11 @@ class AccuDrawSuspendToggleTool extends _Tool__WEBPACK_IMPORTED_MODULE_6__.Tool
|
|
|
178037
178046
|
return true;
|
|
178038
178047
|
}
|
|
178039
178048
|
}
|
|
178040
|
-
/**
|
|
178049
|
+
/**
|
|
178050
|
+
* Immediate tool to enable AccuDraw and position it at the current AccuSnap or Tentative snap location.
|
|
178051
|
+
* @note When not snapped, AccuDraw is activated at the last data button location when inactive, or moved to the current cursor location when active.
|
|
178052
|
+
* @beta
|
|
178053
|
+
*/
|
|
178041
178054
|
class AccuDrawSetOriginTool extends _Tool__WEBPACK_IMPORTED_MODULE_6__.Tool {
|
|
178042
178055
|
static toolId = "AccuDraw.SetOrigin";
|
|
178043
178056
|
async run() {
|
|
@@ -178045,7 +178058,11 @@ class AccuDrawSetOriginTool extends _Tool__WEBPACK_IMPORTED_MODULE_6__.Tool {
|
|
|
178045
178058
|
return true;
|
|
178046
178059
|
}
|
|
178047
178060
|
}
|
|
178048
|
-
/**
|
|
178061
|
+
/**
|
|
178062
|
+
* Immediate tool to lock the closer of the x or y axis based on the current cursor location.
|
|
178063
|
+
* @note When an axis is locked, points are projected onto the axis line.
|
|
178064
|
+
* @beta
|
|
178065
|
+
*/
|
|
178049
178066
|
class AccuDrawSetLockSmartTool extends _Tool__WEBPACK_IMPORTED_MODULE_6__.Tool {
|
|
178050
178067
|
static toolId = "AccuDraw.LockSmart";
|
|
178051
178068
|
async run() {
|
|
@@ -178053,7 +178070,10 @@ class AccuDrawSetLockSmartTool extends _Tool__WEBPACK_IMPORTED_MODULE_6__.Tool {
|
|
|
178053
178070
|
return true;
|
|
178054
178071
|
}
|
|
178055
178072
|
}
|
|
178056
|
-
/**
|
|
178073
|
+
/**
|
|
178074
|
+
* Immediate tool to toggle the locked state of an indexed axis of the AccuDraw compass.
|
|
178075
|
+
* @beta
|
|
178076
|
+
*/
|
|
178057
178077
|
class AccuDrawSetLockIndexTool extends _Tool__WEBPACK_IMPORTED_MODULE_6__.Tool {
|
|
178058
178078
|
static toolId = "AccuDraw.LockIndex";
|
|
178059
178079
|
async run() {
|
|
@@ -178061,7 +178081,10 @@ class AccuDrawSetLockIndexTool extends _Tool__WEBPACK_IMPORTED_MODULE_6__.Tool {
|
|
|
178061
178081
|
return true;
|
|
178062
178082
|
}
|
|
178063
178083
|
}
|
|
178064
|
-
/**
|
|
178084
|
+
/**
|
|
178085
|
+
* Immediate tool to toggle the locked state of the X text field.
|
|
178086
|
+
* @beta
|
|
178087
|
+
*/
|
|
178065
178088
|
class AccuDrawSetLockXTool extends _Tool__WEBPACK_IMPORTED_MODULE_6__.Tool {
|
|
178066
178089
|
static toolId = "AccuDraw.LockX";
|
|
178067
178090
|
async run() {
|
|
@@ -178069,7 +178092,10 @@ class AccuDrawSetLockXTool extends _Tool__WEBPACK_IMPORTED_MODULE_6__.Tool {
|
|
|
178069
178092
|
return true;
|
|
178070
178093
|
}
|
|
178071
178094
|
}
|
|
178072
|
-
/**
|
|
178095
|
+
/**
|
|
178096
|
+
* Immediate tool to toggle the locked state of the Y text field.
|
|
178097
|
+
* @beta
|
|
178098
|
+
*/
|
|
178073
178099
|
class AccuDrawSetLockYTool extends _Tool__WEBPACK_IMPORTED_MODULE_6__.Tool {
|
|
178074
178100
|
static toolId = "AccuDraw.LockY";
|
|
178075
178101
|
async run() {
|
|
@@ -178077,7 +178103,10 @@ class AccuDrawSetLockYTool extends _Tool__WEBPACK_IMPORTED_MODULE_6__.Tool {
|
|
|
178077
178103
|
return true;
|
|
178078
178104
|
}
|
|
178079
178105
|
}
|
|
178080
|
-
/**
|
|
178106
|
+
/**
|
|
178107
|
+
* Immediate tool to toggle the locked state of the Z text field.
|
|
178108
|
+
* @beta
|
|
178109
|
+
*/
|
|
178081
178110
|
class AccuDrawSetLockZTool extends _Tool__WEBPACK_IMPORTED_MODULE_6__.Tool {
|
|
178082
178111
|
static toolId = "AccuDraw.LockZ";
|
|
178083
178112
|
async run() {
|
|
@@ -178085,7 +178114,10 @@ class AccuDrawSetLockZTool extends _Tool__WEBPACK_IMPORTED_MODULE_6__.Tool {
|
|
|
178085
178114
|
return true;
|
|
178086
178115
|
}
|
|
178087
178116
|
}
|
|
178088
|
-
/**
|
|
178117
|
+
/**
|
|
178118
|
+
* Immediate tool to toggle the locked state of the Distance text field.
|
|
178119
|
+
* @beta
|
|
178120
|
+
*/
|
|
178089
178121
|
class AccuDrawSetLockDistanceTool extends _Tool__WEBPACK_IMPORTED_MODULE_6__.Tool {
|
|
178090
178122
|
static toolId = "AccuDraw.LockDistance";
|
|
178091
178123
|
async run() {
|
|
@@ -178093,7 +178125,10 @@ class AccuDrawSetLockDistanceTool extends _Tool__WEBPACK_IMPORTED_MODULE_6__.Too
|
|
|
178093
178125
|
return true;
|
|
178094
178126
|
}
|
|
178095
178127
|
}
|
|
178096
|
-
/**
|
|
178128
|
+
/**
|
|
178129
|
+
* Immediate tool to toggle the locked state of the Angle text field.
|
|
178130
|
+
* @beta
|
|
178131
|
+
*/
|
|
178097
178132
|
class AccuDrawSetLockAngleTool extends _Tool__WEBPACK_IMPORTED_MODULE_6__.Tool {
|
|
178098
178133
|
static toolId = "AccuDraw.LockAngle";
|
|
178099
178134
|
async run() {
|
|
@@ -178101,7 +178136,10 @@ class AccuDrawSetLockAngleTool extends _Tool__WEBPACK_IMPORTED_MODULE_6__.Tool {
|
|
|
178101
178136
|
return true;
|
|
178102
178137
|
}
|
|
178103
178138
|
}
|
|
178104
|
-
/**
|
|
178139
|
+
/**
|
|
178140
|
+
* Immediate tool to toggle between polar and rectangular compass modes.
|
|
178141
|
+
* @beta
|
|
178142
|
+
*/
|
|
178105
178143
|
class AccuDrawChangeModeTool extends _Tool__WEBPACK_IMPORTED_MODULE_6__.Tool {
|
|
178106
178144
|
static toolId = "AccuDraw.ChangeMode";
|
|
178107
178145
|
async run() {
|
|
@@ -178109,7 +178147,10 @@ class AccuDrawChangeModeTool extends _Tool__WEBPACK_IMPORTED_MODULE_6__.Tool {
|
|
|
178109
178147
|
return true;
|
|
178110
178148
|
}
|
|
178111
178149
|
}
|
|
178112
|
-
/**
|
|
178150
|
+
/**
|
|
178151
|
+
* Immediate tool to cycle between XY, XZ, and YZ planes for the current AccuDraw rotation.
|
|
178152
|
+
* @beta
|
|
178153
|
+
*/
|
|
178113
178154
|
class AccuDrawRotateCycleTool extends _Tool__WEBPACK_IMPORTED_MODULE_6__.Tool {
|
|
178114
178155
|
static toolId = "AccuDraw.RotateCycle";
|
|
178115
178156
|
async run() {
|
|
@@ -178117,7 +178158,11 @@ class AccuDrawRotateCycleTool extends _Tool__WEBPACK_IMPORTED_MODULE_6__.Tool {
|
|
|
178117
178158
|
return true;
|
|
178118
178159
|
}
|
|
178119
178160
|
}
|
|
178120
|
-
/**
|
|
178161
|
+
/**
|
|
178162
|
+
* Immediate tool to set the AccuDraw rotation to a standard Top view.
|
|
178163
|
+
* @note When IModelApp.toolAdmin.acsContextLock is true, rotation is set relative to the view's ACS.
|
|
178164
|
+
* @beta
|
|
178165
|
+
*/
|
|
178121
178166
|
class AccuDrawRotateTopTool extends _Tool__WEBPACK_IMPORTED_MODULE_6__.Tool {
|
|
178122
178167
|
static toolId = "AccuDraw.RotateTop";
|
|
178123
178168
|
async run() {
|
|
@@ -178125,7 +178170,11 @@ class AccuDrawRotateTopTool extends _Tool__WEBPACK_IMPORTED_MODULE_6__.Tool {
|
|
|
178125
178170
|
return true;
|
|
178126
178171
|
}
|
|
178127
178172
|
}
|
|
178128
|
-
/**
|
|
178173
|
+
/**
|
|
178174
|
+
* Immediate tool to set the AccuDraw rotation to a standard Front view.
|
|
178175
|
+
* @note When IModelApp.toolAdmin.acsContextLock is true, rotation is set relative to the view's ACS.
|
|
178176
|
+
* @beta
|
|
178177
|
+
*/
|
|
178129
178178
|
class AccuDrawRotateFrontTool extends _Tool__WEBPACK_IMPORTED_MODULE_6__.Tool {
|
|
178130
178179
|
static toolId = "AccuDraw.RotateFront";
|
|
178131
178180
|
async run() {
|
|
@@ -178133,7 +178182,11 @@ class AccuDrawRotateFrontTool extends _Tool__WEBPACK_IMPORTED_MODULE_6__.Tool {
|
|
|
178133
178182
|
return true;
|
|
178134
178183
|
}
|
|
178135
178184
|
}
|
|
178136
|
-
/**
|
|
178185
|
+
/**
|
|
178186
|
+
* Immediate tool to set the AccuDraw rotation to a standard Side view.
|
|
178187
|
+
* @note When IModelApp.toolAdmin.acsContextLock is true, rotation is set relative to the view's ACS.
|
|
178188
|
+
* @beta
|
|
178189
|
+
*/
|
|
178137
178190
|
class AccuDrawRotateSideTool extends _Tool__WEBPACK_IMPORTED_MODULE_6__.Tool {
|
|
178138
178191
|
static toolId = "AccuDraw.RotateSide";
|
|
178139
178192
|
async run() {
|
|
@@ -178141,7 +178194,10 @@ class AccuDrawRotateSideTool extends _Tool__WEBPACK_IMPORTED_MODULE_6__.Tool {
|
|
|
178141
178194
|
return true;
|
|
178142
178195
|
}
|
|
178143
178196
|
}
|
|
178144
|
-
/**
|
|
178197
|
+
/**
|
|
178198
|
+
* Immediate tool to set the AccuDraw rotation to match the rotation of the current view.
|
|
178199
|
+
* @beta
|
|
178200
|
+
*/
|
|
178145
178201
|
class AccuDrawRotateViewTool extends _Tool__WEBPACK_IMPORTED_MODULE_6__.Tool {
|
|
178146
178202
|
static toolId = "AccuDraw.RotateView";
|
|
178147
178203
|
async run() {
|
|
@@ -178149,7 +178205,10 @@ class AccuDrawRotateViewTool extends _Tool__WEBPACK_IMPORTED_MODULE_6__.Tool {
|
|
|
178149
178205
|
return true;
|
|
178150
178206
|
}
|
|
178151
178207
|
}
|
|
178152
|
-
/**
|
|
178208
|
+
/**
|
|
178209
|
+
* Immediate tool to set the AccuDraw rotation to be a 90 degree rotation about the current x axis.
|
|
178210
|
+
* @beta
|
|
178211
|
+
*/
|
|
178153
178212
|
class AccuDrawRotate90AboutXTool extends _Tool__WEBPACK_IMPORTED_MODULE_6__.Tool {
|
|
178154
178213
|
static toolId = "AccuDraw.Rotate90AboutX";
|
|
178155
178214
|
async run() {
|
|
@@ -178157,7 +178216,10 @@ class AccuDrawRotate90AboutXTool extends _Tool__WEBPACK_IMPORTED_MODULE_6__.Tool
|
|
|
178157
178216
|
return true;
|
|
178158
178217
|
}
|
|
178159
178218
|
}
|
|
178160
|
-
/**
|
|
178219
|
+
/**
|
|
178220
|
+
* Immediate tool to set the AccuDraw rotation to be a 90 degree rotation about the current y axis.
|
|
178221
|
+
* @beta
|
|
178222
|
+
*/
|
|
178161
178223
|
class AccuDrawRotate90AboutYTool extends _Tool__WEBPACK_IMPORTED_MODULE_6__.Tool {
|
|
178162
178224
|
static toolId = "AccuDraw.Rotate90AboutY";
|
|
178163
178225
|
async run() {
|
|
@@ -178165,7 +178227,10 @@ class AccuDrawRotate90AboutYTool extends _Tool__WEBPACK_IMPORTED_MODULE_6__.Tool
|
|
|
178165
178227
|
return true;
|
|
178166
178228
|
}
|
|
178167
178229
|
}
|
|
178168
|
-
/**
|
|
178230
|
+
/**
|
|
178231
|
+
* Immediate tool to set the AccuDraw rotation to be a 90 degree rotation about the current z axis.
|
|
178232
|
+
* @beta
|
|
178233
|
+
*/
|
|
178169
178234
|
class AccuDrawRotate90AboutZTool extends _Tool__WEBPACK_IMPORTED_MODULE_6__.Tool {
|
|
178170
178235
|
static toolId = "AccuDraw.Rotate90AboutZ";
|
|
178171
178236
|
async run() {
|
|
@@ -178211,7 +178276,11 @@ class RotateAxesImplementation extends _AccuDrawShortcutTool__WEBPACK_IMPORTED_M
|
|
|
178211
178276
|
return true;
|
|
178212
178277
|
}
|
|
178213
178278
|
}
|
|
178214
|
-
/**
|
|
178279
|
+
/**
|
|
178280
|
+
* Interactive tool to set the AccuDraw rotation by rotating about the current z axis to a point on the x axis.
|
|
178281
|
+
* @note When AccuSnap or Tentative snap is active, the snap point is immediately used to define the x axis and not further input is required.
|
|
178282
|
+
* @beta
|
|
178283
|
+
*/
|
|
178215
178284
|
class AccuDrawRotateAxesTool extends _AccuDrawShortcutTool__WEBPACK_IMPORTED_MODULE_7__.AccuDrawShortcutTool {
|
|
178216
178285
|
aboutCurrentZ;
|
|
178217
178286
|
static toolId = "AccuDraw.RotateAxes";
|
|
@@ -178276,7 +178345,10 @@ class RotateElementImplementation extends _AccuDrawShortcutTool__WEBPACK_IMPORTE
|
|
|
178276
178345
|
return true;
|
|
178277
178346
|
}
|
|
178278
178347
|
}
|
|
178279
|
-
/**
|
|
178348
|
+
/**
|
|
178349
|
+
* Interactive tool to set the AccuDraw rotation using the snapped to geometry under the cursor.
|
|
178350
|
+
* @beta
|
|
178351
|
+
*/
|
|
178280
178352
|
class AccuDrawRotateElementTool extends _AccuDrawShortcutTool__WEBPACK_IMPORTED_MODULE_7__.AccuDrawShortcutTool {
|
|
178281
178353
|
static toolId = "AccuDraw.RotateElement";
|
|
178282
178354
|
/** @internal */
|
|
@@ -178285,6 +178357,124 @@ class AccuDrawRotateElementTool extends _AccuDrawShortcutTool__WEBPACK_IMPORTED_
|
|
|
178285
178357
|
}
|
|
178286
178358
|
}
|
|
178287
178359
|
/** @internal */
|
|
178360
|
+
class RotatePointsImplementation extends _AccuDrawShortcutTool__WEBPACK_IMPORTED_MODULE_7__.AccuDrawShortcutImplementation {
|
|
178361
|
+
_points = [];
|
|
178362
|
+
_origin = _IModelApp__WEBPACK_IMPORTED_MODULE_5__.IModelApp.tentativePoint.isActive ? _IModelApp__WEBPACK_IMPORTED_MODULE_5__.IModelApp.tentativePoint.getPoint().clone() : undefined;
|
|
178363
|
+
_moveOrigin = !_IModelApp__WEBPACK_IMPORTED_MODULE_5__.IModelApp.accuDraw.isActive || _IModelApp__WEBPACK_IMPORTED_MODULE_5__.IModelApp.tentativePoint.isActive; // Preserve current origin if AccuDraw already active and not tentative snap...
|
|
178364
|
+
_lastPoint;
|
|
178365
|
+
onProvideToolAssistance() {
|
|
178366
|
+
switch (this._points.length) {
|
|
178367
|
+
case 0:
|
|
178368
|
+
_Tool__WEBPACK_IMPORTED_MODULE_6__.CoreTools.outputPromptByKey("AccuDraw.RotatePoints.Prompts.FirstPoint");
|
|
178369
|
+
break;
|
|
178370
|
+
case 1:
|
|
178371
|
+
_Tool__WEBPACK_IMPORTED_MODULE_6__.CoreTools.outputPromptByKey("AccuDraw.RotatePoints.Prompts.SecondPoint");
|
|
178372
|
+
break;
|
|
178373
|
+
default:
|
|
178374
|
+
_Tool__WEBPACK_IMPORTED_MODULE_6__.CoreTools.outputPromptByKey("AccuDraw.RotatePoints.Prompts.NextPoint");
|
|
178375
|
+
break;
|
|
178376
|
+
}
|
|
178377
|
+
}
|
|
178378
|
+
onInitialize() {
|
|
178379
|
+
if (undefined === this._origin)
|
|
178380
|
+
return;
|
|
178381
|
+
this._points.push(this._origin);
|
|
178382
|
+
_IModelApp__WEBPACK_IMPORTED_MODULE_5__.IModelApp.tentativePoint.clear(true); // Necessary when installed as an InputCollector...
|
|
178383
|
+
_IModelApp__WEBPACK_IMPORTED_MODULE_5__.IModelApp.accuDraw.activate();
|
|
178384
|
+
_IModelApp__WEBPACK_IMPORTED_MODULE_5__.IModelApp.accuDraw.setContext(_AccuDraw__WEBPACK_IMPORTED_MODULE_2__.AccuDrawFlags.SetOrigin | _AccuDraw__WEBPACK_IMPORTED_MODULE_2__.AccuDrawFlags.FixedOrigin, this._origin);
|
|
178385
|
+
_IModelApp__WEBPACK_IMPORTED_MODULE_5__.IModelApp.accuDraw.refreshDecorationsAndDynamics();
|
|
178386
|
+
}
|
|
178387
|
+
onComplete() {
|
|
178388
|
+
let ignoreFlags = _AccuDraw__WEBPACK_IMPORTED_MODULE_2__.AccuDrawFlags.SetRMatrix | _AccuDraw__WEBPACK_IMPORTED_MODULE_2__.AccuDrawFlags.Disable; // If AccuDraw wasn't active when the shortcut started, let it remain active for suspended tool when shortcut completes...
|
|
178389
|
+
if (this._moveOrigin)
|
|
178390
|
+
ignoreFlags |= _AccuDraw__WEBPACK_IMPORTED_MODULE_2__.AccuDrawFlags.SetOrigin;
|
|
178391
|
+
return ignoreFlags;
|
|
178392
|
+
}
|
|
178393
|
+
doManipulation(ev, isMotion) {
|
|
178394
|
+
if (!ev || !ev.viewport)
|
|
178395
|
+
return false;
|
|
178396
|
+
_IModelApp__WEBPACK_IMPORTED_MODULE_5__.IModelApp.viewManager.invalidateDecorationsAllViews();
|
|
178397
|
+
if (isMotion) {
|
|
178398
|
+
this._lastPoint = ev.point.clone();
|
|
178399
|
+
return false;
|
|
178400
|
+
}
|
|
178401
|
+
const accuDraw = _IModelApp__WEBPACK_IMPORTED_MODULE_5__.IModelApp.accuDraw;
|
|
178402
|
+
accuDraw.activate();
|
|
178403
|
+
switch (this._points.length) {
|
|
178404
|
+
case 0: {
|
|
178405
|
+
this._points.push(ev.point.clone());
|
|
178406
|
+
accuDraw.setContext(_AccuDraw__WEBPACK_IMPORTED_MODULE_2__.AccuDrawFlags.SetOrigin | _AccuDraw__WEBPACK_IMPORTED_MODULE_2__.AccuDrawFlags.FixedOrigin, this._points[0]);
|
|
178407
|
+
break;
|
|
178408
|
+
}
|
|
178409
|
+
case 1: {
|
|
178410
|
+
const xVec = _itwin_core_geometry__WEBPACK_IMPORTED_MODULE_1__.Vector3d.createNormalizedStartEnd(this._points[0], ev.point);
|
|
178411
|
+
if (undefined === xVec)
|
|
178412
|
+
return false;
|
|
178413
|
+
if (!ev.viewport.view.is3d() || !ev.viewport.view.allow3dManipulations()) {
|
|
178414
|
+
accuDraw.setContext(_AccuDraw__WEBPACK_IMPORTED_MODULE_2__.AccuDrawFlags.SetOrigin | _AccuDraw__WEBPACK_IMPORTED_MODULE_2__.AccuDrawFlags.SetXAxis, this._points[0], xVec);
|
|
178415
|
+
return true; // Complete
|
|
178416
|
+
}
|
|
178417
|
+
this._points.push(ev.point.clone());
|
|
178418
|
+
accuDraw.setContext(_AccuDraw__WEBPACK_IMPORTED_MODULE_2__.AccuDrawFlags.SetOrigin | _AccuDraw__WEBPACK_IMPORTED_MODULE_2__.AccuDrawFlags.FixedOrigin | _AccuDraw__WEBPACK_IMPORTED_MODULE_2__.AccuDrawFlags.SetNormal, this._points[0], xVec);
|
|
178419
|
+
break;
|
|
178420
|
+
}
|
|
178421
|
+
case 2: {
|
|
178422
|
+
const xVec = _itwin_core_geometry__WEBPACK_IMPORTED_MODULE_1__.Vector3d.createNormalizedStartEnd(this._points[0], this._points[1]);
|
|
178423
|
+
if (undefined === xVec)
|
|
178424
|
+
return false;
|
|
178425
|
+
const yVec = _itwin_core_geometry__WEBPACK_IMPORTED_MODULE_1__.Vector3d.createNormalizedStartEnd(this._points[0], ev.point);
|
|
178426
|
+
if (undefined === yVec)
|
|
178427
|
+
return false;
|
|
178428
|
+
const matrix = _itwin_core_geometry__WEBPACK_IMPORTED_MODULE_1__.Matrix3d.createRigidFromColumns(xVec, yVec, _itwin_core_geometry__WEBPACK_IMPORTED_MODULE_1__.AxisOrder.XYZ);
|
|
178429
|
+
if (undefined === matrix)
|
|
178430
|
+
return false;
|
|
178431
|
+
const invMatrix = matrix.inverse();
|
|
178432
|
+
if (undefined === invMatrix)
|
|
178433
|
+
return false;
|
|
178434
|
+
accuDraw.setContext(_AccuDraw__WEBPACK_IMPORTED_MODULE_2__.AccuDrawFlags.SetOrigin | _AccuDraw__WEBPACK_IMPORTED_MODULE_2__.AccuDrawFlags.SetRMatrix, this._points[0], invMatrix);
|
|
178435
|
+
return true; // Complete
|
|
178436
|
+
}
|
|
178437
|
+
}
|
|
178438
|
+
this.onProvideToolAssistance();
|
|
178439
|
+
return false;
|
|
178440
|
+
}
|
|
178441
|
+
doDecorate(context) {
|
|
178442
|
+
if (0 === this._points.length)
|
|
178443
|
+
return;
|
|
178444
|
+
const currentPoint = this._lastPoint;
|
|
178445
|
+
if (undefined === currentPoint)
|
|
178446
|
+
return;
|
|
178447
|
+
if (2 === this._points.length) {
|
|
178448
|
+
const xVec = _itwin_core_geometry__WEBPACK_IMPORTED_MODULE_1__.Vector3d.createNormalizedStartEnd(this._points[0], this._points[1]);
|
|
178449
|
+
if (undefined === xVec)
|
|
178450
|
+
return;
|
|
178451
|
+
const plane = _itwin_core_geometry__WEBPACK_IMPORTED_MODULE_1__.Plane3dByOriginAndUnitNormal.create(this._points[0], xVec);
|
|
178452
|
+
if (undefined === plane)
|
|
178453
|
+
return;
|
|
178454
|
+
plane.projectPointToPlane(currentPoint, currentPoint);
|
|
178455
|
+
}
|
|
178456
|
+
const tmpPoints = this._points.slice(0, 1);
|
|
178457
|
+
tmpPoints.push(currentPoint);
|
|
178458
|
+
const vp = context.viewport;
|
|
178459
|
+
const color = vp.getContrastToBackgroundColor();
|
|
178460
|
+
const builder = context.createGraphicBuilder(_common_render_GraphicType__WEBPACK_IMPORTED_MODULE_8__.GraphicType.WorldOverlay);
|
|
178461
|
+
builder.setSymbology(color, color, 2);
|
|
178462
|
+
builder.addLineString(tmpPoints);
|
|
178463
|
+
context.addDecorationFromBuilder(builder);
|
|
178464
|
+
}
|
|
178465
|
+
}
|
|
178466
|
+
/**
|
|
178467
|
+
* Interactive tool to set the AccuDraw rotation by 3 points: x axis origin, x axis direction, and y axis direction.
|
|
178468
|
+
* @beta
|
|
178469
|
+
*/
|
|
178470
|
+
class AccuDrawRotatePointsTool extends _AccuDrawShortcutTool__WEBPACK_IMPORTED_MODULE_7__.AccuDrawShortcutTool {
|
|
178471
|
+
static toolId = "AccuDraw.RotatePoints";
|
|
178472
|
+
/** @internal */
|
|
178473
|
+
createImplementation() {
|
|
178474
|
+
return new RotatePointsImplementation();
|
|
178475
|
+
}
|
|
178476
|
+
}
|
|
178477
|
+
/** @internal */
|
|
178288
178478
|
class DefineACSByElementImplementation extends _AccuDrawShortcutTool__WEBPACK_IMPORTED_MODULE_7__.AccuDrawShortcutImplementation {
|
|
178289
178479
|
_origin = _itwin_core_geometry__WEBPACK_IMPORTED_MODULE_1__.Point3d.create();
|
|
178290
178480
|
_rMatrix = _itwin_core_geometry__WEBPACK_IMPORTED_MODULE_1__.Matrix3d.createIdentity();
|
|
@@ -178327,7 +178517,10 @@ class DefineACSByElementImplementation extends _AccuDrawShortcutTool__WEBPACK_IM
|
|
|
178327
178517
|
this._acs.display(context, _AuxCoordSys__WEBPACK_IMPORTED_MODULE_4__.ACSDisplayOptions.Active | _AuxCoordSys__WEBPACK_IMPORTED_MODULE_4__.ACSDisplayOptions.Dynamics);
|
|
178328
178518
|
}
|
|
178329
178519
|
}
|
|
178330
|
-
/**
|
|
178520
|
+
/**
|
|
178521
|
+
* Interactive tool to set the view's ACS rotation by 3 points: x axis origin, x axis direction, and y axis direction/
|
|
178522
|
+
* @beta
|
|
178523
|
+
*/
|
|
178331
178524
|
class DefineACSByElementTool extends _AccuDrawShortcutTool__WEBPACK_IMPORTED_MODULE_7__.AccuDrawShortcutTool {
|
|
178332
178525
|
static toolId = "AccuDraw.DefineACSByElement";
|
|
178333
178526
|
/** @internal */
|
|
@@ -178340,6 +178533,7 @@ class DefineACSByPointsImplementation extends _AccuDrawShortcutTool__WEBPACK_IMP
|
|
|
178340
178533
|
_points = [];
|
|
178341
178534
|
_acs;
|
|
178342
178535
|
_origin = _IModelApp__WEBPACK_IMPORTED_MODULE_5__.IModelApp.tentativePoint.isActive ? _IModelApp__WEBPACK_IMPORTED_MODULE_5__.IModelApp.tentativePoint.getPoint().clone() : undefined;
|
|
178536
|
+
_lastPoint;
|
|
178343
178537
|
onProvideToolAssistance() {
|
|
178344
178538
|
switch (this._points.length) {
|
|
178345
178539
|
case 0:
|
|
@@ -178356,16 +178550,20 @@ class DefineACSByPointsImplementation extends _AccuDrawShortcutTool__WEBPACK_IMP
|
|
|
178356
178550
|
onInitialize() {
|
|
178357
178551
|
if (undefined === this._origin)
|
|
178358
178552
|
return;
|
|
178359
|
-
_IModelApp__WEBPACK_IMPORTED_MODULE_5__.IModelApp.accuDraw.setContext(_AccuDraw__WEBPACK_IMPORTED_MODULE_2__.AccuDrawFlags.SetOrigin | _AccuDraw__WEBPACK_IMPORTED_MODULE_2__.AccuDrawFlags.FixedOrigin, this._origin);
|
|
178360
178553
|
this._points.push(this._origin);
|
|
178361
178554
|
_IModelApp__WEBPACK_IMPORTED_MODULE_5__.IModelApp.tentativePoint.clear(true); // Necessary when installed as an InputCollector...
|
|
178555
|
+
_IModelApp__WEBPACK_IMPORTED_MODULE_5__.IModelApp.accuDraw.activate();
|
|
178556
|
+
_IModelApp__WEBPACK_IMPORTED_MODULE_5__.IModelApp.accuDraw.setContext(_AccuDraw__WEBPACK_IMPORTED_MODULE_2__.AccuDrawFlags.SetOrigin | _AccuDraw__WEBPACK_IMPORTED_MODULE_2__.AccuDrawFlags.FixedOrigin, this._origin);
|
|
178557
|
+
_IModelApp__WEBPACK_IMPORTED_MODULE_5__.IModelApp.accuDraw.refreshDecorationsAndDynamics();
|
|
178362
178558
|
}
|
|
178363
178559
|
doManipulation(ev, isMotion) {
|
|
178364
178560
|
if (!ev || !ev.viewport)
|
|
178365
178561
|
return false;
|
|
178366
178562
|
_IModelApp__WEBPACK_IMPORTED_MODULE_5__.IModelApp.viewManager.invalidateDecorationsAllViews();
|
|
178367
|
-
if (isMotion)
|
|
178563
|
+
if (isMotion) {
|
|
178564
|
+
this._lastPoint = ev.point.clone();
|
|
178368
178565
|
return false;
|
|
178566
|
+
}
|
|
178369
178567
|
_IModelApp__WEBPACK_IMPORTED_MODULE_5__.IModelApp.accuDraw.activate();
|
|
178370
178568
|
this._points.push(ev.point.clone());
|
|
178371
178569
|
const vp = ev.viewport;
|
|
@@ -178380,11 +178578,11 @@ class DefineACSByPointsImplementation extends _AccuDrawShortcutTool__WEBPACK_IMP
|
|
|
178380
178578
|
return false;
|
|
178381
178579
|
}
|
|
178382
178580
|
doDecorate(context) {
|
|
178581
|
+
if (undefined === this._lastPoint)
|
|
178582
|
+
return;
|
|
178383
178583
|
const tmpPoints = [];
|
|
178384
178584
|
this._points.forEach((pt) => tmpPoints.push(pt));
|
|
178385
|
-
|
|
178386
|
-
_IModelApp__WEBPACK_IMPORTED_MODULE_5__.IModelApp.toolAdmin.fillEventFromCursorLocation(ev);
|
|
178387
|
-
tmpPoints.push(ev.point);
|
|
178585
|
+
tmpPoints.push(this._lastPoint);
|
|
178388
178586
|
const vp = context.viewport;
|
|
178389
178587
|
if (!this._acs)
|
|
178390
178588
|
this._acs = vp.view.auxiliaryCoordinateSystem.clone();
|
|
@@ -178392,7 +178590,10 @@ class DefineACSByPointsImplementation extends _AccuDrawShortcutTool__WEBPACK_IMP
|
|
|
178392
178590
|
this._acs.display(context, _AuxCoordSys__WEBPACK_IMPORTED_MODULE_4__.ACSDisplayOptions.Active | _AuxCoordSys__WEBPACK_IMPORTED_MODULE_4__.ACSDisplayOptions.Dynamics);
|
|
178393
178591
|
}
|
|
178394
178592
|
}
|
|
178395
|
-
/**
|
|
178593
|
+
/**
|
|
178594
|
+
* Interactive tool to set the view's ACS rotation by 3 points: x axis origin, x axis direction, and y axis direction.
|
|
178595
|
+
* @beta
|
|
178596
|
+
*/
|
|
178396
178597
|
class DefineACSByPointsTool extends _AccuDrawShortcutTool__WEBPACK_IMPORTED_MODULE_7__.AccuDrawShortcutTool {
|
|
178397
178598
|
static toolId = "AccuDraw.DefineACSByPoints";
|
|
178398
178599
|
/** @internal */
|
|
@@ -179743,8 +179944,8 @@ class ViewClipByPlaneTool extends ViewClipTool {
|
|
|
179743
179944
|
class ViewClipByShapeTool extends ViewClipTool {
|
|
179744
179945
|
static toolId = "ViewClip.ByShape";
|
|
179745
179946
|
static iconSpec = "icon-section-shape";
|
|
179746
|
-
/** @internal */
|
|
179747
179947
|
_orientationValue = { value: _AccuDraw__WEBPACK_IMPORTED_MODULE_3__.ContextRotationId.Top };
|
|
179948
|
+
_lastMotion;
|
|
179748
179949
|
/** @internal */
|
|
179749
179950
|
_points = [];
|
|
179750
179951
|
/** @internal */
|
|
@@ -179878,9 +180079,8 @@ class ViewClipByShapeTool extends ViewClipTool {
|
|
|
179878
180079
|
decorate(context) {
|
|
179879
180080
|
if (context.viewport !== this.targetView)
|
|
179880
180081
|
return;
|
|
179881
|
-
const ev =
|
|
179882
|
-
|
|
179883
|
-
if (undefined === ev.viewport)
|
|
180082
|
+
const ev = this._lastMotion;
|
|
180083
|
+
if (undefined === ev?.viewport)
|
|
179884
180084
|
return;
|
|
179885
180085
|
const points = this.getClipPoints(ev);
|
|
179886
180086
|
if (points.length < 2)
|
|
@@ -179901,6 +180101,7 @@ class ViewClipByShapeTool extends ViewClipTool {
|
|
|
179901
180101
|
}
|
|
179902
180102
|
/** @internal */
|
|
179903
180103
|
async onMouseMotion(ev) {
|
|
180104
|
+
this._lastMotion = ev;
|
|
179904
180105
|
if (this._points.length > 0 && undefined !== ev.viewport)
|
|
179905
180106
|
ev.viewport.invalidateDecorations();
|
|
179906
180107
|
}
|
|
@@ -179950,6 +180151,7 @@ class ViewClipByShapeTool extends ViewClipTool {
|
|
|
179950
180151
|
class ViewClipByRangeTool extends ViewClipTool {
|
|
179951
180152
|
static toolId = "ViewClip.ByRange";
|
|
179952
180153
|
static iconSpec = "icon-section-range";
|
|
180154
|
+
_lastMotion;
|
|
179953
180155
|
/** @internal */
|
|
179954
180156
|
_corner;
|
|
179955
180157
|
/** @internal */
|
|
@@ -179992,9 +180194,8 @@ class ViewClipByRangeTool extends ViewClipTool {
|
|
|
179992
180194
|
decorate(context) {
|
|
179993
180195
|
if (context.viewport !== this.targetView || undefined === this._corner)
|
|
179994
180196
|
return;
|
|
179995
|
-
const ev =
|
|
179996
|
-
|
|
179997
|
-
if (undefined === ev.viewport)
|
|
180197
|
+
const ev = this._lastMotion;
|
|
180198
|
+
if (undefined === ev?.viewport)
|
|
179998
180199
|
return;
|
|
179999
180200
|
const range = _itwin_core_geometry__WEBPACK_IMPORTED_MODULE_1__.Range3d.create();
|
|
180000
180201
|
const transform = _itwin_core_geometry__WEBPACK_IMPORTED_MODULE_1__.Transform.createIdentity();
|
|
@@ -180013,6 +180214,7 @@ class ViewClipByRangeTool extends ViewClipTool {
|
|
|
180013
180214
|
}
|
|
180014
180215
|
/** @internal */
|
|
180015
180216
|
async onMouseMotion(ev) {
|
|
180217
|
+
this._lastMotion = ev;
|
|
180016
180218
|
if (undefined !== this._corner && undefined !== ev.viewport)
|
|
180017
180219
|
ev.viewport.invalidateDecorations();
|
|
180018
180220
|
}
|
|
@@ -192508,7 +192710,7 @@ class Geometry {
|
|
|
192508
192710
|
static largeCoordinateResult = 1.0e13;
|
|
192509
192711
|
/**
|
|
192510
192712
|
* Numeric value that may considered infinite for metric coordinates.
|
|
192511
|
-
* @deprecated in 4.9.0 -
|
|
192713
|
+
* @deprecated in 4.9.0 - might be removed in next major version. Use [[largeCoordinateResult]].
|
|
192512
192714
|
* * This coordinate should be used only as a placeholder indicating "at infinity" -- computing actual
|
|
192513
192715
|
* points at this coordinate invites numerical problems.
|
|
192514
192716
|
*/
|
|
@@ -192519,7 +192721,7 @@ class Geometry {
|
|
|
192519
192721
|
}
|
|
192520
192722
|
/**
|
|
192521
192723
|
* Test if the absolute value of x is at least [[largeCoordinateResult]].
|
|
192522
|
-
* @deprecated in 4.9.0 -
|
|
192724
|
+
* @deprecated in 4.9.0 - might be removed in next major version. Use [[isLargeCoordinateResult]].
|
|
192523
192725
|
*/
|
|
192524
192726
|
static isHugeCoordinate(x) {
|
|
192525
192727
|
return Geometry.isLargeCoordinateResult(x);
|
|
@@ -193587,7 +193789,7 @@ class Geometry {
|
|
|
193587
193789
|
/**
|
|
193588
193790
|
* Clone an array whose members have type `T`, which implements the clone method.
|
|
193589
193791
|
* * If the clone method returns `undefined`, then `undefined` is forced into the cloned array.
|
|
193590
|
-
* @deprecated in 4.4.0 -
|
|
193792
|
+
* @deprecated in 4.4.0 - might be removed in next major version. Use cloneArray.
|
|
193591
193793
|
*/
|
|
193592
193794
|
// eslint-disable-next-line @typescript-eslint/no-deprecated
|
|
193593
193795
|
static cloneMembers(array) {
|
|
@@ -194029,7 +194231,7 @@ class BSpline1dNd {
|
|
|
194029
194231
|
* Test if the leading and trailing polygon coordinates are replicated in the manner of a "closed" bspline polygon
|
|
194030
194232
|
* which has been expanded to act as a normal bspline.
|
|
194031
194233
|
* @returns true if `degree` leading and trailing polygon blocks match.
|
|
194032
|
-
* @deprecated in 4.2.1 -
|
|
194234
|
+
* @deprecated in 4.2.1 - might be removed in next major version. Use `testClosablePolygon` instead.
|
|
194033
194235
|
*/
|
|
194034
194236
|
testCloseablePolygon(mode) {
|
|
194035
194237
|
return this.testClosablePolygon(mode);
|
|
@@ -196334,7 +196536,7 @@ var UVSelect;
|
|
|
196334
196536
|
UVSelect[UVSelect["uDirection"] = 0] = "uDirection";
|
|
196335
196537
|
/**
|
|
196336
196538
|
* index of v direction
|
|
196337
|
-
* @deprecated in 4.3.0 -
|
|
196539
|
+
* @deprecated in 4.3.0 - might be removed in next major version. Use vDirection instead.
|
|
196338
196540
|
*/
|
|
196339
196541
|
UVSelect[UVSelect["VDirection"] = 1] = "VDirection";
|
|
196340
196542
|
/** index of v direction */
|
|
@@ -196561,7 +196763,7 @@ class BSpline2dNd extends _curve_GeometryQuery__WEBPACK_IMPORTED_MODULE_0__.Geom
|
|
|
196561
196763
|
}
|
|
196562
196764
|
/**
|
|
196563
196765
|
* sum poles by the weights in the basisBuffer, using poles for given span
|
|
196564
|
-
* @deprecated in 4.3.0 -
|
|
196766
|
+
* @deprecated in 4.3.0 - might be removed in next major version. Use sumPoleBufferDerivativesForSpan instead.
|
|
196565
196767
|
*/
|
|
196566
196768
|
sumpoleBufferDerivativesForSpan(spanIndexU, spanIndexV) {
|
|
196567
196769
|
return this.sumPoleBufferDerivativesForSpan(spanIndexU, spanIndexV);
|
|
@@ -206377,7 +206579,7 @@ class Arc3d extends _CurvePrimitive__WEBPACK_IMPORTED_MODULE_1__.CurvePrimitive
|
|
|
206377
206579
|
}
|
|
206378
206580
|
/**
|
|
206379
206581
|
* Gauss point quadrature count for evaluating curve length. (The number of intervals is adjusted to the arc sweep).
|
|
206380
|
-
* @deprecated in 5.0 -
|
|
206582
|
+
* @deprecated in 5.0 - might be removed in next major version. Use correct spelling quadratureGaussCount.
|
|
206381
206583
|
*/
|
|
206382
206584
|
static quadratureGuassCount = 5;
|
|
206383
206585
|
/** Gauss point quadrature count for evaluating curve length. (The number of intervals is adjusted to the arc sweep). */
|
|
@@ -211022,7 +211224,7 @@ class CurveLocationDetailPair {
|
|
|
211022
211224
|
}
|
|
211023
211225
|
/**
|
|
211024
211226
|
* Data bundle for a pair of arrays of CurveLocationDetail structures.
|
|
211025
|
-
* @deprecated in 4.2.0 -
|
|
211227
|
+
* @deprecated in 4.2.0 - might be removed in next major version. Use CurveLocationDetailPair[] instead.
|
|
211026
211228
|
* @public
|
|
211027
211229
|
*/
|
|
211028
211230
|
class CurveLocationDetailArrayPair {
|
|
@@ -219186,7 +219388,7 @@ class StrokeOptions {
|
|
|
219186
219388
|
maxEdgeLength;
|
|
219187
219389
|
/**
|
|
219188
219390
|
* Caller expects convex facets.
|
|
219189
|
-
* @deprecated in 4.2.0 -
|
|
219391
|
+
* @deprecated in 4.2.0 - might be removed in next major version. Never used. See [[shouldTriangulate]] and [[maximizeConvexFacets]].
|
|
219190
219392
|
*/
|
|
219191
219393
|
needConvexFacets;
|
|
219192
219394
|
/** Minimum strokes on a primitive. */
|
|
@@ -236115,7 +236317,7 @@ class GrowableXYArray extends _IndexedXYCollection__WEBPACK_IMPORTED_MODULE_0__.
|
|
|
236115
236317
|
}
|
|
236116
236318
|
/**
|
|
236117
236319
|
* Restructure MultiLineStringDataVariant as array of GrowableXYZArray
|
|
236118
|
-
* @deprecated in 4.2.0 -
|
|
236320
|
+
* @deprecated in 4.2.0 - might be removed in next major version. Moved to GrowableXYZArray class.
|
|
236119
236321
|
*/
|
|
236120
236322
|
static createArrayOfGrowableXYZArray(data) {
|
|
236121
236323
|
return _GrowableXYZArray__WEBPACK_IMPORTED_MODULE_1__.GrowableXYZArray.createArrayOfGrowableXYZArray(data);
|
|
@@ -255276,7 +255478,7 @@ class Point4d extends _geometry3d_Plane3d__WEBPACK_IMPORTED_MODULE_0__.Plane3d {
|
|
|
255276
255478
|
* extract 4 consecutive numbers from a Float64Array into a Point4d.
|
|
255277
255479
|
* @param data buffer of numbers
|
|
255278
255480
|
* @param xIndex first index for x,y,z,w sequence. Assumed to be a valid index!
|
|
255279
|
-
* @deprecated in 4.3.0 -
|
|
255481
|
+
* @deprecated in 4.3.0 - might be removed in next major version. Use createFromPacked instead.
|
|
255280
255482
|
*/
|
|
255281
255483
|
static createFromPackedXYZW(data, xIndex = 0, result) {
|
|
255282
255484
|
return Point4d.create(data[xIndex], data[xIndex + 1], data[xIndex + 2], data[xIndex + 3], result);
|
|
@@ -264683,7 +264885,7 @@ class IndexedPolyface extends Polyface {
|
|
|
264683
264885
|
}
|
|
264684
264886
|
/**
|
|
264685
264887
|
* Clean up the open facet.
|
|
264686
|
-
* @deprecated in 4.5.0 -
|
|
264888
|
+
* @deprecated in 4.5.0 - might be removed in next major version. To remove nebulous "open facet" concept from the API. Call [[PolyfaceData.trimAllIndexArrays]]
|
|
264687
264889
|
* instead.
|
|
264688
264890
|
*/
|
|
264689
264891
|
cleanupOpenFacet() {
|
|
@@ -264829,7 +265031,7 @@ class IndexedPolyface extends Polyface {
|
|
|
264829
265031
|
}
|
|
264830
265032
|
/**
|
|
264831
265033
|
* Given the index of a facet, return the data pertaining to the face it is a part of.
|
|
264832
|
-
* @deprecated in 4.5.0 -
|
|
265034
|
+
* @deprecated in 4.5.0 - might be removed in next major version. Use [[IndexedPolyface.tryGetFaceData]], which verifies the index is in range.
|
|
264833
265035
|
*/
|
|
264834
265036
|
getFaceDataByFacetIndex(facetIndex) {
|
|
264835
265037
|
return this.data.face[this._facetToFaceData[facetIndex]];
|
|
@@ -266115,7 +266317,7 @@ class PolyfaceBuilder extends _geometry3d_GeometryHandler__WEBPACK_IMPORTED_MODU
|
|
|
266115
266317
|
* Apply stroke counts to curve primitives.
|
|
266116
266318
|
* * Recursively visit all children of data.
|
|
266117
266319
|
* * At each primitive, invoke `computeStrokeCountForOptions` method with options from the builder.
|
|
266118
|
-
* @deprecated in 4.8.0 -
|
|
266320
|
+
* @deprecated in 4.8.0 - might be removed in next major version. This method does nothing and is unneeded.
|
|
266119
266321
|
*/
|
|
266120
266322
|
applyStrokeCountsToCurvePrimitives(data) {
|
|
266121
266323
|
const options = this._options;
|
|
@@ -268209,7 +268411,7 @@ class PolyfaceData {
|
|
|
268209
268411
|
}
|
|
268210
268412
|
/**
|
|
268211
268413
|
* Resize all data arrays to the specified `length`.
|
|
268212
|
-
* @deprecated in 4.5.0 -
|
|
268414
|
+
* @deprecated in 4.5.0 - might be removed in next major version. Because name is misleading. Call [[PolyfaceData.resizeAllArrays]] instead.
|
|
268213
268415
|
*/
|
|
268214
268416
|
resizeAllDataArrays(length) {
|
|
268215
268417
|
if (length > this.point.length) {
|
|
@@ -269783,7 +269985,7 @@ class PolyfaceQuery {
|
|
|
269783
269985
|
});
|
|
269784
269986
|
return builder.claimPolyface(true);
|
|
269785
269987
|
}
|
|
269786
|
-
/** @deprecated in 4.7.0 -
|
|
269988
|
+
/** @deprecated in 4.7.0 - might be removed in next major version. Use [[sweepLineStringToFacetsXYReturnSweptFacets]] instead. */
|
|
269787
269989
|
static sweepLinestringToFacetsXYreturnSweptFacets(linestringPoints, polyface) {
|
|
269788
269990
|
return this.sweepLineStringToFacetsXYReturnSweptFacets(linestringPoints, polyface);
|
|
269789
269991
|
}
|
|
@@ -269886,7 +270088,7 @@ class PolyfaceQuery {
|
|
|
269886
270088
|
* * Return collected line segments.
|
|
269887
270089
|
* * This calls [[sweepLineStringToFacets]] with options created by
|
|
269888
270090
|
* `const options = SweepLineStringToFacetsOptions.create(Vector3d.unitZ(), Angle.createSmallAngle(), false, true, true, true);`
|
|
269889
|
-
* @deprecated in 4.7.0 -
|
|
270091
|
+
* @deprecated in 4.7.0 - might be removed in next major version. Use [[PolyfaceQuery.sweepLineStringToFacets]] to get further options.
|
|
269890
270092
|
*/
|
|
269891
270093
|
static sweepLinestringToFacetsXYReturnLines(linestringPoints, polyface) {
|
|
269892
270094
|
const options = SweepLineStringToFacetsOptions.create(_geometry3d_Point3dVector3d__WEBPACK_IMPORTED_MODULE_1__.Vector3d.unitZ(), _geometry3d_Angle__WEBPACK_IMPORTED_MODULE_2__.Angle.createSmallAngle(), false, true, true, true);
|
|
@@ -269896,7 +270098,7 @@ class PolyfaceQuery {
|
|
|
269896
270098
|
* Find segments (within the linestring) which project to facets.
|
|
269897
270099
|
* * Return chains.
|
|
269898
270100
|
* * This calls [[sweepLineStringToFacets]] with default options.
|
|
269899
|
-
* @deprecated in 4.7.0 -
|
|
270101
|
+
* @deprecated in 4.7.0 - might be removed in next major version. Use [[PolyfaceQuery.sweepLineStringToFacets]] to get further options.
|
|
269900
270102
|
*/
|
|
269901
270103
|
static sweepLinestringToFacetsXYReturnChains(linestringPoints, polyface) {
|
|
269902
270104
|
return PolyfaceQuery.sweepLineStringToFacets(linestringPoints, polyface);
|
|
@@ -312281,11 +312483,19 @@ class BaseFormat {
|
|
|
312281
312483
|
// default "north" is applied by the formatter (quarter rotation counter clockwise from east, the value depends on the units used)
|
|
312282
312484
|
get azimuthBase() { return this._azimuthBase; }
|
|
312283
312485
|
set azimuthBase(azimuthBase) { this._azimuthBase = azimuthBase; }
|
|
312486
|
+
/**
|
|
312487
|
+
* Must share the same phenomenon as the eventual persistence unit.
|
|
312488
|
+
* @see FormatProps.azimuthBaseUnit
|
|
312489
|
+
*/
|
|
312284
312490
|
get azimuthBaseUnit() { return this._azimuthBaseUnit; }
|
|
312285
312491
|
set azimuthBaseUnit(azimuthBaseUnit) { this._azimuthBaseUnit = azimuthBaseUnit; }
|
|
312286
312492
|
get azimuthCounterClockwise() { return this._azimuthCounterClockwise; }
|
|
312287
312493
|
set azimuthCounterClockwise(azimuthCounterClockwise) { this._azimuthCounterClockwise = azimuthCounterClockwise; }
|
|
312288
312494
|
get azimuthClockwiseOrDefault() { return !this._azimuthCounterClockwise; }
|
|
312495
|
+
/**
|
|
312496
|
+
* Must share the same phenomenon as the eventual persistence unit.
|
|
312497
|
+
* @see FormatProps.revolutionUnit
|
|
312498
|
+
*/
|
|
312289
312499
|
get revolutionUnit() { return this._revolutionUnit; }
|
|
312290
312500
|
set revolutionUnit(revolutionUnit) { this._revolutionUnit = revolutionUnit; }
|
|
312291
312501
|
/** This method parses input string that is typically extracted for persisted JSON data and validates that the string is a valid FormatType. Throws exception if not valid. */
|
|
@@ -312885,7 +313095,7 @@ var ShowSignOption;
|
|
|
312885
313095
|
// parse and toString methods
|
|
312886
313096
|
/**
|
|
312887
313097
|
* @beta
|
|
312888
|
-
* @deprecated in 4.10 -
|
|
313098
|
+
* @deprecated in 4.10 - might be removed in next major version. ScientificType is now a string enum and doesn't need a serialization method. You can access the enum directly.
|
|
312889
313099
|
*/
|
|
312890
313100
|
function scientificTypeToString(scientificType) {
|
|
312891
313101
|
return (scientificType === ScientificType.Normalized) ? "Normalized" : "ZeroNormalized";
|
|
@@ -312939,7 +313149,7 @@ function parseShowSignOption(showSignOption, formatName) {
|
|
|
312939
313149
|
}
|
|
312940
313150
|
/**
|
|
312941
313151
|
* @beta
|
|
312942
|
-
* @deprecated in 4.10 -
|
|
313152
|
+
* @deprecated in 4.10 - might be removed in next major version. ShowSignOption is now a string enum and doesn't need a serialization method. You can access the enum directly.
|
|
312943
313153
|
*/
|
|
312944
313154
|
function showSignOptionToString(showSign) {
|
|
312945
313155
|
switch (showSign) {
|
|
@@ -313032,7 +313242,7 @@ function parseFormatType(jsonObjType, formatName) {
|
|
|
313032
313242
|
}
|
|
313033
313243
|
}
|
|
313034
313244
|
/** @beta
|
|
313035
|
-
* @deprecated in 4.10 -
|
|
313245
|
+
* @deprecated in 4.10 - might be removed in next major version. FormatType is now a string enum and doesn't need a serialization method. You can access the enum directly.
|
|
313036
313246
|
*/
|
|
313037
313247
|
function formatTypeToString(type) {
|
|
313038
313248
|
switch (type) {
|
|
@@ -313125,6 +313335,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
313125
313335
|
/* harmony import */ var _FormatterSpec__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./FormatterSpec */ "../../core/quantity/lib/esm/Formatter/FormatterSpec.js");
|
|
313126
313336
|
/* harmony import */ var _FormatEnums__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./FormatEnums */ "../../core/quantity/lib/esm/Formatter/FormatEnums.js");
|
|
313127
313337
|
/* harmony import */ var _Quantity__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../Quantity */ "../../core/quantity/lib/esm/Quantity.js");
|
|
313338
|
+
/* harmony import */ var _generated_Units_generated__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../generated/Units.generated */ "../../core/quantity/lib/esm/generated/Units.generated.js");
|
|
313128
313339
|
/*---------------------------------------------------------------------------------------------
|
|
313129
313340
|
* Copyright (c) Bentley Systems, Incorporated. All rights reserved.
|
|
313130
313341
|
* See LICENSE.md in the project root for license terms and full copyright notice.
|
|
@@ -313137,6 +313348,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
313137
313348
|
|
|
313138
313349
|
|
|
313139
313350
|
|
|
313351
|
+
|
|
313140
313352
|
/** rounding additive
|
|
313141
313353
|
* @internal
|
|
313142
313354
|
*/
|
|
@@ -313577,8 +313789,8 @@ class Formatter {
|
|
|
313577
313789
|
if (type !== _FormatEnums__WEBPACK_IMPORTED_MODULE_3__.FormatType.Bearing && type !== _FormatEnums__WEBPACK_IMPORTED_MODULE_3__.FormatType.Azimuth)
|
|
313578
313790
|
return { magnitude };
|
|
313579
313791
|
const revolution = this.getRevolution(spec);
|
|
313580
|
-
magnitude = this.normalizeAngle(magnitude, revolution);
|
|
313581
313792
|
const quarterRevolution = revolution / 4;
|
|
313793
|
+
magnitude = this.normalizeToAzimuth(magnitude, spec.persistenceUnit.phenomenon, revolution);
|
|
313582
313794
|
if (type === _FormatEnums__WEBPACK_IMPORTED_MODULE_3__.FormatType.Bearing) {
|
|
313583
313795
|
let quadrant = 0;
|
|
313584
313796
|
while (magnitude > quarterRevolution) {
|
|
@@ -313647,6 +313859,17 @@ class Formatter {
|
|
|
313647
313859
|
magnitude += revolution;
|
|
313648
313860
|
return magnitude;
|
|
313649
313861
|
}
|
|
313862
|
+
/**
|
|
313863
|
+
* Converts a raw magnitude to a normalized azimuth (0 to revolution, measured clockwise from north), based on
|
|
313864
|
+
* the phenomenon it was persisted under. Raw math angles (`ANGLE` phenomenon) need the north-measured conversion;
|
|
313865
|
+
* true azimuths (`HORIZONTAL_DIRECTION`) don't. Not a unit conversion, so it's applied here, not via `convertTo`.
|
|
313866
|
+
* @internal
|
|
313867
|
+
*/
|
|
313868
|
+
static normalizeToAzimuth(magnitude, phenomenon, revolution) {
|
|
313869
|
+
if (phenomenon === _generated_Units_generated__WEBPACK_IMPORTED_MODULE_5__.Phenomena.ANGLE)
|
|
313870
|
+
magnitude = revolution / 4 - magnitude;
|
|
313871
|
+
return this.normalizeAngle(magnitude, revolution);
|
|
313872
|
+
}
|
|
313650
313873
|
static getRevolution(spec) {
|
|
313651
313874
|
if (spec.revolutionConversion === undefined) {
|
|
313652
313875
|
throw new _Exception__WEBPACK_IMPORTED_MODULE_1__.QuantityError(_Exception__WEBPACK_IMPORTED_MODULE_1__.QuantityStatus.MissingRequiredProperty, `Missing revolution unit conversion for calculating ${spec.name}'s revolution.`);
|
|
@@ -313910,6 +314133,9 @@ class FormatterSpec {
|
|
|
313910
314133
|
* @param name The name of a format specification.
|
|
313911
314134
|
* @param unitsProvider The units provider is used to look up unit definitions and provide conversion information for converting between units.
|
|
313912
314135
|
* @param inputUnit The unit the value to be formatted. This unit is often referred to as persistence unit.
|
|
314136
|
+
* @note For Bearing/Azimuth formats, `inputUnit`'s phenomenon must match `format.azimuthBaseUnit`/`format.revolutionUnit`.
|
|
314137
|
+
* @see BaseFormat.azimuthBaseUnit
|
|
314138
|
+
* @see BaseFormat.revolutionUnit
|
|
313913
314139
|
*/
|
|
313914
314140
|
static async create(name, format, unitsProvider, inputUnit) {
|
|
313915
314141
|
const conversions = await FormatterSpec.getUnitConversions(format, unitsProvider, inputUnit);
|
|
@@ -314082,6 +314308,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
314082
314308
|
/* harmony import */ var _Formatter_FormatEnums__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./Formatter/FormatEnums */ "../../core/quantity/lib/esm/Formatter/FormatEnums.js");
|
|
314083
314309
|
/* harmony import */ var _QuantityLoggerCategory__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./QuantityLoggerCategory */ "../../core/quantity/lib/esm/QuantityLoggerCategory.js");
|
|
314084
314310
|
/* harmony import */ var _Quantity__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./Quantity */ "../../core/quantity/lib/esm/Quantity.js");
|
|
314311
|
+
/* harmony import */ var _generated_Units_generated__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./generated/Units.generated */ "../../core/quantity/lib/esm/generated/Units.generated.js");
|
|
314085
314312
|
/*---------------------------------------------------------------------------------------------
|
|
314086
314313
|
* Copyright (c) Bentley Systems, Incorporated. All rights reserved.
|
|
314087
314314
|
* See LICENSE.md in the project root for license terms and full copyright notice.
|
|
@@ -314095,6 +314322,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
314095
314322
|
|
|
314096
314323
|
|
|
314097
314324
|
|
|
314325
|
+
|
|
314098
314326
|
/** Possible parser errors
|
|
314099
314327
|
* @beta
|
|
314100
314328
|
*/
|
|
@@ -314735,7 +314963,7 @@ class Parser {
|
|
|
314735
314963
|
* @param inString A string that contains text represent a quantity.
|
|
314736
314964
|
* @param format Defines the likely format of inString. Primary unit serves as a default unit if no unit label found in string.
|
|
314737
314965
|
* @param unitsConversions dictionary of conversions used to convert from unit used in inString to output quantity
|
|
314738
|
-
* @deprecated in 4.10 -
|
|
314966
|
+
* @deprecated in 4.10 - might be removed in next major version. Check [[Parser.parseQuantityString]] for replacements.
|
|
314739
314967
|
*/
|
|
314740
314968
|
static parseToQuantityValue(inString, format, unitsConversions) {
|
|
314741
314969
|
// TODO: This method is not able to do bearing and azimuth formatting and is overlapping with parseQuantityString.
|
|
@@ -314758,16 +314986,19 @@ class Parser {
|
|
|
314758
314986
|
}
|
|
314759
314987
|
return this.parseAndProcessTokens(inString, format, unitsConversions);
|
|
314760
314988
|
}
|
|
314761
|
-
/** The value of special direction is always in degrees
|
|
314989
|
+
/** The value of special direction is always in degrees; resolve "degrees" relative to
|
|
314990
|
+
* `spec.outUnit`'s phenomenon, since `Units.ARC_DEG` only exists in the `Units.ANGLE` family. */
|
|
314762
314991
|
static processSpecialBearingDirection(mag, spec) {
|
|
314763
|
-
const
|
|
314992
|
+
const degreeUnitName = spec.outUnit.phenomenon === _generated_Units_generated__WEBPACK_IMPORTED_MODULE_6__.Phenomena.HORIZONTAL_DIRECTION ? "Units.HORIZONTAL_DIR_ARC_DEG" : "Units.ARC_DEG";
|
|
314993
|
+
const specialDirUnit = spec.unitConversions.find((unitConversion) => unitConversion.name === degreeUnitName);
|
|
314764
314994
|
if (!specialDirUnit)
|
|
314765
314995
|
return { ok: false, error: ParseError.UnknownUnit };
|
|
314766
314996
|
const preferredUnit = spec.outUnit;
|
|
314767
314997
|
const conversion = this.tryFindUnitConversion(specialDirUnit.label, spec.unitConversions, preferredUnit);
|
|
314768
314998
|
if (!conversion)
|
|
314769
314999
|
return { ok: true, value: mag };
|
|
314770
|
-
|
|
315000
|
+
const revolution = this.getRevolution(spec);
|
|
315001
|
+
return { ok: true, value: this.convertAzimuthToPersistenceConvention((0,_Quantity__WEBPACK_IMPORTED_MODULE_5__.applyConversion)(mag, conversion), spec, revolution) };
|
|
314771
315002
|
}
|
|
314772
315003
|
static parseBearingFormat(inString, spec) {
|
|
314773
315004
|
const specialDirections = {
|
|
@@ -314844,6 +315075,7 @@ class Parser {
|
|
|
314844
315075
|
}
|
|
314845
315076
|
}
|
|
314846
315077
|
magnitude = this.normalizeAngle(magnitude, revolution);
|
|
315078
|
+
magnitude = this.convertAzimuthToPersistenceConvention(magnitude, spec, revolution);
|
|
314847
315079
|
return { ok: true, value: magnitude };
|
|
314848
315080
|
}
|
|
314849
315081
|
static parseAzimuthFormat(inString, spec) {
|
|
@@ -314869,6 +315101,8 @@ class Parser {
|
|
|
314869
315101
|
const inputIsClockwise = spec.format.azimuthClockwiseOrDefault;
|
|
314870
315102
|
if (inputIsClockwise && azimuthBase === 0) {
|
|
314871
315103
|
// parsed result already has the same base and orientation as our desired output
|
|
315104
|
+
if (spec.outUnit.phenomenon === _generated_Units_generated__WEBPACK_IMPORTED_MODULE_6__.Phenomena.ANGLE)
|
|
315105
|
+
return { ok: true, value: this.convertAzimuthToPersistenceConvention(magnitude, spec, revolution) };
|
|
314872
315106
|
return parsedResult;
|
|
314873
315107
|
}
|
|
314874
315108
|
if (inputIsClockwise)
|
|
@@ -314876,6 +315110,7 @@ class Parser {
|
|
|
314876
315110
|
else
|
|
314877
315111
|
magnitude = azimuthBase - magnitude;
|
|
314878
315112
|
magnitude = this.normalizeAngle(magnitude, revolution);
|
|
315113
|
+
magnitude = this.convertAzimuthToPersistenceConvention(magnitude, spec, revolution);
|
|
314879
315114
|
return { ok: true, value: magnitude };
|
|
314880
315115
|
}
|
|
314881
315116
|
/**
|
|
@@ -315017,6 +315252,15 @@ class Parser {
|
|
|
315017
315252
|
}
|
|
315018
315253
|
return converted.magnitude;
|
|
315019
315254
|
}
|
|
315255
|
+
/** Converts an azimuth-convention magnitude back to a raw math angle when `spec.outUnit` is
|
|
315256
|
+
* `ANGLE`-phenomenon (mirrors the transform in `Formatter.processBearingAndAzimuth`). No-op for
|
|
315257
|
+
* `HORIZONTAL_DIRECTION`, which is already a true azimuth. */
|
|
315258
|
+
static convertAzimuthToPersistenceConvention(magnitude, spec, revolution) {
|
|
315259
|
+
if (spec.outUnit.phenomenon !== _generated_Units_generated__WEBPACK_IMPORTED_MODULE_6__.Phenomena.ANGLE)
|
|
315260
|
+
return magnitude;
|
|
315261
|
+
const quarterRevolution = revolution / 4;
|
|
315262
|
+
return this.normalizeAngle(quarterRevolution - magnitude, revolution);
|
|
315263
|
+
}
|
|
315020
315264
|
static parseAndProcessTokens(inString, format, unitsConversions) {
|
|
315021
315265
|
const tokens = Parser.parseQuantitySpecification(inString, format);
|
|
315022
315266
|
if (Parser._log) {
|
|
@@ -315217,6 +315461,9 @@ class ParserSpec {
|
|
|
315217
315461
|
* @param format The format specification.
|
|
315218
315462
|
* @param unitsProvider The units provider is used to look up unit definitions and provide conversion information for converting between units.
|
|
315219
315463
|
* @param outUnit The unit a value will be formatted to. This unit is often referred to as persistence unit.
|
|
315464
|
+
* @note For Bearing/Azimuth formats, `outUnit`'s phenomenon must match `format.azimuthBaseUnit`/`format.revolutionUnit`.
|
|
315465
|
+
* @see BaseFormat.azimuthBaseUnit
|
|
315466
|
+
* @see BaseFormat.revolutionUnit
|
|
315220
315467
|
*/
|
|
315221
315468
|
static async create(format, unitsProvider, outUnit, altUnitLabelsProvider) {
|
|
315222
315469
|
let conversions;
|
|
@@ -318994,7 +319241,7 @@ class UiAdmin {
|
|
|
318994
319241
|
/** Get the cursor X and Y position. */
|
|
318995
319242
|
get cursorPosition() { return { x: 0, y: 0 }; }
|
|
318996
319243
|
/** Create a PointProps object.
|
|
318997
|
-
* @deprecated in 4.2.0 -
|
|
319244
|
+
* @deprecated in 4.2.0 - might be removed in next major version. Please use @core/geometry [[XAndY]] or a custom implementation.
|
|
318998
319245
|
*/
|
|
318999
319246
|
createXAndY(x, y) { return { x, y }; }
|
|
319000
319247
|
/** Determines if focus is set to Home */
|
|
@@ -319198,7 +319445,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
319198
319445
|
* @module Utilities
|
|
319199
319446
|
*/
|
|
319200
319447
|
/** Enumeration for Function Keys
|
|
319201
|
-
* @public @deprecated in 4.3 -
|
|
319448
|
+
* @public @deprecated in 4.3 - might be removed in next major version. Please use the `ts-key-enum` npm package or string literals.
|
|
319202
319449
|
*/
|
|
319203
319450
|
var FunctionKey;
|
|
319204
319451
|
(function (FunctionKey) {
|
|
@@ -319216,7 +319463,7 @@ var FunctionKey;
|
|
|
319216
319463
|
FunctionKey["F12"] = "F12";
|
|
319217
319464
|
})(FunctionKey || (FunctionKey = {}));
|
|
319218
319465
|
/** Enumeration for Special Keys
|
|
319219
|
-
* @public @deprecated in 4.3 -
|
|
319466
|
+
* @public @deprecated in 4.3 - might be removed in next major version. Please use the `ts-key-enum` npm package or string literals.
|
|
319220
319467
|
*/
|
|
319221
319468
|
var SpecialKey;
|
|
319222
319469
|
(function (SpecialKey) {
|
|
@@ -319245,7 +319492,7 @@ var SpecialKey;
|
|
|
319245
319492
|
SpecialKey["Decimal"] = "Decimal";
|
|
319246
319493
|
})(SpecialKey || (SpecialKey = {}));
|
|
319247
319494
|
/** Determines if a KeyboardEvent.key is an Arrow key
|
|
319248
|
-
* @public @deprecated in 4.3 -
|
|
319495
|
+
* @public @deprecated in 4.3 - might be removed in next major version. Please use a custom implementation moving forward.
|
|
319249
319496
|
*/
|
|
319250
319497
|
function isArrowKey(key) {
|
|
319251
319498
|
// eslint-disable-next-line @typescript-eslint/no-deprecated
|
|
@@ -319297,7 +319544,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
319297
319544
|
/**
|
|
319298
319545
|
* Class that define Standard Content Layouts that can be used to specify how the content is arranged in a frontstage.
|
|
319299
319546
|
* @public
|
|
319300
|
-
* @deprecated in 4.10.0 -
|
|
319547
|
+
* @deprecated in 4.10.0 - might be removed in next major version. Use `StandardContentLayouts` from `@itwin/appui-react`.
|
|
319301
319548
|
*/
|
|
319302
319549
|
class StandardContentLayouts {
|
|
319303
319550
|
static singleView = {
|
|
@@ -320825,20 +321072,20 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
320825
321072
|
*/
|
|
320826
321073
|
/* eslint-disable @typescript-eslint/no-deprecated */
|
|
320827
321074
|
/** Creates an IconSpec with an SVG source and gets the SVG source from an IconSpec.
|
|
320828
|
-
* @public @deprecated in 4.3 -
|
|
321075
|
+
* @public @deprecated in 4.3 - might be removed in next major version. AppUI libraries >= 4.7.x support loading SVGs sources without prefixes, eliminating the need for these utilities.
|
|
320829
321076
|
*/
|
|
320830
321077
|
class IconSpecUtilities {
|
|
320831
321078
|
/** Prefix for an SVG IconSpec loaded with the Sprite loader */
|
|
320832
321079
|
static SVG_PREFIX = "svg:";
|
|
320833
321080
|
static WEB_COMPONENT_PREFIX = "webSvg:";
|
|
320834
321081
|
/** Create an IconSpec for an SVG loaded into web component with svg-loader
|
|
320835
|
-
* @public @deprecated in 4.3 -
|
|
321082
|
+
* @public @deprecated in 4.3 - might be removed in next major version. AppUI libraries > 4.7.x support loading SVGs sources without prefixes, eliminating the need for this utility.
|
|
320836
321083
|
*/
|
|
320837
321084
|
static createWebComponentIconSpec(srcString) {
|
|
320838
321085
|
return `${IconSpecUtilities.WEB_COMPONENT_PREFIX}${srcString}`;
|
|
320839
321086
|
}
|
|
320840
321087
|
/** Get the SVG Source from an svg-loader IconSpec
|
|
320841
|
-
* @public @deprecated in 4.3 -
|
|
321088
|
+
* @public @deprecated in 4.3 - might be removed in next major version. AppUI libraries > 4.7.x support loading SVGs sources without prefixes, eliminating the need for this utility.
|
|
320842
321089
|
*/
|
|
320843
321090
|
static getWebComponentSource(iconSpec) {
|
|
320844
321091
|
if (iconSpec.startsWith(IconSpecUtilities.WEB_COMPONENT_PREFIX) && iconSpec.length > 7) {
|
|
@@ -320892,7 +321139,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
320892
321139
|
*/
|
|
320893
321140
|
|
|
320894
321141
|
/** iTwin.js UI UiError class is a subclass of BentleyError. Errors are logged.
|
|
320895
|
-
* @public @deprecated in 4.3 -
|
|
321142
|
+
* @public @deprecated in 4.3 - might be removed in next major version. Use [[Bentley.BentleyError]] instead.
|
|
320896
321143
|
*/
|
|
320897
321144
|
class UiError extends _itwin_core_bentley__WEBPACK_IMPORTED_MODULE_0__.BentleyError {
|
|
320898
321145
|
category;
|
|
@@ -320928,7 +321175,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
320928
321175
|
|
|
320929
321176
|
/** iTwin.js UI UiEvent class is a subclass of BeEvent with argument type safety.
|
|
320930
321177
|
* @public
|
|
320931
|
-
* @deprecated in 4.2 -
|
|
321178
|
+
* @deprecated in 4.2 - might be removed in next major version. This type is a duplicate of [[BeUiEvent]], which should be used instead.
|
|
320932
321179
|
*/
|
|
320933
321180
|
class UiEvent extends _itwin_core_bentley__WEBPACK_IMPORTED_MODULE_0__.BeUiEvent {
|
|
320934
321181
|
}
|
|
@@ -320959,7 +321206,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
320959
321206
|
|
|
320960
321207
|
/** UiSync Event class.
|
|
320961
321208
|
* @public
|
|
320962
|
-
* @deprecated in 4.2.0 -
|
|
321209
|
+
* @deprecated in 4.2.0 - might be removed in next major version. Use [[UiSyncEvent]] from @itwin/appui-react.
|
|
320963
321210
|
*/
|
|
320964
321211
|
// eslint-disable-next-line @typescript-eslint/no-deprecated
|
|
320965
321212
|
class UiSyncEvent extends _itwin_core_bentley__WEBPACK_IMPORTED_MODULE_0__.BeUiEvent {
|
|
@@ -320967,7 +321214,7 @@ class UiSyncEvent extends _itwin_core_bentley__WEBPACK_IMPORTED_MODULE_0__.BeUiE
|
|
|
320967
321214
|
/** This class is used to send eventIds to interested UI components so the component can determine if it needs
|
|
320968
321215
|
* to refresh its display by calling setState on itself.
|
|
320969
321216
|
* @public
|
|
320970
|
-
* @deprecated in 4.2.0 -
|
|
321217
|
+
* @deprecated in 4.2.0 - might be removed in next major version. Use [[SyncUiEventDispatcher]] from @itwin/appui-react.
|
|
320971
321218
|
*/
|
|
320972
321219
|
class UiEventDispatcher {
|
|
320973
321220
|
_syncEventTimerId;
|
|
@@ -321170,7 +321417,7 @@ function join(head, tail) {
|
|
|
321170
321417
|
* @param contiguous - If true the filter string must be found "contiguous" in the searched string (E.g. "pul" will match "Git: Pull").
|
|
321171
321418
|
* Otherwise also matches sub string of the word with beginnings of the words in the target (e.g. "gp" or "g p" will match "Git: Pull").
|
|
321172
321419
|
* Useful in cases where the target is words (e.g. command labels)
|
|
321173
|
-
* @internal @deprecated in 4.3 -
|
|
321420
|
+
* @internal @deprecated in 4.3 - might be removed in next major version. Use `matchesWords` from @itwin/core-react instead. Though internal, this requires deprecation due to known public usage in @itwin/core-react.
|
|
321174
321421
|
*/
|
|
321175
321422
|
function matchesWords(word, target, contiguous = false) {
|
|
321176
321423
|
if (!target || target.length === 0) {
|
|
@@ -321242,7 +321489,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
321242
321489
|
*/
|
|
321243
321490
|
/** Gets the class name for an object.
|
|
321244
321491
|
* @internal
|
|
321245
|
-
* @deprecated in 4.3 -
|
|
321492
|
+
* @deprecated in 4.3 - might be removed in next major version. Please use your own implementation in the future. Though internal, this requires deprecation due to known public usage in @itwin/core-react.
|
|
321246
321493
|
*/
|
|
321247
321494
|
const getClassName = (obj) => {
|
|
321248
321495
|
let className = "";
|
|
@@ -332798,7 +333045,7 @@ var loadLanguages = instance.loadLanguages;
|
|
|
332798
333045
|
/***/ ((module) => {
|
|
332799
333046
|
|
|
332800
333047
|
"use strict";
|
|
332801
|
-
module.exports = /*#__PURE__*/JSON.parse('{"name":"@itwin/core-frontend","version":"5.12.0-dev.
|
|
333048
|
+
module.exports = /*#__PURE__*/JSON.parse('{"name":"@itwin/core-frontend","version":"5.12.0-dev.10","description":"iTwin.js frontend components","main":"lib/cjs/core-frontend.js","module":"lib/esm/core-frontend.js","typings":"lib/cjs/core-frontend","license":"MIT","scripts":{"build":"npm run -s copy:public && npm run -s build:cjs && npm run -s build:esm && npm run -s webpackWorkers && npm run -s copy:workers && npm run -s copy:draco","build:cjs":"npm run -s copy:js:cjs && tsc 1>&2 --outDir lib/cjs","build:esm":"npm run -s copy:js:esm && tsc 1>&2 --module ES2022 --outDir lib/esm","clean":"rimraf -g lib .rush/temp/package-deps*.json","copy:public":"cpx \\"./src/public/**/*\\" ./lib/public","copy:js:cjs":"cpx \\"./src/**/*.js\\" ./lib/cjs","copy:js:esm":"cpx \\"./src/**/*.js\\" ./lib/esm","copy:workers":"cpx \\"./lib/workers/webpack/parse-imdl-worker.js\\" ./lib/public/scripts","copy:draco":"cpx \\"./node_modules/@loaders.gl/draco/dist/libs/*\\" ./lib/public/scripts","docs":"betools docs --json=../../generated-docs/core/core-frontend/file.json --tsIndexFile=./core-frontend.ts --onlyJson --excludes=webgl/**/*,**/map/*.d.ts,**/tile/*.d.ts,**/*-css.ts && npm run -s extract","extract":"betools extract --fileExt=ts --extractFrom=./src/test/example-code --recursive --out=../../generated-docs/extract","extract-api":"betools extract-api --entry=core-frontend && npm run extract-extension-api","extract-extension-api":"eslint --no-inline-config -c extraction.eslint.config.js \\"./src/**/*.ts\\" 1>&2","lint":"eslint \\"./src/**/*.ts\\" 1>&2","lint-fix":"eslint --fix -f visualstudio \\"./src/**/*.ts\\" 1>&2","lint-deprecation":"eslint --fix -f visualstudio --no-inline-config -c ../../common/config/eslint/eslint.config.deprecation-policy.js \\"./src/**/*.ts\\"","pseudolocalize":"betools pseudolocalize --englishDir ./src/public/locales/en --out ./public/locales/en-PSEUDO","test":"npm run webpackTestWorker && vitest --run","cover":"npm run webpackTestWorker && vitest --run","webpackTests":"webpack --config ./src/test/utils/webpack.config.js 1>&2 && npm run -s webpackTestWorker","webpackTestWorker":"webpack --config ./src/test/worker/webpack.config.js 1>&2 && cpx \\"./lib/test/test-worker.js\\" ./lib/test","webpackWorkers":"webpack --config ./src/workers/ImdlParser/webpack.config.js 1>&2"},"repository":{"type":"git","url":"https://github.com/iTwin/itwinjs-core.git","directory":"core/frontend"},"keywords":["Bentley","BIM","iModel","digital-twin","iTwin"],"author":{"name":"Bentley Systems, Inc.","url":"http://www.bentley.com"},"peerDependencies":{"@itwin/appui-abstract":"workspace:*","@itwin/core-bentley":"workspace:*","@itwin/core-common":"workspace:*","@itwin/core-geometry":"workspace:*","@itwin/core-orbitgt":"workspace:*","@itwin/core-quantity":"workspace:*","@itwin/ecschema-metadata":"workspace:*","@itwin/ecschema-rpcinterface-common":"workspace:*"},"//devDependencies":["NOTE: All peerDependencies should also be listed as devDependencies since peerDependencies are not considered by npm install","NOTE: All tools used by scripts in this package must be listed as devDependencies"],"devDependencies":{"@bentley/aec-units-schema":"^1.0.3","@bentley/formats-schema":"^1.0.0","@bentley/units-schema":"^1.0.10","@itwin/appui-abstract":"workspace:*","@itwin/build-tools":"workspace:*","@itwin/core-bentley":"workspace:*","@itwin/core-common":"workspace:*","@itwin/core-geometry":"workspace:*","@itwin/core-orbitgt":"workspace:*","@itwin/core-quantity":"workspace:*","@itwin/ecschema-metadata":"workspace:*","@itwin/ecschema-rpcinterface-common":"workspace:*","@itwin/object-storage-core":"^3.0.4","@itwin/eslint-plugin":"^6.0.0","@types/chai-as-promised":"^7","@types/draco3d":"^1.4.10","@types/node":"~20.17.0","@types/sinon":"^17.0.2","@vitest/browser-playwright":"^4.1.8","@vitest/coverage-v8":"^4.1.8","cpx2":"^8.0.0","eslint":"^9.31.0","glob":"^10.5.0","playwright":"~1.56.1","rimraf":"^6.0.1","sinon":"^17.0.2","source-map-loader":"^5.0.0","typescript":"~5.6.2","vitest":"^4.1.8","vite-multiple-assets":"^1.3.1","vite-plugin-static-copy":"2.2.0","webpack":"^5.97.1"},"//dependencies":["NOTE: these dependencies should be only for things that DO NOT APPEAR IN THE API","NOTE: core-frontend should remain UI technology agnostic, so no react/angular dependencies are allowed"],"dependencies":{"@itwin/core-i18n":"workspace:*","@itwin/webgl-compatibility":"workspace:*","@loaders.gl/core":"~4.3.4","@loaders.gl/draco":"~4.3.4","fuse.js":"^3.3.0","wms-capabilities":"0.4.0"}}');
|
|
332802
333049
|
|
|
332803
333050
|
/***/ })
|
|
332804
333051
|
|