@itwin/ecschema-rpcinterface-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":""}
@@ -32207,6 +32207,8 @@ class PropertyMetaDataMap {
32207
32207
  this._byJsonName = new Map();
32208
32208
  this._byNoCase = new Map();
32209
32209
  for (const property of this.properties) {
32210
+ property.extendType = property.extendedType !== undefined ? property.extendedType : ""; // eslint-disable-line @typescript-eslint/no-deprecated
32211
+ property.extendedType = property.extendedType === "" ? undefined : property.extendedType;
32210
32212
  this._byPropName.set(property.name, property.index);
32211
32213
  this._byJsonName.set(property.jsonName, property.index);
32212
32214
  this._byNoCase.set(property.name.toLowerCase(), property.index);
@@ -142528,6 +142530,12 @@ class GltfReader {
142528
142530
  featureTable.insertWithIndex(this._instanceFeatures[instanceFeatureId], instanceFeatureId);
142529
142531
  }
142530
142532
  }
142533
+ if (this._meshFeatures.length > 0 && this._idMap) {
142534
+ featureTable = new _itwin_core_common__WEBPACK_IMPORTED_MODULE_2__.FeatureTable(this._meshFeatures.length, featureTableModelId);
142535
+ for (let meshFeatureId = 0; meshFeatureId < this._meshFeatures.length; meshFeatureId++) {
142536
+ featureTable.insertWithIndex(this._meshFeatures[meshFeatureId], meshFeatureId);
142537
+ }
142538
+ }
142531
142539
  if (0 === templateNodes.length)
142532
142540
  return { readStatus: _itwin_core_common__WEBPACK_IMPORTED_MODULE_2__.TileReadStatus.InvalidTileData, isLeaf };
142533
142541
  // Compute range in tileset/world space.
@@ -142885,7 +142893,9 @@ class GltfReader {
142885
142893
  this._dracoMeshes = new Map();
142886
142894
  this._containsPointCloud = false;
142887
142895
  this._instanceFeatures = [];
142896
+ this._meshFeatures = [];
142888
142897
  this._instanceElementIdToFeatureId = new Map();
142898
+ this._meshElementIdToFeatureIndex = new Map();
142889
142899
  /** The glTF spec says that if GltfSampler.wrapS/T are omitted, they default to Repeat.
142890
142900
  * However, the reality data service serves tiles that lack any wrapS/T property, and we want those clamped to edge, not repeated.
142891
142901
  * (We also don't want to produce mip-maps for them, which is determined indirectly from the wrap mode).
@@ -143416,8 +143426,69 @@ class GltfReader {
143416
143426
  }
143417
143427
  readBatchTable(_mesh, _json) {
143418
143428
  }
143419
- readPrimitiveFeatures(_primitive) {
143420
- return undefined;
143429
+ readPrimitiveFeatures(primitive) {
143430
+ const ext = primitive.extensions?.EXT_mesh_features;
143431
+ if (!ext || !primitive.attributes || !this._structuralMetadata || !this._idMap) {
143432
+ return undefined;
143433
+ }
143434
+ let vertexCount = 0;
143435
+ const featureIdBuffers = new Map();
143436
+ for (const featureIdDesc of ext.featureIds) {
143437
+ if (featureIdDesc.attribute === undefined) {
143438
+ continue;
143439
+ }
143440
+ const bufferView = this.getBufferView(primitive.attributes, `_FEATURE_ID_${featureIdDesc.attribute}`);
143441
+ const bufferData = bufferView?.toBufferData(bufferView.type);
143442
+ const buffer = bufferData?.buffer;
143443
+ if (!bufferView || !buffer) {
143444
+ return undefined;
143445
+ }
143446
+ vertexCount = bufferData.count ?? 0;
143447
+ featureIdBuffers.set(featureIdDesc.attribute, { buffer, stride: bufferView.stride });
143448
+ }
143449
+ const itwinFeatureIndices = [];
143450
+ const vertexPropsMap = new Map();
143451
+ for (let vertexId = 0; vertexId < vertexCount; vertexId++) {
143452
+ let vertexUniqueId = "";
143453
+ for (const featureIdDesc of ext.featureIds) {
143454
+ if (featureIdDesc.attribute === undefined) {
143455
+ continue;
143456
+ }
143457
+ const { buffer, stride } = featureIdBuffers.get(featureIdDesc.attribute);
143458
+ const featureId = buffer[vertexId * stride];
143459
+ const propertyTableId = featureIdDesc.propertyTable ?? 0;
143460
+ vertexUniqueId = `${vertexUniqueId}-${featureId}-${propertyTableId}`;
143461
+ }
143462
+ let vertexElementId;
143463
+ if (!vertexPropsMap.has(vertexUniqueId)) {
143464
+ const vertexProps = {};
143465
+ for (const featureIdDesc of ext.featureIds) {
143466
+ if (featureIdDesc.attribute === undefined) {
143467
+ continue;
143468
+ }
143469
+ const { buffer, stride } = featureIdBuffers.get(featureIdDesc.attribute);
143470
+ const featureId = buffer[vertexId * stride];
143471
+ const table = this._structuralMetadata.tables[featureIdDesc.propertyTable ?? 0];
143472
+ vertexProps[table.name] = {};
143473
+ for (const entries of table.entries) {
143474
+ if (entries.values[featureId] !== undefined) {
143475
+ vertexProps[table.name][entries.name] = entries.values[featureId];
143476
+ }
143477
+ }
143478
+ }
143479
+ vertexElementId = this._idMap.getBatchId(vertexProps);
143480
+ vertexPropsMap.set(vertexUniqueId, vertexElementId);
143481
+ // If the element id is already assigned to a previous vertex,
143482
+ // reuse the previous feature id to avoid collision in the feature table
143483
+ if (!this._meshElementIdToFeatureIndex.has(vertexElementId)) {
143484
+ this._meshElementIdToFeatureIndex.set(vertexElementId, this._meshFeatures.length);
143485
+ this._meshFeatures.push(new _itwin_core_common__WEBPACK_IMPORTED_MODULE_2__.Feature(vertexElementId));
143486
+ }
143487
+ }
143488
+ vertexElementId = vertexPropsMap.get(vertexUniqueId) ?? "";
143489
+ itwinFeatureIndices.push(this._meshElementIdToFeatureIndex.get(vertexElementId) ?? 0);
143490
+ }
143491
+ return itwinFeatureIndices;
143421
143492
  }
143422
143493
  readMeshIndices(mesh, json) {
143423
143494
  if (undefined !== json.indices) {
@@ -143854,6 +143925,14 @@ class GltfGraphicsReader extends GltfReader {
143854
143925
  renderMode: _itwin_core_common__WEBPACK_IMPORTED_MODULE_2__.RenderMode.SmoothShade,
143855
143926
  };
143856
143927
  }
143928
+ get meshElementIdToFeatureIndex() {
143929
+ return this._meshElementIdToFeatureIndex;
143930
+ }
143931
+ readMeshPrimitive(primitive, featureTable, pseudoRtcBias) {
143932
+ const meshes = super.readMeshPrimitive(primitive, featureTable, pseudoRtcBias);
143933
+ this.meshes = meshes instanceof GltfMeshData ? meshes : undefined;
143934
+ return meshes;
143935
+ }
143857
143936
  getGltfStructuralMetadataBuffer(id, type) {
143858
143937
  const bufferView = this._bufferViews[id];
143859
143938
  if (!bufferView || undefined === bufferView.buffer)
@@ -304653,7 +304732,7 @@ var loadLanguages = instance.loadLanguages;
304653
304732
  /***/ ((module) => {
304654
304733
 
304655
304734
  "use strict";
304656
- 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"}}');
304735
+ 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"}}');
304657
304736
 
304658
304737
  /***/ })
304659
304738