@itwin/rpcinterface-full-stack-tests 5.1.0-dev.5 → 5.1.0-dev.9
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/bundled-tests.js +64 -39
- package/lib/dist/bundled-tests.js.map +1 -1
- package/package.json +13 -13
|
@@ -101662,20 +101662,16 @@ class ECSchemaRpcLocater {
|
|
|
101662
101662
|
return undefined;
|
|
101663
101663
|
}
|
|
101664
101664
|
/**
|
|
101665
|
-
*
|
|
101666
|
-
*
|
|
101667
|
-
* @param
|
|
101668
|
-
* @param
|
|
101665
|
+
* This method is not supported for locating schemas over RPC/HTTP.
|
|
101666
|
+
* Use the asynchronous `getSchema` method instead.
|
|
101667
|
+
* @param _schemaKey Key to look up
|
|
101668
|
+
* @param _matchType How to match key against candidate schemas
|
|
101669
|
+
* @param _context The SchemaContext that will control the lifetime of the schema and holds the schema's references, if they exist.
|
|
101670
|
+
* @throws Error Always throws an error indicating this method is not supported.
|
|
101671
|
+
* @deprecated in 5.0 Use the asynchronous `getSchema` method for schema retrieval.
|
|
101669
101672
|
*/
|
|
101670
|
-
getSchemaSync(
|
|
101671
|
-
|
|
101672
|
-
return props;
|
|
101673
|
-
});
|
|
101674
|
-
const schema = _itwin_ecschema_metadata__WEBPACK_IMPORTED_MODULE_0__.Schema.fromJsonSync(schemaJson, context || new _itwin_ecschema_metadata__WEBPACK_IMPORTED_MODULE_0__.SchemaContext());
|
|
101675
|
-
if (schema !== undefined && schema.schemaKey.matches(schemaKey, matchType)) {
|
|
101676
|
-
return schema;
|
|
101677
|
-
}
|
|
101678
|
-
return undefined;
|
|
101673
|
+
getSchemaSync(_schemaKey, _matchType, _context) {
|
|
101674
|
+
throw new Error("getSchemaSync is not supported. Use the asynchronous getSchema method instead.");
|
|
101679
101675
|
}
|
|
101680
101676
|
}
|
|
101681
101677
|
|
|
@@ -103890,6 +103886,8 @@ class AccuDraw {
|
|
|
103890
103886
|
onFieldKeyinStatusChange(_index) { }
|
|
103891
103887
|
/** Called to request focus change to the specified input field */
|
|
103892
103888
|
setFocusItem(_index) { }
|
|
103889
|
+
/** Called to get the item field that currently has input focus */
|
|
103890
|
+
getFocusItem() { return undefined; }
|
|
103893
103891
|
static getMinPolarMag(origin) {
|
|
103894
103892
|
return (1.0e-12 * (1.0 + origin.magnitude()));
|
|
103895
103893
|
}
|
|
@@ -121277,16 +121275,21 @@ class RenderContext {
|
|
|
121277
121275
|
* @public
|
|
121278
121276
|
*/
|
|
121279
121277
|
class DynamicsContext extends RenderContext {
|
|
121280
|
-
|
|
121278
|
+
_foreground;
|
|
121279
|
+
_overlay;
|
|
121281
121280
|
/** Add a graphic to the list of dynamic graphics to be drawn in this context's [[Viewport]]. */
|
|
121282
121281
|
addGraphic(graphic) {
|
|
121283
|
-
|
|
121284
|
-
|
|
121285
|
-
|
|
121282
|
+
this.add(graphic, false);
|
|
121283
|
+
}
|
|
121284
|
+
/** @internal */
|
|
121285
|
+
add(graphic, isOverlay) {
|
|
121286
|
+
const key = isOverlay ? "_overlay" : "_foreground";
|
|
121287
|
+
const list = this[key] ?? (this[key] = []);
|
|
121288
|
+
list.push(graphic);
|
|
121286
121289
|
}
|
|
121287
121290
|
/** @internal */
|
|
121288
121291
|
changeDynamics() {
|
|
121289
|
-
this.viewport.changeDynamics(this.
|
|
121292
|
+
this.viewport.changeDynamics(this._foreground, this._overlay);
|
|
121290
121293
|
}
|
|
121291
121294
|
/** Create a builder for producing a [[RenderGraphic]] appropriate for rendering within this context's [[Viewport]].
|
|
121292
121295
|
* @param options Options describing how to create the builder.
|
|
@@ -122390,10 +122393,10 @@ class ViewManager {
|
|
|
122390
122393
|
this.inDynamicsMode = false;
|
|
122391
122394
|
const cursorVp = _IModelApp__WEBPACK_IMPORTED_MODULE_1__.IModelApp.toolAdmin.cursorView;
|
|
122392
122395
|
if (cursorVp)
|
|
122393
|
-
cursorVp.changeDynamics(undefined);
|
|
122396
|
+
cursorVp.changeDynamics(undefined, undefined);
|
|
122394
122397
|
for (const vp of this._viewports) {
|
|
122395
122398
|
if (vp !== cursorVp)
|
|
122396
|
-
vp.changeDynamics(undefined);
|
|
122399
|
+
vp.changeDynamics(undefined, undefined);
|
|
122397
122400
|
}
|
|
122398
122401
|
}
|
|
122399
122402
|
/** @internal */
|
|
@@ -126691,8 +126694,8 @@ class Viewport {
|
|
|
126691
126694
|
return this.view.is3d() && this.view.isCameraOn;
|
|
126692
126695
|
}
|
|
126693
126696
|
/** @internal */
|
|
126694
|
-
changeDynamics(dynamics) {
|
|
126695
|
-
this.target.changeDynamics(dynamics);
|
|
126697
|
+
changeDynamics(dynamics, overlay) {
|
|
126698
|
+
this.target.changeDynamics(dynamics, overlay);
|
|
126696
126699
|
this.invalidateDecorations();
|
|
126697
126700
|
}
|
|
126698
126701
|
_assigningFlashedId = false;
|
|
@@ -138282,7 +138285,7 @@ var MockRender;
|
|
|
138282
138285
|
get analysisFraction() { return 0; }
|
|
138283
138286
|
set analysisFraction(_fraction) { }
|
|
138284
138287
|
changeScene(_scene) { }
|
|
138285
|
-
changeDynamics(
|
|
138288
|
+
changeDynamics(_foreground, _overlay) { }
|
|
138286
138289
|
changeDecorations(_decs) { }
|
|
138287
138290
|
changeRenderPlan(_plan) { }
|
|
138288
138291
|
drawFrame(_sceneTime) { }
|
|
@@ -150372,9 +150375,8 @@ class RenderCommands {
|
|
|
150372
150375
|
this.addGraphics(gfx.foreground);
|
|
150373
150376
|
this.addBackgroundMapGraphics(gfx.background);
|
|
150374
150377
|
this.addOverlayGraphics(gfx.overlays);
|
|
150375
|
-
|
|
150376
|
-
|
|
150377
|
-
this.addDecorations(dynamics);
|
|
150378
|
+
this.addGraphics(gfx.foregroundDynamics);
|
|
150379
|
+
this.addOverlayGraphics(gfx.overlayDynamics);
|
|
150378
150380
|
const dec = gfx.decorations;
|
|
150379
150381
|
if (undefined !== dec) {
|
|
150380
150382
|
this.addBackground(dec.viewBackground);
|
|
@@ -157332,8 +157334,8 @@ class Target extends _render_RenderTarget__WEBPACK_IMPORTED_MODULE_7__.RenderTar
|
|
|
157332
157334
|
this.changeDrapesOrClassifiers(this._planarClassifiers, planarClassifiers);
|
|
157333
157335
|
this._planarClassifiers = planarClassifiers;
|
|
157334
157336
|
}
|
|
157335
|
-
changeDynamics(
|
|
157336
|
-
this.graphics.
|
|
157337
|
+
changeDynamics(foreground, overlay) {
|
|
157338
|
+
this.graphics.changeDynamics(foreground, overlay);
|
|
157337
157339
|
}
|
|
157338
157340
|
overrideFeatureSymbology(ovr) {
|
|
157339
157341
|
this.uniforms.branch.overrideFeatureSymbology(ovr);
|
|
@@ -158214,26 +158216,29 @@ class TargetGraphics {
|
|
|
158214
158216
|
foreground = [];
|
|
158215
158217
|
background = [];
|
|
158216
158218
|
overlays = [];
|
|
158217
|
-
|
|
158219
|
+
foregroundDynamics = [];
|
|
158220
|
+
overlayDynamics = [];
|
|
158218
158221
|
_decorations;
|
|
158219
158222
|
[Symbol.dispose]() {
|
|
158220
158223
|
this.foreground.length = this.background.length = this.overlays.length = 0;
|
|
158221
|
-
|
|
158224
|
+
(0,_itwin_core_bentley__WEBPACK_IMPORTED_MODULE_0__.disposeArray)(this.foregroundDynamics);
|
|
158225
|
+
(0,_itwin_core_bentley__WEBPACK_IMPORTED_MODULE_0__.disposeArray)(this.overlayDynamics);
|
|
158222
158226
|
this._decorations = (0,_itwin_core_bentley__WEBPACK_IMPORTED_MODULE_0__.dispose)(this._decorations);
|
|
158223
158227
|
}
|
|
158224
158228
|
get isDisposed() {
|
|
158225
158229
|
return 0 === this.foreground.length && 0 === this.background.length && 0 === this.overlays.length
|
|
158226
|
-
&&
|
|
158230
|
+
&& 0 === this.foregroundDynamics.length && 0 === this.overlayDynamics.length && !this._decorations;
|
|
158227
158231
|
}
|
|
158228
158232
|
changeScene(scene) {
|
|
158229
158233
|
this.foreground = scene.foreground;
|
|
158230
158234
|
this.background = scene.background;
|
|
158231
158235
|
this.overlays = scene.overlay;
|
|
158232
158236
|
}
|
|
158233
|
-
|
|
158234
|
-
|
|
158235
|
-
(0,_itwin_core_bentley__WEBPACK_IMPORTED_MODULE_0__.disposeArray)(this.
|
|
158236
|
-
this.
|
|
158237
|
+
changeDynamics(foreground, overlay) {
|
|
158238
|
+
(0,_itwin_core_bentley__WEBPACK_IMPORTED_MODULE_0__.disposeArray)(this.foregroundDynamics);
|
|
158239
|
+
(0,_itwin_core_bentley__WEBPACK_IMPORTED_MODULE_0__.disposeArray)(this.overlayDynamics);
|
|
158240
|
+
this.foregroundDynamics = foreground ?? [];
|
|
158241
|
+
this.overlayDynamics = overlay ?? [];
|
|
158237
158242
|
}
|
|
158238
158243
|
get decorations() { return this._decorations; }
|
|
158239
158244
|
set decorations(decorations) {
|
|
@@ -197671,6 +197676,7 @@ class AccuDrawViewportUI extends _AccuDraw__WEBPACK_IMPORTED_MODULE_1__.AccuDraw
|
|
|
197671
197676
|
this._controls.overlay.remove();
|
|
197672
197677
|
this._controls = undefined;
|
|
197673
197678
|
this.unsuspendToolTips();
|
|
197679
|
+
this.removedControlRect();
|
|
197674
197680
|
}
|
|
197675
197681
|
createControlDiv() {
|
|
197676
197682
|
const div = document.createElement("div");
|
|
@@ -197758,6 +197764,10 @@ class AccuDrawViewportUI extends _AccuDraw__WEBPACK_IMPORTED_MODULE_1__.AccuDraw
|
|
|
197758
197764
|
style.outlineWidth = button.outlineWidth;
|
|
197759
197765
|
return itemLock;
|
|
197760
197766
|
}
|
|
197767
|
+
/** Called after the controls have been removed from the view. */
|
|
197768
|
+
removedControlRect() { }
|
|
197769
|
+
/** Called after the position of the controls in the supplied view is updated. */
|
|
197770
|
+
changedControlRect(_rect, _vp) { }
|
|
197761
197771
|
/** Use to override the position of the controls in the supplied view. */
|
|
197762
197772
|
modifyControlRect(_rect, _vp) { }
|
|
197763
197773
|
/** Return the ViewRect currently occupied by the controls in the supplied view. */
|
|
@@ -197854,6 +197864,8 @@ class AccuDrawViewportUI extends _AccuDraw__WEBPACK_IMPORTED_MODULE_1__.AccuDraw
|
|
|
197854
197864
|
return; // Keep showing at last valid location...
|
|
197855
197865
|
this._controls.div.style.left = `${controlRect.left}px`;
|
|
197856
197866
|
this._controls.div.style.top = `${controlRect.top}px`;
|
|
197867
|
+
this.changedControlRect(controlRect, vp);
|
|
197868
|
+
return;
|
|
197857
197869
|
}
|
|
197858
197870
|
get _isFocusHome() {
|
|
197859
197871
|
return (document.body === document.activeElement);
|
|
@@ -197876,6 +197888,13 @@ class AccuDrawViewportUI extends _AccuDraw__WEBPACK_IMPORTED_MODULE_1__.AccuDraw
|
|
|
197876
197888
|
// Indicate when keyboard shortcuts can't be used (i.e. focus not at AccuDraw or Home) by changing compass to monochrome...
|
|
197877
197889
|
return (this._isFocusHome || this._isFocusAccuDraw);
|
|
197878
197890
|
}
|
|
197891
|
+
/** Get the item field that currently has input focus.
|
|
197892
|
+
*/
|
|
197893
|
+
getFocusItem() {
|
|
197894
|
+
if (!this._isFocusAccuDraw)
|
|
197895
|
+
return undefined;
|
|
197896
|
+
return this._focusItem;
|
|
197897
|
+
}
|
|
197879
197898
|
/** Request to set focus to the specified AccuDraw input field to start entering values.
|
|
197880
197899
|
* The focused input field will be indicated by the background color.
|
|
197881
197900
|
*/
|
|
@@ -204708,6 +204727,7 @@ class CurrentInputState {
|
|
|
204708
204727
|
lastButton = _Tool__WEBPACK_IMPORTED_MODULE_13__.BeButton.Data;
|
|
204709
204728
|
inputSource = _Tool__WEBPACK_IMPORTED_MODULE_13__.InputSource.Unknown;
|
|
204710
204729
|
lastMotion = new _itwin_core_geometry__WEBPACK_IMPORTED_MODULE_1__.Point2d();
|
|
204730
|
+
lastMotionEvent;
|
|
204711
204731
|
lastWheelEvent;
|
|
204712
204732
|
lastTouchStart;
|
|
204713
204733
|
touchTapTimer;
|
|
@@ -204725,7 +204745,7 @@ class CurrentInputState {
|
|
|
204725
204745
|
onStartDrag(button) { this.button[button].isDragging = true; }
|
|
204726
204746
|
onInstallTool() {
|
|
204727
204747
|
this.clearKeyQualifiers();
|
|
204728
|
-
this.lastWheelEvent = undefined;
|
|
204748
|
+
this.lastWheelEvent = this.lastMotionEvent = undefined;
|
|
204729
204749
|
this.lastTouchStart = this.touchTapTimer = this.touchTapCount = undefined;
|
|
204730
204750
|
}
|
|
204731
204751
|
clearKeyQualifiers() { this.qualifiers = _Tool__WEBPACK_IMPORTED_MODULE_13__.BeModifierKeys.None; }
|
|
@@ -205000,6 +205020,9 @@ class ToolAdmin {
|
|
|
205000
205020
|
this.clearMotionPromises();
|
|
205001
205021
|
// make sure tools don't think the cursor is still in this viewport.
|
|
205002
205022
|
this.onMouseLeave(vp);
|
|
205023
|
+
// Invalidate last motion if for this viewport...
|
|
205024
|
+
if (this.currentInputState.lastMotionEvent?.viewport === vp)
|
|
205025
|
+
this.currentInputState.lastMotionEvent = undefined;
|
|
205003
205026
|
// Remove any events associated with this viewport.
|
|
205004
205027
|
ToolAdmin._toolEvents = ToolAdmin._toolEvents.filter((ev) => ev.vp !== vp);
|
|
205005
205028
|
}
|
|
@@ -205363,6 +205386,7 @@ class ToolAdmin {
|
|
|
205363
205386
|
toolPromise.then(() => {
|
|
205364
205387
|
if (undefined === this._toolMotionPromise)
|
|
205365
205388
|
return; // Only early return if canceled, result from a previous motion is preferable to showing nothing...
|
|
205389
|
+
this.currentInputState.lastMotionEvent = motion; // Save to use for simulation motion...
|
|
205366
205390
|
// Update decorations when dynamics are inactive...
|
|
205367
205391
|
if (!_IModelApp__WEBPACK_IMPORTED_MODULE_5__.IModelApp.viewManager.inDynamicsMode) {
|
|
205368
205392
|
vp.invalidateDecorations();
|
|
@@ -206104,7 +206128,8 @@ class ToolAdmin {
|
|
|
206104
206128
|
}
|
|
206105
206129
|
/** Can be called by tools to invoke their [[InteractiveTool.onDynamicFrame]] method without requiring a motion event. */
|
|
206106
206130
|
simulateMotionEvent() {
|
|
206107
|
-
|
|
206131
|
+
// NOTE: Prefer last resolved motion over current cursor location which could be out of the view, or moved from last AccuSnap etc.
|
|
206132
|
+
this.updateDynamics(this.currentInputState.lastMotionEvent, undefined, true);
|
|
206108
206133
|
}
|
|
206109
206134
|
/** @internal */
|
|
206110
206135
|
setIncompatibleViewportCursor(restore) {
|
|
@@ -329483,7 +329508,7 @@ class TestContext {
|
|
|
329483
329508
|
this.initializeRpcInterfaces({ title: this.settings.Backend.name, version: this.settings.Backend.version });
|
|
329484
329509
|
const iModelClient = new imodels_client_management_1.IModelsClient({ api: { baseUrl: `https://${process.env.IMJS_URL_PREFIX ?? ""}api.bentley.com/imodels` } });
|
|
329485
329510
|
await core_frontend_1.NoRenderApp.startup({
|
|
329486
|
-
applicationVersion: "5.1.0-dev.
|
|
329511
|
+
applicationVersion: "5.1.0-dev.9",
|
|
329487
329512
|
applicationId: this.settings.gprid,
|
|
329488
329513
|
authorizationClient: new frontend_1.TestFrontendAuthorizationClient(this.serviceAuthToken),
|
|
329489
329514
|
hubAccess: new imodels_access_frontend_1.FrontendIModelsAccess(iModelClient),
|
|
@@ -354551,7 +354576,7 @@ var loadLanguages = instance.loadLanguages;
|
|
|
354551
354576
|
/***/ ((module) => {
|
|
354552
354577
|
|
|
354553
354578
|
"use strict";
|
|
354554
|
-
module.exports = /*#__PURE__*/JSON.parse('{"name":"@itwin/core-frontend","version":"5.1.0-dev.
|
|
354579
|
+
module.exports = /*#__PURE__*/JSON.parse('{"name":"@itwin/core-frontend","version":"5.1.0-dev.9","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 ES2022 --outDir lib/esm","clean":"rimraf -g 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","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:*","@itwin/core-bentley":"workspace:*","@itwin/core-common":"workspace:*","@itwin/core-geometry":"workspace:*","@itwin/core-orbitgt":"workspace:*","@itwin/core-quantity":"workspace:*","@itwin/ecschema-metadata":"workspace:*","@itwin/ecschema-rpcinterface-common":"workspace:*"},"//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/ecschema-metadata":"workspace:*","@itwin/ecschema-rpcinterface-common":"workspace:*","@itwin/eslint-plugin":"5.0.0-dev.1","@types/chai-as-promised":"^7","@vitest/browser":"^3.0.6","@vitest/coverage-v8":"^3.0.6","cpx2":"^8.0.0","eslint":"^9.13.0","glob":"^10.3.12","playwright":"~1.47.1","rimraf":"^6.0.1","source-map-loader":"^5.0.0","typescript":"~5.6.2","typemoq":"^2.1.0","vitest":"^3.0.6","vite-multiple-assets":"^1.3.1","vite-plugin-static-copy":"2.2.0","webpack":"^5.97.1"},"//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/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"}}');
|
|
354555
354580
|
|
|
354556
354581
|
/***/ }),
|
|
354557
354582
|
|