UNPKG

@aurigma/design-atoms

Version:

Design Atoms is a part of Customer's Canvas SDK which allows for manipulating individual design elements through your code.

23 lines (22 loc) 898 B
import { Collection, ManipulationPermissions, RotatedRectangleF } from "@aurigma/design-atoms-model"; import { BaseRectangleItemHandler } from "../../ItemHandlers/BaseRectangleItemHandler"; import { ISelectionOptions } from "./ISelectionOptions"; export declare type RectangleSignsType = { x: -1 | 1; y: -1 | 1; }; export interface ISelectionHandler { selectedItemHandlers: Collection<BaseRectangleItemHandler>; currentItemHandler: BaseRectangleItemHandler; parentRectangle: RotatedRectangleF; visibleRectangle: RotatedRectangleF; rectangleSigns: RectangleSignsType; manipulationPermissions: ManipulationPermissions; isRotating: boolean; isDragging: boolean; isResizing: boolean; isIdle: boolean; resizeIndex?: number; getSelectionDrawingParams(): ISelectionOptions; getHighlightRectangles(): RotatedRectangleF[]; }