@itwin/rpcinterface-full-stack-tests 4.11.0-dev.4 → 4.11.0-dev.5
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/_bea9.bundled-tests.js.map +1 -1
- package/lib/dist/bundled-tests.js +32 -42
- 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_1_6_node_modules_loaders_gl_draco_di-0642a6.bundled-tests.js.map +1 -1
- package/lib/dist/vendors-common_temp_node_modules_pnpm_meshoptimizer_0_20_0_node_modules_meshoptimizer_index_m-a5ae61.bundled-tests.js.map +1 -1
- package/package.json +13 -13
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"_bea9.bundled-tests.js","mappings":";;;;;;;;AAAA","sources":["file:///ignored|C:\\agent\\_work\\
|
|
1
|
+
{"version":3,"file":"_bea9.bundled-tests.js","mappings":";;;;;;;;AAAA","sources":["file:///ignored|C:\\agent\\_work\\2\\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":""}
|
|
@@ -158442,6 +158442,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
158442
158442
|
|
|
158443
158443
|
|
|
158444
158444
|
|
|
158445
|
+
/** @internal exported strictly for tests. */
|
|
158445
158446
|
function readPntsColors(stream, dataOffset, pnts) {
|
|
158446
158447
|
const nPts = pnts.POINTS_LENGTH;
|
|
158447
158448
|
const nComponents = 3 * nPts;
|
|
@@ -184635,7 +184636,15 @@ class ViewManip extends ViewTool {
|
|
|
184635
184636
|
this._depthPreview = { testPoint: ev.rawPoint, pickRadius: pickRadiusPixels, plane: result.plane, source: result.source, isDefaultDepth: !isValidDepth, sourceId: result.sourceId };
|
|
184636
184637
|
return (isValidDepth || isPreview ? result.plane.getOriginRef() : undefined);
|
|
184637
184638
|
}
|
|
184639
|
+
/** In addition to the onReinitialize calls after a tool installs or restarts, it is also
|
|
184640
|
+
* called from the mouseover event to cancel a drag operation if the up event occurred outside the view.
|
|
184641
|
+
* When operating in one shot mode and also requiring dragging, the tool should exit and not restart in ths situation.
|
|
184642
|
+
* A tool must opt in to allowing [[ViewTool.exitTool]] to be called from [[ViewManip.onReinitialize]] by
|
|
184643
|
+
* overriding this method to return true.
|
|
184644
|
+
*/
|
|
184645
|
+
get isExitAllowedOnReinitialize() { return false; }
|
|
184638
184646
|
async onReinitialize() {
|
|
184647
|
+
const shouldExit = (this.oneShot && this.isDraggingRequired && this.isDragging && 0 !== this.nPts);
|
|
184639
184648
|
if (undefined !== this.viewport) {
|
|
184640
184649
|
this.viewport.synchWithView(); // make sure we store any changes in view undo buffer.
|
|
184641
184650
|
this.viewHandles.setFocus(-1);
|
|
@@ -184645,6 +184654,9 @@ class ViewManip extends ViewTool {
|
|
|
184645
184654
|
this.inDynamicUpdate = false;
|
|
184646
184655
|
this._startPose = undefined;
|
|
184647
184656
|
this.viewHandles.onReinitialize();
|
|
184657
|
+
if (shouldExit && this.isExitAllowedOnReinitialize)
|
|
184658
|
+
return this.exitTool();
|
|
184659
|
+
this.provideInitialToolAssistance();
|
|
184648
184660
|
}
|
|
184649
184661
|
async onDataButtonDown(ev) {
|
|
184650
184662
|
// Tool was started in "drag required" mode, don't advance tool state and wait to see if we get the start drag event.
|
|
@@ -184782,7 +184794,6 @@ class ViewManip extends ViewTool {
|
|
|
184782
184794
|
await super.onPostInstall();
|
|
184783
184795
|
await this.onReinitialize(); // Call onReinitialize now that tool is installed.
|
|
184784
184796
|
}
|
|
184785
|
-
/** @beta */
|
|
184786
184797
|
provideToolAssistance(mainInstrKey, additionalInstr) {
|
|
184787
184798
|
const mainInstruction = _ToolAssistance__WEBPACK_IMPORTED_MODULE_19__.ToolAssistance.createInstruction(this.iconSpec, ViewTool.translate(mainInstrKey));
|
|
184788
184799
|
const mouseInstructions = [];
|
|
@@ -184807,6 +184818,8 @@ class ViewManip extends ViewTool {
|
|
|
184807
184818
|
const instructions = _ToolAssistance__WEBPACK_IMPORTED_MODULE_19__.ToolAssistance.createInstructions(mainInstruction, sections);
|
|
184808
184819
|
_IModelApp__WEBPACK_IMPORTED_MODULE_7__.IModelApp.notifications.setToolAssistance(instructions);
|
|
184809
184820
|
}
|
|
184821
|
+
/** Called from [[ViewManip.onReinitialize]] to allow tools to establish the tool assistance for the first point. */
|
|
184822
|
+
provideInitialToolAssistance() { }
|
|
184810
184823
|
async onCleanup() {
|
|
184811
184824
|
let restorePrevious = false;
|
|
184812
184825
|
if (this.inDynamicUpdate) {
|
|
@@ -186742,10 +186755,8 @@ class PanViewTool extends ViewManip {
|
|
|
186742
186755
|
constructor(vp, oneShot = false, isDraggingRequired = false) {
|
|
186743
186756
|
super(vp, ViewHandleType.Pan, oneShot, isDraggingRequired);
|
|
186744
186757
|
}
|
|
186745
|
-
|
|
186746
|
-
|
|
186747
|
-
this.provideToolAssistance("Pan.Prompts.FirstPoint");
|
|
186748
|
-
}
|
|
186758
|
+
get isExitAllowedOnReinitialize() { return true; }
|
|
186759
|
+
provideInitialToolAssistance() { this.provideToolAssistance("Pan.Prompts.FirstPoint"); }
|
|
186749
186760
|
}
|
|
186750
186761
|
PanViewTool.toolId = "View.Pan";
|
|
186751
186762
|
PanViewTool.iconSpec = "icon-hand-2";
|
|
@@ -186756,10 +186767,8 @@ class RotateViewTool extends ViewManip {
|
|
|
186756
186767
|
constructor(vp, oneShot = false, isDraggingRequired = false) {
|
|
186757
186768
|
super(vp, ViewHandleType.Rotate | ViewHandleType.Pan | ViewHandleType.TargetCenter, oneShot, isDraggingRequired);
|
|
186758
186769
|
}
|
|
186759
|
-
|
|
186760
|
-
|
|
186761
|
-
this.provideToolAssistance("Rotate.Prompts.FirstPoint");
|
|
186762
|
-
}
|
|
186770
|
+
get isExitAllowedOnReinitialize() { return true; }
|
|
186771
|
+
provideInitialToolAssistance() { this.provideToolAssistance("Rotate.Prompts.FirstPoint"); }
|
|
186763
186772
|
}
|
|
186764
186773
|
RotateViewTool.toolId = "View.Rotate";
|
|
186765
186774
|
RotateViewTool.iconSpec = "icon-gyroscope";
|
|
@@ -186770,10 +186779,8 @@ class LookViewTool extends ViewManip {
|
|
|
186770
186779
|
constructor(vp, oneShot = false, isDraggingRequired = false) {
|
|
186771
186780
|
super(vp, ViewHandleType.Look | ViewHandleType.Pan, oneShot, isDraggingRequired);
|
|
186772
186781
|
}
|
|
186773
|
-
|
|
186774
|
-
|
|
186775
|
-
this.provideToolAssistance("Look.Prompts.FirstPoint");
|
|
186776
|
-
}
|
|
186782
|
+
get isExitAllowedOnReinitialize() { return true; }
|
|
186783
|
+
provideInitialToolAssistance() { this.provideToolAssistance("Look.Prompts.FirstPoint"); }
|
|
186777
186784
|
}
|
|
186778
186785
|
LookViewTool.toolId = "View.Look";
|
|
186779
186786
|
LookViewTool.iconSpec = "icon-view-navigation";
|
|
@@ -186784,10 +186791,8 @@ class ScrollViewTool extends ViewManip {
|
|
|
186784
186791
|
constructor(vp, oneShot = false, isDraggingRequired = false) {
|
|
186785
186792
|
super(vp, ViewHandleType.Scroll, oneShot, isDraggingRequired);
|
|
186786
186793
|
}
|
|
186787
|
-
|
|
186788
|
-
|
|
186789
|
-
this.provideToolAssistance("Scroll.Prompts.FirstPoint");
|
|
186790
|
-
}
|
|
186794
|
+
get isExitAllowedOnReinitialize() { return true; }
|
|
186795
|
+
provideInitialToolAssistance() { this.provideToolAssistance("Scroll.Prompts.FirstPoint"); }
|
|
186791
186796
|
}
|
|
186792
186797
|
ScrollViewTool.toolId = "View.Scroll";
|
|
186793
186798
|
ScrollViewTool.iconSpec = "icon-move";
|
|
@@ -186798,10 +186803,8 @@ class ZoomViewTool extends ViewManip {
|
|
|
186798
186803
|
constructor(vp, oneShot = false, isDraggingRequired = false) {
|
|
186799
186804
|
super(vp, ViewHandleType.Zoom | ViewHandleType.Pan, oneShot, isDraggingRequired);
|
|
186800
186805
|
}
|
|
186801
|
-
|
|
186802
|
-
|
|
186803
|
-
this.provideToolAssistance("Zoom.Prompts.FirstPoint");
|
|
186804
|
-
}
|
|
186806
|
+
get isExitAllowedOnReinitialize() { return true; }
|
|
186807
|
+
provideInitialToolAssistance() { this.provideToolAssistance("Zoom.Prompts.FirstPoint"); }
|
|
186805
186808
|
}
|
|
186806
186809
|
ZoomViewTool.toolId = "View.Zoom";
|
|
186807
186810
|
ZoomViewTool.iconSpec = "icon-zoom";
|
|
@@ -186818,11 +186821,8 @@ class LookAndMoveTool extends ViewManip {
|
|
|
186818
186821
|
const viewport = (undefined === vp ? _IModelApp__WEBPACK_IMPORTED_MODULE_7__.IModelApp.viewManager.selectedView : vp); // Need vp to enable camera/check lens in onReinitialize...
|
|
186819
186822
|
super(viewport, ViewHandleType.LookAndMove | ViewHandleType.Pan, oneShot, isDraggingRequired);
|
|
186820
186823
|
}
|
|
186821
|
-
|
|
186822
|
-
|
|
186823
|
-
this.provideToolAssistance("LookAndMove.Prompts.FirstPoint");
|
|
186824
|
-
}
|
|
186825
|
-
/** @beta */
|
|
186824
|
+
get isExitAllowedOnReinitialize() { return true; }
|
|
186825
|
+
provideInitialToolAssistance() { this.provideToolAssistance("LookAndMove.Prompts.FirstPoint"); }
|
|
186826
186826
|
provideToolAssistance(mainInstrKey) {
|
|
186827
186827
|
const mainInstruction = _ToolAssistance__WEBPACK_IMPORTED_MODULE_19__.ToolAssistance.createInstruction(this.iconSpec, ViewTool.translate(mainInstrKey));
|
|
186828
186828
|
const mouseInstructions = [];
|
|
@@ -186861,11 +186861,8 @@ class WalkViewTool extends ViewManip {
|
|
|
186861
186861
|
const viewport = (undefined === vp ? _IModelApp__WEBPACK_IMPORTED_MODULE_7__.IModelApp.viewManager.selectedView : vp); // Need vp to enable camera/check lens in onReinitialize...
|
|
186862
186862
|
super(viewport, ViewHandleType.Walk | ViewHandleType.Pan, oneShot, isDraggingRequired);
|
|
186863
186863
|
}
|
|
186864
|
-
|
|
186865
|
-
|
|
186866
|
-
this.provideToolAssistance("Walk.Prompts.FirstPoint");
|
|
186867
|
-
}
|
|
186868
|
-
/** @beta */
|
|
186864
|
+
get isExitAllowedOnReinitialize() { return true; }
|
|
186865
|
+
provideInitialToolAssistance() { this.provideToolAssistance("Walk.Prompts.FirstPoint"); }
|
|
186869
186866
|
provideToolAssistance(mainInstrKey) {
|
|
186870
186867
|
const walkInstructions = [];
|
|
186871
186868
|
walkInstructions.push(_ToolAssistance__WEBPACK_IMPORTED_MODULE_19__.ToolAssistance.createModifierKeyInstruction(_ToolAssistance__WEBPACK_IMPORTED_MODULE_19__.ToolAssistance.shiftKey, _ToolAssistance__WEBPACK_IMPORTED_MODULE_19__.ToolAssistanceImage.LeftClickDrag, ViewTool.translate("Pan.flyover"), false, _ToolAssistance__WEBPACK_IMPORTED_MODULE_19__.ToolAssistanceInputMethod.Mouse));
|
|
@@ -186882,11 +186879,8 @@ class FlyViewTool extends ViewManip {
|
|
|
186882
186879
|
constructor(vp, oneShot = false, isDraggingRequired = false) {
|
|
186883
186880
|
super(vp, ViewHandleType.Fly | ViewHandleType.Pan, oneShot, isDraggingRequired);
|
|
186884
186881
|
}
|
|
186885
|
-
|
|
186886
|
-
|
|
186887
|
-
this.provideToolAssistance("Fly.Prompts.FirstPoint");
|
|
186888
|
-
}
|
|
186889
|
-
/** @beta */
|
|
186882
|
+
get isExitAllowedOnReinitialize() { return true; }
|
|
186883
|
+
provideInitialToolAssistance() { this.provideToolAssistance("Fly.Prompts.FirstPoint"); }
|
|
186890
186884
|
provideToolAssistance(mainInstrKey) {
|
|
186891
186885
|
const flyInstructions = [];
|
|
186892
186886
|
flyInstructions.push(_ToolAssistance__WEBPACK_IMPORTED_MODULE_19__.ToolAssistance.createModifierKeyInstruction(_ToolAssistance__WEBPACK_IMPORTED_MODULE_19__.ToolAssistance.shiftKey, _ToolAssistance__WEBPACK_IMPORTED_MODULE_19__.ToolAssistanceImage.LeftClickDrag, ViewTool.translate("Pan.flyover"), false, _ToolAssistance__WEBPACK_IMPORTED_MODULE_19__.ToolAssistanceInputMethod.Mouse));
|
|
@@ -186907,7 +186901,6 @@ class FitViewTool extends ViewTool {
|
|
|
186907
186901
|
this.doAnimate = doAnimate;
|
|
186908
186902
|
this.isolatedOnly = isolatedOnly;
|
|
186909
186903
|
}
|
|
186910
|
-
/** @beta */
|
|
186911
186904
|
provideToolAssistance() {
|
|
186912
186905
|
const mainInstruction = _ToolAssistance__WEBPACK_IMPORTED_MODULE_19__.ToolAssistance.createInstruction(this.iconSpec, ViewTool.translate("Fit.Prompts.FirstPoint"));
|
|
186913
186906
|
const mouseInstructions = [];
|
|
@@ -187207,7 +187200,6 @@ class WindowAreaTool extends ViewTool {
|
|
|
187207
187200
|
}
|
|
187208
187201
|
return super.onResetButtonUp(ev);
|
|
187209
187202
|
}
|
|
187210
|
-
/** @beta */
|
|
187211
187203
|
provideToolAssistance() {
|
|
187212
187204
|
const mainInstruction = _ToolAssistance__WEBPACK_IMPORTED_MODULE_19__.ToolAssistance.createInstruction(this.iconSpec, ViewTool.translate(this._haveFirstPoint ? "WindowArea.Prompts.NextPoint" : "WindowArea.Prompts.FirstPoint"));
|
|
187213
187205
|
const mouseInstructions = [];
|
|
@@ -187707,7 +187699,6 @@ class SetupCameraTool extends _PrimitiveTool__WEBPACK_IMPORTED_MODULE_17__.Primi
|
|
|
187707
187699
|
await this.exitTool();
|
|
187708
187700
|
return _Tool__WEBPACK_IMPORTED_MODULE_18__.EventHandled.Yes;
|
|
187709
187701
|
}
|
|
187710
|
-
/** @beta */
|
|
187711
187702
|
provideToolAssistance() {
|
|
187712
187703
|
const mainInstruction = _ToolAssistance__WEBPACK_IMPORTED_MODULE_19__.ToolAssistance.createInstruction(this.iconSpec, ViewTool.translate(this._haveEyePt ? "SetupCamera.Prompts.NextPoint" : "SetupCamera.Prompts.FirstPoint"));
|
|
187713
187704
|
const mouseInstructions = [];
|
|
@@ -187965,7 +187956,6 @@ class SetupWalkCameraTool extends _PrimitiveTool__WEBPACK_IMPORTED_MODULE_17__.P
|
|
|
187965
187956
|
await this.exitTool();
|
|
187966
187957
|
return _Tool__WEBPACK_IMPORTED_MODULE_18__.EventHandled.Yes;
|
|
187967
187958
|
}
|
|
187968
|
-
/** @beta */
|
|
187969
187959
|
provideToolAssistance() {
|
|
187970
187960
|
const mainInstruction = _ToolAssistance__WEBPACK_IMPORTED_MODULE_19__.ToolAssistance.createInstruction(this.iconSpec, ViewTool.translate(this._haveEyePt ? "SetupWalkCamera.Prompts.NextPoint" : "SetupWalkCamera.Prompts.FirstPoint"));
|
|
187971
187961
|
const mouseInstructions = [];
|
|
@@ -303138,7 +303128,7 @@ class TestContext {
|
|
|
303138
303128
|
this.initializeRpcInterfaces({ title: this.settings.Backend.name, version: this.settings.Backend.version });
|
|
303139
303129
|
const iModelClient = new imodels_client_management_1.IModelsClient({ api: { baseUrl: `https://${process.env.IMJS_URL_PREFIX ?? ""}api.bentley.com/imodels` } });
|
|
303140
303130
|
await core_frontend_1.NoRenderApp.startup({
|
|
303141
|
-
applicationVersion: "4.11.0-dev.
|
|
303131
|
+
applicationVersion: "4.11.0-dev.5",
|
|
303142
303132
|
applicationId: this.settings.gprid,
|
|
303143
303133
|
authorizationClient: new frontend_1.TestFrontendAuthorizationClient(this.adminUserAccessToken),
|
|
303144
303134
|
hubAccess: new imodels_access_frontend_1.FrontendIModelsAccess(iModelClient),
|
|
@@ -330720,7 +330710,7 @@ function __disposeResources(env) {
|
|
|
330720
330710
|
/***/ ((module) => {
|
|
330721
330711
|
|
|
330722
330712
|
"use strict";
|
|
330723
|
-
module.exports = JSON.parse('{"name":"@itwin/core-frontend","version":"4.11.0-dev.
|
|
330713
|
+
module.exports = JSON.parse('{"name":"@itwin/core-frontend","version":"4.11.0-dev.5","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","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.5","@itwin/core-bentley":"workspace:^4.11.0-dev.5","@itwin/core-common":"workspace:^4.11.0-dev.5","@itwin/core-geometry":"workspace:^4.11.0-dev.5","@itwin/core-orbitgt":"workspace:^4.11.0-dev.5","@itwin/core-quantity":"workspace:^4.11.0-dev.5"},"//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":"^3.0.5","@vitest/coverage-v8":"^3.0.5","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":"^3.0.5","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.3.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","meshoptimizer":"~0.20.0","wms-capabilities":"0.4.0"}}');
|
|
330724
330714
|
|
|
330725
330715
|
/***/ }),
|
|
330726
330716
|
|