@itwin/rpcinterface-full-stack-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":""}
@@ -149627,14 +149627,15 @@ var SpatialTileTreeReferences;
149627
149627
  })(SpatialTileTreeReferences || (SpatialTileTreeReferences = {}));
149628
149628
  /** Represents the [[TileTreeReference]]s associated with one model in a [[SpatialTileTreeReferences]]. */
149629
149629
  class SpatialModelRefs {
149630
- constructor(model, view) {
149630
+ constructor(model, view, excluded) {
149631
149631
  /** TileTreeReferences representing nodes transformed by the view's schedule script. */
149632
149632
  this._animatedRefs = [];
149633
149633
  this._modelRef = model.createTileTreeReference(view);
149634
149634
  this._isPrimaryRef = this._modelRef instanceof PrimaryTreeReference;
149635
+ this._isExcluded = excluded;
149635
149636
  }
149636
149637
  *[Symbol.iterator]() {
149637
- if (!this._primaryRef || !this._primaryRef.deactivated)
149638
+ if ((!this._primaryRef || !this._primaryRef.deactivated) && !this._isExcluded)
149638
149639
  yield this._modelRef;
149639
149640
  for (const animated of this._animatedRefs)
149640
149641
  if (!animated.deactivated)
@@ -149644,7 +149645,7 @@ class SpatialModelRefs {
149644
149645
  }
149645
149646
  updateAnimated(script) {
149646
149647
  const ref = this._primaryRef;
149647
- if (!ref)
149648
+ if (!ref || this._isExcluded)
149648
149649
  return;
149649
149650
  this._animatedRefs.length = 0;
149650
149651
  const nodeIds = script?.script.getTransformBatchIds(ref.model.id);
@@ -149693,6 +149694,8 @@ class SpatialRefs {
149693
149694
  this._allLoaded = false;
149694
149695
  this._refs = new Map();
149695
149696
  this._swapRefs = new Map();
149697
+ this._sectionCutOnlyRefs = new Map();
149698
+ this._swapSectionCutOnlyRefs = new Map();
149696
149699
  this._view = view;
149697
149700
  this._scheduleScript = view.displayStyle.scheduleScriptReference; // eslint-disable-line deprecation/deprecation
149698
149701
  this._sectionCut = this.getSectionCutFromView();
@@ -149709,6 +149712,11 @@ class SpatialRefs {
149709
149712
  for (const modelRef of this._refs.values())
149710
149713
  for (const ref of modelRef)
149711
149714
  yield ref;
149715
+ if (this._sectionCut) {
149716
+ for (const modelRef of this._sectionCutOnlyRefs.values())
149717
+ for (const ref of modelRef)
149718
+ yield ref;
149719
+ }
149712
149720
  }
149713
149721
  setDeactivated(modelIds, deactivated, refs) {
149714
149722
  if (undefined === modelIds) {
@@ -149739,6 +149747,8 @@ class SpatialRefs {
149739
149747
  this._sectionCut = sectionCut;
149740
149748
  for (const ref of this._refs.values())
149741
149749
  ref.updateSectionCut(sectionCut);
149750
+ for (const ref of this._sectionCutOnlyRefs.values())
149751
+ ref.updateSectionCut(sectionCut);
149742
149752
  }
149743
149753
  }
149744
149754
  getSectionCutFromView() {
@@ -149748,19 +149758,32 @@ class SpatialRefs {
149748
149758
  }
149749
149759
  /** Ensure this._refs contains a SpatialModelRefs for all loaded models in the model selector. */
149750
149760
  updateModels() {
149751
- const prev = this._refs;
149752
- const cur = this._swapRefs;
149761
+ let prev = this._refs;
149762
+ let cur = this._swapRefs;
149753
149763
  this._refs = cur;
149754
149764
  this._swapRefs = prev;
149755
149765
  cur.clear();
149766
+ prev = this._sectionCutOnlyRefs;
149767
+ cur = this._swapSectionCutOnlyRefs;
149768
+ this._sectionCutOnlyRefs = cur;
149769
+ this._swapSectionCutOnlyRefs = prev;
149770
+ cur.clear();
149756
149771
  for (const modelId of this._view.modelSelector.models) {
149757
- if (this._excludedModels && this._excludedModels.has(modelId))
149758
- continue;
149772
+ let excluded = false;
149773
+ if (undefined !== this._excludedModels && this._excludedModels.has(modelId)) {
149774
+ excluded = true;
149775
+ cur = this._sectionCutOnlyRefs;
149776
+ prev = this._swapSectionCutOnlyRefs;
149777
+ }
149778
+ else {
149779
+ cur = this._refs;
149780
+ prev = this._swapRefs;
149781
+ }
149759
149782
  let modelRefs = prev.get(modelId);
149760
149783
  if (!modelRefs) {
149761
149784
  const model = this._view.iModel.models.getLoaded(modelId)?.asGeometricModel3d;
149762
149785
  if (model) {
149763
- modelRefs = new SpatialModelRefs(model, this._view);
149786
+ modelRefs = new SpatialModelRefs(model, this._view, excluded);
149764
149787
  modelRefs.updateAnimated(this._scheduleScript);
149765
149788
  modelRefs.updateSectionCut(this._sectionCut);
149766
149789
  }
@@ -289593,7 +289616,7 @@ class TestContext {
289593
289616
  this.initializeRpcInterfaces({ title: this.settings.Backend.name, version: this.settings.Backend.version });
289594
289617
  const iModelClient = new imodels_client_management_1.IModelsClient({ api: { baseUrl: `https://${process.env.IMJS_URL_PREFIX ?? ""}api.bentley.com/imodels` } });
289595
289618
  await core_frontend_1.NoRenderApp.startup({
289596
- applicationVersion: "4.5.0-dev.35",
289619
+ applicationVersion: "4.5.0-dev.36",
289597
289620
  applicationId: this.settings.gprid,
289598
289621
  authorizationClient: new frontend_1.TestFrontendAuthorizationClient(this.adminUserAccessToken),
289599
289622
  hubAccess: new imodels_access_frontend_1.FrontendIModelsAccess(iModelClient),
@@ -309289,7 +309312,7 @@ module.exports = JSON.parse('{"name":"axios","version":"0.21.4","description":"P
309289
309312
  /***/ ((module) => {
309290
309313
 
309291
309314
  "use strict";
309292
- 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"}}');
309315
+ 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"}}');
309293
309316
 
309294
309317
  /***/ }),
309295
309318