@itwin/rpcinterface-full-stack-tests 4.2.0-dev.19 → 4.2.0-dev.22

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":"_0062.bundled-tests.js","mappings":";;;;;;;;AAAA","sources":["file:///ignored|D:\\vsts_a\\4\\s\\common\\temp\\node_modules\\.pnpm\\@loaders.gl+worker-utils@3.4.7\\node_modules\\@loaders.gl\\worker-utils\\dist\\esm\\lib\\library-utils|../node/require-utils.node"],"names":[],"sourceRoot":""}
1
+ {"version":3,"file":"_0062.bundled-tests.js","mappings":";;;;;;;;AAAA","sources":["file:///ignored|D:\\vsts_a\\15\\s\\common\\temp\\node_modules\\.pnpm\\@loaders.gl+worker-utils@3.4.7\\node_modules\\@loaders.gl\\worker-utils\\dist\\esm\\lib\\library-utils|../node/require-utils.node"],"names":[],"sourceRoot":""}
@@ -94610,7 +94610,9 @@ class Viewport {
94610
94610
  this.invalidateRenderPlan();
94611
94611
  }
94612
94612
  }
94613
- /** Obtain a tooltip from the map layer or reality model, if any, identified by the specified [[HitDetail]]. */
94613
+ /** Obtain a tooltip from the map layer or reality model, if any, identified by the specified [[HitDetail]].
94614
+ * @see [[ElementLocateManager]]
94615
+ */
94614
94616
  async getToolTip(hit) {
94615
94617
  const promises = new Array();
94616
94618
  if (this.displayStyle) {
@@ -94625,12 +94627,16 @@ class Viewport {
94625
94627
  return result;
94626
94628
  return "";
94627
94629
  }
94628
- /** @beta */
94629
- async getMapFeatureInfo(hit) {
94630
+ /** Obtain feature information from a map layer model, if any, identified by the specified [[HitDetail]].
94631
+ * @see [[ElementLocateManager]]
94632
+ * @see [[MapFeatureInfo]]
94633
+ * @beta
94634
+ */
94635
+ async getMapFeatureInfo(hit, options) {
94630
94636
  const promises = new Array();
94631
94637
  // Execute 'getMapFeatureInfo' on every tree, and make sure to handle exception for each call,
94632
94638
  // so that we get still get results even though a tree has failed.
94633
- this.forEachMapTreeRef(async (tree) => promises.push(tree.getMapFeatureInfo(hit).catch(() => undefined)));
94639
+ this.forEachMapTreeRef(async (tree) => promises.push(tree.getMapFeatureInfo(hit, options).catch(() => undefined)));
94634
94640
  const featureInfo = {};
94635
94641
  const worldPoint = hit.hitPoint.clone();
94636
94642
  const backgroundMapGeometry = hit.viewport.displayStyle.getBackgroundMapGeometry();
@@ -149711,7 +149717,7 @@ class TileTreeReference /* implements RenderMemory.Consumer */ {
149711
149717
  /** Optionally return a MapLayerFeatureInfo object describing the hit.].
149712
149718
  * @alpha
149713
149719
  */
149714
- async getMapFeatureInfo(_hit) { return undefined; }
149720
+ async getMapFeatureInfo(_hit, _options) { return undefined; }
149715
149721
  /** Optionally add any decorations specific to this reference. For example, map tile trees may add a logo image and/or copyright attributions.
149716
149722
  * @note This is currently only invoked for background maps and TiledGraphicsProviders - others have no decorations, but if they did implement this it would not be called.
149717
149723
  */
@@ -152277,14 +152283,15 @@ class ArcGISMapLayerImageryProvider extends _internal__WEBPACK_IMPORTED_MODULE_2
152277
152283
  }
152278
152284
  }
152279
152285
  // Makes an identify request to ESRI MapService , and return it as a list MapLayerFeatureInfo object
152280
- async getFeatureInfo(featureInfos, quadId, carto, _tree, hit) {
152286
+ async getFeatureInfo(featureInfos, quadId, carto, _tree, hit, options) {
152281
152287
  if (!this._querySupported)
152282
152288
  return;
152283
152289
  const tileExtent = this.getEPSG3857Extent(quadId.row, quadId.column, quadId.level);
152284
152290
  const toleranceWorld = (tileExtent.top - tileExtent.bottom) / this.tileSize;
152285
152291
  const maxAllowableOffsetFactor = 2;
152286
152292
  const maxAllowableOffset = maxAllowableOffsetFactor * toleranceWorld;
152287
- const json = await this.getIdentifyData(quadId, carto, 5, true, maxAllowableOffset);
152293
+ const tolerancePixel = options?.tolerance ?? 7;
152294
+ const json = await this.getIdentifyData(quadId, carto, tolerancePixel, true, maxAllowableOffset);
152288
152295
  if (json && Array.isArray(json.results)) {
152289
152296
  const renderer = new _internal__WEBPACK_IMPORTED_MODULE_2__.ArcGisGraphicsRenderer(hit.iModel);
152290
152297
  const layerInfo = { layerName: this._settings.name, subLayerInfos: [] };
@@ -153703,8 +153710,8 @@ class ImageryTileLoader extends _internal__WEBPACK_IMPORTED_MODULE_4__.RealityTi
153703
153710
  get maximumScreenSize() { return this._imageryProvider.maximumScreenSize; }
153704
153711
  get imageryProvider() { return this._imageryProvider; }
153705
153712
  async getToolTip(strings, quadId, carto, tree) { await this._imageryProvider.getToolTip(strings, quadId, carto, tree); }
153706
- async getMapFeatureInfo(featureInfos, quadId, carto, tree, hit) {
153707
- await this._imageryProvider.getFeatureInfo(featureInfos, quadId, carto, tree, hit);
153713
+ async getMapFeatureInfo(featureInfos, quadId, carto, tree, hit, options) {
153714
+ await this._imageryProvider.getFeatureInfo(featureInfos, quadId, carto, tree, hit, options);
153708
153715
  }
153709
153716
  generateChildIds(tile, resolveChildren) { return this._imageryProvider.generateChildIds(tile, resolveChildren); }
153710
153717
  /** Load this tile's children, possibly asynchronously. Pass them to `resolve`, or an error to `reject`. */
@@ -154472,7 +154479,7 @@ class MapLayerImageryProvider {
154472
154479
  }
154473
154480
  }
154474
154481
  /** @internal */
154475
- async getFeatureInfo(featureInfos, _quadId, _carto, _tree, _hit) {
154482
+ async getFeatureInfo(featureInfos, _quadId, _carto, _tree, _hit, _options) {
154476
154483
  // default implementation; simply return an empty feature info
154477
154484
  featureInfos.push({ layerName: this._settings.name });
154478
154485
  }
@@ -156859,7 +156866,12 @@ class MapTileTreeReference extends _internal__WEBPACK_IMPORTED_MODULE_7__.TileTr
156859
156866
  layerFromTreeModelIds(mapTreeModelId, layerTreeModelId) {
156860
156867
  const imageryTree = this.imageryTreeFromTreeModelIds(mapTreeModelId, layerTreeModelId);
156861
156868
  return imageryTree.map((tree) => {
156862
- return { settings: tree.layerSettings, provider: tree.imageryProvider };
156869
+ const isBaseLayer = (this._baseImageryLayerIncluded && tree.layerIndex === 0);
156870
+ return {
156871
+ isBaseLayer,
156872
+ index: isBaseLayer ? undefined : { isOverlay: this.isOverlay, index: this._baseImageryLayerIncluded ? tree.layerIndex - 1 : tree.layerIndex },
156873
+ settings: tree.layerSettings, provider: tree.imageryProvider
156874
+ };
156863
156875
  });
156864
156876
  }
156865
156877
  // Utility method that execute the provided function for every *imagery* tiles under a given HitDetail object.
@@ -156938,7 +156950,7 @@ class MapTileTreeReference extends _internal__WEBPACK_IMPORTED_MODULE_7__.TileTr
156938
156950
  div.innerHTML = strings.join("<br>");
156939
156951
  return div;
156940
156952
  }
156941
- async getMapFeatureInfo(hit) {
156953
+ async getMapFeatureInfo(hit, options) {
156942
156954
  const tree = this.treeOwner.tileTree;
156943
156955
  if (undefined === tree || hit.iModel !== tree.iModel || tree.modelId !== hit.modelId || !hit.viewport || !hit.viewport.view.is3d)
156944
156956
  return undefined;
@@ -156947,7 +156959,7 @@ class MapTileTreeReference extends _internal__WEBPACK_IMPORTED_MODULE_7__.TileTr
156947
156959
  if (imageryTreeRef !== undefined) {
156948
156960
  const getFeatureInfoFunc = async (_imageryTreeRef, quadId, cartoGraphic, imageryTree) => {
156949
156961
  try {
156950
- await imageryTree.imageryLoader.getMapFeatureInfo(info, quadId, cartoGraphic, imageryTree, hit);
156962
+ await imageryTree.imageryLoader.getMapFeatureInfo(info, quadId, cartoGraphic, imageryTree, hit, options);
156951
156963
  }
156952
156964
  catch {
156953
156965
  }
@@ -279852,7 +279864,7 @@ class TestContext {
279852
279864
  this.initializeRpcInterfaces({ title: this.settings.Backend.name, version: this.settings.Backend.version });
279853
279865
  const iModelClient = new imodels_client_management_1.IModelsClient({ api: { baseUrl: `https://${process.env.IMJS_URL_PREFIX ?? ""}api.bentley.com/imodels` } });
279854
279866
  await core_frontend_1.NoRenderApp.startup({
279855
- applicationVersion: "4.2.0-dev.19",
279867
+ applicationVersion: "4.2.0-dev.22",
279856
279868
  applicationId: this.settings.gprid,
279857
279869
  authorizationClient: new frontend_1.TestFrontendAuthorizationClient(this.adminUserAccessToken),
279858
279870
  hubAccess: new imodels_access_frontend_1.FrontendIModelsAccess(iModelClient),
@@ -299286,7 +299298,7 @@ module.exports = JSON.parse('{"name":"axios","version":"0.21.4","description":"P
299286
299298
  /***/ ((module) => {
299287
299299
 
299288
299300
  "use strict";
299289
- module.exports = JSON.parse('{"name":"@itwin/core-frontend","version":"4.2.0-dev.19","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","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.2.0-dev.19","@itwin/core-bentley":"workspace:^4.2.0-dev.19","@itwin/core-common":"workspace:^4.2.0-dev.19","@itwin/core-geometry":"workspace:^4.2.0-dev.19","@itwin/core-orbitgt":"workspace:^4.2.0-dev.19","@itwin/core-quantity":"workspace:^4.2.0-dev.19"},"//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":"^8.2.2","@types/node":"18.16.1","@types/sinon":"^10.0.15","babel-loader":"~8.2.5","babel-plugin-istanbul":"~6.1.1","chai":"^4.1.2","chai-as-promised":"^7","cpx2":"^3.0.0","eslint":"^8.44.0","glob":"^7.1.2","mocha":"^10.0.0","nyc":"^15.1.0","rimraf":"^3.0.2","sinon":"^15.0.4","source-map-loader":"^4.0.0","typescript":"~5.0.2","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.1.0","@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"}}');
299301
+ module.exports = JSON.parse('{"name":"@itwin/core-frontend","version":"4.2.0-dev.22","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","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.2.0-dev.22","@itwin/core-bentley":"workspace:^4.2.0-dev.22","@itwin/core-common":"workspace:^4.2.0-dev.22","@itwin/core-geometry":"workspace:^4.2.0-dev.22","@itwin/core-orbitgt":"workspace:^4.2.0-dev.22","@itwin/core-quantity":"workspace:^4.2.0-dev.22"},"//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":"^8.2.2","@types/node":"18.16.1","@types/sinon":"^10.0.15","babel-loader":"~8.2.5","babel-plugin-istanbul":"~6.1.1","chai":"^4.1.2","chai-as-promised":"^7","cpx2":"^3.0.0","eslint":"^8.44.0","glob":"^7.1.2","mocha":"^10.0.0","nyc":"^15.1.0","rimraf":"^3.0.2","sinon":"^15.0.4","source-map-loader":"^4.0.0","typescript":"~5.0.2","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.1.0","@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"}}');
299290
299302
 
299291
299303
  /***/ }),
299292
299304