@itwin/ecschema-rpcinterface-tests 4.1.0-dev.31 → 4.1.0-dev.33
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/_a8a9.bundled-tests.js.map +1 -1
- package/lib/dist/bundled-tests.js +26 -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/object-storage-azure.bundled-tests.js.map +1 -1
- package/lib/dist/vendors-common_temp_node_modules_pnpm_itwin_object-storage-azure_1_6_0_node_modules_itwin_obj-0f69b1.bundled-tests.js.map +1 -1
- package/lib/dist/vendors-common_temp_node_modules_pnpm_loaders_gl_draco_3_3_3_node_modules_loaders_gl_draco_di-28f62e.bundled-tests.js.map +1 -1
- package/lib/dist/vendors-common_temp_node_modules_pnpm_reflect-metadata_0_1_13_node_modules_reflect-metadata_R-610cb3.bundled-tests.js.map +1 -1
- package/package.json +15 -15
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"_a8a9.bundled-tests.js","mappings":";;;;;;;;AAAA","sources":["file:///ignored|D:\\
|
|
1
|
+
{"version":3,"file":"_a8a9.bundled-tests.js","mappings":";;;;;;;;AAAA","sources":["file:///ignored|D:\\vsts_b\\164\\s\\common\\temp\\node_modules\\.pnpm\\@loaders.gl+worker-utils@3.3.3\\node_modules\\@loaders.gl\\worker-utils\\dist\\esm\\lib\\library-utils|../node/require-utils.node"],"names":[],"sourceRoot":""}
|
|
@@ -85691,10 +85691,18 @@ class SpatialViewState extends _ViewState__WEBPACK_IMPORTED_MODULE_6__.ViewState
|
|
|
85691
85691
|
extents.extendRange(this.getGroundExtents());
|
|
85692
85692
|
return extents;
|
|
85693
85693
|
}
|
|
85694
|
-
/** Compute world
|
|
85695
|
-
|
|
85694
|
+
/** Compute a volume in world coordinates tightly encompassing the contents of the view. The volume is computed from the union of the volumes of the
|
|
85695
|
+
* view's viewed models, including [GeometricModel]($backend)s and reality models.
|
|
85696
|
+
* Those volumes are obtained from the [[TileTree]]s used to render those models, so any tile tree that has not yet been loaded will not contribute to the computation.
|
|
85697
|
+
* If `options.baseExtents` is defined, it will be unioned with the computed volume.
|
|
85698
|
+
* If the computed volume is null (empty), a default volume will be computed from [IModel.projectExtents]($common), which may be a looser approximation of the
|
|
85699
|
+
* models' volumes.
|
|
85700
|
+
* @param options Options used to customize how the volume is computed.
|
|
85701
|
+
* @returns A non-null volume in world coordinates encompassing the contents of the view.
|
|
85702
|
+
*/
|
|
85703
|
+
computeFitRange(options) {
|
|
85696
85704
|
// Fit to the union of the ranges of all loaded tile trees.
|
|
85697
|
-
const range = new _itwin_core_geometry__WEBPACK_IMPORTED_MODULE_1__.Range3d();
|
|
85705
|
+
const range = options?.baseExtents?.clone() ?? new _itwin_core_geometry__WEBPACK_IMPORTED_MODULE_1__.Range3d();
|
|
85698
85706
|
this.forEachTileTreeRef((ref) => {
|
|
85699
85707
|
ref.unionFitRange(range);
|
|
85700
85708
|
});
|
|
@@ -87606,8 +87614,11 @@ class ViewCreator3d {
|
|
|
87606
87614
|
* @throws [IModelError]($common) If no 3d models are found in the iModel.
|
|
87607
87615
|
*/
|
|
87608
87616
|
async createDefaultView(options, modelIds) {
|
|
87609
|
-
const
|
|
87610
|
-
const
|
|
87617
|
+
const rpcOptions = modelIds ? { modelIds: _itwin_core_bentley__WEBPACK_IMPORTED_MODULE_0__.CompressedId64Set.sortAndCompress(modelIds) } : {};
|
|
87618
|
+
const rpc = _itwin_core_common__WEBPACK_IMPORTED_MODULE_1__.IModelReadRpcInterface.getClientForRouting(this._imodel.routingContext.token);
|
|
87619
|
+
const serializedProps = await rpc.getCustomViewState3dData(this._imodel.getRpcProps(), rpcOptions);
|
|
87620
|
+
const baseExtents = _itwin_core_geometry__WEBPACK_IMPORTED_MODULE_2__.Range3d.fromJSON(serializedProps.modelExtents);
|
|
87621
|
+
const props = await this._createViewStateProps(_itwin_core_bentley__WEBPACK_IMPORTED_MODULE_0__.CompressedId64Set.decompressArray(serializedProps.modelIds), _itwin_core_bentley__WEBPACK_IMPORTED_MODULE_0__.CompressedId64Set.decompressArray(serializedProps.categoryIds), baseExtents, options);
|
|
87611
87622
|
const viewState = _SpatialViewState__WEBPACK_IMPORTED_MODULE_3__.SpatialViewState.createFromProps(props, this._imodel);
|
|
87612
87623
|
try {
|
|
87613
87624
|
await viewState.load();
|
|
@@ -87618,7 +87629,7 @@ class ViewCreator3d {
|
|
|
87618
87629
|
viewState.setStandardRotation(options.standardViewId);
|
|
87619
87630
|
if (options?.allSubCategoriesVisible)
|
|
87620
87631
|
viewState.displayStyle.enableAllLoadedSubCategories(viewState.categorySelector.categories);
|
|
87621
|
-
const range = viewState.computeFitRange();
|
|
87632
|
+
const range = viewState.computeFitRange({ baseExtents });
|
|
87622
87633
|
viewState.lookAtVolume(range, options?.vpAspect);
|
|
87623
87634
|
return viewState;
|
|
87624
87635
|
}
|
|
@@ -106767,8 +106778,10 @@ class MeshBuilder {
|
|
|
106767
106778
|
return this.vertexMap.insertKey(vertex, addToMeshOnInsert ? onInsert : undefined);
|
|
106768
106779
|
}
|
|
106769
106780
|
addTriangle(triangle) {
|
|
106770
|
-
//
|
|
106771
|
-
(
|
|
106781
|
+
// Attempt to avoid adding vertices originating from degenerate triangles before we get here.
|
|
106782
|
+
// Removed assert and just return if degenerate at this point because uncommon cases (not worth testing for) can still occur.
|
|
106783
|
+
if (triangle.isDegenerate)
|
|
106784
|
+
return;
|
|
106772
106785
|
const onInsert = (_vk) => this.mesh.addTriangle(triangle);
|
|
106773
106786
|
this.triangleSet.insertKey(triangle, onInsert);
|
|
106774
106787
|
}
|
|
@@ -106948,8 +106961,10 @@ class MeshBuilderMap extends _itwin_core_bentley__WEBPACK_IMPORTED_MODULE_0__.Di
|
|
|
106948
106961
|
}
|
|
106949
106962
|
toMeshes() {
|
|
106950
106963
|
const meshes = new _MeshPrimitives__WEBPACK_IMPORTED_MODULE_5__.MeshList(this.features, this.range);
|
|
106951
|
-
for (const builder of this._values)
|
|
106952
|
-
|
|
106964
|
+
for (const builder of this._values) {
|
|
106965
|
+
if (builder.mesh.points.length > 0)
|
|
106966
|
+
meshes.push(builder.mesh);
|
|
106967
|
+
}
|
|
106953
106968
|
return meshes;
|
|
106954
106969
|
}
|
|
106955
106970
|
/**
|
|
@@ -285039,7 +285054,7 @@ module.exports = JSON.parse('{"name":"axios","version":"0.21.4","description":"P
|
|
|
285039
285054
|
/***/ ((module) => {
|
|
285040
285055
|
|
|
285041
285056
|
"use strict";
|
|
285042
|
-
module.exports = JSON.parse('{"name":"@itwin/core-frontend","version":"4.1.0-dev.
|
|
285057
|
+
module.exports = JSON.parse('{"name":"@itwin/core-frontend","version":"4.1.0-dev.33","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/**/*,**/primitives,**/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 --no-eslintrc -c \\"./node_modules/@itwin/eslint-plugin/dist/configs/extension-exports-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.1.0-dev.33","@itwin/core-bentley":"workspace:^4.1.0-dev.33","@itwin/core-common":"workspace:^4.1.0-dev.33","@itwin/core-geometry":"workspace:^4.1.0-dev.33","@itwin/core-orbitgt":"workspace:^4.1.0-dev.33","@itwin/core-quantity":"workspace:^4.1.0-dev.33"},"//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.33","@types/chai":"4.3.1","@types/chai-as-promised":"^7","@types/mocha":"^8.2.2","@types/node":"^18.11.5","@types/sinon":"^9.0.0","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.36.0","glob":"^7.1.2","mocha":"^10.0.0","nyc":"^15.1.0","rimraf":"^3.0.2","sinon":"^9.0.2","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/object-storage-azure":"^1.5.0","@itwin/cloud-agnostic-core":"^1.5.0","@itwin/object-storage-core":"^1.5.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","reflect-metadata":"0.1.13"},"nyc":{"extends":"./node_modules/@itwin/build-tools/.nycrc"},"eslintConfig":{"plugins":["@itwin"],"extends":"plugin:@itwin/itwinjs-recommended","rules":{"@itwin/no-internal-barrel-imports":["error",{"required-barrel-modules":["./src/tile/internal.ts"]}],"@itwin/public-extension-exports":["error",{"releaseTags":["public","preview"],"outputApiFile":false}]},"overrides":[{"files":["*.test.ts","*.test.tsx","**/test/**/*.ts"],"rules":{"@itwin/no-internal-barrel-imports":"off"}}]}}');
|
|
285043
285058
|
|
|
285044
285059
|
/***/ })
|
|
285045
285060
|
|