@itwin/rpcinterface-full-stack-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 +108 -95
- 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 +13 -13
|
@@ -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":""}
|
|
@@ -70316,7 +70316,7 @@ const Schema_1 = __webpack_require__(/*! ./Metadata/Schema */ "../../core/ecsche
|
|
|
70316
70316
|
/**
|
|
70317
70317
|
* A ISchemaLocater implementation for locating and retrieving EC Schema objects using a function
|
|
70318
70318
|
* that returns the Schema Json for a given schema name
|
|
70319
|
-
* @
|
|
70319
|
+
* @beta
|
|
70320
70320
|
*/
|
|
70321
70321
|
class SchemaJsonLocater {
|
|
70322
70322
|
constructor(_getSchema) {
|
|
@@ -70612,7 +70612,12 @@ const SchemaKey_1 = __webpack_require__(/*! ./SchemaKey */ "../../core/ecschema-
|
|
|
70612
70612
|
* Loaded schemas are held in memory within a schema context managed by SchemaLoader.
|
|
70613
70613
|
* The SchemaLoader object should be held in memory if multiple calls to [[getSchema]] or [[tryGetSchema]]
|
|
70614
70614
|
* is a possibility, thereby avoiding unnecessary schema retrievals from the function.
|
|
70615
|
-
*
|
|
70615
|
+
*
|
|
70616
|
+
* ** Example **
|
|
70617
|
+
* ```ts
|
|
70618
|
+
* [[include:IModelSchemas.loadFromDb]]
|
|
70619
|
+
* ```
|
|
70620
|
+
* @beta
|
|
70616
70621
|
*/
|
|
70617
70622
|
class SchemaLoader {
|
|
70618
70623
|
constructor(getSchema) {
|
|
@@ -70640,6 +70645,10 @@ class SchemaLoader {
|
|
|
70640
70645
|
const schema = this._context.getSchemaSync(key, ECObjects_1.SchemaMatchType.Latest);
|
|
70641
70646
|
return schema;
|
|
70642
70647
|
}
|
|
70648
|
+
/** Gets the SchemaContext used by the loader. */
|
|
70649
|
+
get context() {
|
|
70650
|
+
return this._context;
|
|
70651
|
+
}
|
|
70643
70652
|
}
|
|
70644
70653
|
exports.SchemaLoader = SchemaLoader;
|
|
70645
70654
|
|
|
@@ -82552,45 +82561,46 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
82552
82561
|
/* harmony export */ IModelApp: () => (/* binding */ IModelApp),
|
|
82553
82562
|
/* harmony export */ ITWINJS_CORE_VERSION: () => (/* binding */ ITWINJS_CORE_VERSION)
|
|
82554
82563
|
/* harmony export */ });
|
|
82555
|
-
/* harmony import */ var
|
|
82556
|
-
/* harmony import */ var
|
|
82557
|
-
/* harmony import */ var
|
|
82558
|
-
/* harmony import */ var
|
|
82559
|
-
/* harmony import */ var
|
|
82560
|
-
/* harmony import */ var
|
|
82561
|
-
/* harmony import */ var
|
|
82562
|
-
/* harmony import */ var
|
|
82563
|
-
/* harmony import */ var
|
|
82564
|
-
/* harmony import */ var
|
|
82565
|
-
/* harmony import */ var
|
|
82566
|
-
/* harmony import */ var
|
|
82567
|
-
/* harmony import */ var
|
|
82568
|
-
/* harmony import */ var
|
|
82569
|
-
/* harmony import */ var
|
|
82570
|
-
/* harmony import */ var
|
|
82571
|
-
/* harmony import */ var
|
|
82572
|
-
/* harmony import */ var
|
|
82573
|
-
/* harmony import */ var
|
|
82574
|
-
/* harmony import */ var
|
|
82575
|
-
/* harmony import */ var
|
|
82576
|
-
/* harmony import */ var
|
|
82577
|
-
/* harmony import */ var
|
|
82578
|
-
/* harmony import */ var
|
|
82579
|
-
/* harmony import */ var
|
|
82580
|
-
/* harmony import */ var
|
|
82581
|
-
/* harmony import */ var
|
|
82582
|
-
/* harmony import */ var
|
|
82583
|
-
/* harmony import */ var
|
|
82584
|
-
/* harmony import */ var
|
|
82585
|
-
/* harmony import */ var
|
|
82586
|
-
/* harmony import */ var
|
|
82587
|
-
/* harmony import */ var
|
|
82588
|
-
/* harmony import */ var
|
|
82589
|
-
/* harmony import */ var
|
|
82590
|
-
/* harmony import */ var
|
|
82591
|
-
/* harmony import */ var
|
|
82592
|
-
/* harmony import */ var
|
|
82593
|
-
/* harmony import */ var
|
|
82564
|
+
/* harmony import */ var _package_json__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../package.json */ "../../core/frontend/package.json");
|
|
82565
|
+
/* harmony import */ var _itwin_appui_abstract__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @itwin/appui-abstract */ "../../ui/appui-abstract/lib/esm/appui-abstract.js");
|
|
82566
|
+
/* harmony import */ var _itwin_core_bentley__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @itwin/core-bentley */ "../../core/bentley/lib/esm/core-bentley.js");
|
|
82567
|
+
/* harmony import */ var _itwin_core_common__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @itwin/core-common */ "../../core/common/lib/esm/core-common.js");
|
|
82568
|
+
/* harmony import */ var _itwin_core_i18n__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @itwin/core-i18n */ "../../core/i18n/lib/esm/core-i18n.js");
|
|
82569
|
+
/* harmony import */ var _itwin_core_telemetry__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @itwin/core-telemetry */ "../../core/telemetry/lib/esm/core-telemetry.js");
|
|
82570
|
+
/* harmony import */ var _itwin_webgl_compatibility__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! @itwin/webgl-compatibility */ "../../core/webgl-compatibility/lib/esm/webgl-compatibility.js");
|
|
82571
|
+
/* harmony import */ var _AccuDraw__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./AccuDraw */ "../../core/frontend/lib/esm/AccuDraw.js");
|
|
82572
|
+
/* harmony import */ var _AccuSnap__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./AccuSnap */ "../../core/frontend/lib/esm/AccuSnap.js");
|
|
82573
|
+
/* harmony import */ var _AuxCoordSys__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./AuxCoordSys */ "../../core/frontend/lib/esm/AuxCoordSys.js");
|
|
82574
|
+
/* harmony import */ var _CategorySelectorState__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ./CategorySelectorState */ "../../core/frontend/lib/esm/CategorySelectorState.js");
|
|
82575
|
+
/* harmony import */ var _extension_ExtensionAdmin__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ./extension/ExtensionAdmin */ "../../core/frontend/lib/esm/extension/ExtensionAdmin.js");
|
|
82576
|
+
/* harmony import */ var _DisplayStyleState__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ./DisplayStyleState */ "../../core/frontend/lib/esm/DisplayStyleState.js");
|
|
82577
|
+
/* harmony import */ var _DrawingViewState__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ./DrawingViewState */ "../../core/frontend/lib/esm/DrawingViewState.js");
|
|
82578
|
+
/* harmony import */ var _ElementLocateManager__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! ./ElementLocateManager */ "../../core/frontend/lib/esm/ElementLocateManager.js");
|
|
82579
|
+
/* harmony import */ var _EntityState__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! ./EntityState */ "../../core/frontend/lib/esm/EntityState.js");
|
|
82580
|
+
/* harmony import */ var _common_FrontendLoggerCategory__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! ./common/FrontendLoggerCategory */ "../../core/frontend/lib/esm/common/FrontendLoggerCategory.js");
|
|
82581
|
+
/* harmony import */ var _ModelSelectorState__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(/*! ./ModelSelectorState */ "../../core/frontend/lib/esm/ModelSelectorState.js");
|
|
82582
|
+
/* harmony import */ var _ModelState__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(/*! ./ModelState */ "../../core/frontend/lib/esm/ModelState.js");
|
|
82583
|
+
/* harmony import */ var _NotificationManager__WEBPACK_IMPORTED_MODULE_19__ = __webpack_require__(/*! ./NotificationManager */ "../../core/frontend/lib/esm/NotificationManager.js");
|
|
82584
|
+
/* harmony import */ var _quantity_formatting_QuantityFormatter__WEBPACK_IMPORTED_MODULE_20__ = __webpack_require__(/*! ./quantity-formatting/QuantityFormatter */ "../../core/frontend/lib/esm/quantity-formatting/QuantityFormatter.js");
|
|
82585
|
+
/* harmony import */ var _render_RenderSystem__WEBPACK_IMPORTED_MODULE_21__ = __webpack_require__(/*! ./render/RenderSystem */ "../../core/frontend/lib/esm/render/RenderSystem.js");
|
|
82586
|
+
/* harmony import */ var _render_webgl_System__WEBPACK_IMPORTED_MODULE_22__ = __webpack_require__(/*! ./render/webgl/System */ "../../core/frontend/lib/esm/render/webgl/System.js");
|
|
82587
|
+
/* harmony import */ var _SheetViewState__WEBPACK_IMPORTED_MODULE_23__ = __webpack_require__(/*! ./SheetViewState */ "../../core/frontend/lib/esm/SheetViewState.js");
|
|
82588
|
+
/* harmony import */ var _SpatialViewState__WEBPACK_IMPORTED_MODULE_24__ = __webpack_require__(/*! ./SpatialViewState */ "../../core/frontend/lib/esm/SpatialViewState.js");
|
|
82589
|
+
/* harmony import */ var _TentativePoint__WEBPACK_IMPORTED_MODULE_25__ = __webpack_require__(/*! ./TentativePoint */ "../../core/frontend/lib/esm/TentativePoint.js");
|
|
82590
|
+
/* harmony import */ var _RealityDataSource__WEBPACK_IMPORTED_MODULE_26__ = __webpack_require__(/*! ./RealityDataSource */ "../../core/frontend/lib/esm/RealityDataSource.js");
|
|
82591
|
+
/* harmony import */ var _tile_internal__WEBPACK_IMPORTED_MODULE_27__ = __webpack_require__(/*! ./tile/internal */ "../../core/frontend/lib/esm/tile/internal.js");
|
|
82592
|
+
/* harmony import */ var _tools_AccuDrawTool__WEBPACK_IMPORTED_MODULE_28__ = __webpack_require__(/*! ./tools/AccuDrawTool */ "../../core/frontend/lib/esm/tools/AccuDrawTool.js");
|
|
82593
|
+
/* harmony import */ var _tools_ClipViewTool__WEBPACK_IMPORTED_MODULE_29__ = __webpack_require__(/*! ./tools/ClipViewTool */ "../../core/frontend/lib/esm/tools/ClipViewTool.js");
|
|
82594
|
+
/* harmony import */ var _tools_IdleTool__WEBPACK_IMPORTED_MODULE_30__ = __webpack_require__(/*! ./tools/IdleTool */ "../../core/frontend/lib/esm/tools/IdleTool.js");
|
|
82595
|
+
/* harmony import */ var _tools_MeasureTool__WEBPACK_IMPORTED_MODULE_31__ = __webpack_require__(/*! ./tools/MeasureTool */ "../../core/frontend/lib/esm/tools/MeasureTool.js");
|
|
82596
|
+
/* harmony import */ var _tools_SelectTool__WEBPACK_IMPORTED_MODULE_32__ = __webpack_require__(/*! ./tools/SelectTool */ "../../core/frontend/lib/esm/tools/SelectTool.js");
|
|
82597
|
+
/* harmony import */ var _tools_Tool__WEBPACK_IMPORTED_MODULE_33__ = __webpack_require__(/*! ./tools/Tool */ "../../core/frontend/lib/esm/tools/Tool.js");
|
|
82598
|
+
/* harmony import */ var _tools_ToolAdmin__WEBPACK_IMPORTED_MODULE_34__ = __webpack_require__(/*! ./tools/ToolAdmin */ "../../core/frontend/lib/esm/tools/ToolAdmin.js");
|
|
82599
|
+
/* harmony import */ var _tools_ViewTool__WEBPACK_IMPORTED_MODULE_35__ = __webpack_require__(/*! ./tools/ViewTool */ "../../core/frontend/lib/esm/tools/ViewTool.js");
|
|
82600
|
+
/* harmony import */ var _ViewManager__WEBPACK_IMPORTED_MODULE_36__ = __webpack_require__(/*! ./ViewManager */ "../../core/frontend/lib/esm/ViewManager.js");
|
|
82601
|
+
/* harmony import */ var _ViewState__WEBPACK_IMPORTED_MODULE_37__ = __webpack_require__(/*! ./ViewState */ "../../core/frontend/lib/esm/ViewState.js");
|
|
82602
|
+
/* harmony import */ var _IModeljs_css__WEBPACK_IMPORTED_MODULE_38__ = __webpack_require__(/*! ./IModeljs-css */ "../../core/frontend/lib/esm/IModeljs-css.js");
|
|
82603
|
+
/* harmony import */ var _IModeljs_css__WEBPACK_IMPORTED_MODULE_38___default = /*#__PURE__*/__webpack_require__.n(_IModeljs_css__WEBPACK_IMPORTED_MODULE_38__);
|
|
82594
82604
|
/*---------------------------------------------------------------------------------------------
|
|
82595
82605
|
* Copyright (c) Bentley Systems, Incorporated. All rights reserved.
|
|
82596
82606
|
* See LICENSE.md in the project root for license terms and full copyright notice.
|
|
@@ -82599,9 +82609,12 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
82599
82609
|
* @module IModelApp
|
|
82600
82610
|
*/
|
|
82601
82611
|
var _a;
|
|
82612
|
+
// @ts-expect-error package.json will resolve from the lib/{cjs,esm} dir without copying it into the build output we deliver
|
|
82613
|
+
// eslint-disable-next-line @itwin/import-within-package
|
|
82614
|
+
|
|
82602
82615
|
/** @public */
|
|
82603
82616
|
// eslint-disable-next-line @typescript-eslint/no-var-requires
|
|
82604
|
-
const ITWINJS_CORE_VERSION =
|
|
82617
|
+
const ITWINJS_CORE_VERSION = _package_json__WEBPACK_IMPORTED_MODULE_0__.version;
|
|
82605
82618
|
const COPYRIGHT_NOTICE = 'Copyright © 2017-2023 <a href="https://www.bentley.com" target="_blank" rel="noopener noreferrer">Bentley Systems, Inc.</a>';
|
|
82606
82619
|
|
|
82607
82620
|
|
|
@@ -82721,7 +82734,7 @@ class IModelApp {
|
|
|
82721
82734
|
static registerModuleEntities(moduleObj) {
|
|
82722
82735
|
for (const thisMember in moduleObj) { // eslint-disable-line guard-for-in
|
|
82723
82736
|
const thisEntityState = moduleObj[thisMember];
|
|
82724
|
-
if (thisEntityState.prototype instanceof
|
|
82737
|
+
if (thisEntityState.prototype instanceof _EntityState__WEBPACK_IMPORTED_MODULE_15__.EntityState) {
|
|
82725
82738
|
this.registerEntityState(thisEntityState.classFullName, thisEntityState);
|
|
82726
82739
|
}
|
|
82727
82740
|
}
|
|
@@ -82733,7 +82746,7 @@ class IModelApp {
|
|
|
82733
82746
|
const lowerName = classFullName.toLowerCase();
|
|
82734
82747
|
if (this._entityClasses.has(lowerName)) {
|
|
82735
82748
|
const errMsg = `Class ${classFullName} is already registered. Make sure static schemaName and className members are correct on class ${classType.name}`;
|
|
82736
|
-
|
|
82749
|
+
_itwin_core_bentley__WEBPACK_IMPORTED_MODULE_2__.Logger.logError(_common_FrontendLoggerCategory__WEBPACK_IMPORTED_MODULE_16__.FrontendLoggerCategory.IModelConnection, errMsg);
|
|
82737
82750
|
throw new Error(errMsg);
|
|
82738
82751
|
}
|
|
82739
82752
|
this._entityClasses.set(lowerName, classType);
|
|
@@ -82747,7 +82760,7 @@ class IModelApp {
|
|
|
82747
82760
|
* @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).
|
|
82748
82761
|
*/
|
|
82749
82762
|
static queryRenderCompatibility() {
|
|
82750
|
-
return (0,
|
|
82763
|
+
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));
|
|
82751
82764
|
}
|
|
82752
82765
|
/**
|
|
82753
82766
|
* This method must be called before any other `@itwin/core-frontend` methods are used.
|
|
@@ -82764,52 +82777,52 @@ class IModelApp {
|
|
|
82764
82777
|
opts = opts ?? {};
|
|
82765
82778
|
this._securityOptions = opts.security ?? {};
|
|
82766
82779
|
if (false) {}
|
|
82767
|
-
this.sessionId = opts.sessionId ??
|
|
82780
|
+
this.sessionId = opts.sessionId ?? _itwin_core_bentley__WEBPACK_IMPORTED_MODULE_2__.Guid.createValue();
|
|
82768
82781
|
this._applicationId = opts.applicationId ?? "2686"; // Default to product id of iTwin.js
|
|
82769
82782
|
this._applicationVersion = opts.applicationVersion ?? "1.0.0";
|
|
82770
82783
|
this.authorizationClient = opts.authorizationClient;
|
|
82771
82784
|
this._hubAccess = opts.hubAccess;
|
|
82772
82785
|
this._noRender = opts.noRender ?? false;
|
|
82773
82786
|
this._setupRpcRequestContext();
|
|
82774
|
-
this._localization = opts.localization ?? new
|
|
82787
|
+
this._localization = opts.localization ?? new _itwin_core_i18n__WEBPACK_IMPORTED_MODULE_4__.ITwinLocalization();
|
|
82775
82788
|
const toolsNs = "CoreTools";
|
|
82776
82789
|
await this.localization.initialize(["iModelJs", toolsNs]);
|
|
82777
82790
|
[
|
|
82778
|
-
|
|
82779
|
-
|
|
82780
|
-
|
|
82781
|
-
|
|
82782
|
-
|
|
82783
|
-
|
|
82791
|
+
_tools_SelectTool__WEBPACK_IMPORTED_MODULE_32__,
|
|
82792
|
+
_tools_IdleTool__WEBPACK_IMPORTED_MODULE_30__,
|
|
82793
|
+
_tools_ViewTool__WEBPACK_IMPORTED_MODULE_35__,
|
|
82794
|
+
_tools_ClipViewTool__WEBPACK_IMPORTED_MODULE_29__,
|
|
82795
|
+
_tools_MeasureTool__WEBPACK_IMPORTED_MODULE_31__,
|
|
82796
|
+
_tools_AccuDrawTool__WEBPACK_IMPORTED_MODULE_28__,
|
|
82784
82797
|
].forEach((tool) => this.tools.registerModule(tool, toolsNs));
|
|
82785
|
-
this.registerEntityState(
|
|
82798
|
+
this.registerEntityState(_EntityState__WEBPACK_IMPORTED_MODULE_15__.EntityState.classFullName, _EntityState__WEBPACK_IMPORTED_MODULE_15__.EntityState);
|
|
82786
82799
|
[
|
|
82787
|
-
|
|
82788
|
-
|
|
82789
|
-
|
|
82790
|
-
|
|
82791
|
-
|
|
82792
|
-
|
|
82793
|
-
|
|
82794
|
-
|
|
82795
|
-
|
|
82800
|
+
_ModelState__WEBPACK_IMPORTED_MODULE_18__,
|
|
82801
|
+
_SheetViewState__WEBPACK_IMPORTED_MODULE_23__,
|
|
82802
|
+
_ViewState__WEBPACK_IMPORTED_MODULE_37__,
|
|
82803
|
+
_DrawingViewState__WEBPACK_IMPORTED_MODULE_13__,
|
|
82804
|
+
_SpatialViewState__WEBPACK_IMPORTED_MODULE_24__,
|
|
82805
|
+
_DisplayStyleState__WEBPACK_IMPORTED_MODULE_12__,
|
|
82806
|
+
_ModelSelectorState__WEBPACK_IMPORTED_MODULE_17__,
|
|
82807
|
+
_CategorySelectorState__WEBPACK_IMPORTED_MODULE_10__,
|
|
82808
|
+
_AuxCoordSys__WEBPACK_IMPORTED_MODULE_9__,
|
|
82796
82809
|
].forEach((module) => this.registerModuleEntities(module));
|
|
82797
|
-
this._renderSystem = (opts.renderSys instanceof
|
|
82810
|
+
this._renderSystem = (opts.renderSys instanceof _render_RenderSystem__WEBPACK_IMPORTED_MODULE_21__.RenderSystem) ? opts.renderSys : this.createRenderSys(opts.renderSys);
|
|
82798
82811
|
if (opts.userPreferences)
|
|
82799
82812
|
this._userPreferences = opts.userPreferences;
|
|
82800
|
-
this._viewManager = opts.viewManager ?? new
|
|
82801
|
-
this._tileAdmin = await
|
|
82802
|
-
this._notifications = opts.notifications ?? new
|
|
82803
|
-
this._toolAdmin = opts.toolAdmin ?? new
|
|
82804
|
-
this._accuDraw = opts.accuDraw ?? new
|
|
82805
|
-
this._accuSnap = opts.accuSnap ?? new
|
|
82806
|
-
this._locateManager = opts.locateManager ?? new
|
|
82807
|
-
this._tentativePoint = opts.tentativePoint ?? new
|
|
82808
|
-
this._quantityFormatter = opts.quantityFormatter ?? new
|
|
82809
|
-
this._uiAdmin = opts.uiAdmin ?? new
|
|
82810
|
-
this._mapLayerFormatRegistry = new
|
|
82811
|
-
this._terrainProviderRegistry = new
|
|
82812
|
-
this._realityDataSourceProviders = new
|
|
82813
|
+
this._viewManager = opts.viewManager ?? new _ViewManager__WEBPACK_IMPORTED_MODULE_36__.ViewManager();
|
|
82814
|
+
this._tileAdmin = await _tile_internal__WEBPACK_IMPORTED_MODULE_27__.TileAdmin.create(opts.tileAdmin);
|
|
82815
|
+
this._notifications = opts.notifications ?? new _NotificationManager__WEBPACK_IMPORTED_MODULE_19__.NotificationManager();
|
|
82816
|
+
this._toolAdmin = opts.toolAdmin ?? new _tools_ToolAdmin__WEBPACK_IMPORTED_MODULE_34__.ToolAdmin();
|
|
82817
|
+
this._accuDraw = opts.accuDraw ?? new _AccuDraw__WEBPACK_IMPORTED_MODULE_7__.AccuDraw();
|
|
82818
|
+
this._accuSnap = opts.accuSnap ?? new _AccuSnap__WEBPACK_IMPORTED_MODULE_8__.AccuSnap();
|
|
82819
|
+
this._locateManager = opts.locateManager ?? new _ElementLocateManager__WEBPACK_IMPORTED_MODULE_14__.ElementLocateManager();
|
|
82820
|
+
this._tentativePoint = opts.tentativePoint ?? new _TentativePoint__WEBPACK_IMPORTED_MODULE_25__.TentativePoint();
|
|
82821
|
+
this._quantityFormatter = opts.quantityFormatter ?? new _quantity_formatting_QuantityFormatter__WEBPACK_IMPORTED_MODULE_20__.QuantityFormatter();
|
|
82822
|
+
this._uiAdmin = opts.uiAdmin ?? new _itwin_appui_abstract__WEBPACK_IMPORTED_MODULE_1__.UiAdmin();
|
|
82823
|
+
this._mapLayerFormatRegistry = new _tile_internal__WEBPACK_IMPORTED_MODULE_27__.MapLayerFormatRegistry(opts.mapLayerOptions);
|
|
82824
|
+
this._terrainProviderRegistry = new _tile_internal__WEBPACK_IMPORTED_MODULE_27__.TerrainProviderRegistry();
|
|
82825
|
+
this._realityDataSourceProviders = new _RealityDataSource__WEBPACK_IMPORTED_MODULE_26__.RealityDataSourceProviderRegistry();
|
|
82813
82826
|
this._realityDataAccess = opts.realityDataAccess;
|
|
82814
82827
|
this._publicPath = opts.publicPath ?? "";
|
|
82815
82828
|
[
|
|
@@ -82838,7 +82851,7 @@ class IModelApp {
|
|
|
82838
82851
|
this.clearIntervalAnimation();
|
|
82839
82852
|
[this.toolAdmin, this.viewManager, this.tileAdmin].forEach((sys) => sys.onShutDown());
|
|
82840
82853
|
this.tools.shutdown();
|
|
82841
|
-
this._renderSystem = (0,
|
|
82854
|
+
this._renderSystem = (0,_itwin_core_bentley__WEBPACK_IMPORTED_MODULE_2__.dispose)(this._renderSystem);
|
|
82842
82855
|
this._entityClasses.clear();
|
|
82843
82856
|
this.authorizationClient = undefined;
|
|
82844
82857
|
this._initialized = false;
|
|
@@ -82913,7 +82926,7 @@ class IModelApp {
|
|
|
82913
82926
|
IModelApp.tileAdmin.process();
|
|
82914
82927
|
}
|
|
82915
82928
|
catch (exception) {
|
|
82916
|
-
|
|
82929
|
+
_tools_ToolAdmin__WEBPACK_IMPORTED_MODULE_34__.ToolAdmin.exceptionHandler(exception); // eslint-disable-line @typescript-eslint/no-floating-promises
|
|
82917
82930
|
IModelApp._wantEventLoop = false;
|
|
82918
82931
|
IModelApp._animationRequested = true; // unrecoverable after exception, don't request any further frames.
|
|
82919
82932
|
window.removeEventListener("resize", () => IModelApp.requestNextAnimation());
|
|
@@ -82932,19 +82945,19 @@ class IModelApp {
|
|
|
82932
82945
|
}
|
|
82933
82946
|
}
|
|
82934
82947
|
/** @internal */
|
|
82935
|
-
static createRenderSys(opts) { return
|
|
82948
|
+
static createRenderSys(opts) { return _render_webgl_System__WEBPACK_IMPORTED_MODULE_22__.System.create(opts); }
|
|
82936
82949
|
static _setupRpcRequestContext() {
|
|
82937
|
-
|
|
82938
|
-
return
|
|
82950
|
+
_itwin_core_common__WEBPACK_IMPORTED_MODULE_3__.RpcConfiguration.requestContext.getId = (_request) => {
|
|
82951
|
+
return _itwin_core_bentley__WEBPACK_IMPORTED_MODULE_2__.Guid.createValue();
|
|
82939
82952
|
};
|
|
82940
|
-
|
|
82953
|
+
_itwin_core_common__WEBPACK_IMPORTED_MODULE_3__.RpcConfiguration.requestContext.serialize = async (_request) => {
|
|
82941
82954
|
const id = _request.id;
|
|
82942
82955
|
const serialized = {
|
|
82943
82956
|
id,
|
|
82944
82957
|
applicationId: this.applicationId,
|
|
82945
82958
|
applicationVersion: this.applicationVersion,
|
|
82946
82959
|
sessionId: this.sessionId,
|
|
82947
|
-
authorization:
|
|
82960
|
+
authorization: _itwin_core_bentley__WEBPACK_IMPORTED_MODULE_2__.ProcessDetector.isMobileAppFrontend ? "" : await this.getAccessToken(),
|
|
82948
82961
|
};
|
|
82949
82962
|
const csrf = IModelApp.securityOptions.csrfProtection;
|
|
82950
82963
|
if (csrf && csrf.enabled) {
|
|
@@ -83078,11 +83091,11 @@ class IModelApp {
|
|
|
83078
83091
|
key = { scope: "Errors", val: "IllegalValue" };
|
|
83079
83092
|
}
|
|
83080
83093
|
else {
|
|
83081
|
-
key = { scope: "BentleyStatus", val:
|
|
83094
|
+
key = { scope: "BentleyStatus", val: _itwin_core_bentley__WEBPACK_IMPORTED_MODULE_2__.BentleyStatus[status] };
|
|
83082
83095
|
if (!key.val)
|
|
83083
|
-
key = { scope: "IModelStatus", val:
|
|
83096
|
+
key = { scope: "IModelStatus", val: _itwin_core_common__WEBPACK_IMPORTED_MODULE_3__.IModelStatus[status] };
|
|
83084
83097
|
if (!key.val)
|
|
83085
|
-
key = { scope: "DbResult", val:
|
|
83098
|
+
key = { scope: "DbResult", val: _itwin_core_bentley__WEBPACK_IMPORTED_MODULE_2__.DbResult[status] };
|
|
83086
83099
|
if (!key.val)
|
|
83087
83100
|
key = { scope: "Errors", val: "Status", status: status.toString() };
|
|
83088
83101
|
}
|
|
@@ -83094,7 +83107,7 @@ class IModelApp {
|
|
|
83094
83107
|
* @returns an instance of ExtensionAdmin
|
|
83095
83108
|
*/
|
|
83096
83109
|
static _createExtensionAdmin() {
|
|
83097
|
-
const extensionAdmin = new
|
|
83110
|
+
const extensionAdmin = new _extension_ExtensionAdmin__WEBPACK_IMPORTED_MODULE_11__.ExtensionAdmin();
|
|
83098
83111
|
IModelApp.onAfterStartup.addListener(extensionAdmin.onStartup);
|
|
83099
83112
|
return extensionAdmin;
|
|
83100
83113
|
}
|
|
@@ -83103,17 +83116,17 @@ _a = IModelApp;
|
|
|
83103
83116
|
IModelApp._initialized = false;
|
|
83104
83117
|
IModelApp._wantEventLoop = false;
|
|
83105
83118
|
IModelApp._animationRequested = false;
|
|
83106
|
-
IModelApp._animationInterval =
|
|
83119
|
+
IModelApp._animationInterval = _itwin_core_bentley__WEBPACK_IMPORTED_MODULE_2__.BeDuration.fromSeconds(1);
|
|
83107
83120
|
/** Event raised just before the frontend IModelApp is to be [[shutdown]]. */
|
|
83108
|
-
IModelApp.onBeforeShutdown = new
|
|
83121
|
+
IModelApp.onBeforeShutdown = new _itwin_core_bentley__WEBPACK_IMPORTED_MODULE_2__.BeEvent();
|
|
83109
83122
|
/** Event raised after IModelApp [[startup]] completes. */
|
|
83110
|
-
IModelApp.onAfterStartup = new
|
|
83123
|
+
IModelApp.onAfterStartup = new _itwin_core_bentley__WEBPACK_IMPORTED_MODULE_2__.BeEvent();
|
|
83111
83124
|
/** The [[ToolRegistry]] for this session. */
|
|
83112
|
-
IModelApp.tools = new
|
|
83125
|
+
IModelApp.tools = new _tools_Tool__WEBPACK_IMPORTED_MODULE_33__.ToolRegistry();
|
|
83113
83126
|
/** The [[TelemetryManager]] for this session
|
|
83114
83127
|
* @internal
|
|
83115
83128
|
*/
|
|
83116
|
-
IModelApp.telemetry = new
|
|
83129
|
+
IModelApp.telemetry = new _itwin_core_telemetry__WEBPACK_IMPORTED_MODULE_5__.TelemetryManager();
|
|
83117
83130
|
/** @alpha */
|
|
83118
83131
|
IModelApp.extensionAdmin = _a._createExtensionAdmin();
|
|
83119
83132
|
/** Map of classFullName to EntityState class */
|
|
@@ -279885,7 +279898,7 @@ class TestContext {
|
|
|
279885
279898
|
this.initializeRpcInterfaces({ title: this.settings.Backend.name, version: this.settings.Backend.version });
|
|
279886
279899
|
const iModelClient = new imodels_client_management_1.IModelsClient({ api: { baseUrl: `https://${process.env.IMJS_URL_PREFIX ?? ""}api.bentley.com/imodels` } });
|
|
279887
279900
|
await core_frontend_1.NoRenderApp.startup({
|
|
279888
|
-
applicationVersion: "4.2.0-dev.
|
|
279901
|
+
applicationVersion: "4.2.0-dev.29",
|
|
279889
279902
|
applicationId: this.settings.gprid,
|
|
279890
279903
|
authorizationClient: new frontend_1.TestFrontendAuthorizationClient(this.adminUserAccessToken),
|
|
279891
279904
|
hubAccess: new imodels_access_frontend_1.FrontendIModelsAccess(iModelClient),
|
|
@@ -299319,7 +299332,7 @@ module.exports = JSON.parse('{"name":"axios","version":"0.21.4","description":"P
|
|
|
299319
299332
|
/***/ ((module) => {
|
|
299320
299333
|
|
|
299321
299334
|
"use strict";
|
|
299322
|
-
module.exports = JSON.parse('{"name":"@itwin/core-frontend","version":"4.2.0-dev.
|
|
299335
|
+
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"}}');
|
|
299323
299336
|
|
|
299324
299337
|
/***/ }),
|
|
299325
299338
|
|