@itwin/ecschema-rpcinterface-tests 4.2.0-dev.20 → 4.2.0-dev.23
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.
- package/lib/dist/_0062.bundled-tests.js.map +1 -1
- package/lib/dist/bundled-tests.js +27 -15
- package/lib/dist/bundled-tests.js.map +1 -1
- package/lib/dist/core_frontend_lib_esm_ApproximateTerrainHeightsProps_js.bundled-tests.js.map +1 -1
- package/lib/dist/vendors-common_temp_node_modules_pnpm_loaders_gl_draco_3_4_7_node_modules_loaders_gl_draco_di-02c2bd.bundled-tests.js.map +1 -1
- package/package.json +16 -16
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"_0062.bundled-tests.js","mappings":";;;;;;;;AAAA","sources":["file:///ignored|D:\\
|
|
1
|
+
{"version":3,"file":"_0062.bundled-tests.js","mappings":";;;;;;;;AAAA","sources":["file:///ignored|D:\\vsts_b\\6\\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":""}
|
|
@@ -92034,7 +92034,9 @@ class Viewport {
|
|
|
92034
92034
|
this.invalidateRenderPlan();
|
|
92035
92035
|
}
|
|
92036
92036
|
}
|
|
92037
|
-
/** Obtain a tooltip from the map layer or reality model, if any, identified by the specified [[HitDetail]].
|
|
92037
|
+
/** Obtain a tooltip from the map layer or reality model, if any, identified by the specified [[HitDetail]].
|
|
92038
|
+
* @see [[ElementLocateManager]]
|
|
92039
|
+
*/
|
|
92038
92040
|
async getToolTip(hit) {
|
|
92039
92041
|
const promises = new Array();
|
|
92040
92042
|
if (this.displayStyle) {
|
|
@@ -92049,12 +92051,16 @@ class Viewport {
|
|
|
92049
92051
|
return result;
|
|
92050
92052
|
return "";
|
|
92051
92053
|
}
|
|
92052
|
-
/**
|
|
92053
|
-
|
|
92054
|
+
/** Obtain feature information from a map layer model, if any, identified by the specified [[HitDetail]].
|
|
92055
|
+
* @see [[ElementLocateManager]]
|
|
92056
|
+
* @see [[MapFeatureInfo]]
|
|
92057
|
+
* @beta
|
|
92058
|
+
*/
|
|
92059
|
+
async getMapFeatureInfo(hit, options) {
|
|
92054
92060
|
const promises = new Array();
|
|
92055
92061
|
// Execute 'getMapFeatureInfo' on every tree, and make sure to handle exception for each call,
|
|
92056
92062
|
// so that we get still get results even though a tree has failed.
|
|
92057
|
-
this.forEachMapTreeRef(async (tree) => promises.push(tree.getMapFeatureInfo(hit).catch(() => undefined)));
|
|
92063
|
+
this.forEachMapTreeRef(async (tree) => promises.push(tree.getMapFeatureInfo(hit, options).catch(() => undefined)));
|
|
92058
92064
|
const featureInfo = {};
|
|
92059
92065
|
const worldPoint = hit.hitPoint.clone();
|
|
92060
92066
|
const backgroundMapGeometry = hit.viewport.displayStyle.getBackgroundMapGeometry();
|
|
@@ -134871,7 +134877,7 @@ function addMaterial(builder, instanced) {
|
|
|
134871
134877
|
vert.addGlobal("mat_rgb", 5 /* VariableType.Vec4 */); // a = 0 if not overridden, else 1
|
|
134872
134878
|
vert.addGlobal("mat_alpha", 3 /* VariableType.Vec2 */); // a = 0 if not overridden, else 1
|
|
134873
134879
|
vert.addGlobal("use_material", 0 /* VariableType.Boolean */);
|
|
134874
|
-
vert.addInitializer("use_material =
|
|
134880
|
+
vert.addInitializer("use_material = !u_surfaceFlags[kSurfaceBitIndex_IgnoreMaterial];");
|
|
134875
134881
|
// Uniform material
|
|
134876
134882
|
vert.addFunction(decodeMaterialColor);
|
|
134877
134883
|
vert.addUniform("u_materialColor", 5 /* VariableType.Vec4 */, (prog) => {
|
|
@@ -147135,7 +147141,7 @@ class TileTreeReference /* implements RenderMemory.Consumer */ {
|
|
|
147135
147141
|
/** Optionally return a MapLayerFeatureInfo object describing the hit.].
|
|
147136
147142
|
* @alpha
|
|
147137
147143
|
*/
|
|
147138
|
-
async getMapFeatureInfo(_hit) { return undefined; }
|
|
147144
|
+
async getMapFeatureInfo(_hit, _options) { return undefined; }
|
|
147139
147145
|
/** Optionally add any decorations specific to this reference. For example, map tile trees may add a logo image and/or copyright attributions.
|
|
147140
147146
|
* @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.
|
|
147141
147147
|
*/
|
|
@@ -149701,14 +149707,15 @@ class ArcGISMapLayerImageryProvider extends _internal__WEBPACK_IMPORTED_MODULE_2
|
|
|
149701
149707
|
}
|
|
149702
149708
|
}
|
|
149703
149709
|
// Makes an identify request to ESRI MapService , and return it as a list MapLayerFeatureInfo object
|
|
149704
|
-
async getFeatureInfo(featureInfos, quadId, carto, _tree, hit) {
|
|
149710
|
+
async getFeatureInfo(featureInfos, quadId, carto, _tree, hit, options) {
|
|
149705
149711
|
if (!this._querySupported)
|
|
149706
149712
|
return;
|
|
149707
149713
|
const tileExtent = this.getEPSG3857Extent(quadId.row, quadId.column, quadId.level);
|
|
149708
149714
|
const toleranceWorld = (tileExtent.top - tileExtent.bottom) / this.tileSize;
|
|
149709
149715
|
const maxAllowableOffsetFactor = 2;
|
|
149710
149716
|
const maxAllowableOffset = maxAllowableOffsetFactor * toleranceWorld;
|
|
149711
|
-
const
|
|
149717
|
+
const tolerancePixel = options?.tolerance ?? 7;
|
|
149718
|
+
const json = await this.getIdentifyData(quadId, carto, tolerancePixel, true, maxAllowableOffset);
|
|
149712
149719
|
if (json && Array.isArray(json.results)) {
|
|
149713
149720
|
const renderer = new _internal__WEBPACK_IMPORTED_MODULE_2__.ArcGisGraphicsRenderer(hit.iModel);
|
|
149714
149721
|
const layerInfo = { layerName: this._settings.name, subLayerInfos: [] };
|
|
@@ -151127,8 +151134,8 @@ class ImageryTileLoader extends _internal__WEBPACK_IMPORTED_MODULE_4__.RealityTi
|
|
|
151127
151134
|
get maximumScreenSize() { return this._imageryProvider.maximumScreenSize; }
|
|
151128
151135
|
get imageryProvider() { return this._imageryProvider; }
|
|
151129
151136
|
async getToolTip(strings, quadId, carto, tree) { await this._imageryProvider.getToolTip(strings, quadId, carto, tree); }
|
|
151130
|
-
async getMapFeatureInfo(featureInfos, quadId, carto, tree, hit) {
|
|
151131
|
-
await this._imageryProvider.getFeatureInfo(featureInfos, quadId, carto, tree, hit);
|
|
151137
|
+
async getMapFeatureInfo(featureInfos, quadId, carto, tree, hit, options) {
|
|
151138
|
+
await this._imageryProvider.getFeatureInfo(featureInfos, quadId, carto, tree, hit, options);
|
|
151132
151139
|
}
|
|
151133
151140
|
generateChildIds(tile, resolveChildren) { return this._imageryProvider.generateChildIds(tile, resolveChildren); }
|
|
151134
151141
|
/** Load this tile's children, possibly asynchronously. Pass them to `resolve`, or an error to `reject`. */
|
|
@@ -151896,7 +151903,7 @@ class MapLayerImageryProvider {
|
|
|
151896
151903
|
}
|
|
151897
151904
|
}
|
|
151898
151905
|
/** @internal */
|
|
151899
|
-
async getFeatureInfo(featureInfos, _quadId, _carto, _tree, _hit) {
|
|
151906
|
+
async getFeatureInfo(featureInfos, _quadId, _carto, _tree, _hit, _options) {
|
|
151900
151907
|
// default implementation; simply return an empty feature info
|
|
151901
151908
|
featureInfos.push({ layerName: this._settings.name });
|
|
151902
151909
|
}
|
|
@@ -154283,7 +154290,12 @@ class MapTileTreeReference extends _internal__WEBPACK_IMPORTED_MODULE_7__.TileTr
|
|
|
154283
154290
|
layerFromTreeModelIds(mapTreeModelId, layerTreeModelId) {
|
|
154284
154291
|
const imageryTree = this.imageryTreeFromTreeModelIds(mapTreeModelId, layerTreeModelId);
|
|
154285
154292
|
return imageryTree.map((tree) => {
|
|
154286
|
-
|
|
154293
|
+
const isBaseLayer = (this._baseImageryLayerIncluded && tree.layerIndex === 0);
|
|
154294
|
+
return {
|
|
154295
|
+
isBaseLayer,
|
|
154296
|
+
index: isBaseLayer ? undefined : { isOverlay: this.isOverlay, index: this._baseImageryLayerIncluded ? tree.layerIndex - 1 : tree.layerIndex },
|
|
154297
|
+
settings: tree.layerSettings, provider: tree.imageryProvider
|
|
154298
|
+
};
|
|
154287
154299
|
});
|
|
154288
154300
|
}
|
|
154289
154301
|
// Utility method that execute the provided function for every *imagery* tiles under a given HitDetail object.
|
|
@@ -154362,7 +154374,7 @@ class MapTileTreeReference extends _internal__WEBPACK_IMPORTED_MODULE_7__.TileTr
|
|
|
154362
154374
|
div.innerHTML = strings.join("<br>");
|
|
154363
154375
|
return div;
|
|
154364
154376
|
}
|
|
154365
|
-
async getMapFeatureInfo(hit) {
|
|
154377
|
+
async getMapFeatureInfo(hit, options) {
|
|
154366
154378
|
const tree = this.treeOwner.tileTree;
|
|
154367
154379
|
if (undefined === tree || hit.iModel !== tree.iModel || tree.modelId !== hit.modelId || !hit.viewport || !hit.viewport.view.is3d)
|
|
154368
154380
|
return undefined;
|
|
@@ -154371,7 +154383,7 @@ class MapTileTreeReference extends _internal__WEBPACK_IMPORTED_MODULE_7__.TileTr
|
|
|
154371
154383
|
if (imageryTreeRef !== undefined) {
|
|
154372
154384
|
const getFeatureInfoFunc = async (_imageryTreeRef, quadId, cartoGraphic, imageryTree) => {
|
|
154373
154385
|
try {
|
|
154374
|
-
await imageryTree.imageryLoader.getMapFeatureInfo(info, quadId, cartoGraphic, imageryTree, hit);
|
|
154386
|
+
await imageryTree.imageryLoader.getMapFeatureInfo(info, quadId, cartoGraphic, imageryTree, hit, options);
|
|
154375
154387
|
}
|
|
154376
154388
|
catch {
|
|
154377
154389
|
}
|
|
@@ -287582,7 +287594,7 @@ module.exports = JSON.parse('{"name":"axios","version":"0.21.4","description":"P
|
|
|
287582
287594
|
/***/ ((module) => {
|
|
287583
287595
|
|
|
287584
287596
|
"use strict";
|
|
287585
|
-
module.exports = JSON.parse('{"name":"@itwin/core-frontend","version":"4.2.0-dev.
|
|
287597
|
+
module.exports = JSON.parse('{"name":"@itwin/core-frontend","version":"4.2.0-dev.23","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.23","@itwin/core-bentley":"workspace:^4.2.0-dev.23","@itwin/core-common":"workspace:^4.2.0-dev.23","@itwin/core-geometry":"workspace:^4.2.0-dev.23","@itwin/core-orbitgt":"workspace:^4.2.0-dev.23","@itwin/core-quantity":"workspace:^4.2.0-dev.23"},"//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"}}');
|
|
287586
287598
|
|
|
287587
287599
|
/***/ })
|
|
287588
287600
|
|