@true-directive/base
Version:
The set of base classes for the TrueDirective Grid
31 lines (30 loc) • 859 B
TypeScript
/**
* Copyright (c) 2018-2019 Aleksey Melnikov, True Directive Company.
* @link https://truedirective.com/
* @license MIT
*/
export declare class UIActionType {
name: string;
constructor(name: string);
static CLICK: UIActionType;
static REORDER_COLUMN: UIActionType;
static RESIZE_COLUMN: UIActionType;
static SELECT: UIActionType;
static ROW_DRAG: UIActionType;
}
export declare class UIAction {
action: UIActionType;
target: any;
x: number;
y: number;
initialized: boolean;
x0: number;
y0: number;
targetWidth: number;
targetOffsetX: number;
targetOffsetY: number;
renderTarget: any;
move(x: number, y: number): boolean;
inItemRect(rect: any, itemRect: any): boolean;
constructor(action: UIActionType, target: any, x: number, y: number);
}