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.

46 lines (45 loc) 2.09 kB
import { RotatedRectangleF } from "@aurigma/design-atoms-model"; export declare enum GripsResizeType { increaseRight = "increaseRight", decreaseRight = "decreaseRight", increaseLeft = "increaseLeft", decreaseLeft = "decreaseLeft", increaseTop = "increaseTop", decreaseTop = "decreaseTop", increaseBottom = "increaseBottom", decreaseBottom = "decreaseBottom", cornerTopLeftIncrease = "cornerTopLeftIncrease", cornerTopLeftDecrease = "cornerTopLeftDecrease", cornerTopRightIncrease = "cornerTopRightIncrease", cornerTopRightDecrease = "cornerTopRightDecrease", cornerBottomLeftIncrease = "cornerBottomLeftIncrease", cornerBottomLeftDecrease = "cornerBottomLeftDecrease", cornerBottomRightIncrease = "cornerBottomRightIncrease", cornerBottomRightDecrease = "cornerBottomRightDecrease", none = "none" } export declare class ResizeHelper { static isLeftResizeGrip(index: number): boolean; static isTopResizeGrip(index: number): boolean; static isRightResizeGrip(index: number): boolean; static isBottomResizeGrip(index: number): boolean; static isCornerResizeGrip(index: number): boolean; static isEdgeResizeGrip(index: number): boolean; static isTopLeftResizeGrip(index: number): boolean; static isTopRightResizeGrip(index: number): boolean; static isBottomRightResizeGrip(index: number): boolean; static isBottomLeftResizeGrip(index: number): boolean; static geTypeOfResizeByGrips(currentRect: RotatedRectangleF, prevRect: RotatedRectangleF, resizeIndex: number): GripsResizeType; static getTypeResize(currentRect: RotatedRectangleF, prevRect: RotatedRectangleF): ResizeType; } export declare enum ResizeType { incHeight = "incHeight", decHeight = "decHeight", incWidth = "incWidth", decWidth = "decWidth", incHeightAndWidth = "incHeightAndWidth", decHeightAndWidth = "decHeightAndWidth", incWidthAndDecHeight = "incWidthAndDecHeight", incHeightAndDecWidth = "incHeightAndDecWidth", none = "none" }