@itwin/ecschema-rpcinterface-tests 5.7.0 → 5.7.2

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.
@@ -152161,14 +152161,20 @@ class RealityTileLoader {
152161
152161
  }
152162
152162
  const geom = await reader?.readGltfAndCreateGeometry(transform);
152163
152163
  // See RealityTileTree.reprojectAndResolveChildren for how reprojectionTransform is calculated
152164
+ // xForm is defined in root tile CRS, while geom is defined in iModel CRS
152164
152165
  const xForm = tile.reprojectionTransform;
152165
- if (tile.tree.reprojectGeometry && geom?.polyfaces && xForm) {
152166
- const polyfaces = geom.polyfaces.map((pf) => pf.cloneTransformed(xForm));
152167
- return { geometry: { polyfaces } };
152168
- }
152169
- else {
152170
- return { geometry: geom };
152166
+ if (tile.tree.reprojectGeometry && geom?.polyfaces?.length && xForm) {
152167
+ // Transform from iModel/Db CRS -> root tile CRS
152168
+ const dbToRoot = tile.tree.iModelTransform.inverse();
152169
+ if (dbToRoot) {
152170
+ // Conjugate xForm to apply it to polyfaces in iModel CRS:
152171
+ // dbToRoot converts to root tile CRS, xForm applies reprojection, iModelTransform converts back
152172
+ const polyfaceReprojectionTransform = tile.tree.iModelTransform.multiplyTransformTransform(xForm).multiplyTransformTransform(dbToRoot);
152173
+ const polyfaces = geom.polyfaces.map((pf) => pf.cloneTransformed(polyfaceReprojectionTransform));
152174
+ return { geometry: { polyfaces } };
152175
+ }
152171
152176
  }
152177
+ return { geometry: geom };
152172
152178
  }
152173
152179
  async loadGraphicsFromStream(tile, streamBuffer, system, isCanceled) {
152174
152180
  const format = this._getFormat(streamBuffer);
@@ -155057,7 +155063,13 @@ class WmtsMapLayerImageryProvider extends _tile_internal__WEBPACK_IMPORTED_MODUL
155057
155063
  (0,_itwin_core_bentley__WEBPACK_IMPORTED_MODULE_0__.assert)(false); // Must always hava a matrix set.
155058
155064
  return;
155059
155065
  }
