1
This commit is contained in:
@@ -8,3 +8,35 @@ export interface WindowFormPos {
|
||||
|
||||
/** 窗口状态 */
|
||||
export type TWindowFormState = 'default' | 'minimized' | 'maximized';
|
||||
|
||||
/** 拖拽方向 */
|
||||
export type ResizeDirection =
|
||||
| 'topLeft'
|
||||
| 'top'
|
||||
| 'topRight'
|
||||
| 'right'
|
||||
| 'bottomRight'
|
||||
| 'bottom'
|
||||
| 'bottomLeft'
|
||||
| 'left'
|
||||
| 'none'
|
||||
|
||||
/** 拖拽状态 */
|
||||
export interface ResizeState {
|
||||
/** 是否正在调整尺寸 */
|
||||
isResizing: boolean
|
||||
/** 调整方向 */
|
||||
direction: ResizeDirection
|
||||
/** 起始鼠标位置 */
|
||||
startX: number
|
||||
/** 起始鼠标位置 */
|
||||
startY: number
|
||||
/** 起始窗体宽度 */
|
||||
startWidth: number
|
||||
/** 起始窗体高度 */
|
||||
startHeight: number
|
||||
/** 起始窗体X坐标 */
|
||||
startXPosition: number
|
||||
/** 起始窗体Y坐标 */
|
||||
startYPosition: number
|
||||
}
|
||||
Reference in New Issue
Block a user