/** @packageDocumentation * @module Widget */ import "./ResizeGrip.scss"; import * as React from "react"; import { CommonProps, PointProps, RectangleProps } from "@bentley/ui-core"; /** Available resize directions of resize grip. * @alpha */ export declare enum ResizeDirection { EastWest = 0, NorthSouth = 1, NorthEast_SouthWest = 2, NorthWest_SouthEast = 3 } /** Helpers for [[ResizeDirection]]. * @alpha */ export declare class ResizeDirectionHelpers { /** Class name of [[ResizeDirection.EastWest]] */ static readonly EW_CLASS_NAME = "nz-direction-ew"; /** Class name of [[ResizeDirection.NorthSouth]] */ static readonly NS_CLASS_NAME = "nz-direction-ns"; /** Class name of [[ResizeDirection.NorthEast_SouthWest]] */ static readonly NE_SW_CLASS_NAME = "nz-direction-ne-sw"; /** Class name of [[ResizeDirection.NorthWest_SouthEast]] */ static readonly NW_SE_CLASS_NAME = "nz-direction-nw-se"; /** @returns Returns class name of specified [[ResizeDirection]] */ static getCssClassName(direction: ResizeDirection): string; } /** Arguments used in resize actions of [[ResizeGrip]] component. * @alpha */ export interface ResizeGripResizeArgs { /** Pointer position. */ readonly position: PointProps; /** Grip bounds. */ readonly bounds: RectangleProps; } /** Properties of [[ResizeGrip]] component. * @alpha */ export interface ResizeGripProps extends CommonProps { /** Function called when grip is clicked. */ onClick?: () => void; /** Function called when grip is resized. */ onResize?: (args: ResizeGripResizeArgs) => void; /** Function called when resize action is ended. */ onResizeEnd?: (args: ResizeGripResizeArgs) => void; /** Function called when resize action is started. */ onResizeStart?: (args: ResizeGripResizeArgs) => void; /** Available resize directions of resize grip. */ direction: ResizeDirection; } interface ResizeGripState { isPointerDown: boolean; } /** Resize grip used by [[Stacked]] component. * @alpha */ export declare class ResizeGrip extends React.PureComponent { private _grip; private _isResizing; private _movedBy; private _lastPosition; /** @internal */ readonly state: ResizeGripState; render(): JSX.Element; private _handleClick; private _handlePointerDown; private _handlePointerUp; private _handlePointerMove; } export {}; //# sourceMappingURL=ResizeGrip.d.ts.map