@itwin/ecschema-rpcinterface-tests 5.6.2 → 5.6.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.
@@ -152053,14 +152053,20 @@ class RealityTileLoader {
152053
152053
  }
152054
152054
  const geom = await reader?.readGltfAndCreateGeometry(transform);
152055
152055
  // See RealityTileTree.reprojectAndResolveChildren for how reprojectionTransform is calculated
152056
+ // xForm is defined in root tile CRS, while geom is defined in iModel CRS
152056
152057
  const xForm = tile.reprojectionTransform;
152057
- if (tile.tree.reprojectGeometry && geom?.polyfaces && xForm) {
152058
- const polyfaces = geom.polyfaces.map((pf) => pf.cloneTransformed(xForm));
152059
- return { geometry: { polyfaces } };
152060
- }
152061
- else {
152062
- return { geometry: geom };
152058
+ if (tile.tree.reprojectGeometry && geom?.polyfaces?.length && xForm) {
152059
+ // Transform from iModel/Db CRS -> root tile CRS
152060
+ const dbToRoot = tile.tree.iModelTransform.inverse();
152061
+ if (dbToRoot) {
152062
+ // Conjugate xForm to apply it to polyfaces in iModel CRS:
152063
+ // dbToRoot converts to root tile CRS, xForm applies reprojection, iModelTransform converts back
152064
+ const polyfaceReprojectionTransform = tile.tree.iModelTransform.multiplyTransformTransform(xForm).multiplyTransformTransform(dbToRoot);
152065
+ const polyfaces = geom.polyfaces.map((pf) => pf.cloneTransformed(polyfaceReprojectionTransform));
152066
+ return { geometry: { polyfaces } };
152067
+ }
152063
152068
  }
152069
+ return { geometry: geom };
152064
152070
  }
152065
152071
  async loadGraphicsFromStream(tile, streamBuffer, system, isCanceled) {
152066
152072
  const format = this._getFormat(streamBuffer);
@@ -154949,7 +154955,13 @@ class WmtsMapLayerImageryProvider extends _tile_internal__WEBPACK_IMPORTED_MODUL
154949
154955
  (0,_itwin_core_bentley__WEBPACK_IMPORTED_MODULE_0__.assert)(false); // Must always hava a matrix set.
154950
154956
  return;
154951
154957
  }
