/*---------------------------------------------------------------------------------------------
* Copyright (c) Bentley Systems, Incorporated. All rights reserved.
* See LICENSE.md in the project root for license terms and full copyright notice.
*--------------------------------------------------------------------------------------------*/
/** @packageDocumentation
 * @module Tools
 */
import { BeDuration } from "@itwin/core-bentley";
import { Angle, Constant } from "@itwin/core-geometry";
/** Settings that control the behavior of built-in tools. Applications may modify these values.
 * @public
 * @extensions
 */
export class ToolSettings {
}
/** Two tap must be within this period to be a double tap. */
ToolSettings.doubleTapTimeout = BeDuration.fromMilliseconds(250);
/** Two clicks must be within this period to be a double click. */
ToolSettings.doubleClickTimeout = BeDuration.fromMilliseconds(500);
/** Number of screen inches of movement allowed between clicks to still qualify as a double-click.  */
ToolSettings.doubleClickToleranceInches = 0.05;
/** @beta Use virtual cursor to help with locating elements using touch input. By default it's only enabled for snapping. */
ToolSettings.enableVirtualCursorForLocate = false;
/** If true, view rotation tool keeps the up vector (worldZ) aligned with screenY. */
ToolSettings.preserveWorldUp = true;
/** Delay with a touch on the surface before a move operation begins. */
ToolSettings.touchMoveDelay = BeDuration.fromMilliseconds(50);
/** Delay with the mouse down before a drag operation begins. */
ToolSettings.startDragDelay = BeDuration.fromMilliseconds(110);
/** Distance in screen inches a touch point must move before being considered motion. */
ToolSettings.touchMoveDistanceInches = 0.1;
/** Distance in screen inches the cursor must move before a drag operation begins. */
ToolSettings.startDragDistanceInches = 0.15;
/** Distance in screen inches touch points must move apart to be considered a change in zoom scale. */
ToolSettings.touchZoomChangeThresholdInches = 0.20;
/** Radius in screen inches to search for elements that anchor viewing operations. */
ToolSettings.viewToolPickRadiusInches = 0.20;
/** Camera angle enforced for walk tool. */
ToolSettings.walkCameraAngle = Angle.createDegrees(75.6);
/** Whether the walk tool enforces worldZ be aligned with screenY */
ToolSettings.walkEnforceZUp = false;
/** Speed, in meters per second, for the walk tool. */
ToolSettings.walkVelocity = 3.5;
/** @beta Integer increment used to compute a walkVelocity multiplier for the look and move tool, capped at 10x */
ToolSettings.walkVelocityChange = 0;
/** Whether the walk tool requests pointer lock to hide the cursor for mouse look */
ToolSettings.walkRequestPointerLock = true;
/** @beta Whether the look and move tool detects collisions while moving forward */
ToolSettings.walkCollisions = false;
/** @beta Whether the look and move tool adjusts the camera height for stairs/ramps when collisions are enabled */
ToolSettings.walkDetectFloor = false;
/** @beta Maximum step height in meters above floor/ground to use when floor detection is enabled */
ToolSettings.walkStepHeight = 0.3;
/** @beta Camera height in meters above floor/ground to use for set up walk tool */
ToolSettings.walkEyeHeight = 1.6;
/** Scale factor applied for wheel events with "per-line" modifier. */
ToolSettings.wheelLineFactor = 40;
/** Scale factor applied for wheel events with "per-page" modifier. */
ToolSettings.wheelPageFactor = 120;
/** When the zoom-with-wheel tool (with camera enabled) gets closer than this distance to an obstacle, it "bumps" through. */
ToolSettings.wheelZoomBumpDistance = Constant.oneCentimeter;
/** the speed to scroll for the "scroll view" tool (distance per second). */
ToolSettings.scrollSpeed = .75;
/** the speed to zoom for the "zoom view" tool. */
ToolSettings.zoomSpeed = 10;
/** Scale factor for zooming with mouse wheel. */
ToolSettings.wheelZoomRatio = 1.5;
/** Parameters for viewing operations with *inertia* (i.e. they continue briefly if used with a throwing action) */
ToolSettings.viewingInertia = {
    /** Flag to enable inertia. */
    enabled: true,
    /** How quickly the inertia decays. The smaller the damping value the faster the inertia decays. Must be less than 1.0 */
    damping: .96,
    /** Maximum duration of the inertia operation. Important when frame rates are low. */
    duration: BeDuration.fromMilliseconds(500),
};
/** Maximum number of times in a second the accuSnap tool's onMotion function is called. */
ToolSettings.maxOnMotionSnapCallPerSecond = 15;
//# sourceMappingURL=ToolSettings.js.map