@gorpacrate/core-graphics
Version:
A core library for creating shape-based graphic editors
9 lines (8 loc) • 748 B
TypeScript
import { IPoint } from '../declarations';
import { IHistoryEvent, IPersistedHistoryEvent } from '../history/history-event';
import { ICompressedHistoryEvent, ICompressedPersistedHistoryEvent, ICompressedPointsArray } from './compress-declarations';
export declare function compressPointsArray(points: IPoint[]): ICompressedPointsArray;
export declare function decompressPointsArray(points: ICompressedPointsArray): IPoint[];
export declare function compressHistoryEvent(pEv: IPersistedHistoryEvent): ICompressedPersistedHistoryEvent;
export declare function decompressHistoryEvent(pEv: ICompressedPersistedHistoryEvent): IPersistedHistoryEvent;
export declare function decompressUnpersistedHistoryEvent(ev: ICompressedHistoryEvent): IHistoryEvent;