@itwin/ecschema-rpcinterface-tests 5.1.0-dev.7 → 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 +34 -16
- package/lib/dist/bundled-tests.js.map +1 -1
- package/package.json +16 -16
|
@@ -72027,20 +72027,16 @@ class ECSchemaRpcLocater {
|
|
|
72027
72027
|
return undefined;
|
|
72028
72028
|
}
|
|
72029
72029
|
/**
|
|
72030
|
-
*
|
|
72031
|
-
*
|
|
72032
|
-
* @param
|
|
72033
|
-
* @param
|
|
72030
|
+
* This method is not supported for locating schemas over RPC/HTTP.
|
|
72031
|
+
* Use the asynchronous `getSchema` method instead.
|
|
72032
|
+
* @param _schemaKey Key to look up
|
|
72033
|
+
* @param _matchType How to match key against candidate schemas
|
|
72034
|
+
* @param _context The SchemaContext that will control the lifetime of the schema and holds the schema's references, if they exist.
|
|
72035
|
+
* @throws Error Always throws an error indicating this method is not supported.
|
|
72036
|
+
* @deprecated in 5.0 Use the asynchronous `getSchema` method for schema retrieval.
|
|
72034
72037
|
*/
|
|
72035
|
-
getSchemaSync(
|
|
72036
|
-
|
|
72037
|
-
return props;
|
|
72038
|
-
});
|
|
72039
|
-
const schema = _itwin_ecschema_metadata__WEBPACK_IMPORTED_MODULE_0__.Schema.fromJsonSync(schemaJson, context || new _itwin_ecschema_metadata__WEBPACK_IMPORTED_MODULE_0__.SchemaContext());
|
|
72040
|
-
if (schema !== undefined && schema.schemaKey.matches(schemaKey, matchType)) {
|
|
72041
|
-
return schema;
|
|
72042
|
-
}
|
|
72043
|
-
return undefined;
|
|
72038
|
+
getSchemaSync(_schemaKey, _matchType, _context) {
|
|
72039
|
+
throw new Error("getSchemaSync is not supported. Use the asynchronous getSchema method instead.");
|
|
72044
72040
|
}
|
|
72045
72041
|
}
|
|
72046
72042
|
|
|
@@ -74255,6 +74251,8 @@ class AccuDraw {
|
|
|
74255
74251
|
onFieldKeyinStatusChange(_index) { }
|
|
74256
74252
|
/** Called to request focus change to the specified input field */
|
|
74257
74253
|
setFocusItem(_index) { }
|
|
74254
|
+
/** Called to get the item field that currently has input focus */
|
|
74255
|
+
getFocusItem() { return undefined; }
|
|
74258
74256
|
static getMinPolarMag(origin) {
|
|
74259
74257
|
return (1.0e-12 * (1.0 + origin.magnitude()));
|
|
74260
74258
|
}
|
|
@@ -168043,6 +168041,7 @@ class AccuDrawViewportUI extends _AccuDraw__WEBPACK_IMPORTED_MODULE_1__.AccuDraw
|
|
|
168043
168041
|
this._controls.overlay.remove();
|
|
168044
168042
|
this._controls = undefined;
|
|
168045
168043
|
this.unsuspendToolTips();
|
|
168044
|
+
this.removedControlRect();
|
|
168046
168045
|
}
|
|
168047
168046
|
createControlDiv() {
|
|
168048
168047
|
const div = document.createElement("div");
|
|
@@ -168130,6 +168129,10 @@ class AccuDrawViewportUI extends _AccuDraw__WEBPACK_IMPORTED_MODULE_1__.AccuDraw
|
|
|
168130
168129
|
style.outlineWidth = button.outlineWidth;
|
|
168131
168130
|
return itemLock;
|
|
168132
168131
|
}
|
|
168132
|
+
/** Called after the controls have been removed from the view. */
|
|
168133
|
+
removedControlRect() { }
|
|
168134
|
+
/** Called after the position of the controls in the supplied view is updated. */
|
|
168135
|
+
changedControlRect(_rect, _vp) { }
|
|
168133
168136
|
/** Use to override the position of the controls in the supplied view. */
|
|
168134
168137
|
modifyControlRect(_rect, _vp) { }
|
|
168135
168138
|
/** Return the ViewRect currently occupied by the controls in the supplied view. */
|
|
@@ -168226,6 +168229,8 @@ class AccuDrawViewportUI extends _AccuDraw__WEBPACK_IMPORTED_MODULE_1__.AccuDraw
|
|
|
168226
168229
|
return; // Keep showing at last valid location...
|
|
168227
168230
|
this._controls.div.style.left = `${controlRect.left}px`;
|
|
168228
168231
|
this._controls.div.style.top = `${controlRect.top}px`;
|
|
168232
|
+
this.changedControlRect(controlRect, vp);
|
|
168233
|
+
return;
|
|
168229
168234
|
}
|
|
168230
168235
|
get _isFocusHome() {
|
|
168231
168236
|
return (document.body === document.activeElement);
|
|
@@ -168248,6 +168253,13 @@ class AccuDrawViewportUI extends _AccuDraw__WEBPACK_IMPORTED_MODULE_1__.AccuDraw
|
|
|
168248
168253
|
// Indicate when keyboard shortcuts can't be used (i.e. focus not at AccuDraw or Home) by changing compass to monochrome...
|
|
168249
168254
|
return (this._isFocusHome || this._isFocusAccuDraw);
|
|
168250
168255
|
}
|
|
168256
|
+
/** Get the item field that currently has input focus.
|
|
168257
|
+
*/
|
|
168258
|
+
getFocusItem() {
|
|
168259
|
+
if (!this._isFocusAccuDraw)
|
|
168260
|
+
return undefined;
|
|
168261
|
+
return this._focusItem;
|
|
168262
|
+
}
|
|
168251
168263
|
/** Request to set focus to the specified AccuDraw input field to start entering values.
|
|
168252
168264
|
* The focused input field will be indicated by the background color.
|
|
168253
168265
|
*/
|
|
@@ -175080,6 +175092,7 @@ class CurrentInputState {
|
|
|
175080
175092
|
lastButton = _Tool__WEBPACK_IMPORTED_MODULE_13__.BeButton.Data;
|
|
175081
175093
|
inputSource = _Tool__WEBPACK_IMPORTED_MODULE_13__.InputSource.Unknown;
|
|
175082
175094
|
lastMotion = new _itwin_core_geometry__WEBPACK_IMPORTED_MODULE_1__.Point2d();
|
|
175095
|
+
lastMotionEvent;
|
|
175083
175096
|
lastWheelEvent;
|
|
175084
175097
|
lastTouchStart;
|
|
175085
175098
|
touchTapTimer;
|
|
@@ -175097,7 +175110,7 @@ class CurrentInputState {
|
|
|
175097
175110
|
onStartDrag(button) { this.button[button].isDragging = true; }
|
|
175098
175111
|
onInstallTool() {
|
|
175099
175112
|
this.clearKeyQualifiers();
|
|
175100
|
-
this.lastWheelEvent = undefined;
|
|
175113
|
+
this.lastWheelEvent = this.lastMotionEvent = undefined;
|
|
175101
175114
|
this.lastTouchStart = this.touchTapTimer = this.touchTapCount = undefined;
|
|
175102
175115
|
}
|
|
175103
175116
|
clearKeyQualifiers() { this.qualifiers = _Tool__WEBPACK_IMPORTED_MODULE_13__.BeModifierKeys.None; }
|
|
@@ -175372,6 +175385,9 @@ class ToolAdmin {
|
|
|
175372
175385
|
this.clearMotionPromises();
|
|
175373
175386
|
// make sure tools don't think the cursor is still in this viewport.
|
|
175374
175387
|
this.onMouseLeave(vp);
|
|
175388
|
+
// Invalidate last motion if for this viewport...
|
|
175389
|
+
if (this.currentInputState.lastMotionEvent?.viewport === vp)
|
|
175390
|
+
this.currentInputState.lastMotionEvent = undefined;
|
|
175375
175391
|
// Remove any events associated with this viewport.
|
|
175376
175392
|
ToolAdmin._toolEvents = ToolAdmin._toolEvents.filter((ev) => ev.vp !== vp);
|
|
175377
175393
|
}
|
|
@@ -175735,6 +175751,7 @@ class ToolAdmin {
|
|
|
175735
175751
|
toolPromise.then(() => {
|
|
175736
175752
|
if (undefined === this._toolMotionPromise)
|
|
175737
175753
|
return; // Only early return if canceled, result from a previous motion is preferable to showing nothing...
|
|
175754
|
+
this.currentInputState.lastMotionEvent = motion; // Save to use for simulation motion...
|
|
175738
175755
|
// Update decorations when dynamics are inactive...
|
|
175739
175756
|
if (!_IModelApp__WEBPACK_IMPORTED_MODULE_5__.IModelApp.viewManager.inDynamicsMode) {
|
|
175740
175757
|
vp.invalidateDecorations();
|
|
@@ -176476,7 +176493,8 @@ class ToolAdmin {
|
|
|
176476
176493
|
}
|
|
176477
176494
|
/** Can be called by tools to invoke their [[InteractiveTool.onDynamicFrame]] method without requiring a motion event. */
|
|
176478
176495
|
simulateMotionEvent() {
|
|
176479
|
-
|
|
176496
|
+
// NOTE: Prefer last resolved motion over current cursor location which could be out of the view, or moved from last AccuSnap etc.
|
|
176497
|
+
this.updateDynamics(this.currentInputState.lastMotionEvent, undefined, true);
|
|
176480
176498
|
}
|
|
176481
176499
|
/** @internal */
|
|
176482
176500
|
setIncompatibleViewportCursor(restore) {
|
|
@@ -312422,7 +312440,7 @@ var loadLanguages = instance.loadLanguages;
|
|
|
312422
312440
|
/***/ ((module) => {
|
|
312423
312441
|
|
|
312424
312442
|
"use strict";
|
|
312425
|
-
module.exports = /*#__PURE__*/JSON.parse('{"name":"@itwin/core-frontend","version":"5.1.0-dev.
|
|
312443
|
+
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"}}');
|
|
312426
312444
|
|
|
312427
312445
|
/***/ })
|
|
312428
312446
|
|