@itwin/rpcinterface-full-stack-tests 4.1.0-dev.32 → 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 +27 -12
- 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 +13 -13
|
@@ -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":""}
|
|
@@ -88267,10 +88267,18 @@ class SpatialViewState extends _ViewState__WEBPACK_IMPORTED_MODULE_6__.ViewState
|
|
|
88267
88267
|
extents.extendRange(this.getGroundExtents());
|
|
88268
88268
|
return extents;
|
|
88269
88269
|
}
|
|
88270
|
-
/** Compute world
|
|
88271
|
-
|
|
88270
|
+
/** 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
|
|
88271
|
+
* view's viewed models, including [GeometricModel]($backend)s and reality models.
|
|
88272
|
+
* 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.
|
|
88273
|
+
* If `options.baseExtents` is defined, it will be unioned with the computed volume.
|
|
88274
|
+
* 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
|
|
88275
|
+
* models' volumes.
|
|
88276
|
+
* @param options Options used to customize how the volume is computed.
|
|
88277
|
+
* @returns A non-null volume in world coordinates encompassing the contents of the view.
|
|
88278
|
+
*/
|
|
88279
|
+
computeFitRange(options) {
|
|
88272
88280
|
// Fit to the union of the ranges of all loaded tile trees.
|
|
88273
|
-
const range = new _itwin_core_geometry__WEBPACK_IMPORTED_MODULE_1__.Range3d();
|
|
88281
|
+
const range = options?.baseExtents?.clone() ?? new _itwin_core_geometry__WEBPACK_IMPORTED_MODULE_1__.Range3d();
|
|
88274
88282
|
this.forEachTileTreeRef((ref) => {
|
|
88275
88283
|
ref.unionFitRange(range);
|
|
88276
88284
|
});
|
|
@@ -90182,8 +90190,11 @@ class ViewCreator3d {
|
|
|
90182
90190
|
* @throws [IModelError]($common) If no 3d models are found in the iModel.
|
|
90183
90191
|
*/
|
|
90184
90192
|
async createDefaultView(options, modelIds) {
|
|
90185
|
-
const
|
|
90186
|
-
const
|
|
90193
|
+
const rpcOptions = modelIds ? { modelIds: _itwin_core_bentley__WEBPACK_IMPORTED_MODULE_0__.CompressedId64Set.sortAndCompress(modelIds) } : {};
|
|
90194
|
+
const rpc = _itwin_core_common__WEBPACK_IMPORTED_MODULE_1__.IModelReadRpcInterface.getClientForRouting(this._imodel.routingContext.token);
|
|
90195
|
+
const serializedProps = await rpc.getCustomViewState3dData(this._imodel.getRpcProps(), rpcOptions);
|
|
90196
|
+
const baseExtents = _itwin_core_geometry__WEBPACK_IMPORTED_MODULE_2__.Range3d.fromJSON(serializedProps.modelExtents);
|
|
90197
|
+
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);
|
|
90187
90198
|
const viewState = _SpatialViewState__WEBPACK_IMPORTED_MODULE_3__.SpatialViewState.createFromProps(props, this._imodel);
|
|
90188
90199
|
try {
|
|
90189
90200
|
await viewState.load();
|
|
@@ -90194,7 +90205,7 @@ class ViewCreator3d {
|
|
|
90194
90205
|
viewState.setStandardRotation(options.standardViewId);
|
|
90195
90206
|
if (options?.allSubCategoriesVisible)
|
|
90196
90207
|
viewState.displayStyle.enableAllLoadedSubCategories(viewState.categorySelector.categories);
|
|
90197
|
-
const range = viewState.computeFitRange();
|
|
90208
|
+
const range = viewState.computeFitRange({ baseExtents });
|
|
90198
90209
|
viewState.lookAtVolume(range, options?.vpAspect);
|
|
90199
90210
|
return viewState;
|
|
90200
90211
|
}
|
|
@@ -109343,8 +109354,10 @@ class MeshBuilder {
|
|
|
109343
109354
|
return this.vertexMap.insertKey(vertex, addToMeshOnInsert ? onInsert : undefined);
|
|
109344
109355
|
}
|
|
109345
109356
|
addTriangle(triangle) {
|
|
109346
|
-
//
|
|
109347
|
-
(
|
|
109357
|
+
// Attempt to avoid adding vertices originating from degenerate triangles before we get here.
|
|
109358
|
+
// Removed assert and just return if degenerate at this point because uncommon cases (not worth testing for) can still occur.
|
|
109359
|
+
if (triangle.isDegenerate)
|
|
109360
|
+
return;
|
|
109348
109361
|
const onInsert = (_vk) => this.mesh.addTriangle(triangle);
|
|
109349
109362
|
this.triangleSet.insertKey(triangle, onInsert);
|
|
109350
109363
|
}
|
|
@@ -109524,8 +109537,10 @@ class MeshBuilderMap extends _itwin_core_bentley__WEBPACK_IMPORTED_MODULE_0__.Di
|
|
|
109524
109537
|
}
|
|
109525
109538
|
toMeshes() {
|
|
109526
109539
|
const meshes = new _MeshPrimitives__WEBPACK_IMPORTED_MODULE_5__.MeshList(this.features, this.range);
|
|
109527
|
-
for (const builder of this._values)
|
|
109528
|
-
|
|
109540
|
+
for (const builder of this._values) {
|
|
109541
|
+
if (builder.mesh.points.length > 0)
|
|
109542
|
+
meshes.push(builder.mesh);
|
|
109543
|
+
}
|
|
109529
109544
|
return meshes;
|
|
109530
109545
|
}
|
|
109531
109546
|
/**
|
|
@@ -277307,7 +277322,7 @@ class TestContext {
|
|
|
277307
277322
|
this.initializeRpcInterfaces({ title: this.settings.Backend.name, version: this.settings.Backend.version });
|
|
277308
277323
|
const iModelClient = new imodels_client_management_1.IModelsClient({ api: { baseUrl: `https://${process.env.IMJS_URL_PREFIX ?? ""}api.bentley.com/imodels` } });
|
|
277309
277324
|
await core_frontend_1.NoRenderApp.startup({
|
|
277310
|
-
applicationVersion: "4.1.0-dev.
|
|
277325
|
+
applicationVersion: "4.1.0-dev.33",
|
|
277311
277326
|
applicationId: this.settings.gprid,
|
|
277312
277327
|
authorizationClient: new frontend_1.TestFrontendAuthorizationClient(this.adminUserAccessToken),
|
|
277313
277328
|
hubAccess: new imodels_access_frontend_1.FrontendIModelsAccess(iModelClient),
|
|
@@ -296681,7 +296696,7 @@ module.exports = JSON.parse('{"name":"axios","version":"0.21.4","description":"P
|
|
|
296681
296696
|
/***/ ((module) => {
|
|
296682
296697
|
|
|
296683
296698
|
"use strict";
|
|
296684
|
-
module.exports = JSON.parse('{"name":"@itwin/core-frontend","version":"4.1.0-dev.
|
|
296699
|
+
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"}}]}}');
|
|
296685
296700
|
|
|
296686
296701
|
/***/ }),
|
|
296687
296702
|
|