@itwin/core-frontend 5.9.0-dev.9 → 5.9.1
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/CHANGELOG.md +37 -1
- package/lib/cjs/BriefcaseConnection.d.ts +2 -2
- package/lib/cjs/BriefcaseConnection.js +2 -2
- package/lib/cjs/BriefcaseConnection.js.map +1 -1
- package/lib/cjs/PerModelCategoryVisibility.d.ts.map +1 -1
- package/lib/cjs/PerModelCategoryVisibility.js +83 -81
- package/lib/cjs/PerModelCategoryVisibility.js.map +1 -1
- package/lib/cjs/SpatialViewState.d.ts.map +1 -1
- package/lib/cjs/SpatialViewState.js +3 -1
- package/lib/cjs/SpatialViewState.js.map +1 -1
- package/lib/cjs/ViewState.d.ts +32 -0
- package/lib/cjs/ViewState.d.ts.map +1 -1
- package/lib/cjs/ViewState.js +41 -4
- package/lib/cjs/ViewState.js.map +1 -1
- package/lib/cjs/internal/render/webgl/FrustumUniforms.d.ts.map +1 -1
- package/lib/cjs/internal/render/webgl/FrustumUniforms.js.map +1 -1
- package/lib/cjs/internal/render/webgl/RenderCommands.js.map +1 -1
- package/lib/cjs/quantity-formatting/AlternateUnitLabels.d.ts +8 -0
- package/lib/cjs/quantity-formatting/AlternateUnitLabels.d.ts.map +1 -0
- package/lib/cjs/quantity-formatting/AlternateUnitLabels.js +26 -0
- package/lib/cjs/quantity-formatting/AlternateUnitLabels.js.map +1 -0
- package/lib/cjs/quantity-formatting/QuantityFormatter.d.ts +119 -22
- package/lib/cjs/quantity-formatting/QuantityFormatter.d.ts.map +1 -1
- package/lib/cjs/quantity-formatting/QuantityFormatter.js +271 -65
- package/lib/cjs/quantity-formatting/QuantityFormatter.js.map +1 -1
- package/lib/cjs/tile/GltfReader.js.map +1 -1
- package/lib/cjs/tile/map/MapLayerFormatRegistry.js.map +1 -1
- package/lib/cjs/tools/PrimitiveTool.d.ts +1 -1
- package/lib/cjs/tools/PrimitiveTool.js +1 -1
- package/lib/cjs/tools/PrimitiveTool.js.map +1 -1
- package/lib/cjs/tools/ToolAdmin.d.ts +16 -1
- package/lib/cjs/tools/ToolAdmin.d.ts.map +1 -1
- package/lib/cjs/tools/ToolAdmin.js +52 -5
- package/lib/cjs/tools/ToolAdmin.js.map +1 -1
- package/lib/cjs/tools/ToolSettings.d.ts +4 -0
- package/lib/cjs/tools/ToolSettings.d.ts.map +1 -1
- package/lib/cjs/tools/ToolSettings.js +4 -0
- package/lib/cjs/tools/ToolSettings.js.map +1 -1
- package/lib/esm/BriefcaseConnection.d.ts +2 -2
- package/lib/esm/BriefcaseConnection.js +2 -2
- package/lib/esm/BriefcaseConnection.js.map +1 -1
- package/lib/esm/PerModelCategoryVisibility.d.ts.map +1 -1
- package/lib/esm/PerModelCategoryVisibility.js +84 -82
- package/lib/esm/PerModelCategoryVisibility.js.map +1 -1
- package/lib/esm/SpatialViewState.d.ts.map +1 -1
- package/lib/esm/SpatialViewState.js +3 -1
- package/lib/esm/SpatialViewState.js.map +1 -1
- package/lib/esm/ViewState.d.ts +32 -0
- package/lib/esm/ViewState.d.ts.map +1 -1
- package/lib/esm/ViewState.js +42 -5
- package/lib/esm/ViewState.js.map +1 -1
- package/lib/esm/internal/render/webgl/FrustumUniforms.d.ts.map +1 -1
- package/lib/esm/internal/render/webgl/FrustumUniforms.js.map +1 -1
- package/lib/esm/internal/render/webgl/RenderCommands.js.map +1 -1
- package/lib/esm/quantity-formatting/AlternateUnitLabels.d.ts +8 -0
- package/lib/esm/quantity-formatting/AlternateUnitLabels.d.ts.map +1 -0
- package/lib/esm/quantity-formatting/AlternateUnitLabels.js +23 -0
- package/lib/esm/quantity-formatting/AlternateUnitLabels.js.map +1 -0
- package/lib/esm/quantity-formatting/QuantityFormatter.d.ts +119 -22
- package/lib/esm/quantity-formatting/QuantityFormatter.d.ts.map +1 -1
- package/lib/esm/quantity-formatting/QuantityFormatter.js +269 -63
- package/lib/esm/quantity-formatting/QuantityFormatter.js.map +1 -1
- package/lib/esm/tile/GltfReader.js.map +1 -1
- package/lib/esm/tile/map/MapLayerFormatRegistry.js.map +1 -1
- package/lib/esm/tools/PrimitiveTool.d.ts +1 -1
- package/lib/esm/tools/PrimitiveTool.js +1 -1
- package/lib/esm/tools/PrimitiveTool.js.map +1 -1
- package/lib/esm/tools/ToolAdmin.d.ts +16 -1
- package/lib/esm/tools/ToolAdmin.d.ts.map +1 -1
- package/lib/esm/tools/ToolAdmin.js +52 -5
- package/lib/esm/tools/ToolAdmin.js.map +1 -1
- package/lib/esm/tools/ToolSettings.d.ts +4 -0
- package/lib/esm/tools/ToolSettings.d.ts.map +1 -1
- package/lib/esm/tools/ToolSettings.js +4 -0
- package/lib/esm/tools/ToolSettings.js.map +1 -1
- package/lib/public/scripts/parse-imdl-worker.js +1 -1
- package/lib/workers/webpack/parse-imdl-worker.js +1 -1
- package/package.json +20 -20
- package/lib/cjs/quantity-formatting/BasicUnitsProvider.d.ts +0 -38
- package/lib/cjs/quantity-formatting/BasicUnitsProvider.d.ts.map +0 -1
- package/lib/cjs/quantity-formatting/BasicUnitsProvider.js +0 -160
- package/lib/cjs/quantity-formatting/BasicUnitsProvider.js.map +0 -1
- package/lib/esm/quantity-formatting/BasicUnitsProvider.d.ts +0 -38
- package/lib/esm/quantity-formatting/BasicUnitsProvider.d.ts.map +0 -1
- package/lib/esm/quantity-formatting/BasicUnitsProvider.js +0 -155
- package/lib/esm/quantity-formatting/BasicUnitsProvider.js.map +0 -1
|
@@ -76,5 +76,9 @@ export declare class ToolSettings {
|
|
|
76
76
|
* @beta
|
|
77
77
|
*/
|
|
78
78
|
static enableVolumeSelection: boolean;
|
|
79
|
+
/** If true, pressing Escape key sets focus to Home to allow shortcuts to be used.
|
|
80
|
+
* @beta
|
|
81
|
+
*/
|
|
82
|
+
static escapeMovesFocusToHome: boolean;
|
|
79
83
|
}
|
|
80
84
|
//# sourceMappingURL=ToolSettings.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Tool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;IACnC,mFAAmF;IACnF,OAAc,aAAa,SAAO;IAClC,sEAAsE;IACtE,OAAc,eAAe,SAAM;IACnC,sEAAsE;IACtE,OAAc,eAAe,SAAO;IACpC,6HAA6H;IAC7H,OAAc,qBAAqB,SAA0B;IAC7D,4EAA4E;IAC5E,OAAc,WAAW,SAAO;IAChC,kDAAkD;IAClD,OAAc,SAAS,SAAM;IAC7B,iDAAiD;IACjD,OAAc,cAAc,SAAO;IACnC,mHAAmH;IACnH,OAAc,cAAc;QAC1B,8BAA8B;;QAE9B,yHAAyH;;QAEzH,qFAAqF;;MAErF;IACF,2FAA2F;IAC3F,OAAc,4BAA4B,SAAM;IAChD;;;OAGG;IACH,OAAc,qBAAqB,UAAS;IAC5C;;MAEE;IACF,OAAc,sBAAsB,UAAQ;CAC7C"}
|
|
@@ -80,5 +80,9 @@ export class ToolSettings {
|
|
|
80
80
|
* @beta
|
|
81
81
|
*/
|
|
82
82
|
static enableVolumeSelection = false;
|
|
83
|
+
/** If true, pressing Escape key sets focus to Home to allow shortcuts to be used.
|
|
84
|
+
* @beta
|
|
85
|
+
*/
|
|
86
|
+
static escapeMovesFocusToHome = true;
|
|
83
87
|
}
|
|
84
88
|
//# sourceMappingURL=ToolSettings.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ToolSettings.js","sourceRoot":"","sources":["../../../src/tools/ToolSettings.ts"],"names":[],"mappings":"AAAA;;;+FAG+F;AAC/F;;GAEG;AAEH,OAAO,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAC;AACjD,OAAO,EAAE,KAAK,EAAE,QAAQ,EAAE,MAAM,sBAAsB,CAAC;AAEvD;;;GAGG;AACH,MAAM,OAAO,YAAY;IACvB,6DAA6D;IACtD,MAAM,CAAC,gBAAgB,GAAG,UAAU,CAAC,gBAAgB,CAAC,GAAG,CAAC,CAAC;IAClE,kEAAkE;IAC3D,MAAM,CAAC,kBAAkB,GAAG,UAAU,CAAC,gBAAgB,CAAC,GAA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,sEAAsE;IAC/D,MAAM,CAAC,eAAe,GAAG,GAAG,CAAC;IACpC,6HAA6H;IACtH,MAAM,CAAC,qBAAqB,GAAG,QAAQ,CAAC,aAAa,CAAC;IAC7D,4EAA4E;IACrE,MAAM,CAAC,WAAW,GAAG,GAAG,CAAC;IAChC,kDAAkD;IAC3C,MAAM,CAAC,SAAS,GAAG,EAAE,CAAC;IAC7B,iDAAiD;IAC1C,MAAM,CAAC,cAAc,GAAG,GAAG,CAAC;IACnC,mHAAmH;IAC5G,MAAM,CAAC,cAAc,GAAG;QAC7B,8BAA8B;QAC9B,OAAO,EAAE,IAAI;QACb,yHAAyH;QACzH,OAAO,EAAE,GAAG;QACZ,qFAAqF;QACrF,QAAQ,EAAE,UAAU,CAAC,gBAAgB,CAAC,GAAG,CAAC;KAC3C,CAAC;IACF,2FAA2F;IACpF,MAAM,CAAC,4BAA4B,GAAG,EAAE,CAAC;IAChD;;;OAGG;IACI,MAAM,CAAC,qBAAqB,GAAG,KAAK,CAAC","sourcesContent":["/*---------------------------------------------------------------------------------------------\n* Copyright (c) Bentley Systems, Incorporated. All rights reserved.\n* See LICENSE.md in the project root for license terms and full copyright notice.\n*--------------------------------------------------------------------------------------------*/\n/** @packageDocumentation\n * @module Tools\n */\n\nimport { BeDuration } from \"@itwin/core-bentley\";\nimport { Angle, Constant } from \"@itwin/core-geometry\";\n\n/** Settings that control the behavior of built-in tools. Applications may modify these values.\n * @public\n * @extensions\n */\nexport class ToolSettings {\n /** Two tap must be within this period to be a double tap. */\n public static doubleTapTimeout = BeDuration.fromMilliseconds(250);\n /** Two clicks must be within this period to be a double click. */\n public static doubleClickTimeout = BeDuration.fromMilliseconds(500);\n /** Number of screen inches of movement allowed between clicks to still qualify as a double-click. */\n public static doubleClickToleranceInches = 0.05;\n /** @beta Use virtual cursor to help with locating elements using touch input. By default it's only enabled for snapping. */\n public static enableVirtualCursorForLocate = false;\n /** If true, view rotation tool keeps the up vector (worldZ) aligned with screenY. */\n public static preserveWorldUp = true;\n /** Delay with a touch on the surface before a move operation begins. */\n public static touchMoveDelay = BeDuration.fromMilliseconds(50);\n /** Delay with the mouse down before a drag operation begins. */\n public static startDragDelay = BeDuration.fromMilliseconds(110);\n /** Distance in screen inches a touch point must move before being considered motion. */\n public static touchMoveDistanceInches = 0.1;\n /** Distance in screen inches the cursor must move before a drag operation begins. */\n public static startDragDistanceInches = 0.15;\n /** Distance in screen inches touch points must move apart to be considered a change in zoom scale. */\n public static touchZoomChangeThresholdInches = 0.20;\n /** Radius in screen inches to search for elements that anchor viewing operations. */\n public static viewToolPickRadiusInches = 0.20;\n /** Camera angle enforced for walk tool. */\n public static walkCameraAngle = Angle.createDegrees(75.6);\n /** Whether the walk tool enforces worldZ be aligned with screenY */\n public static walkEnforceZUp = false;\n /** Speed, in meters per second, for the walk tool. */\n public static walkVelocity = 3.5;\n /** @beta Integer increment used to compute a walkVelocity multiplier for the look and move tool, capped at 10x */\n public static walkVelocityChange = 0;\n /** Whether the walk tool requests pointer lock to hide the cursor for mouse look */\n public static walkRequestPointerLock = true;\n /** @beta Whether the look and move tool detects collisions while moving forward */\n public static walkCollisions = false;\n /** @beta Whether the look and move tool adjusts the camera height for stairs/ramps when collisions are enabled */\n public static walkDetectFloor = false;\n /** @beta Maximum step height in meters above floor/ground to use when floor detection is enabled */\n public static walkStepHeight = 0.3;\n /** @beta Camera height in meters above floor/ground to use for set up walk tool */\n public static walkEyeHeight = 1.6;\n /** Scale factor applied for wheel events with \"per-line\" modifier. */\n public static wheelLineFactor = 40;\n /** Scale factor applied for wheel events with \"per-page\" modifier. */\n public static wheelPageFactor = 120;\n /** When the zoom-with-wheel tool (with camera enabled) gets closer than this distance to an obstacle, it \"bumps\" through. */\n public static wheelZoomBumpDistance = Constant.oneCentimeter;\n /** the speed to scroll for the \"scroll view\" tool (distance per second). */\n public static scrollSpeed = .75;\n /** the speed to zoom for the \"zoom view\" tool. */\n public static zoomSpeed = 10;\n /** Scale factor for zooming with mouse wheel. */\n public static wheelZoomRatio = 1.5;\n /** Parameters for viewing operations with *inertia* (i.e. they continue briefly if used with a throwing action) */\n public static viewingInertia = {\n /** Flag to enable inertia. */\n enabled: true,\n /** How quickly the inertia decays. The smaller the damping value the faster the inertia decays. Must be less than 1.0 */\n damping: .96,\n /** Maximum duration of the inertia operation. Important when frame rates are low. */\n duration: BeDuration.fromMilliseconds(500),\n };\n /** Maximum number of times in a second the accuSnap tool's onMotion function is called. */\n public static maxOnMotionSnapCallPerSecond = 15;\n /** If true, drag box selection will accept spatial elements that are inside or overlap a clip volume instead of only what is visible in the view.\n * @note Enabling is not recommended for web applications.\n * @beta\n */\n public static enableVolumeSelection = false;\n}\n"]}
|
|
1
|
+
{"version":3,"file":"ToolSettings.js","sourceRoot":"","sources":["../../../src/tools/ToolSettings.ts"],"names":[],"mappings":"AAAA;;;+FAG+F;AAC/F;;GAEG;AAEH,OAAO,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAC;AACjD,OAAO,EAAE,KAAK,EAAE,QAAQ,EAAE,MAAM,sBAAsB,CAAC;AAEvD;;;GAGG;AACH,MAAM,OAAO,YAAY;IACvB,6DAA6D;IACtD,MAAM,CAAC,gBAAgB,GAAG,UAAU,CAAC,gBAAgB,CAAC,GAAG,CAAC,CAAC;IAClE,kEAAkE;IAC3D,MAAM,CAAC,kBAAkB,GAAG,UAAU,CAAC,gBAAgB,CAAC,GAAG,CAAC,CAAC;IACpE,sGAAsG;IAC/F,MAAM,CAAC,0BAA0B,GAAG,IAAI,CAAC;IAChD,4HAA4H;IACrH,MAAM,CAAC,4BAA4B,GAAG,KAAK,CAAC;IACnD,qFAAqF;IAC9E,MAAM,CAAC,eAAe,GAAG,IAAI,CAAC;IACrC,wEAAwE;IACjE,MAAM,CAAC,cAAc,GAAG,UAAU,CAAC,gBAAgB,CAAC,EAAE,CAAC,CAAC;IAC/D,gEAAgE;IACzD,MAAM,CAAC,cAAc,GAAG,UAAU,CAAC,gBAAgB,CAAC,GAAG,CAAC,CAAC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AAO,EAAE,IAAI;QACb,yHAAyH;QACzH,OAAO,EAAE,GAAG;QACZ,qFAAqF;QACrF,QAAQ,EAAE,UAAU,CAAC,gBAAgB,CAAC,GAAG,CAAC;KAC3C,CAAC;IACF,2FAA2F;IACpF,MAAM,CAAC,4BAA4B,GAAG,EAAE,CAAC;IAChD;;;OAGG;IACI,MAAM,CAAC,qBAAqB,GAAG,KAAK,CAAC;IAC5C;;MAEE;IACK,MAAM,CAAC,sBAAsB,GAAG,IAAI,CAAC","sourcesContent":["/*---------------------------------------------------------------------------------------------\n* Copyright (c) Bentley Systems, Incorporated. All rights reserved.\n* See LICENSE.md in the project root for license terms and full copyright notice.\n*--------------------------------------------------------------------------------------------*/\n/** @packageDocumentation\n * @module Tools\n */\n\nimport { BeDuration } from \"@itwin/core-bentley\";\nimport { Angle, Constant } from \"@itwin/core-geometry\";\n\n/** Settings that control the behavior of built-in tools. Applications may modify these values.\n * @public\n * @extensions\n */\nexport class ToolSettings {\n /** Two tap must be within this period to be a double tap. */\n public static doubleTapTimeout = BeDuration.fromMilliseconds(250);\n /** Two clicks must be within this period to be a double click. */\n public static doubleClickTimeout = BeDuration.fromMilliseconds(500);\n /** Number of screen inches of movement allowed between clicks to still qualify as a double-click. */\n public static doubleClickToleranceInches = 0.05;\n /** @beta Use virtual cursor to help with locating elements using touch input. By default it's only enabled for snapping. */\n public static enableVirtualCursorForLocate = false;\n /** If true, view rotation tool keeps the up vector (worldZ) aligned with screenY. */\n public static preserveWorldUp = true;\n /** Delay with a touch on the surface before a move operation begins. */\n public static touchMoveDelay = BeDuration.fromMilliseconds(50);\n /** Delay with the mouse down before a drag operation begins. */\n public static startDragDelay = BeDuration.fromMilliseconds(110);\n /** Distance in screen inches a touch point must move before being considered motion. */\n public static touchMoveDistanceInches = 0.1;\n /** Distance in screen inches the cursor must move before a drag operation begins. */\n public static startDragDistanceInches = 0.15;\n /** Distance in screen inches touch points must move apart to be considered a change in zoom scale. */\n public static touchZoomChangeThresholdInches = 0.20;\n /** Radius in screen inches to search for elements that anchor viewing operations. */\n public static viewToolPickRadiusInches = 0.20;\n /** Camera angle enforced for walk tool. */\n public static walkCameraAngle = Angle.createDegrees(75.6);\n /** Whether the walk tool enforces worldZ be aligned with screenY */\n public static walkEnforceZUp = false;\n /** Speed, in meters per second, for the walk tool. */\n public static walkVelocity = 3.5;\n /** @beta Integer increment used to compute a walkVelocity multiplier for the look and move tool, capped at 10x */\n public static walkVelocityChange = 0;\n /** Whether the walk tool requests pointer lock to hide the cursor for mouse look */\n public static walkRequestPointerLock = true;\n /** @beta Whether the look and move tool detects collisions while moving forward */\n public static walkCollisions = false;\n /** @beta Whether the look and move tool adjusts the camera height for stairs/ramps when collisions are enabled */\n public static walkDetectFloor = false;\n /** @beta Maximum step height in meters above floor/ground to use when floor detection is enabled */\n public static walkStepHeight = 0.3;\n /** @beta Camera height in meters above floor/ground to use for set up walk tool */\n public static walkEyeHeight = 1.6;\n /** Scale factor applied for wheel events with \"per-line\" modifier. */\n public static wheelLineFactor = 40;\n /** Scale factor applied for wheel events with \"per-page\" modifier. */\n public static wheelPageFactor = 120;\n /** When the zoom-with-wheel tool (with camera enabled) gets closer than this distance to an obstacle, it \"bumps\" through. */\n public static wheelZoomBumpDistance = Constant.oneCentimeter;\n /** the speed to scroll for the \"scroll view\" tool (distance per second). */\n public static scrollSpeed = .75;\n /** the speed to zoom for the \"zoom view\" tool. */\n public static zoomSpeed = 10;\n /** Scale factor for zooming with mouse wheel. */\n public static wheelZoomRatio = 1.5;\n /** Parameters for viewing operations with *inertia* (i.e. they continue briefly if used with a throwing action) */\n public static viewingInertia = {\n /** Flag to enable inertia. */\n enabled: true,\n /** How quickly the inertia decays. The smaller the damping value the faster the inertia decays. Must be less than 1.0 */\n damping: .96,\n /** Maximum duration of the inertia operation. Important when frame rates are low. */\n duration: BeDuration.fromMilliseconds(500),\n };\n /** Maximum number of times in a second the accuSnap tool's onMotion function is called. */\n public static maxOnMotionSnapCallPerSecond = 15;\n /** If true, drag box selection will accept spatial elements that are inside or overlap a clip volume instead of only what is visible in the view.\n * @note Enabling is not recommended for web applications.\n * @beta\n */\n public static enableVolumeSelection = false;\n /** If true, pressing Escape key sets focus to Home to allow shortcuts to be used.\n * @beta\n */\n public static escapeMovesFocusToHome = true;\n}\n"]}
|