@itwin/ecschema-rpcinterface-tests 4.2.1 → 4.2.3
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 +35 -11
- 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_14_node_modules_loaders_gl_draco_d-aa4ff5.bundled-tests.js.map +1 -1
- package/package.json +16 -16
|
@@ -76565,8 +76565,11 @@ class SectionAttachmentInfo {
|
|
|
76565
76565
|
displaySpatialView: this._displaySpatialView,
|
|
76566
76566
|
};
|
|
76567
76567
|
}
|
|
76568
|
-
clone() {
|
|
76569
|
-
|
|
76568
|
+
clone(iModel) {
|
|
76569
|
+
let spatialView = this._spatialView;
|
|
76570
|
+
if (spatialView instanceof _ViewState__WEBPACK_IMPORTED_MODULE_14__.ViewState3d)
|
|
76571
|
+
spatialView = spatialView.clone(iModel);
|
|
76572
|
+
return new SectionAttachmentInfo(spatialView, this._drawingToSpatialTransform, this._displaySpatialView);
|
|
76570
76573
|
}
|
|
76571
76574
|
preload(options) {
|
|
76572
76575
|
if (!this.wantDisplayed)
|
|
@@ -76760,7 +76763,7 @@ class DrawingViewState extends _ViewState__WEBPACK_IMPORTED_MODULE_14__.ViewStat
|
|
|
76760
76763
|
if (categories instanceof DrawingViewState) {
|
|
76761
76764
|
this._viewedExtents = categories._viewedExtents.clone();
|
|
76762
76765
|
this._modelLimits = { ...categories._modelLimits };
|
|
76763
|
-
this._attachmentInfo = categories._attachmentInfo.clone();
|
|
76766
|
+
this._attachmentInfo = categories._attachmentInfo.clone(iModel);
|
|
76764
76767
|
}
|
|
76765
76768
|
else {
|
|
76766
76769
|
this._viewedExtents = extents;
|
|
@@ -85246,6 +85249,7 @@ class SheetBorder {
|
|
|
85246
85249
|
* SheetViewState.load(). The Attachments object is created in SheetViewState.attachToViewport and disposed of in SheetViewState.detachFromViewport.
|
|
85247
85250
|
*/
|
|
85248
85251
|
class ViewAttachmentsInfo {
|
|
85252
|
+
get attachments() { return this._attachments; }
|
|
85249
85253
|
constructor(attachments) {
|
|
85250
85254
|
this._attachments = attachments;
|
|
85251
85255
|
}
|
|
@@ -85269,9 +85273,19 @@ class ViewAttachmentsInfo {
|
|
|
85269
85273
|
toJSON() {
|
|
85270
85274
|
return this.isLoaded ? this._props.map((x) => x.id) : [...this._ids];
|
|
85271
85275
|
}
|
|
85272
|
-
clone() {
|
|
85273
|
-
|
|
85274
|
-
|
|
85276
|
+
clone(iModel) {
|
|
85277
|
+
let attachments = this._attachments;
|
|
85278
|
+
if (this.isLoaded) {
|
|
85279
|
+
// Need to clone the attached ViewStates.
|
|
85280
|
+
attachments = attachments.map((attachment) => {
|
|
85281
|
+
(0,_itwin_core_bentley__WEBPACK_IMPORTED_MODULE_0__.assert)(typeof attachment !== "string");
|
|
85282
|
+
return {
|
|
85283
|
+
...attachment,
|
|
85284
|
+
attachedView: attachment.attachedView.clone(iModel),
|
|
85285
|
+
};
|
|
85286
|
+
});
|
|
85287
|
+
}
|
|
85288
|
+
return new ViewAttachmentsInfo(attachments);
|
|
85275
85289
|
}
|
|
85276
85290
|
preload(options) {
|
|
85277
85291
|
if (this.isLoaded)
|
|
@@ -85434,7 +85448,16 @@ class SheetViewState extends _ViewState__WEBPACK_IMPORTED_MODULE_13__.ViewState2
|
|
|
85434
85448
|
}
|
|
85435
85449
|
/** Strictly for testing. @internal */
|
|
85436
85450
|
get viewAttachmentProps() {
|
|
85437
|
-
return this._attachmentsInfo.viewAttachmentProps
|
|
85451
|
+
return this._attachmentsInfo.viewAttachmentProps.map((x) => {
|
|
85452
|
+
return {
|
|
85453
|
+
...x,
|
|
85454
|
+
attachedView: undefined,
|
|
85455
|
+
};
|
|
85456
|
+
});
|
|
85457
|
+
}
|
|
85458
|
+
/** Strictly for testing. @internal */
|
|
85459
|
+
get viewAttachmentInfos() {
|
|
85460
|
+
return this._attachmentsInfo.attachments;
|
|
85438
85461
|
}
|
|
85439
85462
|
/** Strictly for testing. @internal */
|
|
85440
85463
|
get attachments() {
|
|
@@ -85449,7 +85472,7 @@ class SheetViewState extends _ViewState__WEBPACK_IMPORTED_MODULE_13__.ViewState2
|
|
|
85449
85472
|
if (categories instanceof SheetViewState) {
|
|
85450
85473
|
// we are coming from clone...
|
|
85451
85474
|
this.sheetSize = categories.sheetSize.clone();
|
|
85452
|
-
this._attachmentsInfo = categories._attachmentsInfo.clone();
|
|
85475
|
+
this._attachmentsInfo = categories._attachmentsInfo.clone(iModel);
|
|
85453
85476
|
this._viewedExtents = categories._viewedExtents.clone();
|
|
85454
85477
|
}
|
|
85455
85478
|
else {
|
|
@@ -86052,6 +86075,7 @@ class SpatialViewState extends _ViewState__WEBPACK_IMPORTED_MODULE_6__.ViewState
|
|
|
86052
86075
|
this.registerModelSelectorListeners();
|
|
86053
86076
|
this.onViewedModelsChanged.raiseEvent();
|
|
86054
86077
|
}
|
|
86078
|
+
this.markModelSelectorChanged();
|
|
86055
86079
|
}
|
|
86056
86080
|
/** Create a new *blank* SpatialViewState. The returned SpatialViewState will nave non-persistent empty [[CategorySelectorState]] and [[ModelSelectorState]],
|
|
86057
86081
|
* and a non-persistent [[DisplayStyle3dState]] with default values for all of its components. Generally after creating a blank SpatialViewState,
|
|
@@ -142607,7 +142631,7 @@ class RealityModelTileLoader extends _internal__WEBPACK_IMPORTED_MODULE_8__.Real
|
|
|
142607
142631
|
}
|
|
142608
142632
|
get doDrapeBackgroundMap() { return this.tree.doDrapeBackgroundMap; }
|
|
142609
142633
|
get wantDeduplicatedVertices() { return this._deduplicateVertices; }
|
|
142610
|
-
get maxDepth() { return
|
|
142634
|
+
get maxDepth() { return Number.MAX_SAFE_INTEGER; }
|
|
142611
142635
|
get minDepth() { return 0; }
|
|
142612
142636
|
get priority() { return _internal__WEBPACK_IMPORTED_MODULE_8__.TileLoadPriority.Context; }
|
|
142613
142637
|
getBatchIdMap() { return this._batchedIdMap; }
|
|
@@ -148396,7 +148420,7 @@ class ArcGisUtilities {
|
|
|
148396
148420
|
// and return information needed to initiate the authentification process... the end-user
|
|
148397
148421
|
// will have to provide his credentials before we can fully validate this source.
|
|
148398
148422
|
if (json.error.code === ArcGisErrorCode.TokenRequired) {
|
|
148399
|
-
return { status: _internal__WEBPACK_IMPORTED_MODULE_1__.MapLayerSourceStatus.RequireAuth };
|
|
148423
|
+
return (userName || password) ? { status: _internal__WEBPACK_IMPORTED_MODULE_1__.MapLayerSourceStatus.InvalidCredentials } : { status: _internal__WEBPACK_IMPORTED_MODULE_1__.MapLayerSourceStatus.RequireAuth };
|
|
148400
148424
|
}
|
|
148401
148425
|
else if (json.error.code === ArcGisErrorCode.InvalidCredentials)
|
|
148402
148426
|
return { status: _internal__WEBPACK_IMPORTED_MODULE_1__.MapLayerSourceStatus.InvalidCredentials };
|
|
@@ -288084,7 +288108,7 @@ module.exports = JSON.parse('{"name":"axios","version":"0.21.4","description":"P
|
|
|
288084
288108
|
/***/ ((module) => {
|
|
288085
288109
|
|
|
288086
288110
|
"use strict";
|
|
288087
|
-
module.exports = JSON.parse('{"name":"@itwin/core-frontend","version":"4.2.
|
|
288111
|
+
module.exports = JSON.parse('{"name":"@itwin/core-frontend","version":"4.2.3","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.3","@itwin/core-bentley":"workspace:^4.2.3","@itwin/core-common":"workspace:^4.2.3","@itwin/core-geometry":"workspace:^4.2.3","@itwin/core-orbitgt":"workspace:^4.2.3","@itwin/core-quantity":"workspace:^4.2.3"},"//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.3.10","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"}}');
|
|
288088
288112
|
|
|
288089
288113
|
/***/ })
|
|
288090
288114
|
|