Skip to content

Commit

Permalink
Merge branch 'master' into rob/ecsql-tests
Browse files Browse the repository at this point in the history
  • Loading branch information
pmconne authored Dec 17, 2024
2 parents 0d6c9b5 + 83c5b50 commit 70d1566
Show file tree
Hide file tree
Showing 56 changed files with 226 additions and 64 deletions.
1 change: 1 addition & 0 deletions common/api/core-frontend.api.md
Original file line number Diff line number Diff line change
Expand Up @@ -404,6 +404,7 @@ export class AccuDraw {
deactivate(): void;
// @internal (undocumented)
decorate(context: DecorateContext): void;
defaultFocusItem(): ItemField;
// @internal (undocumented)
readonly delta: Vector3d;
disableForSession(): void;
Expand Down
10 changes: 10 additions & 0 deletions common/changes/@itwin/core-backend/2024-12-16-18-51.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"changes": [
{
"packageName": "@itwin/core-backend",
"comment": "",
"type": "none"
}
],
"packageName": "@itwin/core-backend"
}
10 changes: 10 additions & 0 deletions common/changes/@itwin/core-backend/2024-12-17-02-07.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"changes": [
{
"packageName": "@itwin/core-backend",
"comment": "",
"type": "none"
}
],
"packageName": "@itwin/core-backend"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"changes": [
{
"packageName": "@itwin/core-frontend",
"comment": "",
"type": "none"
}
],
"packageName": "@itwin/core-frontend"
}
8 changes: 4 additions & 4 deletions common/config/rush/pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion common/config/rush/version-policies.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
{
"policyName": "prerelease-monorepo-lockStep",
"definitionName": "lockStepVersion",
"version": "5.0.0-dev.25",
"version": "5.0.0-dev.26",
"nextBump": "prerelease"
}
]
4 changes: 2 additions & 2 deletions core/backend/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@itwin/core-backend",
"version": "5.0.0-dev.25",
"version": "5.0.0-dev.26",
"description": "iTwin.js backend components",
"main": "lib/cjs/core-backend.js",
"typings": "lib/cjs/core-backend",
Expand Down Expand Up @@ -99,7 +99,7 @@
"webpack": "^5.97.1"
},
"dependencies": {
"@bentley/imodeljs-native": "5.0.17",
"@bentley/imodeljs-native": "5.0.19",
"@itwin/cloud-agnostic-core": "^2.2.4",
"@itwin/core-telemetry": "workspace:*",
"@itwin/object-storage-azure": "^2.2.5",
Expand Down
2 changes: 1 addition & 1 deletion core/bentley/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@itwin/core-bentley",
"version": "5.0.0-dev.25",
"version": "5.0.0-dev.26",
"description": "Bentley JavaScript core components",
"main": "lib/cjs/core-bentley.js",
"module": "lib/esm/core-bentley.js",
Expand Down
2 changes: 1 addition & 1 deletion core/common/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@itwin/core-common",
"version": "5.0.0-dev.25",
"version": "5.0.0-dev.26",
"description": "iTwin.js components common to frontend and backend",
"main": "lib/cjs/core-common.js",
"module": "lib/esm/core-common.js",
Expand Down
2 changes: 1 addition & 1 deletion core/ecschema-editing/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@itwin/ecschema-editing",
"version": "5.0.0-dev.25",
"version": "5.0.0-dev.26",
"description": "ECSchema editing and validation API",
"license": "MIT",
"main": "lib/cjs/ecschema-editing.js",
Expand Down
2 changes: 1 addition & 1 deletion core/ecschema-locaters/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@itwin/ecschema-locaters",
"version": "5.0.0-dev.25",
"version": "5.0.0-dev.26",
"description": "EC Schema file locaters",
"license": "MIT",
"main": "lib/cjs/ecschema-locaters.js",
Expand Down
2 changes: 1 addition & 1 deletion core/ecschema-metadata/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@itwin/ecschema-metadata",
"version": "5.0.0-dev.25",
"version": "5.0.0-dev.26",
"description": "ECObjects core concepts in typescript",
"license": "MIT",
"main": "lib/cjs/ecschema-metadata.js",
Expand Down
2 changes: 1 addition & 1 deletion core/ecschema-rpc/common/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@itwin/ecschema-rpcinterface-common",
"version": "5.0.0-dev.25",
"version": "5.0.0-dev.26",
"description": "Schema RPC Interface common interface",
"main": "lib/cjs/ecschema-rpc-interface.js",
"module": "lib/esm/ecschema-rpc-interface.js",
Expand Down
2 changes: 1 addition & 1 deletion core/ecschema-rpc/impl/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@itwin/ecschema-rpcinterface-impl",
"version": "5.0.0-dev.25",
"version": "5.0.0-dev.26",
"description": "Schema RPC Interface backend implementation",
"main": "lib/cjs/ecschema-rpc-impl.js",
"typings": "lib/cjs/ecschema-rpc-impl",
Expand Down
2 changes: 1 addition & 1 deletion core/ecsql/common/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@itwin/ecsql-common",
"version": "5.0.0-dev.25",
"version": "5.0.0-dev.26",
"description": "ECSql component that can be reference on backend and frontend",
"main": "lib/cjs/ecsql-common.js",
"module": "lib/esm/ecsql-common.js",
Expand Down
2 changes: 1 addition & 1 deletion core/electron/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@itwin/core-electron",
"version": "5.0.0-dev.25",
"version": "5.0.0-dev.26",
"description": "iTwin.js ElectronHost and ElectronApp",
"license": "MIT",
"engines": {
Expand Down
2 changes: 1 addition & 1 deletion core/express-server/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@itwin/express-server",
"version": "5.0.0-dev.25",
"version": "5.0.0-dev.26",
"description": "iTwin.js express utilities",
"main": "lib/cjs/ExpressServer.js",
"typings": "lib/cjs/ExpressServer",
Expand Down
2 changes: 1 addition & 1 deletion core/extension/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@itwin/core-extension",
"version": "5.0.0-dev.25",
"version": "5.0.0-dev.26",
"description": "iTwin.js Extension API",
"type": "module",
"typings": "index.d.ts",
Expand Down
2 changes: 1 addition & 1 deletion core/frontend-devtools/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@itwin/frontend-devtools",
"version": "5.0.0-dev.25",
"version": "5.0.0-dev.26",
"description": "Debug menu and supporting UI widgets",
"main": "lib/cjs/frontend-devtools.js",
"module": "lib/esm/frontend-devtools.js",
Expand Down
2 changes: 1 addition & 1 deletion core/frontend/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@itwin/core-frontend",
"version": "5.0.0-dev.25",
"version": "5.0.0-dev.26",
"description": "iTwin.js frontend components",
"main": "lib/cjs/core-frontend.js",
"module": "lib/esm/core-frontend.js",
Expand Down
21 changes: 13 additions & 8 deletions core/frontend/src/AccuDraw.ts
Original file line number Diff line number Diff line change
Expand Up @@ -292,8 +292,8 @@ export class AccuDraw {
private readonly _angleRoundOff = new RoundOff(); // angle round off enabled and unit
/** @internal */
public readonly flags = new Flags(); // current state flags
private readonly _fieldLocked: boolean[] = []; // locked state of fields
private readonly _keyinStatus: KeyinStatus[] = []; // state of input field
private readonly _fieldLocked: [boolean, boolean, boolean, boolean, boolean] = [false, false, false, false, false]; // locked state of fields
private readonly _keyinStatus: [KeyinStatus, KeyinStatus, KeyinStatus, KeyinStatus, KeyinStatus] = [KeyinStatus.Dynamic, KeyinStatus.Dynamic, KeyinStatus.Dynamic, KeyinStatus.Dynamic, KeyinStatus.Dynamic]; // state of input field
/** @internal */
public readonly savedStateViewTool = new SavedState(); // Restore point for shortcuts/tools...
/** @internal */
Expand Down Expand Up @@ -396,8 +396,12 @@ export class AccuDraw {
/** @internal */
public getKeyinStatus(index: ItemField): KeyinStatus { return this._keyinStatus[index]; }

/** Implement this method to set focus to the AccuDraw UI. */
/** Get whether AccuDraw currently has input focus */
public get hasInputFocus() { return true; }
/** Called to request input focus be set to AccuDraw. Focus is managed by AccuDraw UI. */
public grabInputFocus() { }
/** Get default focus item for the current compass mode */
public defaultFocusItem(): ItemField { return (CompassMode.Polar === this.compassMode ? ItemField.DIST_Item : this.newFocus); }

/** @internal */
public activate(): void {
Expand Down Expand Up @@ -1093,7 +1097,9 @@ export class AccuDraw {
return formattedValue;
}

/** Can be called by sub-classes to get a formatted value to display for an AccuDraw input field */
/** Can be called by sub-classes to get a formatted value to display for an AccuDraw input field
* @see [[onFieldValueChange]]
*/
public getFormattedValueByIndex(index: ItemField): string {
const value = IModelApp.accuDraw.getValueByIndex(index);
if (ItemField.ANGLE_Item === index)
Expand Down Expand Up @@ -1175,7 +1181,7 @@ export class AccuDraw {

/** @internal */
public unlockAllFields(): void {
this.locked = 0;
this.locked = LockedStates.NONE_LOCKED;;

if (CompassMode.Polar === this.compassMode) {
if (this._fieldLocked[ItemField.DIST_Item])
Expand Down Expand Up @@ -1584,6 +1590,7 @@ export class AccuDraw {

/** @internal */
public changeCompassMode(animate: boolean = false): void {
this.unlockAllFields(); // Clear locks for the current mode and send change notifications...
this.setCompassMode(CompassMode.Polar === this.compassMode ? CompassMode.Rectangular : CompassMode.Polar);

const viewport = this.currentView;
Expand Down Expand Up @@ -2266,9 +2273,7 @@ export class AccuDraw {
public onFieldLockChange(_index: ItemField) { }
/** Called after input field value changes */
public onFieldValueChange(_index: ItemField) { }
/** Whether AccuDraw currently has input focus */
public get hasInputFocus() { return true; }
/** Set focus to the specified input field */
/** Called to request focus change to the specified input field */
public setFocusItem(_index: ItemField) { }

private static getMinPolarMag(origin: Point3d): number {
Expand Down
2 changes: 1 addition & 1 deletion core/geometry/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@itwin/core-geometry",
"version": "5.0.0-dev.25",
"version": "5.0.0-dev.26",
"description": "iTwin.js Core Geometry library",
"main": "lib/cjs/core-geometry.js",
"module": "lib/esm/core-geometry.js",
Expand Down
2 changes: 1 addition & 1 deletion core/hypermodeling/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@itwin/hypermodeling-frontend",
"version": "5.0.0-dev.25",
"version": "5.0.0-dev.26",
"description": "iTwin.js hypermodeling package",
"main": "lib/cjs/hypermodeling-frontend.js",
"module": "lib/esm/hypermodeling-frontend.js",
Expand Down
2 changes: 1 addition & 1 deletion core/i18n/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@itwin/core-i18n",
"version": "5.0.0-dev.25",
"version": "5.0.0-dev.26",
"description": "iTwin.js localization code",
"main": "lib/cjs/core-i18n.js",
"module": "lib/esm/core-i18n.js",
Expand Down
2 changes: 1 addition & 1 deletion core/markup/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@itwin/core-markup",
"version": "5.0.0-dev.25",
"version": "5.0.0-dev.26",
"description": "iTwin.js markup package",
"main": "lib/cjs/core-markup.js",
"module": "lib/esm/core-markup.js",
Expand Down
2 changes: 1 addition & 1 deletion core/mobile/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@itwin/core-mobile",
"version": "5.0.0-dev.25",
"version": "5.0.0-dev.26",
"description": "iTwin.js MobileHost and MobileApp",
"license": "MIT",
"engines": {
Expand Down
2 changes: 1 addition & 1 deletion core/orbitgt/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@itwin/core-orbitgt",
"version": "5.0.0-dev.25",
"version": "5.0.0-dev.26",
"description": "",
"main": "lib/cjs/core-orbitgt.js",
"module": "lib/esm/core-orbitgt.js",
Expand Down
2 changes: 1 addition & 1 deletion core/quantity/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@itwin/core-quantity",
"version": "5.0.0-dev.25",
"version": "5.0.0-dev.26",
"description": "Quantity parsing, formatting and conversions for iModel.js",
"main": "lib/cjs/core-quantity.js",
"module": "lib/esm/core-quantity.js",
Expand Down
2 changes: 1 addition & 1 deletion core/telemetry/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@itwin/core-telemetry",
"version": "5.0.0-dev.25",
"version": "5.0.0-dev.26",
"description": "iTwin.js Telemetry Client",
"main": "lib/cjs/core-telemetry.js",
"module": "lib/esm/core-telemetry.js",
Expand Down
2 changes: 1 addition & 1 deletion core/webgl-compatibility/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@itwin/webgl-compatibility",
"version": "5.0.0-dev.25",
"version": "5.0.0-dev.26",
"description": "APIs for determining the level of compatibility of a browser+device with the iTwin.js rendering system.",
"license": "MIT",
"main": "lib/cjs/webgl-compatibility.js",
Expand Down
2 changes: 1 addition & 1 deletion domains/analytical/backend/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@itwin/analytical-backend",
"version": "5.0.0-dev.25",
"version": "5.0.0-dev.26",
"main": "lib/cjs/analytical-backend.js",
"typings": "lib/cjs/analytical-backend",
"license": "MIT",
Expand Down
2 changes: 1 addition & 1 deletion domains/linear-referencing/backend/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@itwin/linear-referencing-backend",
"version": "5.0.0-dev.25",
"version": "5.0.0-dev.26",
"main": "lib/cjs/linear-referencing-backend.js",
"typings": "lib/cjs/linear-referencing-backend",
"license": "MIT",
Expand Down
2 changes: 1 addition & 1 deletion domains/linear-referencing/common/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@itwin/linear-referencing-common",
"version": "5.0.0-dev.25",
"version": "5.0.0-dev.26",
"main": "lib/cjs/linear-referencing-common.js",
"typings": "lib/cjs/linear-referencing-common",
"license": "MIT",
Expand Down
2 changes: 1 addition & 1 deletion domains/physical-material/backend/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@itwin/physical-material-backend",
"version": "5.0.0-dev.25",
"version": "5.0.0-dev.26",
"main": "lib/cjs/physical-material-backend.js",
"typings": "lib/cjs/physical-material-backend",
"license": "MIT",
Expand Down
2 changes: 1 addition & 1 deletion editor/backend/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@itwin/editor-backend",
"version": "5.0.0-dev.25",
"version": "5.0.0-dev.26",
"description": "iTwin.js editor backend",
"main": "lib/cjs/editor-backend.js",
"typings": "lib/cjs/editor-backend",
Expand Down
2 changes: 1 addition & 1 deletion editor/common/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@itwin/editor-common",
"version": "5.0.0-dev.25",
"version": "5.0.0-dev.26",
"description": "iTwin.js editing properties common to frontend and backend",
"main": "lib/cjs/editor-common.js",
"module": "lib/esm/editor-common.js",
Expand Down
2 changes: 1 addition & 1 deletion editor/frontend/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@itwin/editor-frontend",
"version": "5.0.0-dev.25",
"version": "5.0.0-dev.26",
"description": "iTwin.js frontend components",
"main": "lib/cjs/editor-frontend.js",
"module": "lib/esm/editor-frontend.js",
Expand Down
Loading

0 comments on commit 70d1566

Please sign in to comment.