@aurigma/design-atoms
Version:
Design Atoms is a part of Customer's Canvas SDK which allows for manipulating individual design elements through your code.
24 lines (23 loc) • 1.15 kB
TypeScript
import { InteractiveZone, Surface, RectangleF, EventObject, PointF } from "@aurigma/design-atoms-model";
import { IInputManager } from "../../Input/InputManager/IInputManager";
import * as TextWhizz from "@aurigma/text-whizz/TextWhizzJS";
import { IInteractiveZoneStateStyle, IInteractiveZonesStyles } from "./ICanvasStyle";
export interface IInteractiveZonesStateChangedEventArgs {
active: InteractiveZone;
highlighted: InteractiveZone;
}
export interface IInteractiveZonesHandler {
currentSurface: Surface;
stateChangedEvent: EventObject<IInteractiveZonesStateChangedEventArgs>;
interactiveZones: InteractiveZone[];
activeZone: InteractiveZone;
highlightZone: InteractiveZone;
isReady(): boolean;
getZoneStyle(zone: InteractiveZone, isActive: boolean, isHover: boolean): IInteractiveZoneStateStyle;
getZoneBounds(zone: InteractiveZone): RectangleF;
setStyles(styles: IInteractiveZonesStyles): any;
setInputManager(inputManager: IInputManager): any;
setTextWhizz(textWhizz: typeof TextWhizz): any;
setOffset(offset: PointF): any;
getSnapLines(): RectangleF[];
}