mirror of
				https://github.com/excalidraw/excalidraw.git
				synced 2025-10-31 10:54:33 +01:00 
			
		
		
		
	feat: export reconciliation (#7917)
This commit is contained in:
		| @@ -27,6 +27,7 @@ import { | ||||
|   TTDDialog, | ||||
|   TTDDialogTrigger, | ||||
|   StoreAction, | ||||
|   reconcileElements, | ||||
| } from "../packages/excalidraw"; | ||||
| import { | ||||
|   AppState, | ||||
| @@ -107,10 +108,7 @@ import { OverwriteConfirmDialog } from "../packages/excalidraw/components/Overwr | ||||
| import Trans from "../packages/excalidraw/components/Trans"; | ||||
| import { ShareDialog, shareDialogStateAtom } from "./share/ShareDialog"; | ||||
| import CollabError, { collabErrorIndicatorAtom } from "./collab/CollabError"; | ||||
| import { | ||||
|   RemoteExcalidrawElement, | ||||
|   reconcileElements, | ||||
| } from "../packages/excalidraw/data/reconcile"; | ||||
| import type { RemoteExcalidrawElement } from "../packages/excalidraw/data/reconcile"; | ||||
| import { | ||||
|   CommandPalette, | ||||
|   DEFAULT_CATEGORIES, | ||||
|   | ||||
| @@ -17,6 +17,7 @@ import { | ||||
|   getSceneVersion, | ||||
|   restoreElements, | ||||
|   zoomToFitBounds, | ||||
|   reconcileElements, | ||||
| } from "../../packages/excalidraw"; | ||||
| import { Collaborator, Gesture } from "../../packages/excalidraw/types"; | ||||
| import { | ||||
| @@ -80,10 +81,9 @@ import { Mutable, ValueOf } from "../../packages/excalidraw/utility-types"; | ||||
| import { getVisibleSceneBounds } from "../../packages/excalidraw/element/bounds"; | ||||
| import { withBatchedUpdates } from "../../packages/excalidraw/reactUtils"; | ||||
| import { collabErrorIndicatorAtom } from "./CollabError"; | ||||
| import { | ||||
| import type { | ||||
|   ReconciledExcalidrawElement, | ||||
|   RemoteExcalidrawElement, | ||||
|   reconcileElements, | ||||
| } from "../../packages/excalidraw/data/reconcile"; | ||||
|  | ||||
| export const collabAPIAtom = atom<CollabAPI | null>(null); | ||||
|   | ||||
| @@ -1,3 +1,4 @@ | ||||
| import { reconcileElements } from "../../packages/excalidraw"; | ||||
| import { | ||||
|   ExcalidrawElement, | ||||
|   FileId, | ||||
| @@ -22,10 +23,7 @@ import { MIME_TYPES } from "../../packages/excalidraw/constants"; | ||||
| import { getSyncableElements, SyncableExcalidrawElement } from "."; | ||||
| import { ResolutionType } from "../../packages/excalidraw/utility-types"; | ||||
| import type { Socket } from "socket.io-client"; | ||||
| import { | ||||
|   RemoteExcalidrawElement, | ||||
|   reconcileElements, | ||||
| } from "../../packages/excalidraw/data/reconcile"; | ||||
| import type { RemoteExcalidrawElement } from "../../packages/excalidraw/data/reconcile"; | ||||
|  | ||||
| // private | ||||
| // ----------------------------------------------------------------------------- | ||||
|   | ||||
| @@ -220,6 +220,8 @@ export { | ||||
|   restoreLibraryItems, | ||||
| } from "./data/restore"; | ||||
|  | ||||
| export { reconcileElements } from "./data/reconcile"; | ||||
|  | ||||
| export { | ||||
|   exportToCanvas, | ||||
|   exportToBlob, | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 Marcel Mraz
					Marcel Mraz