@itwin/ecschema-rpcinterface-tests 4.5.0-dev.35 → 4.5.0-dev.36

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.
@@ -1 +1 @@
1
- {"version":3,"file":"_bea9.bundled-tests.js","mappings":";;;;;;;;AAAA","sources":["file:///ignored|D:\\vsts_a\\161\\s\\common\\temp\\node_modules\\.pnpm\\@loaders.gl+worker-utils@3.1.6\\node_modules\\@loaders.gl\\worker-utils\\dist\\esm\\lib\\library-utils|../node/require-utils.node"],"names":[],"sourceRoot":""}
1
+ {"version":3,"file":"_bea9.bundled-tests.js","mappings":";;;;;;;;AAAA","sources":["file:///ignored|D:\\vsts_a\\486\\s\\common\\temp\\node_modules\\.pnpm\\@loaders.gl+worker-utils@3.1.6\\node_modules\\@loaders.gl\\worker-utils\\dist\\esm\\lib\\library-utils|../node/require-utils.node"],"names":[],"sourceRoot":""}
@@ -144112,14 +144112,15 @@ var SpatialTileTreeReferences;
144112
144112
  })(SpatialTileTreeReferences || (SpatialTileTreeReferences = {}));
144113
144113
  /** Represents the [[TileTreeReference]]s associated with one model in a [[SpatialTileTreeReferences]]. */
