@itwin/rpcinterface-full-stack-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 +48 -39
- 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 +14 -14
|
@@ -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":""}
|
|
@@ -91942,8 +91942,16 @@ class BriefcaseConnection extends _IModelConnection__WEBPACK_IMPORTED_MODULE_5__
|
|
|
91942
91942
|
*/
|
|
91943
91943
|
async pullChanges(toIndex, options) {
|
|
91944
91944
|
const removeListeners = [];
|
|
91945
|
-
|
|
91946
|
-
|
|
91945
|
+
// eslint-disable-next-line deprecation/deprecation
|
|
91946
|
+
const shouldReportProgress = !!(options === null || options === void 0 ? void 0 : options.progressCallback) || !!(options === null || options === void 0 ? void 0 : options.downloadProgressCallback);
|
|
91947
|
+
if (shouldReportProgress) {
|
|
91948
|
+
const handleProgress = (_evt, data) => {
|
|
91949
|
+
var _a, _b;
|
|
91950
|
+
// eslint-disable-next-line deprecation/deprecation
|
|
91951
|
+
(_a = options === null || options === void 0 ? void 0 : options.progressCallback) === null || _a === void 0 ? void 0 : _a.call(options, data);
|
|
91952
|
+
(_b = options === null || options === void 0 ? void 0 : options.downloadProgressCallback) === null || _b === void 0 ? void 0 : _b.call(options, data);
|
|
91953
|
+
};
|
|
91954
|
+
const removeProgressListener = _IpcApp__WEBPACK_IMPORTED_MODULE_6__.IpcApp.addListener((0,_itwin_core_common__WEBPACK_IMPORTED_MODULE_1__.getPullChangesIpcChannel)(this.iModelId), handleProgress);
|
|
91947
91955
|
removeListeners.push(removeProgressListener);
|
|
91948
91956
|
}
|
|
91949
91957
|
if (options === null || options === void 0 ? void 0 : options.abortSignal) {
|
|
@@ -91953,7 +91961,7 @@ class BriefcaseConnection extends _IModelConnection__WEBPACK_IMPORTED_MODULE_5__
|
|
|
91953
91961
|
}
|
|
91954
91962
|
this.requireTimeline();
|
|
91955
91963
|
const ipcAppOptions = {
|
|
91956
|
-
reportProgress:
|
|
91964
|
+
reportProgress: shouldReportProgress,
|
|
91957
91965
|
progressInterval: options === null || options === void 0 ? void 0 : options.progressInterval,
|
|
91958
91966
|
enableCancellation: !!(options === null || options === void 0 ? void 0 : options.abortSignal),
|
|
91959
91967
|
};
|
|
@@ -100481,11 +100489,15 @@ class NativeApp {
|
|
|
100481
100489
|
}
|
|
100482
100490
|
static async requestDownloadBriefcase(iTwinId, iModelId, downloadOptions, asOf = _itwin_core_common__WEBPACK_IMPORTED_MODULE_1__.IModelVersion.latest(), progress) {
|
|
100483
100491
|
var _b;
|
|
100492
|
+
const shouldReportProgress = !!progress || !!downloadOptions.progressCallback;
|
|
100484
100493
|
let stopProgressEvents = () => { };
|
|
100485
|
-
if (
|
|
100486
|
-
|
|
100487
|
-
|
|
100488
|
-
|
|
100494
|
+
if (shouldReportProgress) {
|
|
100495
|
+
const handleProgress = (_evt, data) => {
|
|
100496
|
+
var _b;
|
|
100497
|
+
progress === null || progress === void 0 ? void 0 : progress(data);
|
|
100498
|
+
(_b = downloadOptions.progressCallback) === null || _b === void 0 ? void 0 : _b.call(downloadOptions, data);
|
|
100499
|
+
};
|
|
100500
|
+
stopProgressEvents = _IpcApp__WEBPACK_IMPORTED_MODULE_4__.IpcApp.addListener(`nativeApp.progress-${iModelId}`, handleProgress);
|
|
100489
100501
|
}
|
|
100490
100502
|
const briefcaseId = (undefined !== downloadOptions.briefcaseId) ? downloadOptions.briefcaseId :
|
|
100491
100503
|
(downloadOptions.syncMode === _itwin_core_common__WEBPACK_IMPORTED_MODULE_1__.SyncMode.PullOnly ? 0 : await this.nativeAppIpc.acquireNewBriefcaseId(iModelId));
|
|
@@ -100493,7 +100505,7 @@ class NativeApp {
|
|
|
100493
100505
|
const requestProps = { iModelId, briefcaseId, iTwinId, asOf: asOf.toJSON(), fileName };
|
|
100494
100506
|
const doDownload = async () => {
|
|
100495
100507
|
try {
|
|
100496
|
-
await this.nativeAppIpc.downloadBriefcase(requestProps,
|
|
100508
|
+
await this.nativeAppIpc.downloadBriefcase(requestProps, shouldReportProgress, downloadOptions.progressInterval);
|
|
100497
100509
|
}
|
|
100498
100510
|
finally {
|
|
100499
100511
|
stopProgressEvents();
|
|
@@ -110955,6 +110967,27 @@ class Viewport {
|
|
|
110955
110967
|
readImageToCanvas() {
|
|
110956
110968
|
return this.target.readImageToCanvas();
|
|
110957
110969
|
}
|
|
110970
|
+
/** Used internally by `waitForSceneCompletion`.
|
|
110971
|
+
* @internal
|
|
110972
|
+
*/
|
|
110973
|
+
hasAdditionalTiles() {
|
|
110974
|
+
var _a;
|
|
110975
|
+
const tilesThisVp = _IModelApp__WEBPACK_IMPORTED_MODULE_10__.IModelApp.tileAdmin.getTilesForUser(this);
|
|
110976
|
+
const ext = tilesThisVp === null || tilesThisVp === void 0 ? void 0 : tilesThisVp.external;
|
|
110977
|
+
if (((_a = ext === null || ext === void 0 ? void 0 : ext.requested) !== null && _a !== void 0 ? _a : 0) > 0)
|
|
110978
|
+
return true;
|
|
110979
|
+
// ViewAttachments and 3d section drawing attachments render to separate off-screen viewports - check those too.
|
|
110980
|
+
for (const vp of this.view.secondaryViewports) {
|
|
110981
|
+
if (vp.numRequestedTiles > 0) {
|
|
110982
|
+
return true;
|
|
110983
|
+
}
|
|
110984
|
+
const tiles = _IModelApp__WEBPACK_IMPORTED_MODULE_10__.IModelApp.tileAdmin.getTilesForUser(vp);
|
|
110985
|
+
if (tiles && tiles.external.requested > 0) {
|
|
110986
|
+
return true;
|
|
110987
|
+
}
|
|
110988
|
+
}
|
|
110989
|
+
return false;
|
|
110990
|
+
}
|
|
110958
110991
|
/** Returns a Promise that resolves after the contents of this viewport are fully loaded and rendered.
|
|
110959
110992
|
* This can be useful, for example, when you want to capture an image of the viewport's contents, as in the following code:
|
|
110960
110993
|
* ```ts
|
|
@@ -110974,20 +111007,8 @@ class Viewport {
|
|
|
110974
111007
|
this.renderFrame();
|
|
110975
111008
|
haveExternalTexRequests = system.hasExternalTextureRequests;
|
|
110976
111009
|
haveNewTiles = !this.areAllTileTreesLoaded || this._hasMissingTiles;
|
|
110977
|
-
if (!haveNewTiles)
|
|
110978
|
-
|
|
110979
|
-
for (const vp of this.view.secondaryViewports) {
|
|
110980
|
-
if (vp.numRequestedTiles > 0) {
|
|
110981
|
-
haveNewTiles = true;
|
|
110982
|
-
break;
|
|
110983
|
-
}
|
|
110984
|
-
const tiles = _IModelApp__WEBPACK_IMPORTED_MODULE_10__.IModelApp.tileAdmin.getTilesForUser(vp);
|
|
110985
|
-
if (tiles && tiles.external.requested > 0) {
|
|
110986
|
-
haveNewTiles = true;
|
|
110987
|
-
break;
|
|
110988
|
-
}
|
|
110989
|
-
}
|
|
110990
|
-
}
|
|
111010
|
+
if (!haveNewTiles)
|
|
111011
|
+
haveNewTiles = this.hasAdditionalTiles();
|
|
110991
111012
|
// 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.
|
|
110992
111013
|
if (haveNewTiles)
|
|
110993
111014
|
_IModelApp__WEBPACK_IMPORTED_MODULE_10__.IModelApp.tileAdmin.process();
|
|
@@ -111748,20 +111769,8 @@ class ScreenViewport extends Viewport {
|
|
|
111748
111769
|
return;
|
|
111749
111770
|
}
|
|
111750
111771
|
let haveNewTiles = !this.areAllTileTreesLoaded || this._hasMissingTiles;
|
|
111751
|
-
if (!haveNewTiles)
|
|
111752
|
-
|
|
111753
|
-
for (const vp of this.view.secondaryViewports) {
|
|
111754
|
-
if (vp.numRequestedTiles > 0) {
|
|
111755
|
-
haveNewTiles = true;
|
|
111756
|
-
break;
|
|
111757
|
-
}
|
|
111758
|
-
const tiles = _IModelApp__WEBPACK_IMPORTED_MODULE_10__.IModelApp.tileAdmin.getTilesForUser(vp);
|
|
111759
|
-
if (tiles && tiles.external.requested > 0) {
|
|
111760
|
-
haveNewTiles = true;
|
|
111761
|
-
break;
|
|
111762
|
-
}
|
|
111763
|
-
}
|
|
111764
|
-
}
|
|
111772
|
+
if (!haveNewTiles)
|
|
111773
|
+
haveNewTiles = this.hasAdditionalTiles();
|
|
111765
111774
|
if (!haveNewTiles && !system.hasExternalTextureRequests) {
|
|
111766
111775
|
removeOnViewClose();
|
|
111767
111776
|
removeOnRender();
|
|
@@ -156636,7 +156645,7 @@ class OrbitGtTileTree extends _internal__WEBPACK_IMPORTED_MODULE_8__.TileTree {
|
|
|
156636
156645
|
let totalPointCount = 0;
|
|
156637
156646
|
const tileCount = frameData.tilesToRender.size();
|
|
156638
156647
|
// Inform TileAdmin about tiles we are handling ourselves...
|
|
156639
|
-
_IModelApp__WEBPACK_IMPORTED_MODULE_5__.IModelApp.tileAdmin.addExternalTilesForUser(args.context.viewport, { requested: frameData.tilesToLoad.size(), selected: tileCount, ready: tileCount });
|
|
156648
|
+
_IModelApp__WEBPACK_IMPORTED_MODULE_5__.IModelApp.tileAdmin.addExternalTilesForUser(args.context.viewport, { requested: frameData.tilesToLoad.size() + (frameData.hasMissingData() ? 1 : 0), selected: tileCount, ready: tileCount });
|
|
156640
156649
|
if (debugBuilder)
|
|
156641
156650
|
debugBuilder.setSymbology(_itwin_core_common__WEBPACK_IMPORTED_MODULE_1__.ColorDef.red, _itwin_core_common__WEBPACK_IMPORTED_MODULE_1__.ColorDef.red, 1);
|
|
156642
156651
|
let minLevel = 100, maxLevel = -100;
|
|
@@ -286520,7 +286529,7 @@ class TestContext {
|
|
|
286520
286529
|
this.initializeRpcInterfaces({ title: this.settings.Backend.name, version: this.settings.Backend.version });
|
|
286521
286530
|
const iModelClient = new imodels_client_management_1.IModelsClient({ api: { baseUrl: `https://${(_a = process.env.IMJS_URL_PREFIX) !== null && _a !== void 0 ? _a : ""}api.bentley.com/imodels` } });
|
|
286522
286531
|
await core_frontend_1.NoRenderApp.startup({
|
|
286523
|
-
applicationVersion: "3.6.0-dev.
|
|
286532
|
+
applicationVersion: "3.6.0-dev.52",
|
|
286524
286533
|
applicationId: this.settings.gprid,
|
|
286525
286534
|
authorizationClient: new frontend_1.TestFrontendAuthorizationClient(this.adminUserAccessToken),
|
|
286526
286535
|
hubAccess: new imodels_access_frontend_1.FrontendIModelsAccess(iModelClient),
|
|
@@ -305685,7 +305694,7 @@ module.exports = JSON.parse('{"name":"axios","version":"0.21.4","description":"P
|
|
|
305685
305694
|
/***/ ((module) => {
|
|
305686
305695
|
|
|
305687
305696
|
"use strict";
|
|
305688
|
-
module.exports = JSON.parse('{"name":"@itwin/core-frontend","version":"3.6.0-dev.
|
|
305697
|
+
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"}}]}}');
|
|
305689
305698
|
|
|
305690
305699
|
/***/ }),
|
|
305691
305700
|
|