@itwin/ecschema-rpcinterface-tests 4.2.0-dev.27 → 4.2.0-dev.29
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/_0062.bundled-tests.js.map +1 -1
- package/lib/dist/bundled-tests.js +107 -94
- package/lib/dist/bundled-tests.js.map +1 -1
- package/lib/dist/core_frontend_lib_esm_ApproximateTerrainHeightsProps_js.bundled-tests.js.map +1 -1
- package/lib/dist/vendors-common_temp_node_modules_pnpm_loaders_gl_draco_3_4_7_node_modules_loaders_gl_draco_di-02c2bd.bundled-tests.js.map +1 -1
- package/package.json +15 -15
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"_0062.bundled-tests.js","mappings":";;;;;;;;AAAA","sources":["file:///ignored|D:\\
|
|
1
|
+
{"version":3,"file":"_0062.bundled-tests.js","mappings":";;;;;;;;AAAA","sources":["file:///ignored|D:\\vsts_a\\17\\s\\common\\temp\\node_modules\\.pnpm\\@loaders.gl+worker-utils@3.4.7\\node_modules\\@loaders.gl\\worker-utils\\dist\\esm\\lib\\library-utils|../node/require-utils.node"],"names":[],"sourceRoot":""}
|
|
@@ -67571,7 +67571,7 @@ const Schema_1 = __webpack_require__(/*! ./Metadata/Schema */ "../../core/ecsche
|
|
|
67571
67571
|
/**
|
|
67572
67572
|
* A ISchemaLocater implementation for locating and retrieving EC Schema objects using a function
|
|
67573
67573
|
* that returns the Schema Json for a given schema name
|
|
67574
|
-
* @
|
|
67574
|
+
* @beta
|
|
67575
67575
|
*/
|
|
67576
67576
|
class SchemaJsonLocater {
|
|
67577
67577
|
constructor(_getSchema) {
|
|
@@ -67867,7 +67867,12 @@ const SchemaKey_1 = __webpack_require__(/*! ./SchemaKey */ "../../core/ecschema-
|
|
|
67867
67867
|
* Loaded schemas are held in memory within a schema context managed by SchemaLoader.
|
|
67868
67868
|
* The SchemaLoader object should be held in memory if multiple calls to [[getSchema]] or [[tryGetSchema]]
|
|
67869
67869
|
* is a possibility, thereby avoiding unnecessary schema retrievals from the function.
|
|
67870
|
-
*
|
|
67870
|
+
*
|
|
67871
|
+
* ** Example **
|
|
67872
|
+
* ```ts
|
|
67873
|
+
* [[include:IModelSchemas.loadFromDb]]
|
|
67874
|
+
* ```
|
|
67875
|
+
* @beta
|
|
67871
67876
|
*/
|
|
67872
67877
|
class SchemaLoader {
|
|
67873
67878
|
constructor(getSchema) {
|
|
@@ -67895,6 +67900,10 @@ class SchemaLoader {
|
|
|
67895
67900
|
const schema = this._context.getSchemaSync(key, ECObjects_1.SchemaMatchType.Latest);
|
|
67896
67901
|
return schema;
|
|
67897
67902
|
}
|
|
67903
|
+
/** Gets the SchemaContext used by the loader. */
|
|
67904
|
+
get context() {
|
|
67905
|
+
return this._context;
|
|
67906
|
+
}
|
|
67898
67907
|
}
|
|
67899
67908
|
exports.SchemaLoader = SchemaLoader;
|
|
67900
67909
|
|
|
@@ -79976,45 +79985,46 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
79976
79985
|
/* harmony export */ IModelApp: () => (/* binding */ IModelApp),
|
|
79977
79986
|
/* harmony export */ ITWINJS_CORE_VERSION: () => (/* binding */ ITWINJS_CORE_VERSION)
|
|
79978
79987
|
/* harmony export */ });
|
|
79979
|
-
/* harmony import */ var
|
|
79980
|
-
/* harmony import */ var
|
|
79981
|
-
/* harmony import */ var
|
|
79982
|
-
/* harmony import */ var
|
|
79983
|
-
/* harmony import */ var
|
|
79984
|
-
/* harmony import */ var
|
|
79985
|
-
/* harmony import */ var
|
|
79986
|
-
/* harmony import */ var
|
|
79987
|
-
/* harmony import */ var
|
|
79988
|
-
/* harmony import */ var
|
|
79989
|
-
/* harmony import */ var
|
|
79990
|
-
/* harmony import */ var
|
|
79991
|
-
/* harmony import */ var
|
|
79992
|
-
/* harmony import */ var
|
|
79993
|
-
/* harmony import */ var
|
|
79994
|
-
/* harmony import */ var
|
|
79995
|
-
/* harmony import */ var
|
|
79996
|
-
/* harmony import */ var
|
|
79997
|
-
/* harmony import */ var
|
|
79998
|
-
/* harmony import */ var
|
|
79999
|
-
/* harmony import */ var
|
|
80000
|
-
/* harmony import */ var
|
|
80001
|
-
/* harmony import */ var
|
|
80002
|
-
/* harmony import */ var
|
|
80003
|
-
/* harmony import */ var
|
|
80004
|
-
/* harmony import */ var
|
|
80005
|
-
/* harmony import */ var
|
|
80006
|
-
/* harmony import */ var
|
|
80007
|
-
/* harmony import */ var
|
|
80008
|
-
/* harmony import */ var
|
|
80009
|
-
/* harmony import */ var
|
|
80010
|
-
/* harmony import */ var
|
|
80011
|
-
/* harmony import */ var
|
|
80012
|
-
/* harmony import */ var
|
|
80013
|
-
/* harmony import */ var
|
|
80014
|
-
/* harmony import */ var
|
|
80015
|
-
/* harmony import */ var
|
|
80016
|
-
/* harmony import */ var
|
|
80017
|
-
/* harmony import */ var
|
|
79988
|
+
/* harmony import */ var _package_json__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../package.json */ "../../core/frontend/package.json");
|
|
79989
|
+
/* harmony import */ var _itwin_appui_abstract__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @itwin/appui-abstract */ "../../ui/appui-abstract/lib/esm/appui-abstract.js");
|
|
79990
|
+
/* harmony import */ var _itwin_core_bentley__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @itwin/core-bentley */ "../../core/bentley/lib/esm/core-bentley.js");
|
|
79991
|
+
/* harmony import */ var _itwin_core_common__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @itwin/core-common */ "../../core/common/lib/esm/core-common.js");
|
|
79992
|
+
/* harmony import */ var _itwin_core_i18n__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @itwin/core-i18n */ "../../core/i18n/lib/esm/core-i18n.js");
|
|
79993
|
+
/* harmony import */ var _itwin_core_telemetry__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @itwin/core-telemetry */ "../../core/telemetry/lib/esm/core-telemetry.js");
|
|
79994
|
+
/* harmony import */ var _itwin_webgl_compatibility__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! @itwin/webgl-compatibility */ "../../core/webgl-compatibility/lib/esm/webgl-compatibility.js");
|
|
79995
|
+
/* harmony import */ var _AccuDraw__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./AccuDraw */ "../../core/frontend/lib/esm/AccuDraw.js");
|
|
79996
|
+
/* harmony import */ var _AccuSnap__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./AccuSnap */ "../../core/frontend/lib/esm/AccuSnap.js");
|
|
79997
|
+
/* harmony import */ var _AuxCoordSys__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./AuxCoordSys */ "../../core/frontend/lib/esm/AuxCoordSys.js");
|
|
79998
|
+
/* harmony import */ var _CategorySelectorState__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ./CategorySelectorState */ "../../core/frontend/lib/esm/CategorySelectorState.js");
|
|
79999
|
+
/* harmony import */ var _extension_ExtensionAdmin__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ./extension/ExtensionAdmin */ "../../core/frontend/lib/esm/extension/ExtensionAdmin.js");
|
|
80000
|
+
/* harmony import */ var _DisplayStyleState__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ./DisplayStyleState */ "../../core/frontend/lib/esm/DisplayStyleState.js");
|
|
80001
|
+
/* harmony import */ var _DrawingViewState__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ./DrawingViewState */ "../../core/frontend/lib/esm/DrawingViewState.js");
|
|
80002
|
+
/* harmony import */ var _ElementLocateManager__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! ./ElementLocateManager */ "../../core/frontend/lib/esm/ElementLocateManager.js");
|
|
80003
|
+
/* harmony import */ var _EntityState__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! ./EntityState */ "../../core/frontend/lib/esm/EntityState.js");
|
|
80004
|
+
/* harmony import */ var _common_FrontendLoggerCategory__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! ./common/FrontendLoggerCategory */ "../../core/frontend/lib/esm/common/FrontendLoggerCategory.js");
|
|
80005
|
+
/* harmony import */ var _ModelSelectorState__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(/*! ./ModelSelectorState */ "../../core/frontend/lib/esm/ModelSelectorState.js");
|
|
80006
|
+
/* harmony import */ var _ModelState__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(/*! ./ModelState */ "../../core/frontend/lib/esm/ModelState.js");
|
|
80007
|
+
/* harmony import */ var _NotificationManager__WEBPACK_IMPORTED_MODULE_19__ = __webpack_require__(/*! ./NotificationManager */ "../../core/frontend/lib/esm/NotificationManager.js");
|
|
80008
|
+
/* harmony import */ var _quantity_formatting_QuantityFormatter__WEBPACK_IMPORTED_MODULE_20__ = __webpack_require__(/*! ./quantity-formatting/QuantityFormatter */ "../../core/frontend/lib/esm/quantity-formatting/QuantityFormatter.js");
|
|
80009
|
+
/* harmony import */ var _render_RenderSystem__WEBPACK_IMPORTED_MODULE_21__ = __webpack_require__(/*! ./render/RenderSystem */ "../../core/frontend/lib/esm/render/RenderSystem.js");
|
|
80010
|
+
/* harmony import */ var _render_webgl_System__WEBPACK_IMPORTED_MODULE_22__ = __webpack_require__(/*! ./render/webgl/System */ "../../core/frontend/lib/esm/render/webgl/System.js");
|
|
80011
|
+
/* harmony import */ var _SheetViewState__WEBPACK_IMPORTED_MODULE_23__ = __webpack_require__(/*! ./SheetViewState */ "../../core/frontend/lib/esm/SheetViewState.js");
|
|
80012
|
+
/* harmony import */ var _SpatialViewState__WEBPACK_IMPORTED_MODULE_24__ = __webpack_require__(/*! ./SpatialViewState */ "../../core/frontend/lib/esm/SpatialViewState.js");
|
|
80013
|
+
/* harmony import */ var _TentativePoint__WEBPACK_IMPORTED_MODULE_25__ = __webpack_require__(/*! ./TentativePoint */ "../../core/frontend/lib/esm/TentativePoint.js");
|
|
80014
|
+
/* harmony import */ var _RealityDataSource__WEBPACK_IMPORTED_MODULE_26__ = __webpack_require__(/*! ./RealityDataSource */ "../../core/frontend/lib/esm/RealityDataSource.js");
|
|
80015
|
+
/* harmony import */ var _tile_internal__WEBPACK_IMPORTED_MODULE_27__ = __webpack_require__(/*! ./tile/internal */ "../../core/frontend/lib/esm/tile/internal.js");
|
|
80016
|
+
/* harmony import */ var _tools_AccuDrawTool__WEBPACK_IMPORTED_MODULE_28__ = __webpack_require__(/*! ./tools/AccuDrawTool */ "../../core/frontend/lib/esm/tools/AccuDrawTool.js");
|
|
80017
|
+
/* harmony import */ var _tools_ClipViewTool__WEBPACK_IMPORTED_MODULE_29__ = __webpack_require__(/*! ./tools/ClipViewTool */ "../../core/frontend/lib/esm/tools/ClipViewTool.js");
|
|
80018
|
+
/* harmony import */ var _tools_IdleTool__WEBPACK_IMPORTED_MODULE_30__ = __webpack_require__(/*! ./tools/IdleTool */ "../../core/frontend/lib/esm/tools/IdleTool.js");
|
|
80019
|
+
/* harmony import */ var _tools_MeasureTool__WEBPACK_IMPORTED_MODULE_31__ = __webpack_require__(/*! ./tools/MeasureTool */ "../../core/frontend/lib/esm/tools/MeasureTool.js");
|
|
80020
|
+
/* harmony import */ var _tools_SelectTool__WEBPACK_IMPORTED_MODULE_32__ = __webpack_require__(/*! ./tools/SelectTool */ "../../core/frontend/lib/esm/tools/SelectTool.js");
|
|
80021
|
+
/* harmony import */ var _tools_Tool__WEBPACK_IMPORTED_MODULE_33__ = __webpack_require__(/*! ./tools/Tool */ "../../core/frontend/lib/esm/tools/Tool.js");
|
|
80022
|
+
/* harmony import */ var _tools_ToolAdmin__WEBPACK_IMPORTED_MODULE_34__ = __webpack_require__(/*! ./tools/ToolAdmin */ "../../core/frontend/lib/esm/tools/ToolAdmin.js");
|
|
80023
|
+
/* harmony import */ var _tools_ViewTool__WEBPACK_IMPORTED_MODULE_35__ = __webpack_require__(/*! ./tools/ViewTool */ "../../core/frontend/lib/esm/tools/ViewTool.js");
|
|
80024
|
+
/* harmony import */ var _ViewManager__WEBPACK_IMPORTED_MODULE_36__ = __webpack_require__(/*! ./ViewManager */ "../../core/frontend/lib/esm/ViewManager.js");
|
|
80025
|
+
/* harmony import */ var _ViewState__WEBPACK_IMPORTED_MODULE_37__ = __webpack_require__(/*! ./ViewState */ "../../core/frontend/lib/esm/ViewState.js");
|
|
80026
|
+
/* harmony import */ var _IModeljs_css__WEBPACK_IMPORTED_MODULE_38__ = __webpack_require__(/*! ./IModeljs-css */ "../../core/frontend/lib/esm/IModeljs-css.js");
|
|
80027
|
+
/* harmony import */ var _IModeljs_css__WEBPACK_IMPORTED_MODULE_38___default = /*#__PURE__*/__webpack_require__.n(_IModeljs_css__WEBPACK_IMPORTED_MODULE_38__);
|
|
80018
80028
|
/*---------------------------------------------------------------------------------------------
|
|
80019
80029
|
* Copyright (c) Bentley Systems, Incorporated. All rights reserved.
|
|
80020
80030
|
* See LICENSE.md in the project root for license terms and full copyright notice.
|
|
@@ -80023,9 +80033,12 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
80023
80033
|
* @module IModelApp
|
|
80024
80034
|
*/
|
|
80025
80035
|
var _a;
|
|
80036
|
+
// @ts-expect-error package.json will resolve from the lib/{cjs,esm} dir without copying it into the build output we deliver
|
|
80037
|
+
// eslint-disable-next-line @itwin/import-within-package
|
|
80038
|
+
|
|
80026
80039
|
/** @public */
|
|
80027
80040
|
// eslint-disable-next-line @typescript-eslint/no-var-requires
|
|
80028
|
-
const ITWINJS_CORE_VERSION =
|
|
80041
|
+
const ITWINJS_CORE_VERSION = _package_json__WEBPACK_IMPORTED_MODULE_0__.version;
|
|
80029
80042
|
const COPYRIGHT_NOTICE = 'Copyright © 2017-2023 <a href="https://www.bentley.com" target="_blank" rel="noopener noreferrer">Bentley Systems, Inc.</a>';
|
|
80030
80043
|
|
|
80031
80044
|
|
|
@@ -80145,7 +80158,7 @@ class IModelApp {
|
|
|
80145
80158
|
static registerModuleEntities(moduleObj) {
|
|
80146
80159
|
for (const thisMember in moduleObj) { // eslint-disable-line guard-for-in
|
|
80147
80160
|
const thisEntityState = moduleObj[thisMember];
|
|
80148
|
-
if (thisEntityState.prototype instanceof
|
|
80161
|
+
if (thisEntityState.prototype instanceof _EntityState__WEBPACK_IMPORTED_MODULE_15__.EntityState) {
|
|
80149
80162
|
this.registerEntityState(thisEntityState.classFullName, thisEntityState);
|
|
80150
80163
|
}
|
|
80151
80164
|
}
|
|
@@ -80157,7 +80170,7 @@ class IModelApp {
|
|
|
80157
80170
|
const lowerName = classFullName.toLowerCase();
|
|
80158
80171
|
if (this._entityClasses.has(lowerName)) {
|
|
80159
80172
|
const errMsg = `Class ${classFullName} is already registered. Make sure static schemaName and className members are correct on class ${classType.name}`;
|
|
80160
|
-
|
|
80173
|
+
_itwin_core_bentley__WEBPACK_IMPORTED_MODULE_2__.Logger.logError(_common_FrontendLoggerCategory__WEBPACK_IMPORTED_MODULE_16__.FrontendLoggerCategory.IModelConnection, errMsg);
|
|
80161
80174
|
throw new Error(errMsg);
|
|
80162
80175
|
}
|
|
80163
80176
|
this._entityClasses.set(lowerName, classType);
|
|
@@ -80171,7 +80184,7 @@ class IModelApp {
|
|
|
80171
80184
|
* @note As of 4.x, iTwin.js requires WebGL 2. If the client does not support WebGL 2, the `status` field of the returned compatibility info will be [WebGLRenderCompatibilityStatus.CannotCreateContext]($webgl-compatibility).
|
|
80172
80185
|
*/
|
|
80173
80186
|
static queryRenderCompatibility() {
|
|
80174
|
-
return (0,
|
|
80187
|
+
return (0,_itwin_webgl_compatibility__WEBPACK_IMPORTED_MODULE_6__.queryRenderCompatibility)(true, (canvas, useWebGL2, inputContextAttributes) => _render_webgl_System__WEBPACK_IMPORTED_MODULE_22__.System.createContext(canvas, useWebGL2, inputContextAttributes));
|
|
80175
80188
|
}
|
|
80176
80189
|
/**
|
|
80177
80190
|
* This method must be called before any other `@itwin/core-frontend` methods are used.
|
|
@@ -80188,52 +80201,52 @@ class IModelApp {
|
|
|
80188
80201
|
opts = opts ?? {};
|
|
80189
80202
|
this._securityOptions = opts.security ?? {};
|
|
80190
80203
|
if (false) {}
|
|
80191
|
-
this.sessionId = opts.sessionId ??
|
|
80204
|
+
this.sessionId = opts.sessionId ?? _itwin_core_bentley__WEBPACK_IMPORTED_MODULE_2__.Guid.createValue();
|
|
80192
80205
|
this._applicationId = opts.applicationId ?? "2686"; // Default to product id of iTwin.js
|
|
80193
80206
|
this._applicationVersion = opts.applicationVersion ?? "1.0.0";
|
|
80194
80207
|
this.authorizationClient = opts.authorizationClient;
|
|
80195
80208
|
this._hubAccess = opts.hubAccess;
|
|
80196
80209
|
this._noRender = opts.noRender ?? false;
|
|
80197
80210
|
this._setupRpcRequestContext();
|
|
80198
|
-
this._localization = opts.localization ?? new
|
|
80211
|
+
this._localization = opts.localization ?? new _itwin_core_i18n__WEBPACK_IMPORTED_MODULE_4__.ITwinLocalization();
|
|
80199
80212
|
const toolsNs = "CoreTools";
|
|
80200
80213
|
await this.localization.initialize(["iModelJs", toolsNs]);
|
|
80201
80214
|
[
|
|
80202
|
-
|
|
80203
|
-
|
|
80204
|
-
|
|
80205
|
-
|
|
80206
|
-
|
|
80207
|
-
|
|
80215
|
+
_tools_SelectTool__WEBPACK_IMPORTED_MODULE_32__,
|
|
80216
|
+
_tools_IdleTool__WEBPACK_IMPORTED_MODULE_30__,
|
|
80217
|
+
_tools_ViewTool__WEBPACK_IMPORTED_MODULE_35__,
|
|
80218
|
+
_tools_ClipViewTool__WEBPACK_IMPORTED_MODULE_29__,
|
|
80219
|
+
_tools_MeasureTool__WEBPACK_IMPORTED_MODULE_31__,
|
|
80220
|
+
_tools_AccuDrawTool__WEBPACK_IMPORTED_MODULE_28__,
|
|
80208
80221
|
].forEach((tool) => this.tools.registerModule(tool, toolsNs));
|
|
80209
|
-
this.registerEntityState(
|
|
80222
|
+
this.registerEntityState(_EntityState__WEBPACK_IMPORTED_MODULE_15__.EntityState.classFullName, _EntityState__WEBPACK_IMPORTED_MODULE_15__.EntityState);
|
|
80210
80223
|
[
|
|
80211
|
-
|
|
80212
|
-
|
|
80213
|
-
|
|
80214
|
-
|
|
80215
|
-
|
|
80216
|
-
|
|
80217
|
-
|
|
80218
|
-
|
|
80219
|
-
|
|
80224
|
+
_ModelState__WEBPACK_IMPORTED_MODULE_18__,
|
|
80225
|
+
_SheetViewState__WEBPACK_IMPORTED_MODULE_23__,
|
|
80226
|
+
_ViewState__WEBPACK_IMPORTED_MODULE_37__,
|
|
80227
|
+
_DrawingViewState__WEBPACK_IMPORTED_MODULE_13__,
|
|
80228
|
+
_SpatialViewState__WEBPACK_IMPORTED_MODULE_24__,
|
|
80229
|
+
_DisplayStyleState__WEBPACK_IMPORTED_MODULE_12__,
|
|
80230
|
+
_ModelSelectorState__WEBPACK_IMPORTED_MODULE_17__,
|
|
80231
|
+
_CategorySelectorState__WEBPACK_IMPORTED_MODULE_10__,
|
|
80232
|
+
_AuxCoordSys__WEBPACK_IMPORTED_MODULE_9__,
|
|
80220
80233
|
].forEach((module) => this.registerModuleEntities(module));
|
|
80221
|
-
this._renderSystem = (opts.renderSys instanceof
|
|
80234
|
+
this._renderSystem = (opts.renderSys instanceof _render_RenderSystem__WEBPACK_IMPORTED_MODULE_21__.RenderSystem) ? opts.renderSys : this.createRenderSys(opts.renderSys);
|
|
80222
80235
|
if (opts.userPreferences)
|
|
80223
80236
|
this._userPreferences = opts.userPreferences;
|
|
80224
|
-
this._viewManager = opts.viewManager ?? new
|
|
80225
|
-
this._tileAdmin = await
|
|
80226
|
-
this._notifications = opts.notifications ?? new
|
|
80227
|
-
this._toolAdmin = opts.toolAdmin ?? new
|
|
80228
|
-
this._accuDraw = opts.accuDraw ?? new
|
|
80229
|
-
this._accuSnap = opts.accuSnap ?? new
|
|
80230
|
-
this._locateManager = opts.locateManager ?? new
|
|
80231
|
-
this._tentativePoint = opts.tentativePoint ?? new
|
|
80232
|
-
this._quantityFormatter = opts.quantityFormatter ?? new
|
|
80233
|
-
this._uiAdmin = opts.uiAdmin ?? new
|
|
80234
|
-
this._mapLayerFormatRegistry = new
|
|
80235
|
-
this._terrainProviderRegistry = new
|
|
80236
|
-
this._realityDataSourceProviders = new
|
|
80237
|
+
this._viewManager = opts.viewManager ?? new _ViewManager__WEBPACK_IMPORTED_MODULE_36__.ViewManager();
|
|
80238
|
+
this._tileAdmin = await _tile_internal__WEBPACK_IMPORTED_MODULE_27__.TileAdmin.create(opts.tileAdmin);
|
|
80239
|
+
this._notifications = opts.notifications ?? new _NotificationManager__WEBPACK_IMPORTED_MODULE_19__.NotificationManager();
|
|
80240
|
+
this._toolAdmin = opts.toolAdmin ?? new _tools_ToolAdmin__WEBPACK_IMPORTED_MODULE_34__.ToolAdmin();
|
|
80241
|
+
this._accuDraw = opts.accuDraw ?? new _AccuDraw__WEBPACK_IMPORTED_MODULE_7__.AccuDraw();
|
|
80242
|
+
this._accuSnap = opts.accuSnap ?? new _AccuSnap__WEBPACK_IMPORTED_MODULE_8__.AccuSnap();
|
|
80243
|
+
this._locateManager = opts.locateManager ?? new _ElementLocateManager__WEBPACK_IMPORTED_MODULE_14__.ElementLocateManager();
|
|
80244
|
+
this._tentativePoint = opts.tentativePoint ?? new _TentativePoint__WEBPACK_IMPORTED_MODULE_25__.TentativePoint();
|
|
80245
|
+
this._quantityFormatter = opts.quantityFormatter ?? new _quantity_formatting_QuantityFormatter__WEBPACK_IMPORTED_MODULE_20__.QuantityFormatter();
|
|
80246
|
+
this._uiAdmin = opts.uiAdmin ?? new _itwin_appui_abstract__WEBPACK_IMPORTED_MODULE_1__.UiAdmin();
|
|
80247
|
+
this._mapLayerFormatRegistry = new _tile_internal__WEBPACK_IMPORTED_MODULE_27__.MapLayerFormatRegistry(opts.mapLayerOptions);
|
|
80248
|
+
this._terrainProviderRegistry = new _tile_internal__WEBPACK_IMPORTED_MODULE_27__.TerrainProviderRegistry();
|
|
80249
|
+
this._realityDataSourceProviders = new _RealityDataSource__WEBPACK_IMPORTED_MODULE_26__.RealityDataSourceProviderRegistry();
|
|
80237
80250
|
this._realityDataAccess = opts.realityDataAccess;
|
|
80238
80251
|
this._publicPath = opts.publicPath ?? "";
|
|
80239
80252
|
[
|
|
@@ -80262,7 +80275,7 @@ class IModelApp {
|
|
|
80262
80275
|
this.clearIntervalAnimation();
|
|
80263
80276
|
[this.toolAdmin, this.viewManager, this.tileAdmin].forEach((sys) => sys.onShutDown());
|
|
80264
80277
|
this.tools.shutdown();
|
|
80265
|
-
this._renderSystem = (0,
|
|
80278
|
+
this._renderSystem = (0,_itwin_core_bentley__WEBPACK_IMPORTED_MODULE_2__.dispose)(this._renderSystem);
|
|
80266
80279
|
this._entityClasses.clear();
|
|
80267
80280
|
this.authorizationClient = undefined;
|
|
80268
80281
|
this._initialized = false;
|
|
@@ -80337,7 +80350,7 @@ class IModelApp {
|
|
|
80337
80350
|
IModelApp.tileAdmin.process();
|
|
80338
80351
|
}
|
|
80339
80352
|
catch (exception) {
|
|
80340
|
-
|
|
80353
|
+
_tools_ToolAdmin__WEBPACK_IMPORTED_MODULE_34__.ToolAdmin.exceptionHandler(exception); // eslint-disable-line @typescript-eslint/no-floating-promises
|
|
80341
80354
|
IModelApp._wantEventLoop = false;
|
|
80342
80355
|
IModelApp._animationRequested = true; // unrecoverable after exception, don't request any further frames.
|
|
80343
80356
|
window.removeEventListener("resize", () => IModelApp.requestNextAnimation());
|
|
@@ -80356,19 +80369,19 @@ class IModelApp {
|
|
|
80356
80369
|
}
|
|
80357
80370
|
}
|
|
80358
80371
|
/** @internal */
|
|
80359
|
-
static createRenderSys(opts) { return
|
|
80372
|
+
static createRenderSys(opts) { return _render_webgl_System__WEBPACK_IMPORTED_MODULE_22__.System.create(opts); }
|
|
80360
80373
|
static _setupRpcRequestContext() {
|
|
80361
|
-
|
|
80362
|
-
return
|
|
80374
|
+
_itwin_core_common__WEBPACK_IMPORTED_MODULE_3__.RpcConfiguration.requestContext.getId = (_request) => {
|
|
80375
|
+
return _itwin_core_bentley__WEBPACK_IMPORTED_MODULE_2__.Guid.createValue();
|
|
80363
80376
|
};
|
|
80364
|
-
|
|
80377
|
+
_itwin_core_common__WEBPACK_IMPORTED_MODULE_3__.RpcConfiguration.requestContext.serialize = async (_request) => {
|
|
80365
80378
|
const id = _request.id;
|
|
80366
80379
|
const serialized = {
|
|
80367
80380
|
id,
|
|
80368
80381
|
applicationId: this.applicationId,
|
|
80369
80382
|
applicationVersion: this.applicationVersion,
|
|
80370
80383
|
sessionId: this.sessionId,
|
|
80371
|
-
authorization:
|
|
80384
|
+
authorization: _itwin_core_bentley__WEBPACK_IMPORTED_MODULE_2__.ProcessDetector.isMobileAppFrontend ? "" : await this.getAccessToken(),
|
|
80372
80385
|
};
|
|
80373
80386
|
const csrf = IModelApp.securityOptions.csrfProtection;
|
|
80374
80387
|
if (csrf && csrf.enabled) {
|
|
@@ -80502,11 +80515,11 @@ class IModelApp {
|
|
|
80502
80515
|
key = { scope: "Errors", val: "IllegalValue" };
|
|
80503
80516
|
}
|
|
80504
80517
|
else {
|
|
80505
|
-
key = { scope: "BentleyStatus", val:
|
|
80518
|
+
key = { scope: "BentleyStatus", val: _itwin_core_bentley__WEBPACK_IMPORTED_MODULE_2__.BentleyStatus[status] };
|
|
80506
80519
|
if (!key.val)
|
|
80507
|
-
key = { scope: "IModelStatus", val:
|
|
80520
|
+
key = { scope: "IModelStatus", val: _itwin_core_common__WEBPACK_IMPORTED_MODULE_3__.IModelStatus[status] };
|
|
80508
80521
|
if (!key.val)
|
|
80509
|
-
key = { scope: "DbResult", val:
|
|
80522
|
+
key = { scope: "DbResult", val: _itwin_core_bentley__WEBPACK_IMPORTED_MODULE_2__.DbResult[status] };
|
|
80510
80523
|
if (!key.val)
|
|
80511
80524
|
key = { scope: "Errors", val: "Status", status: status.toString() };
|
|
80512
80525
|
}
|
|
@@ -80518,7 +80531,7 @@ class IModelApp {
|
|
|
80518
80531
|
* @returns an instance of ExtensionAdmin
|
|
80519
80532
|
*/
|
|
80520
80533
|
static _createExtensionAdmin() {
|
|
80521
|
-
const extensionAdmin = new
|
|
80534
|
+
const extensionAdmin = new _extension_ExtensionAdmin__WEBPACK_IMPORTED_MODULE_11__.ExtensionAdmin();
|
|
80522
80535
|
IModelApp.onAfterStartup.addListener(extensionAdmin.onStartup);
|
|
80523
80536
|
return extensionAdmin;
|
|
80524
80537
|
}
|
|
@@ -80527,17 +80540,17 @@ _a = IModelApp;
|
|
|
80527
80540
|
IModelApp._initialized = false;
|
|
80528
80541
|
IModelApp._wantEventLoop = false;
|
|
80529
80542
|
IModelApp._animationRequested = false;
|
|
80530
|
-
IModelApp._animationInterval =
|
|
80543
|
+
IModelApp._animationInterval = _itwin_core_bentley__WEBPACK_IMPORTED_MODULE_2__.BeDuration.fromSeconds(1);
|
|
80531
80544
|
/** Event raised just before the frontend IModelApp is to be [[shutdown]]. */
|
|
80532
|
-
IModelApp.onBeforeShutdown = new
|
|
80545
|
+
IModelApp.onBeforeShutdown = new _itwin_core_bentley__WEBPACK_IMPORTED_MODULE_2__.BeEvent();
|
|
80533
80546
|
/** Event raised after IModelApp [[startup]] completes. */
|
|
80534
|
-
IModelApp.onAfterStartup = new
|
|
80547
|
+
IModelApp.onAfterStartup = new _itwin_core_bentley__WEBPACK_IMPORTED_MODULE_2__.BeEvent();
|
|
80535
80548
|
/** The [[ToolRegistry]] for this session. */
|
|
80536
|
-
IModelApp.tools = new
|
|
80549
|
+
IModelApp.tools = new _tools_Tool__WEBPACK_IMPORTED_MODULE_33__.ToolRegistry();
|
|
80537
80550
|
/** The [[TelemetryManager]] for this session
|
|
80538
80551
|
* @internal
|
|
80539
80552
|
*/
|
|
80540
|
-
IModelApp.telemetry = new
|
|
80553
|
+
IModelApp.telemetry = new _itwin_core_telemetry__WEBPACK_IMPORTED_MODULE_5__.TelemetryManager();
|
|
80541
80554
|
/** @alpha */
|
|
80542
80555
|
IModelApp.extensionAdmin = _a._createExtensionAdmin();
|
|
80543
80556
|
/** Map of classFullName to EntityState class */
|
|
@@ -287615,7 +287628,7 @@ module.exports = JSON.parse('{"name":"axios","version":"0.21.4","description":"P
|
|
|
287615
287628
|
/***/ ((module) => {
|
|
287616
287629
|
|
|
287617
287630
|
"use strict";
|
|
287618
|
-
module.exports = JSON.parse('{"name":"@itwin/core-frontend","version":"4.2.0-dev.
|
|
287631
|
+
module.exports = JSON.parse('{"name":"@itwin/core-frontend","version":"4.2.0-dev.29","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","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 ES2020 --outDir lib/esm","clean":"rimraf 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","docs":"betools docs --includes=../../generated-docs/extract --json=../../generated-docs/core/core-frontend/file.json --tsIndexFile=./core-frontend.ts --onlyJson --excludes=webgl/**/*,**/map/*.d.ts,**/tile/*.d.ts,**/*-css.ts","extract-api":"betools extract-api --entry=core-frontend && npm run extract-extension-api","extract-extension-api":"eslint -c extraction.eslint.config.js \\"./src/**/*.ts\\" 1>&2","lint":"eslint -f visualstudio \\"./src/**/*.ts\\" 1>&2","pseudolocalize":"betools pseudolocalize --englishDir ./src/public/locales/en --out ./public/locales/en-PSEUDO","test":"npm run -s webpackTests && certa -r chrome","cover":"npm -s test","test:debug":"certa -r chrome --debug","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:^4.2.0-dev.29","@itwin/core-bentley":"workspace:^4.2.0-dev.29","@itwin/core-common":"workspace:^4.2.0-dev.29","@itwin/core-geometry":"workspace:^4.2.0-dev.29","@itwin/core-orbitgt":"workspace:^4.2.0-dev.29","@itwin/core-quantity":"workspace:^4.2.0-dev.29"},"//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":{"@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/certa":"workspace:*","@itwin/eslint-plugin":"4.0.0-dev.44","@types/chai":"4.3.1","@types/chai-as-promised":"^7","@types/mocha":"^8.2.2","@types/node":"18.16.1","@types/sinon":"^10.0.15","babel-loader":"~8.2.5","babel-plugin-istanbul":"~6.1.1","chai":"^4.1.2","chai-as-promised":"^7","cpx2":"^3.0.0","eslint":"^8.44.0","glob":"^7.1.2","mocha":"^10.0.0","nyc":"^15.1.0","rimraf":"^3.0.2","sinon":"^15.0.4","source-map-loader":"^4.0.0","typescript":"~5.0.2","webpack":"^5.76.0"},"//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/cloud-agnostic-core":"^2.1.0","@itwin/object-storage-core":"^2.1.0","@itwin/core-i18n":"workspace:*","@itwin/core-telemetry":"workspace:*","@itwin/webgl-compatibility":"workspace:*","@loaders.gl/core":"^3.1.6","@loaders.gl/draco":"^3.1.6","fuse.js":"^3.3.0","wms-capabilities":"0.4.0"},"nyc":{"extends":"./node_modules/@itwin/build-tools/.nycrc"}}');
|
|
287619
287632
|
|
|
287620
287633
|
/***/ })
|
|
287621
287634
|
|