@itwin/rpcinterface-full-stack-tests 4.10.2 → 4.11.0-dev.1

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\\14\\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\\19\\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":""}
@@ -45664,6 +45664,8 @@ class PropertyMetaDataMap {
45664
45664
  this._byJsonName = new Map();
45665
45665
  this._byNoCase = new Map();
45666
45666
  for (const property of this.properties) {
45667
+ property.extendType = property.extendedType !== undefined ? property.extendedType : ""; // eslint-disable-line @typescript-eslint/no-deprecated
45668
+ property.extendedType = property.extendedType === "" ? undefined : property.extendedType;
45667
45669
  this._byPropName.set(property.name, property.index);
45668
45670
  this._byJsonName.set(property.jsonName, property.index);
45669
45671
  this._byNoCase.set(property.name.toLowerCase(), property.index);
@@ -155813,6 +155815,12 @@ class GltfReader {
155813
155815
  featureTable.insertWithIndex(this._instanceFeatures[instanceFeatureId], instanceFeatureId);
155814
155816
  }
155815
155817
  }
155818
+ if (this._meshFeatures.length > 0 && this._idMap) {
155819
+ featureTable = new _itwin_core_common__WEBPACK_IMPORTED_MODULE_2__.FeatureTable(this._meshFeatures.length, featureTableModelId);
155820
+ for (let meshFeatureId = 0; meshFeatureId < this._meshFeatures.length; meshFeatureId++) {
155821
+ featureTable.insertWithIndex(this._meshFeatures[meshFeatureId], meshFeatureId);
155822
+ }
155823
+ }
155816
155824
  if (0 === templateNodes.length)
155817
155825
  return { readStatus: _itwin_core_common__WEBPACK_IMPORTED_MODULE_2__.TileReadStatus.InvalidTileData, isLeaf };
155818
155826
  // Compute range in tileset/world space.
@@ -156170,7 +156178,9 @@ class GltfReader {
156170
156178
  this._dracoMeshes = new Map();
156171
156179
  this._containsPointCloud = false;
156172
156180
  this._instanceFeatures = [];
156181
+ this._meshFeatures = [];
156173
156182
  this._instanceElementIdToFeatureId = new Map();
156183
+ this._meshElementIdToFeatureIndex = new Map();
156174
156184
  /** The glTF spec says that if GltfSampler.wrapS/T are omitted, they default to Repeat.
156175
156185
  * However, the reality data service serves tiles that lack any wrapS/T property, and we want those clamped to edge, not repeated.
156176
156186
  * (We also don't want to produce mip-maps for them, which is determined indirectly from the wrap mode).
@@ -156701,8 +156711,69 @@ class GltfReader {
156701
156711
  }
156702
156712
  readBatchTable(_mesh, _json) {
156703
156713
  }
156704
- readPrimitiveFeatures(_primitive) {
156705
- return undefined;
156714
+ readPrimitiveFeatures(primitive) {
156715
+ const ext = primitive.extensions?.EXT_mesh_features;
156716
+ if (!ext || !primitive.attributes || !this._structuralMetadata || !this._idMap) {
156717
+ return undefined;
156718
+ }
156719
+ let vertexCount = 0;
156720
+ const featureIdBuffers = new Map();
156721
+ for (const featureIdDesc of ext.featureIds) {
156722
+ if (featureIdDesc.attribute === undefined) {
156723
+ continue;
156724
+ }
156725
+ const bufferView = this.getBufferView(primitive.attributes, `_FEATURE_ID_${featureIdDesc.attribute}`);
156726
+ const bufferData = bufferView?.toBufferData(bufferView.type);
156727
+ const buffer = bufferData?.buffer;
156728
+ if (!bufferView || !buffer) {
156729
+ return undefined;
156730
+ }
156731
+ vertexCount = bufferData.count ?? 0;
156732
+ featureIdBuffers.set(featureIdDesc.attribute, { buffer, stride: bufferView.stride });
156733
+ }
156734
+ const itwinFeatureIndices = [];
156735
+ const vertexPropsMap = new Map();
156736
+ for (let vertexId = 0; vertexId < vertexCount; vertexId++) {
156737
+ let vertexUniqueId = "";
156738
+ for (const featureIdDesc of ext.featureIds) {
156739
+ if (featureIdDesc.attribute === undefined) {
156740
+ continue;
156741
+ }
156742
+ const { buffer, stride } = featureIdBuffers.get(featureIdDesc.attribute);
156743
+ const featureId = buffer[vertexId * stride];
156744
+ const propertyTableId = featureIdDesc.propertyTable ?? 0;
156745
+ vertexUniqueId = `${vertexUniqueId}-${featureId}-${propertyTableId}`;
156746
+ }
156747
+ let vertexElementId;
156748
+ if (!vertexPropsMap.has(vertexUniqueId)) {
156749
+ const vertexProps = {};
156750
+ for (const featureIdDesc of ext.featureIds) {
156751
+ if (featureIdDesc.attribute === undefined) {
156752
+ continue;
156753
+ }
156754
+ const { buffer, stride } = featureIdBuffers.get(featureIdDesc.attribute);
156755
+ const featureId = buffer[vertexId * stride];
156756
+ const table = this._structuralMetadata.tables[featureIdDesc.propertyTable ?? 0];
156757
+ vertexProps[table.name] = {};
156758
+ for (const entries of table.entries) {
156759
+ if (entries.values[featureId] !== undefined) {
156760
+ vertexProps[table.name][entries.name] = entries.values[featureId];
156761
+ }
156762
+ }
156763
+ }
156764
+ vertexElementId = this._idMap.getBatchId(vertexProps);
156765
+ vertexPropsMap.set(vertexUniqueId, vertexElementId);
156766
+ // If the element id is already assigned to a previous vertex,
156767
+ // reuse the previous feature id to avoid collision in the feature table
156768
+ if (!this._meshElementIdToFeatureIndex.has(vertexElementId)) {
156769
+ this._meshElementIdToFeatureIndex.set(vertexElementId, this._meshFeatures.length);
156770
+ this._meshFeatures.push(new _itwin_core_common__WEBPACK_IMPORTED_MODULE_2__.Feature(vertexElementId));
156771
+ }
156772
+ }
156773
+ vertexElementId = vertexPropsMap.get(vertexUniqueId) ?? "";
156774
+ itwinFeatureIndices.push(this._meshElementIdToFeatureIndex.get(vertexElementId) ?? 0);
156775
+ }
156776
+ return itwinFeatureIndices;
156706
156777
  }
156707
156778
  readMeshIndices(mesh, json) {
156708
156779
  if (undefined !== json.indices) {
@@ -157139,6 +157210,14 @@ class GltfGraphicsReader extends GltfReader {
157139
157210
  renderMode: _itwin_core_common__WEBPACK_IMPORTED_MODULE_2__.RenderMode.SmoothShade,
157140
157211
  };
157141
157212
  }
157213
+ get meshElementIdToFeatureIndex() {
157214
+ return this._meshElementIdToFeatureIndex;
157215
+ }
157216
+ readMeshPrimitive(primitive, featureTable, pseudoRtcBias) {
157217
+ const meshes = super.readMeshPrimitive(primitive, featureTable, pseudoRtcBias);
157218
+ this.meshes = meshes instanceof GltfMeshData ? meshes : undefined;
157219
+ return meshes;
157220
+ }
157142
157221
  getGltfStructuralMetadataBuffer(id, type) {
157143
157222
  const bufferView = this._bufferViews[id];
157144
157223
  if (!bufferView || undefined === bufferView.buffer)
@@ -304029,7 +304108,7 @@ class TestContext {
304029
304108
  this.initializeRpcInterfaces({ title: this.settings.Backend.name, version: this.settings.Backend.version });
304030
304109
  const iModelClient = new imodels_client_management_1.IModelsClient({ api: { baseUrl: `https://${process.env.IMJS_URL_PREFIX ?? ""}api.bentley.com/imodels` } });
304031
304110
  await core_frontend_1.NoRenderApp.startup({
304032
- applicationVersion: "4.10.2",
304111
+ applicationVersion: "4.11.0-dev.1",
304033
304112
  applicationId: this.settings.gprid,
304034
304113
  authorizationClient: new frontend_1.TestFrontendAuthorizationClient(this.adminUserAccessToken),
304035
304114
  hubAccess: new imodels_access_frontend_1.FrontendIModelsAccess(iModelClient),
@@ -331605,7 +331684,7 @@ function __disposeResources(env) {
331605
331684
  /***/ ((module) => {
331606
331685
 
331607
331686
  "use strict";
331608
- module.exports = JSON.parse('{"name":"@itwin/core-frontend","version":"4.10.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","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 --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","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 --coverage","test:debug":"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:^4.10.2","@itwin/core-bentley":"workspace:^4.10.2","@itwin/core-common":"workspace:^4.10.2","@itwin/core-geometry":"workspace:^4.10.2","@itwin/core-orbitgt":"workspace:^4.10.2","@itwin/core-quantity":"workspace:^4.10.2"},"//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/eslint-plugin":"5.0.0-dev.1","@types/chai-as-promised":"^7","@vitest/browser":"^2.1.0","@vitest/coverage-v8":"^2.1.0","babel-loader":"~8.2.5","babel-plugin-istanbul":"~6.1.1","cpx2":"^3.0.0","eslint":"^9.13.0","glob":"^10.3.12","playwright":"~1.47.1","rimraf":"^3.0.2","source-map-loader":"^4.0.0","typescript":"~5.6.2","typemoq":"^2.1.0","vitest":"^2.1.0","vite-multiple-assets":"^1.3.1","vite-plugin-static-copy":"1.0.6","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.2.4","@itwin/object-storage-core":"^2.2.5","@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","meshoptimizer":"~0.20.0","wms-capabilities":"0.4.0"}}');
331687
+ module.exports = JSON.parse('{"name":"@itwin/core-frontend","version":"4.11.0-dev.1","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 --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","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 --coverage","test:debug":"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:^4.11.0-dev.1","@itwin/core-bentley":"workspace:^4.11.0-dev.1","@itwin/core-common":"workspace:^4.11.0-dev.1","@itwin/core-geometry":"workspace:^4.11.0-dev.1","@itwin/core-orbitgt":"workspace:^4.11.0-dev.1","@itwin/core-quantity":"workspace:^4.11.0-dev.1"},"//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/eslint-plugin":"5.0.0-dev.1","@types/chai-as-promised":"^7","@vitest/browser":"^2.1.0","@vitest/coverage-v8":"^2.1.0","babel-loader":"~8.2.5","babel-plugin-istanbul":"~6.1.1","cpx2":"^3.0.0","eslint":"^9.13.0","glob":"^10.3.12","playwright":"~1.47.1","rimraf":"^3.0.2","source-map-loader":"^4.0.0","typescript":"~5.6.2","typemoq":"^2.1.0","vitest":"^2.1.0","vite-multiple-assets":"^1.3.1","vite-plugin-static-copy":"1.0.6","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.2.4","@itwin/object-storage-core":"^2.2.5","@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","meshoptimizer":"~0.20.0","wms-capabilities":"0.4.0"}}');
331609
331688
 
331610
331689
  /***/ }),
331611
331690