UNPKG

hx-white-board

Version:

```bash npm install hx-white-board ```

13 lines (12 loc) 443 B
import { Object as IObject } from "fabric/fabric-impl"; /** * compare oldObjects and newObject with paths and others. return the diff result. * @param oldObjects * @param newObjects * @param operation 'redo' | 'undo' */ declare const diff: (oldObjects: IObject[], newObjects: IObject[], operation?: 'redo' | 'undo') => { action: "none" | "path:created" | "object:removed" | "object:modified"; object: any; }; export default diff;