144114
144114
  class SpatialModelRefs {
144115
- constructor(model, view) {
144115
+ constructor(model, view, excluded) {
144116
144116
  /** TileTreeReferences representing nodes transformed by the view's schedule script. */
144117
144117
  this._animatedRefs = [];
144118
144118
  this._modelRef = model.createTileTreeReference(view);
144119
144119
  this._isPrimaryRef = this._modelRef instanceof PrimaryTreeReference;
144120
+ this._isExcluded = excluded;
144120
144121
  }
144121
144122
  *[Symbol.iterator]() {
144122
- if (!this._primaryRef || !this._primaryRef.deactivated)
144123
+ if ((!this._primaryRef || !this._primaryRef.deactivated) && !this._isExcluded)
144123
144124
  yield this._modelRef;
144124
144125
  for (const animated of this._animatedRefs)
144125
144126
  if (!animated.deactivated)
@@ -144129,7 +144130,7 @@ class SpatialModelRefs {
144129
144130
  }
144130
144131
  updateAnimated(script) {
144131
144132
  const ref = this._primaryRef;
144132
- if (!ref)
144133
+ if (!ref || this._isExcluded)
144133
144134
  return;
144134
144135
  this._animatedRefs.length = 0;
144135
144136
  const nodeIds = script?.script.getTransformBatchIds(ref.model.id);
@@ -144178,6 +144179,8 @@ class SpatialRefs {
144178
144179
  this._allLoaded = false;
144179
144180
  this._refs = new Map();
144180
144181
  this._swapRefs = new Map();
144182
+ this._sectionCutOnlyRefs = new Map();
144183
+ this._swapSectionCutOnlyRefs = new Map();
144181
144184
  this._view = view;
144182
144185
  this._scheduleScript = view.displayStyle.scheduleScriptReference; // eslint-disable-line deprecation/deprecation
144183
144186
  this._sectionCut = this.getSectionCutFromView();
@@ -144194,6 +144197,11 @@ class SpatialRefs {
144194
144197
  for (const modelRef of this._refs.values())
144195
144198
  for (const ref of modelRef)
144196
144199
  yield ref;
144200
+ if (this._sectionCut) {
144201
+ for (const modelRef of this._sectionCutOnlyRefs.values())
144202
+ for (const ref of modelRef)
144203
+ yield ref;
144204
+ }
144197
144205
  }
144198
144206
  setDeactivated(modelIds, deactivated, refs) {
144199
144207
  if (undefined === modelIds) {
@@ -144224,6 +144232,8 @@ class SpatialRefs {
144224
144232
  this._sectionCut = sectionCut;
144225
144233
  for (const ref of this._refs.values())
144226
144234
  ref.updateSectionCut(sectionCut);
144235
+ for (const ref of this._sectionCutOnlyRefs.values())
144236
+ ref.updateSectionCut(sectionCut);
144227
144237
  }
144228
144238
  }
144229
144239
  getSectionCutFromView() {
@@ -144233,19 +144243,32 @@ class SpatialRefs {
144233
144243
  }
144234
144244
  /** Ensure this._refs contains a SpatialModelRefs for all loaded models in the model selector. */
144235
144245
  updateModels() {
144236
- const prev = this._refs;
144237
- const cur = this._swapRefs;
144246
+ let prev = this._refs;
144247
+ let cur = this._swapRefs;
144238
144248
  this._refs = cur;
144239
144249
  this._swapRefs = prev;
144240
144250
  cur.clear();
144251
+ prev = this._sectionCutOnlyRefs;
144252
+ cur = this._swapSectionCutOnlyRefs;
144253
+ this._sectionCutOnlyRefs = cur;
144254
+ this._swapSectionCutOnlyRefs = prev;
144255
+ cur.clear();
144241
144256
  for (const modelId of this._view.modelSelector.models) {
144242
- if (this._excludedModels && this._excludedModels.has(modelId))
144243
- continue;
144257
+ let excluded = false;
144258
+ if (undefined !== this._excludedModels && this._excludedModels.has(modelId)) {
144259
+ excluded = true;
144260
+ cur = this._sectionCutOnlyRefs;
144261
+ prev = this._swapSectionCutOnlyRefs;
144262
+ }
144263
+ else {
144264
+ cur = this._refs;
144265
+ prev = this._swapRefs;
144266
+ }
144244
144267
  let modelRefs = prev.get(modelId);
144245
144268
  if (!modelRefs) {
144246
144269
  const model = this._view.iModel.models.getLoaded(modelId)?.asGeometricModel3d;
144247
144270
  if (model) {
144248
- modelRefs = new SpatialModelRefs(model, this._view);
144271
+ modelRefs = new SpatialModelRefs(model, this._view, excluded);
144249
144272
  modelRefs.updateAnimated(this._scheduleScript);
144250
144273
  modelRefs.updateSectionCut(this._sectionCut);
144251
144274
  }
@@ -293207,7 +293230,7 @@ module.exports = JSON.parse('{"name":"axios","version":"0.21.4","description":"P
293207
293230
  /***/ ((module) => {
293208
293231
 
293209
293232
  "use strict";
293210
- module.exports = JSON.parse('{"name":"@itwin/core-frontend","version":"4.5.0-dev.35","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","lint-fix":"eslint --fix -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.5.0-dev.35","@itwin/core-bentley":"workspace:^4.5.0-dev.35","@itwin/core-common":"workspace:^4.5.0-dev.35","@itwin/core-geometry":"workspace:^4.5.0-dev.35","@itwin/core-orbitgt":"workspace:^4.5.0-dev.35","@itwin/core-quantity":"workspace:^4.5.0-dev.35"},"//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":"^10.0.6","@types/sinon":"^17.0.2","babel-loader":"~8.2.5","babel-plugin-istanbul":"~6.1.1","chai":"^4.3.10","chai-as-promised":"^7.1.1","cpx2":"^3.0.0","eslint":"^8.44.0","glob":"^7.1.2","mocha":"^10.2.0","nyc":"^15.1.0","rimraf":"^3.0.2","sinon":"^17.0.1","source-map-loader":"^4.0.0","typescript":"~5.0.2","typemoq":"^2.1.0","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.2.2","@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"}}');
293233
+ module.exports = JSON.parse('{"name":"@itwin/core-frontend","version":"4.5.0-dev.36","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","lint-fix":"eslint --fix -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.5.0-dev.36","@itwin/core-bentley":"workspace:^4.5.0-dev.36","@itwin/core-common":"workspace:^4.5.0-dev.36","@itwin/core-geometry":"workspace:^4.5.0-dev.36","@itwin/core-orbitgt":"workspace:^4.5.0-dev.36","@itwin/core-quantity":"workspace:^4.5.0-dev.36"},"//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":"^10.0.6","@types/sinon":"^17.0.2","babel-loader":"~8.2.5","babel-plugin-istanbul":"~6.1.1","chai":"^4.3.10","chai-as-promised":"^7.1.1","cpx2":"^3.0.0","eslint":"^8.44.0","glob":"^7.1.2","mocha":"^10.2.0","nyc":"^15.1.0","rimraf":"^3.0.2","sinon":"^17.0.1","source-map-loader":"^4.0.0","typescript":"~5.0.2","typemoq":"^2.1.0","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.2.2","@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"}}');
293211
293234
 
293212
293235
  /***/ })
293213
293236