@itwin/ecschema-rpcinterface-tests 3.6.0-dev.50 → 3.6.0-dev.52
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/_cb67.bundled-tests.js.map +1 -1
- package/lib/dist/bundled-tests.js +47 -38
- 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/object-storage.bundled-tests.js.map +1 -1
- package/lib/dist/vendors-common_temp_node_modules_pnpm_itwin_object-storage-azure_1_4_0_node_modules_itwin_obj-3576c6.bundled-tests.js.map +1 -1
- package/lib/dist/vendors-common_temp_node_modules_pnpm_loaders_gl_draco_3_2_12_node_modules_loaders_gl_draco_d-b19815.bundled-tests.js.map +1 -1
- package/lib/dist/vendors-common_temp_node_modules_pnpm_reflect-metadata_0_1_13_node_modules_reflect-metadata_R-610cb3.bundled-tests.js.map +1 -1
- package/package.json +16 -16
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"_cb67.bundled-tests.js","mappings":";;;;;;;;AAAA","sources":["file:///ignored|D:\\vsts_a\\
|
|
1
|
+
{"version":3,"file":"_cb67.bundled-tests.js","mappings":";;;;;;;;AAAA","sources":["file:///ignored|D:\\vsts_a\\2\\s\\common\\temp\\node_modules\\.pnpm\\@loaders.gl+worker-utils@3.2.12\\node_modules\\@loaders.gl\\worker-utils\\dist\\esm\\lib\\library-utils|../node/require-utils.node"],"names":[],"sourceRoot":""}
|
|
@@ -98916,8 +98916,16 @@ class BriefcaseConnection extends _IModelConnection__WEBPACK_IMPORTED_MODULE_5__
|
|
|
98916
98916
|
*/
|
|
98917
98917
|
async pullChanges(toIndex, options) {
|
|
98918
98918
|
const removeListeners = [];
|
|
98919
|
-
|
|
98920
|
-
|
|
98919
|
+
// eslint-disable-next-line deprecation/deprecation
|
|
98920
|
+
const shouldReportProgress = !!(options === null || options === void 0 ? void 0 : options.progressCallback) || !!(options === null || options === void 0 ? void 0 : options.downloadProgressCallback);
|
|
98921
|
+
if (shouldReportProgress) {
|
|
98922
|
+
const handleProgress = (_evt, data) => {
|
|
98923
|
+
var _a, _b;
|
|
98924
|
+
// eslint-disable-next-line deprecation/deprecation
|
|
98925
|
+
(_a = options === null || options === void 0 ? void 0 : options.progressCallback) === null || _a === void 0 ? void 0 : _a.call(options, data);
|
|
98926
|
+
(_b = options === null || options === void 0 ? void 0 : options.downloadProgressCallback) === null || _b === void 0 ? void 0 : _b.call(options, data);
|
|
98927
|
+
};
|
|
98928
|
+
const removeProgressListener = _IpcApp__WEBPACK_IMPORTED_MODULE_6__.IpcApp.addListener((0,_itwin_core_common__WEBPACK_IMPORTED_MODULE_1__.getPullChangesIpcChannel)(this.iModelId), handleProgress);
|
|
98921
98929
|
removeListeners.push(removeProgressListener);
|
|
98922
98930
|
}
|
|
98923
98931
|
if (options === null || options === void 0 ? void 0 : options.abortSignal) {
|
|
@@ -98927,7 +98935,7 @@ class BriefcaseConnection extends _IModelConnection__WEBPACK_IMPORTED_MODULE_5__
|
|
|
98927
98935
|
}
|
|
98928
98936
|
this.requireTimeline();
|
|
98929
98937
|
const ipcAppOptions = {
|
|
98930
|
-
reportProgress:
|
|
98938
|
+
reportProgress: shouldReportProgress,
|
|
98931
98939
|
progressInterval: options === null || options === void 0 ? void 0 : options.progressInterval,
|
|
98932
98940
|
enableCancellation: !!(options === null || options === void 0 ? void 0 : options.abortSignal),
|
|
98933
98941
|
};
|
|
@@ -107455,11 +107463,15 @@ class NativeApp {
|
|
|
107455
107463
|
}
|
|
107456
107464
|
static async requestDownloadBriefcase(iTwinId, iModelId, downloadOptions, asOf = _itwin_core_common__WEBPACK_IMPORTED_MODULE_1__.IModelVersion.latest(), progress) {
|
|
107457
107465
|
var _b;
|
|
107466
|
+
const shouldReportProgress = !!progress || !!downloadOptions.progressCallback;
|
|
107458
107467
|
let stopProgressEvents = () => { };
|
|
107459
|
-
if (
|
|
107460
|
-
|
|
107461
|
-
|
|
107462
|
-
|
|
107468
|
+
if (shouldReportProgress) {
|
|
107469
|
+
const handleProgress = (_evt, data) => {
|
|
107470
|
+
var _b;
|
|
107471
|
+
progress === null || progress === void 0 ? void 0 : progress(data);
|
|
107472
|
+
(_b = downloadOptions.progressCallback) === null || _b === void 0 ? void 0 : _b.call(downloadOptions, data);
|
|
107473
|
+
};
|
|
107474
|
+
stopProgressEvents = _IpcApp__WEBPACK_IMPORTED_MODULE_4__.IpcApp.addListener(`nativeApp.progress-${iModelId}`, handleProgress);
|
|
107463
107475
|
}
|
|
107464
107476
|
const briefcaseId = (undefined !== downloadOptions.briefcaseId) ? downloadOptions.briefcaseId :
|
|
107465
107477
|
(downloadOptions.syncMode === _itwin_core_common__WEBPACK_IMPORTED_MODULE_1__.SyncMode.PullOnly ? 0 : await this.nativeAppIpc.acquireNewBriefcaseId(iModelId));
|
|
@@ -107467,7 +107479,7 @@ class NativeApp {
|
|
|
107467
107479
|
const requestProps = { iModelId, briefcaseId, iTwinId, asOf: asOf.toJSON(), fileName };
|
|
107468
107480
|
const doDownload = async () => {
|
|
107469
107481
|
try {
|
|
107470
|
-
await this.nativeAppIpc.downloadBriefcase(requestProps,
|
|
107482
|
+
await this.nativeAppIpc.downloadBriefcase(requestProps, shouldReportProgress, downloadOptions.progressInterval);
|
|
107471
107483
|
}
|
|
107472
107484
|
finally {
|
|
107473
107485
|
stopProgressEvents();
|
|
@@ -117929,6 +117941,27 @@ class Viewport {
|
|
|
117929
117941
|
readImageToCanvas() {
|
|
117930
117942
|
return this.target.readImageToCanvas();
|
|
117931
117943
|
}
|
|
117944
|
+
/** Used internally by `waitForSceneCompletion`.
|
|
117945
|
+
* @internal
|
|
117946
|
+
*/
|
|
117947
|
+
hasAdditionalTiles() {
|
|
117948
|
+
var _a;
|
|
117949
|
+
const tilesThisVp = _IModelApp__WEBPACK_IMPORTED_MODULE_10__.IModelApp.tileAdmin.getTilesForUser(this);
|
|
117950
|
+
const ext = tilesThisVp === null || tilesThisVp === void 0 ? void 0 : tilesThisVp.external;
|
|
117951
|
+
if (((_a = ext === null || ext === void 0 ? void 0 : ext.requested) !== null && _a !== void 0 ? _a : 0) > 0)
|
|
117952
|
+
return true;
|
|
117953
|
+
// ViewAttachments and 3d section drawing attachments render to separate off-screen viewports - check those too.
|
|
117954
|
+
for (const vp of this.view.secondaryViewports) {
|
|
117955
|
+
if (vp.numRequestedTiles > 0) {
|
|
117956
|
+
return true;
|
|
117957
|
+
}
|
|
117958
|
+
const tiles = _IModelApp__WEBPACK_IMPORTED_MODULE_10__.IModelApp.tileAdmin.getTilesForUser(vp);
|
|
117959
|
+
if (tiles && tiles.external.requested > 0) {
|
|
117960
|
+
return true;
|
|
117961
|
+
}
|
|
117962
|
+
}
|
|
117963
|
+
return false;
|
|
117964
|
+
}
|
|
117932
117965
|
/** Returns a Promise that resolves after the contents of this viewport are fully loaded and rendered.
|
|
117933
117966
|
* This can be useful, for example, when you want to capture an image of the viewport's contents, as in the following code:
|
|
117934
117967
|
* ```ts
|
|
@@ -117948,20 +117981,8 @@ class Viewport {
|
|
|
117948
117981
|
this.renderFrame();
|
|
117949
117982
|
haveExternalTexRequests = system.hasExternalTextureRequests;
|
|
117950
117983
|
haveNewTiles = !this.areAllTileTreesLoaded || this._hasMissingTiles;
|
|
117951
|
-
if (!haveNewTiles)
|
|
117952
|
-
|
|
117953
|
-
for (const vp of this.view.secondaryViewports) {
|
|
117954
|
-
if (vp.numRequestedTiles > 0) {
|
|
117955
|
-
haveNewTiles = true;
|
|
117956
|
-
break;
|
|
117957
|
-
}
|
|
117958
|
-
const tiles = _IModelApp__WEBPACK_IMPORTED_MODULE_10__.IModelApp.tileAdmin.getTilesForUser(vp);
|
|
117959
|
-
if (tiles && tiles.external.requested > 0) {
|
|
117960
|
-
haveNewTiles = true;
|
|
117961
|
-
break;
|
|
117962
|
-
}
|
|
117963
|
-
}
|
|
117964
|
-
}
|
|
117984
|
+
if (!haveNewTiles)
|
|
117985
|
+
haveNewTiles = this.hasAdditionalTiles();
|
|
117965
117986
|
// Since the viewport is not being managed by the ViewManager, we must manually pump the TileAdmin to initiate further tile requests each tick of the tile-wait loop.
|
|
117966
117987
|
if (haveNewTiles)
|
|
117967
117988
|
_IModelApp__WEBPACK_IMPORTED_MODULE_10__.IModelApp.tileAdmin.process();
|
|
@@ -118722,20 +118743,8 @@ class ScreenViewport extends Viewport {
|
|
|
118722
118743
|
return;
|
|
118723
118744
|
}
|
|
118724
118745
|
let haveNewTiles = !this.areAllTileTreesLoaded || this._hasMissingTiles;
|
|
118725
|
-
if (!haveNewTiles)
|
|
118726
|
-
|
|
118727
|
-
for (const vp of this.view.secondaryViewports) {
|
|
118728
|
-
if (vp.numRequestedTiles > 0) {
|
|
118729
|
-
haveNewTiles = true;
|
|
118730
|
-
break;
|
|
118731
|
-
}
|
|
118732
|
-
const tiles = _IModelApp__WEBPACK_IMPORTED_MODULE_10__.IModelApp.tileAdmin.getTilesForUser(vp);
|
|
118733
|
-
if (tiles && tiles.external.requested > 0) {
|
|
118734
|
-
haveNewTiles = true;
|
|
118735
|
-
break;
|
|
118736
|
-
}
|
|
118737
|
-
}
|
|
118738
|
-
}
|
|
118746
|
+
if (!haveNewTiles)
|
|
118747
|
+
haveNewTiles = this.hasAdditionalTiles();
|
|
118739
118748
|
if (!haveNewTiles && !system.hasExternalTextureRequests) {
|
|
118740
118749
|
removeOnViewClose();
|
|
118741
118750
|
removeOnRender();
|
|
@@ -163610,7 +163619,7 @@ class OrbitGtTileTree extends _internal__WEBPACK_IMPORTED_MODULE_8__.TileTree {
|
|
|
163610
163619
|
let totalPointCount = 0;
|
|
163611
163620
|
const tileCount = frameData.tilesToRender.size();
|
|
163612
163621
|
// Inform TileAdmin about tiles we are handling ourselves...
|
|
163613
|
-
_IModelApp__WEBPACK_IMPORTED_MODULE_5__.IModelApp.tileAdmin.addExternalTilesForUser(args.context.viewport, { requested: frameData.tilesToLoad.size(), selected: tileCount, ready: tileCount });
|
|
163622
|
+
_IModelApp__WEBPACK_IMPORTED_MODULE_5__.IModelApp.tileAdmin.addExternalTilesForUser(args.context.viewport, { requested: frameData.tilesToLoad.size() + (frameData.hasMissingData() ? 1 : 0), selected: tileCount, ready: tileCount });
|
|
163614
163623
|
if (debugBuilder)
|
|
163615
163624
|
debugBuilder.setSymbology(_itwin_core_common__WEBPACK_IMPORTED_MODULE_1__.ColorDef.red, _itwin_core_common__WEBPACK_IMPORTED_MODULE_1__.ColorDef.red, 1);
|
|
163616
163625
|
let minLevel = 100, maxLevel = -100;
|
|
@@ -302925,7 +302934,7 @@ module.exports = JSON.parse('{"name":"axios","version":"0.21.4","description":"P
|
|
|
302925
302934
|
/***/ ((module) => {
|
|
302926
302935
|
|
|
302927
302936
|
"use strict";
|
|
302928
|
-
module.exports = JSON.parse('{"name":"@itwin/core-frontend","version":"3.6.0-dev.
|
|
302937
|
+
module.exports = JSON.parse('{"name":"@itwin/core-frontend","version":"3.6.0-dev.52","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","build:ci":"npm run -s build && npm run -s build:esm","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","docs":"betools docs --includes=../../generated-docs/extract --json=../../generated-docs/core/core-frontend/file.json --tsIndexFile=./core-frontend.ts --onlyJson --excludes=webgl/**/*,**/primitives,**/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-eslintrc -c \\"../../tools/eslint-plugin/dist/configs/extension-exports-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"},"repository":{"type":"git","url":"https://github.com/iTwin/itwinjs-core/tree/master/core/frontend"},"keywords":["Bentley","BIM","iModel","digital-twin","iTwin"],"author":{"name":"Bentley Systems, Inc.","url":"http://www.bentley.com"},"peerDependencies":{"@itwin/appui-abstract":"workspace:^3.6.0-dev.52","@itwin/core-bentley":"workspace:^3.6.0-dev.52","@itwin/core-common":"workspace:^3.6.0-dev.52","@itwin/core-geometry":"workspace:^3.6.0-dev.52","@itwin/core-orbitgt":"workspace:^3.6.0-dev.52","@itwin/core-quantity":"workspace:^3.6.0-dev.52","@itwin/webgl-compatibility":"workspace:^3.6.0-dev.52"},"//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":"workspace:*","@itwin/webgl-compatibility":"workspace:*","@types/chai":"4.3.1","@types/chai-as-promised":"^7","@types/deep-assign":"^0.1.0","@types/lodash":"^4.14.0","@types/mocha":"^8.2.2","@types/node":"18.11.5","@types/qs":"^6.5.0","@types/semver":"7.3.10","@types/superagent":"^4.1.14","@types/sinon":"^9.0.0","babel-loader":"~8.2.5","babel-plugin-istanbul":"~6.1.1","chai":"^4.1.2","chai-as-promised":"^7","cpx2":"^3.0.0","eslint":"^7.11.0","glob":"^7.1.2","mocha":"^10.0.0","nyc":"^15.1.0","rimraf":"^3.0.2","sinon":"^9.0.2","source-map-loader":"^4.0.0","typescript":"~4.4.0","webpack":"^5.64.4"},"//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/object-storage-azure":"~1.4.0","@itwin/cloud-agnostic-core":"~1.4.0","@itwin/object-storage-core":"~1.4.0","@itwin/core-i18n":"workspace:*","@itwin/core-telemetry":"workspace:*","@loaders.gl/core":"^3.1.6","@loaders.gl/draco":"^3.1.6","deep-assign":"^2.0.0","fuse.js":"^3.3.0","lodash":"^4.17.10","qs":"^6.5.3","semver":"^7.3.5","superagent":"^7.1.5","wms-capabilities":"0.4.0","reflect-metadata":"0.1.13"},"nyc":{"extends":"./node_modules/@itwin/build-tools/.nycrc"},"eslintConfig":{"plugins":["@itwin"],"extends":"plugin:@itwin/itwinjs-recommended","rules":{"@itwin/no-internal-barrel-imports":["error",{"required-barrel-modules":["./src/tile/internal.ts"]}],"@itwin/public-extension-exports":["error",{"releaseTags":["public","preview"],"outputApiFile":false}]},"overrides":[{"files":["*.test.ts","*.test.tsx","**/test/**/*.ts"],"rules":{"@itwin/no-internal-barrel-imports":"off"}}]}}');
|
|
302929
302938
|
|
|
302930
302939
|
/***/ })
|
|
302931
302940
|
|