@gorpacrate/core-graphics
Version:
A core library for creating shape-based graphic editors
17 lines (16 loc) • 618 B
TypeScript
import { IEditorEvent } from '../editor-events';
import { IEditorGridState } from '../editor-state';
export interface IEditorGridEvent extends IEditorEvent {
subType: EditorGridEventType;
}
export declare enum EditorGridEventType {
SetGrid = 0
}
export declare function isEditorGridEvent(base: IEditorEvent): base is IEditorGridEvent;
export interface ISetGridEvent extends IEditorGridEvent {
payload: {
value: IEditorGridState;
};
}
export declare function isSetGridEvent(base: IEditorGridEvent): base is ISetGridEvent;
export declare function setGrid(value: IEditorGridState): ISetGridEvent;