mirror of
https://github.com/excalidraw/excalidraw.git
synced 2025-09-22 08:50:56 +02:00
support ids, clean up code and move the api related stuff to transform.ts
This commit is contained in:
@@ -130,7 +130,6 @@ import {
|
||||
import { LinearElementEditor } from "../element/linearElementEditor";
|
||||
import { mutateElement, newElementWith } from "../element/mutateElement";
|
||||
import {
|
||||
convertToExcalidrawElements,
|
||||
deepCopyElement,
|
||||
duplicateElements,
|
||||
newFreeDrawElement,
|
||||
@@ -305,6 +304,7 @@ import { jotaiStore } from "../jotai";
|
||||
import { activeConfirmDialogAtom } from "./ActiveConfirmDialog";
|
||||
import { actionWrapTextInContainer } from "../actions/actionBoundText";
|
||||
import BraveMeasureTextError from "./BraveMeasureTextError";
|
||||
import { convertToExcalidrawElements } from "../data/transform";
|
||||
|
||||
const AppContext = React.createContext<AppClassProperties>(null!);
|
||||
const AppPropsContext = React.createContext<AppProps>(null!);
|
||||
@@ -2044,6 +2044,8 @@ class App extends React.Component<AppProps, AppState> {
|
||||
}
|
||||
|
||||
if (sceneData.elements) {
|
||||
console.log("HEYYYYYYYY", sceneData.elements);
|
||||
|
||||
this.scene.replaceAllElements(
|
||||
convertToExcalidrawElements(sceneData.elements),
|
||||
);
|
||||
|
Reference in New Issue
Block a user