155060
- const limits = matrixSetAndLimits.limits?.[quadId.level + 1]?.limits;
155066
+ const childLevel = quadId.level + 1;
155067
+ const childMatrixId = matrixSetAndLimits.tileMatrixSet.tileMatrix.length > childLevel
155068
+ ? matrixSetAndLimits.tileMatrixSet.tileMatrix[childLevel].identifier
155069
+ : undefined;
155070
+ const limits = childMatrixId !== undefined
155071
+ ? matrixSetAndLimits.limits?.find((l) => l.tileMatrix === childMatrixId)?.limits
155072
+ : undefined;
155061
155073
  if (!limits) {
155062
155074
  resolveChildren(childIds);
155063
155075
  return;
@@ -156090,7 +156102,7 @@ var WmtsCapability;
156090
156102
  this.tileMatrixSet = (0,_itwin_core_bentley__WEBPACK_IMPORTED_MODULE_0__.expectDefined)(getElementTextContent(elem, "TileMatrixSet", ""));
156091
156103
  const tileMatrixLimitsRoot = elem.getElementsByTagName("TileMatrixSetLimits");
156092
156104
  if (tileMatrixLimitsRoot.length > 0) {
156093
- const tileMatrixLimits = tileMatrixLimitsRoot[0].getElementsByTagName("TileMatrixSetLimits");
156105
+ const tileMatrixLimits = tileMatrixLimitsRoot[0].getElementsByTagName("TileMatrixLimits");
156094
156106
  for (const tmsl of tileMatrixLimits) {
156095
156107
  this.tileMatrixSetLimits.push(new TileMatrixSetLimits(tmsl));
156096
156108
  }
@@ -157117,7 +157129,7 @@ class QuantityTypeFormatsProvider {
157117
157129
  ["DefaultToolsUnits.VOLUME", QuantityType.Volume],
157118
157130
  ["DefaultToolsUnits.LENGTH_COORDINATE", QuantityType.Coordinate],
157119
157131
  ["CivilUnits.STATION", QuantityType.Stationing],
157120
- ["CivilUnits.LENGTH", QuantityType.LengthSurvey],
157132
+ ["CivilUnits.LENGTH", QuantityType.LengthEngineering],
157121
157133
  ["AecUnits.LENGTH", QuantityType.LengthEngineering]
157122
157134
  ]);
157123
157135
  async getFormat(name) {
@@ -169088,20 +169100,19 @@ class ImageryMapTile extends _internal__WEBPACK_IMPORTED_MODULE_4__.RealityTile
169088
169100
  setContent(content) {
169089
169101
  this._texture = content.imageryTexture; // No dispose - textures may be shared by terrain tiles so let garbage collector dispose them.
169090
169102
  if (undefined === content.imageryTexture)
169091
- (0,_itwin_core_bentley__WEBPACK_IMPORTED_MODULE_0__.expectDefined)(this.parent).setLeaf(); // Avoid traversing bing branches after no graphics is found.
169103
+ this.setLeaf(); // No imagery here don't traverse deeper, but leave siblings unaffected.
169092
169104
  this.setIsReady();
169093
169105
  }
169094
169106
  selectCartoDrapeTiles(drapeTiles, highResolutionReplacementTiles, rectangleToDrape, drapePixelSize, args) {
169095
169107
  // Base draping overlap on width rather than height so that tiling schemes with multiple root nodes overlay correctly.
169096
169108
  const isSmallerThanDrape = (this.rectangle.xLength() / this.maximumSize) < drapePixelSize;
169097
- if ((this.isLeaf) // Include leaves so tiles get stretched past max LOD levels. (Only for base imagery layer)
169098
- || isSmallerThanDrape
169099
- || this._anyChildNotFound) {
169109
+ if ((this.isLeaf && !this.isNotFound) // Include leaves so tiles get stretched past max LOD levels. (Only for base imagery layer)
169110
+ || isSmallerThanDrape) {
169100
169111
  if (this.isOutOfLodRange) {
169101
169112
  drapeTiles.push(this);
169102
169113
  this.setIsReady();
169103
169114
  }
169104
- else if (this.isLeaf && !isSmallerThanDrape && !this._anyChildNotFound) {
169115
+ else if (this.isLeaf && !isSmallerThanDrape) {
169105
169116
  // These tiles are selected because we are beyond the max LOD of the tile tree,
169106
169117
  // might be used to display "stretched" tiles instead of having blank.
169107
169118
  highResolutionReplacementTiles.push(this);
@@ -169119,8 +169130,9 @@ class ImageryMapTile extends _internal__WEBPACK_IMPORTED_MODULE_4__.RealityTile
169119
169130
  if (undefined !== this.children) {
169120
169131
  for (const child of this.children) {
169121
169132
  const mapChild = child;
169122
- if (mapChild.rectangle.intersectsRange(rectangleToDrape))
169123
- status = mapChild.selectCartoDrapeTiles(drapeTiles, highResolutionReplacementTiles, rectangleToDrape, drapePixelSize, args);
169133
+ if (!mapChild.rectangle.intersectsRange(rectangleToDrape))
169134
+ continue;
169135
+ status = mapChild.selectCartoDrapeTiles(drapeTiles, highResolutionReplacementTiles, rectangleToDrape, drapePixelSize, args);
169124
169136
  if (_internal__WEBPACK_IMPORTED_MODULE_4__.TileTreeLoadStatus.Loaded !== status)
169125
169137
  break;
169126
169138
  }
@@ -321815,7 +321827,7 @@ var loadLanguages = instance.loadLanguages;
321815
321827
  /***/ ((module) => {
321816
321828
 
321817
321829
  "use strict";
321818
- module.exports = /*#__PURE__*/JSON.parse('{"name":"@itwin/core-frontend","version":"5.7.0","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","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"}}');
321830
+ module.exports = /*#__PURE__*/JSON.parse('{"name":"@itwin/core-frontend","version":"5.7.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","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"}}');
321819
321831
 
321820
321832
  /***/ })
321821
321833