UNPKG

@gorpacrate/core-graphics

Version:

A core library for creating shape-based graphic editors

26 lines (25 loc) 1.35 kB
import { ISceneMode } from '../declarations/modes'; export * from '../declarations/modes'; export declare function isShapeSelected(mode: ISceneMode, id: string): boolean; export declare function hasSelectedShapes(mode: ISceneMode): boolean; export declare function getSelectedShapesIds(mode: ISceneMode): string[]; export declare function getRubberBandSelectedShapes(mode: ISceneMode): string[]; export declare function hasSubSelectedShape(mode: ISceneMode): boolean; export declare function getSubSelectedShapeId(mode: ISceneMode): string | undefined; export declare function isShapeBeingDrawn(mode: ISceneMode): boolean; export declare function getDrawnShapeId(mode: ISceneMode): string | undefined; export declare function getMovedShapesIds(mode: ISceneMode): string[]; export declare function hasShapesBeingTransformed(mode: ISceneMode): boolean; export declare function getTransformedShapeIds(mode: ISceneMode): string[]; export interface IVerboseModeInfo { selectedShapes: boolean; selectedShapesIds: string[]; rubberBandSelectedShapesIds: string[]; subSelectedShape: boolean; subSelectedShapeId: string | void; drawingShape: boolean; drawnShapeId: string | void; transformingShapes: boolean; transformedShapesIds: string[]; } export declare function getVerboseModeInfo(mode: ISceneMode): IVerboseModeInfo;