154952
- const limits = matrixSetAndLimits.limits?.[quadId.level + 1]?.limits;
154958
+ const childLevel = quadId.level + 1;
154959
+ const childMatrixId = matrixSetAndLimits.tileMatrixSet.tileMatrix.length > childLevel
154960
+ ? matrixSetAndLimits.tileMatrixSet.tileMatrix[childLevel].identifier
154961
+ : undefined;
154962
+ const limits = childMatrixId !== undefined
154963
+ ? matrixSetAndLimits.limits?.find((l) => l.tileMatrix === childMatrixId)?.limits
154964
+ : undefined;
154953
154965
  if (!limits) {
154954
154966
  resolveChildren(childIds);
154955
154967
  return;
@@ -155982,7 +155994,7 @@ var WmtsCapability;
155982
155994
  this.tileMatrixSet = (0,_itwin_core_bentley__WEBPACK_IMPORTED_MODULE_0__.expectDefined)(getElementTextContent(elem, "TileMatrixSet", ""));
155983
155995
  const tileMatrixLimitsRoot = elem.getElementsByTagName("TileMatrixSetLimits");
155984
155996
  if (tileMatrixLimitsRoot.length > 0) {
155985
- const tileMatrixLimits = tileMatrixLimitsRoot[0].getElementsByTagName("TileMatrixSetLimits");
155997
+ const tileMatrixLimits = tileMatrixLimitsRoot[0].getElementsByTagName("TileMatrixLimits");
155986
155998
  for (const tmsl of tileMatrixLimits) {
155987
155999
  this.tileMatrixSetLimits.push(new TileMatrixSetLimits(tmsl));
155988
156000
  }
@@ -157009,7 +157021,7 @@ class QuantityTypeFormatsProvider {
157009
157021
  ["DefaultToolsUnits.VOLUME", QuantityType.Volume],
157010
157022
  ["DefaultToolsUnits.LENGTH_COORDINATE", QuantityType.Coordinate],
157011
157023
  ["CivilUnits.STATION", QuantityType.Stationing],
157012
- ["CivilUnits.LENGTH", QuantityType.LengthSurvey],
157024
+ ["CivilUnits.LENGTH", QuantityType.LengthEngineering],
157013
157025
  ["AecUnits.LENGTH", QuantityType.LengthEngineering]
157014
157026
  ]);
157015
157027
  async getFormat(name) {
@@ -168966,20 +168978,19 @@ class ImageryMapTile extends _internal__WEBPACK_IMPORTED_MODULE_4__.RealityTile
168966
168978
  setContent(content) {
168967
168979
  this._texture = content.imageryTexture; // No dispose - textures may be shared by terrain tiles so let garbage collector dispose them.
168968
168980
  if (undefined === content.imageryTexture)
168969
- (0,_itwin_core_bentley__WEBPACK_IMPORTED_MODULE_0__.expectDefined)(this.parent).setLeaf(); // Avoid traversing bing branches after no graphics is found.
168981
+ this.setLeaf(); // No imagery here don't traverse deeper, but leave siblings unaffected.
168970
168982
  this.setIsReady();
168971
168983
  }
168972
168984
  selectCartoDrapeTiles(drapeTiles, highResolutionReplacementTiles, rectangleToDrape, drapePixelSize, args) {
168973
168985
  // Base draping overlap on width rather than height so that tiling schemes with multiple root nodes overlay correctly.
168974
168986
  const isSmallerThanDrape = (this.rectangle.xLength() / this.maximumSize) < drapePixelSize;
168975
- if ((this.isLeaf) // Include leaves so tiles get stretched past max LOD levels. (Only for base imagery layer)
168976
- || isSmallerThanDrape
168977
- || this._anyChildNotFound) {
168987
+ if ((this.isLeaf && !this.isNotFound) // Include leaves so tiles get stretched past max LOD levels. (Only for base imagery layer)
168988
+ || isSmallerThanDrape) {
168978
168989
  if (this.isOutOfLodRange) {
168979
168990
  drapeTiles.push(this);
168980
168991
  this.setIsReady();
168981
168992
  }
168982
- else if (this.isLeaf && !isSmallerThanDrape && !this._anyChildNotFound) {
168993
+ else if (this.isLeaf && !isSmallerThanDrape) {
168983
168994
  // These tiles are selected because we are beyond the max LOD of the tile tree,
168984
168995
  // might be used to display "stretched" tiles instead of having blank.
168985
168996
  highResolutionReplacementTiles.push(this);
@@ -168997,8 +169008,9 @@ class ImageryMapTile extends _internal__WEBPACK_IMPORTED_MODULE_4__.RealityTile
168997
169008
  if (undefined !== this.children) {
168998
169009
  for (const child of this.children) {
168999
169010
  const mapChild = child;
169000
- if (mapChild.rectangle.intersectsRange(rectangleToDrape))
169001
- status = mapChild.selectCartoDrapeTiles(drapeTiles, highResolutionReplacementTiles, rectangleToDrape, drapePixelSize, args);
169011
+ if (!mapChild.rectangle.intersectsRange(rectangleToDrape))
169012
+ continue;
169013
+ status = mapChild.selectCartoDrapeTiles(drapeTiles, highResolutionReplacementTiles, rectangleToDrape, drapePixelSize, args);
169002
169014
  if (_internal__WEBPACK_IMPORTED_MODULE_4__.TileTreeLoadStatus.Loaded !== status)
169003
169015
  break;
169004
169016
  }
@@ -321426,7 +321438,7 @@ var loadLanguages = instance.loadLanguages;
321426
321438
  /***/ ((module) => {
321427
321439
 
321428
321440
  "use strict";
321429
- module.exports = /*#__PURE__*/JSON.parse('{"name":"@itwin/core-frontend","version":"5.6.2","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 && npm run -s copy:draco","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 ES2022 --outDir lib/esm","clean":"rimraf -g 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","copy:draco":"cpx \\"./node_modules/@loaders.gl/draco/dist/libs/*\\" ./lib/public/scripts","docs":"betools docs --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 --no-inline-config -c extraction.eslint.config.js \\"./src/**/*.ts\\" 1>&2","lint":"eslint \\"./src/**/*.ts\\" 1>&2","lint-fix":"eslint --fix -f visualstudio \\"./src/**/*.ts\\" 1>&2","lint-deprecation":"eslint --fix -f visualstudio --no-inline-config -c ../../common/config/eslint/eslint.config.deprecation-policy.js \\"./src/**/*.ts\\"","pseudolocalize":"betools pseudolocalize --englishDir ./src/public/locales/en --out ./public/locales/en-PSEUDO","test":"npm run webpackTestWorker && vitest --run","cover":"npm run webpackTestWorker && vitest --run","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:*","@itwin/core-bentley":"workspace:*","@itwin/core-common":"workspace:*","@itwin/core-geometry":"workspace:*","@itwin/core-orbitgt":"workspace:*","@itwin/core-quantity":"workspace:*","@itwin/ecschema-metadata":"workspace:*","@itwin/ecschema-rpcinterface-common":"workspace:*"},"//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/ecschema-metadata":"workspace:*","@itwin/ecschema-rpcinterface-common":"workspace:*","@itwin/object-storage-core":"^3.0.4","@itwin/eslint-plugin":"^6.0.0","@types/chai-as-promised":"^7","@types/draco3d":"^1.4.10","@types/sinon":"^17.0.2","@vitest/browser":"^3.0.6","@vitest/coverage-v8":"^3.0.6","cpx2":"^8.0.0","eslint":"^9.31.0","glob":"^10.5.0","playwright":"~1.56.1","rimraf":"^6.0.1","sinon":"^17.0.2","source-map-loader":"^5.0.0","typescript":"~5.6.2","typemoq":"^2.1.0","vitest":"^3.0.6","vite-multiple-assets":"^1.3.1","vite-plugin-static-copy":"2.2.0","webpack":"^5.97.1"},"//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/core-i18n":"workspace:*","@itwin/webgl-compatibility":"workspace:*","@loaders.gl/core":"^4.3.4","@loaders.gl/draco":"^4.3.4","fuse.js":"^3.3.0","wms-capabilities":"0.4.0"}}');
321441
+ module.exports = /*#__PURE__*/JSON.parse('{"name":"@itwin/core-frontend","version":"5.6.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 && npm run -s copy:draco","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 ES2022 --outDir lib/esm","clean":"rimraf -g 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","copy:draco":"cpx \\"./node_modules/@loaders.gl/draco/dist/libs/*\\" ./lib/public/scripts","docs":"betools docs --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 --no-inline-config -c extraction.eslint.config.js \\"./src/**/*.ts\\" 1>&2","lint":"eslint \\"./src/**/*.ts\\" 1>&2","lint-fix":"eslint --fix -f visualstudio \\"./src/**/*.ts\\" 1>&2","lint-deprecation":"eslint --fix -f visualstudio --no-inline-config -c ../../common/config/eslint/eslint.config.deprecation-policy.js \\"./src/**/*.ts\\"","pseudolocalize":"betools pseudolocalize --englishDir ./src/public/locales/en --out ./public/locales/en-PSEUDO","test":"npm run webpackTestWorker && vitest --run","cover":"npm run webpackTestWorker && vitest --run","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:*","@itwin/core-bentley":"workspace:*","@itwin/core-common":"workspace:*","@itwin/core-geometry":"workspace:*","@itwin/core-orbitgt":"workspace:*","@itwin/core-quantity":"workspace:*","@itwin/ecschema-metadata":"workspace:*","@itwin/ecschema-rpcinterface-common":"workspace:*"},"//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/ecschema-metadata":"workspace:*","@itwin/ecschema-rpcinterface-common":"workspace:*","@itwin/object-storage-core":"^3.0.4","@itwin/eslint-plugin":"^6.0.0","@types/chai-as-promised":"^7","@types/draco3d":"^1.4.10","@types/sinon":"^17.0.2","@vitest/browser":"^3.0.6","@vitest/coverage-v8":"^3.0.6","cpx2":"^8.0.0","eslint":"^9.31.0","glob":"^10.5.0","playwright":"~1.56.1","rimraf":"^6.0.1","sinon":"^17.0.2","source-map-loader":"^5.0.0","typescript":"~5.6.2","typemoq":"^2.1.0","vitest":"^3.0.6","vite-multiple-assets":"^1.3.1","vite-plugin-static-copy":"2.2.0","webpack":"^5.97.1"},"//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/core-i18n":"workspace:*","@itwin/webgl-compatibility":"workspace:*","@loaders.gl/core":"^4.3.4","@loaders.gl/draco":"^4.3.4","fuse.js":"^3.3.0","wms-capabilities":"0.4.0"}}');
321430
321442
 
321431
321443
  /***/ })
321432
321444