@itwin/ecschema-rpcinterface-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 +31 -41
- 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 +15 -15
|
@@ -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":""}
|
|
@@ -145157,6 +145157,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
145157
145157
|
|
|
145158
145158
|
|
|
145159
145159
|
|
|
145160
|
+
/** @internal exported strictly for tests. */
|
|
145160
145161
|
function readPntsColors(stream, dataOffset, pnts) {
|
|
145161
145162
|
const nPts = pnts.POINTS_LENGTH;
|
|
145162
145163
|
const nComponents = 3 * nPts;
|
|
@@ -171350,7 +171351,15 @@ class ViewManip extends ViewTool {
|
|
|
171350
171351
|
this._depthPreview = { testPoint: ev.rawPoint, pickRadius: pickRadiusPixels, plane: result.plane, source: result.source, isDefaultDepth: !isValidDepth, sourceId: result.sourceId };
|
|
171351
171352
|
return (isValidDepth || isPreview ? result.plane.getOriginRef() : undefined);
|
|
171352
171353
|
}
|
|
171354
|
+
/** In addition to the onReinitialize calls after a tool installs or restarts, it is also
|
|
171355
|
+
* called from the mouseover event to cancel a drag operation if the up event occurred outside the view.
|
|
171356
|
+
* When operating in one shot mode and also requiring dragging, the tool should exit and not restart in ths situation.
|
|
171357
|
+
* A tool must opt in to allowing [[ViewTool.exitTool]] to be called from [[ViewManip.onReinitialize]] by
|
|
171358
|
+
* overriding this method to return true.
|
|
171359
|
+
*/
|
|
171360
|
+
get isExitAllowedOnReinitialize() { return false; }
|
|
171353
171361
|
async onReinitialize() {
|
|
171362
|
+
const shouldExit = (this.oneShot && this.isDraggingRequired && this.isDragging && 0 !== this.nPts);
|
|
171354
171363
|
if (undefined !== this.viewport) {
|
|
171355
171364
|
this.viewport.synchWithView(); // make sure we store any changes in view undo buffer.
|
|
171356
171365
|
this.viewHandles.setFocus(-1);
|
|
@@ -171360,6 +171369,9 @@ class ViewManip extends ViewTool {
|
|
|
171360
171369
|
this.inDynamicUpdate = false;
|
|
171361
171370
|
this._startPose = undefined;
|
|
171362
171371
|
this.viewHandles.onReinitialize();
|
|
171372
|
+
if (shouldExit && this.isExitAllowedOnReinitialize)
|
|
171373
|
+
return this.exitTool();
|
|
171374
|
+
this.provideInitialToolAssistance();
|
|
171363
171375
|
}
|
|
171364
171376
|
async onDataButtonDown(ev) {
|
|
171365
171377
|
// Tool was started in "drag required" mode, don't advance tool state and wait to see if we get the start drag event.
|
|
@@ -171497,7 +171509,6 @@ class ViewManip extends ViewTool {
|
|
|
171497
171509
|
await super.onPostInstall();
|
|
171498
171510
|
await this.onReinitialize(); // Call onReinitialize now that tool is installed.
|
|
171499
171511
|
}
|
|
171500
|
-
/** @beta */
|
|
171501
171512
|
provideToolAssistance(mainInstrKey, additionalInstr) {
|
|
171502
171513
|
const mainInstruction = _ToolAssistance__WEBPACK_IMPORTED_MODULE_19__.ToolAssistance.createInstruction(this.iconSpec, ViewTool.translate(mainInstrKey));
|
|
171503
171514
|
const mouseInstructions = [];
|
|
@@ -171522,6 +171533,8 @@ class ViewManip extends ViewTool {
|
|
|
171522
171533
|
const instructions = _ToolAssistance__WEBPACK_IMPORTED_MODULE_19__.ToolAssistance.createInstructions(mainInstruction, sections);
|
|
171523
171534
|
_IModelApp__WEBPACK_IMPORTED_MODULE_7__.IModelApp.notifications.setToolAssistance(instructions);
|
|
171524
171535
|
}
|
|
171536
|
+
/** Called from [[ViewManip.onReinitialize]] to allow tools to establish the tool assistance for the first point. */
|
|
171537
|
+
provideInitialToolAssistance() { }
|
|
171525
171538
|
async onCleanup() {
|
|
171526
171539
|
let restorePrevious = false;
|
|
171527
171540
|
if (this.inDynamicUpdate) {
|
|
@@ -173457,10 +173470,8 @@ class PanViewTool extends ViewManip {
|
|
|
173457
173470
|
constructor(vp, oneShot = false, isDraggingRequired = false) {
|
|
173458
173471
|
super(vp, ViewHandleType.Pan, oneShot, isDraggingRequired);
|
|
173459
173472
|
}
|
|
173460
|
-
|
|
173461
|
-
|
|
173462
|
-
this.provideToolAssistance("Pan.Prompts.FirstPoint");
|
|
173463
|
-
}
|
|
173473
|
+
get isExitAllowedOnReinitialize() { return true; }
|
|
173474
|
+
provideInitialToolAssistance() { this.provideToolAssistance("Pan.Prompts.FirstPoint"); }
|
|
173464
173475
|
}
|
|
173465
173476
|
PanViewTool.toolId = "View.Pan";
|
|
173466
173477
|
PanViewTool.iconSpec = "icon-hand-2";
|
|
@@ -173471,10 +173482,8 @@ class RotateViewTool extends ViewManip {
|
|
|
173471
173482
|
constructor(vp, oneShot = false, isDraggingRequired = false) {
|
|
173472
173483
|
super(vp, ViewHandleType.Rotate | ViewHandleType.Pan | ViewHandleType.TargetCenter, oneShot, isDraggingRequired);
|
|
173473
173484
|
}
|
|
173474
|
-
|
|
173475
|
-
|
|
173476
|
-
this.provideToolAssistance("Rotate.Prompts.FirstPoint");
|
|
173477
|
-
}
|
|
173485
|
+
get isExitAllowedOnReinitialize() { return true; }
|
|
173486
|
+
provideInitialToolAssistance() { this.provideToolAssistance("Rotate.Prompts.FirstPoint"); }
|
|
173478
173487
|
}
|
|
173479
173488
|
RotateViewTool.toolId = "View.Rotate";
|
|
173480
173489
|
RotateViewTool.iconSpec = "icon-gyroscope";
|
|
@@ -173485,10 +173494,8 @@ class LookViewTool extends ViewManip {
|
|
|
173485
173494
|
constructor(vp, oneShot = false, isDraggingRequired = false) {
|
|
173486
173495
|
super(vp, ViewHandleType.Look | ViewHandleType.Pan, oneShot, isDraggingRequired);
|
|
173487
173496
|
}
|
|
173488
|
-
|
|
173489
|
-
|
|
173490
|
-
this.provideToolAssistance("Look.Prompts.FirstPoint");
|
|
173491
|
-
}
|
|
173497
|
+
get isExitAllowedOnReinitialize() { return true; }
|
|
173498
|
+
provideInitialToolAssistance() { this.provideToolAssistance("Look.Prompts.FirstPoint"); }
|
|
173492
173499
|
}
|
|
173493
173500
|
LookViewTool.toolId = "View.Look";
|
|
173494
173501
|
LookViewTool.iconSpec = "icon-view-navigation";
|
|
@@ -173499,10 +173506,8 @@ class ScrollViewTool extends ViewManip {
|
|
|
173499
173506
|
constructor(vp, oneShot = false, isDraggingRequired = false) {
|
|
173500
173507
|
super(vp, ViewHandleType.Scroll, oneShot, isDraggingRequired);
|
|
173501
173508
|
}
|
|
173502
|
-
|
|
173503
|
-
|
|
173504
|
-
this.provideToolAssistance("Scroll.Prompts.FirstPoint");
|
|
173505
|
-
}
|
|
173509
|
+
get isExitAllowedOnReinitialize() { return true; }
|
|
173510
|
+
provideInitialToolAssistance() { this.provideToolAssistance("Scroll.Prompts.FirstPoint"); }
|
|
173506
173511
|
}
|
|
173507
173512
|
ScrollViewTool.toolId = "View.Scroll";
|
|
173508
173513
|
ScrollViewTool.iconSpec = "icon-move";
|
|
@@ -173513,10 +173518,8 @@ class ZoomViewTool extends ViewManip {
|
|
|
173513
173518
|
constructor(vp, oneShot = false, isDraggingRequired = false) {
|
|
173514
173519
|
super(vp, ViewHandleType.Zoom | ViewHandleType.Pan, oneShot, isDraggingRequired);
|
|
173515
173520
|
}
|
|
173516
|
-
|
|
173517
|
-
|
|
173518
|
-
this.provideToolAssistance("Zoom.Prompts.FirstPoint");
|
|
173519
|
-
}
|
|
173521
|
+
get isExitAllowedOnReinitialize() { return true; }
|
|
173522
|
+
provideInitialToolAssistance() { this.provideToolAssistance("Zoom.Prompts.FirstPoint"); }
|
|
173520
173523
|
}
|
|
173521
173524
|
ZoomViewTool.toolId = "View.Zoom";
|
|
173522
173525
|
ZoomViewTool.iconSpec = "icon-zoom";
|
|
@@ -173533,11 +173536,8 @@ class LookAndMoveTool extends ViewManip {
|
|
|
173533
173536
|
const viewport = (undefined === vp ? _IModelApp__WEBPACK_IMPORTED_MODULE_7__.IModelApp.viewManager.selectedView : vp); // Need vp to enable camera/check lens in onReinitialize...
|
|
173534
173537
|
super(viewport, ViewHandleType.LookAndMove | ViewHandleType.Pan, oneShot, isDraggingRequired);
|
|
173535
173538
|
}
|
|
173536
|
-
|
|
173537
|
-
|
|
173538
|
-
this.provideToolAssistance("LookAndMove.Prompts.FirstPoint");
|
|
173539
|
-
}
|
|
173540
|
-
/** @beta */
|
|
173539
|
+
get isExitAllowedOnReinitialize() { return true; }
|
|
173540
|
+
provideInitialToolAssistance() { this.provideToolAssistance("LookAndMove.Prompts.FirstPoint"); }
|
|
173541
173541
|
provideToolAssistance(mainInstrKey) {
|
|
173542
173542
|
const mainInstruction = _ToolAssistance__WEBPACK_IMPORTED_MODULE_19__.ToolAssistance.createInstruction(this.iconSpec, ViewTool.translate(mainInstrKey));
|
|
173543
173543
|
const mouseInstructions = [];
|
|
@@ -173576,11 +173576,8 @@ class WalkViewTool extends ViewManip {
|
|
|
173576
173576
|
const viewport = (undefined === vp ? _IModelApp__WEBPACK_IMPORTED_MODULE_7__.IModelApp.viewManager.selectedView : vp); // Need vp to enable camera/check lens in onReinitialize...
|
|
173577
173577
|
super(viewport, ViewHandleType.Walk | ViewHandleType.Pan, oneShot, isDraggingRequired);
|
|
173578
173578
|
}
|
|
173579
|
-
|
|
173580
|
-
|
|
173581
|
-
this.provideToolAssistance("Walk.Prompts.FirstPoint");
|
|
173582
|
-
}
|
|
173583
|
-
/** @beta */
|
|
173579
|
+
get isExitAllowedOnReinitialize() { return true; }
|
|
173580
|
+
provideInitialToolAssistance() { this.provideToolAssistance("Walk.Prompts.FirstPoint"); }
|
|
173584
173581
|
provideToolAssistance(mainInstrKey) {
|
|
173585
173582
|
const walkInstructions = [];
|
|
173586
173583
|
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));
|
|
@@ -173597,11 +173594,8 @@ class FlyViewTool extends ViewManip {
|
|
|
173597
173594
|
constructor(vp, oneShot = false, isDraggingRequired = false) {
|
|
173598
173595
|
super(vp, ViewHandleType.Fly | ViewHandleType.Pan, oneShot, isDraggingRequired);
|
|
173599
173596
|
}
|
|
173600
|
-
|
|
173601
|
-
|
|
173602
|
-
this.provideToolAssistance("Fly.Prompts.FirstPoint");
|
|
173603
|
-
}
|
|
173604
|
-
/** @beta */
|
|
173597
|
+
get isExitAllowedOnReinitialize() { return true; }
|
|
173598
|
+
provideInitialToolAssistance() { this.provideToolAssistance("Fly.Prompts.FirstPoint"); }
|
|
173605
173599
|
provideToolAssistance(mainInstrKey) {
|
|
173606
173600
|
const flyInstructions = [];
|
|
173607
173601
|
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));
|
|
@@ -173622,7 +173616,6 @@ class FitViewTool extends ViewTool {
|
|
|
173622
173616
|
this.doAnimate = doAnimate;
|
|
173623
173617
|
this.isolatedOnly = isolatedOnly;
|
|
173624
173618
|
}
|
|
173625
|
-
/** @beta */
|
|
173626
173619
|
provideToolAssistance() {
|
|
173627
173620
|
const mainInstruction = _ToolAssistance__WEBPACK_IMPORTED_MODULE_19__.ToolAssistance.createInstruction(this.iconSpec, ViewTool.translate("Fit.Prompts.FirstPoint"));
|
|
173628
173621
|
const mouseInstructions = [];
|
|
@@ -173922,7 +173915,6 @@ class WindowAreaTool extends ViewTool {
|
|
|
173922
173915
|
}
|
|
173923
173916
|
return super.onResetButtonUp(ev);
|
|
173924
173917
|
}
|
|
173925
|
-
/** @beta */
|
|
173926
173918
|
provideToolAssistance() {
|
|
173927
173919
|
const mainInstruction = _ToolAssistance__WEBPACK_IMPORTED_MODULE_19__.ToolAssistance.createInstruction(this.iconSpec, ViewTool.translate(this._haveFirstPoint ? "WindowArea.Prompts.NextPoint" : "WindowArea.Prompts.FirstPoint"));
|
|
173928
173920
|
const mouseInstructions = [];
|
|
@@ -174422,7 +174414,6 @@ class SetupCameraTool extends _PrimitiveTool__WEBPACK_IMPORTED_MODULE_17__.Primi
|
|
|
174422
174414
|
await this.exitTool();
|
|
174423
174415
|
return _Tool__WEBPACK_IMPORTED_MODULE_18__.EventHandled.Yes;
|
|
174424
174416
|
}
|
|
174425
|
-
/** @beta */
|
|
174426
174417
|
provideToolAssistance() {
|
|
174427
174418
|
const mainInstruction = _ToolAssistance__WEBPACK_IMPORTED_MODULE_19__.ToolAssistance.createInstruction(this.iconSpec, ViewTool.translate(this._haveEyePt ? "SetupCamera.Prompts.NextPoint" : "SetupCamera.Prompts.FirstPoint"));
|
|
174428
174419
|
const mouseInstructions = [];
|
|
@@ -174680,7 +174671,6 @@ class SetupWalkCameraTool extends _PrimitiveTool__WEBPACK_IMPORTED_MODULE_17__.P
|
|
|
174680
174671
|
await this.exitTool();
|
|
174681
174672
|
return _Tool__WEBPACK_IMPORTED_MODULE_18__.EventHandled.Yes;
|
|
174682
174673
|
}
|
|
174683
|
-
/** @beta */
|
|
174684
174674
|
provideToolAssistance() {
|
|
174685
174675
|
const mainInstruction = _ToolAssistance__WEBPACK_IMPORTED_MODULE_19__.ToolAssistance.createInstruction(this.iconSpec, ViewTool.translate(this._haveEyePt ? "SetupWalkCamera.Prompts.NextPoint" : "SetupWalkCamera.Prompts.FirstPoint"));
|
|
174686
174676
|
const mouseInstructions = [];
|
|
@@ -303762,7 +303752,7 @@ var loadLanguages = instance.loadLanguages;
|
|
|
303762
303752
|
/***/ ((module) => {
|
|
303763
303753
|
|
|
303764
303754
|
"use strict";
|
|
303765
|
-
module.exports = JSON.parse('{"name":"@itwin/core-frontend","version":"4.11.0-dev.
|
|
303755
|
+
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"}}');
|
|
303766
303756
|
|
|
303767
303757
|
/***/ })
|
|
303768
303758
|
|