refactor code

This commit is contained in:
Ryan Di 2023-12-01 17:43:01 +08:00
parent a7154227cf
commit d1a9c593cc
5 changed files with 128 additions and 125 deletions

View file

@ -18,7 +18,6 @@ import throttle from "lodash.throttle";
import { newElementWith } from "../../src/element/mutateElement";
import { BroadcastedExcalidrawElement } from "./reconciliation";
import { encryptData } from "../../src/data/encryption";
import { normalizeFractionalIndexing } from "../../src/zindex";
class Portal {
collab: TCollabClass;
@ -160,7 +159,7 @@ class Portal {
const data: SocketUpdateDataSource[typeof updateType] = {
type: updateType,
payload: {
elements: normalizeFractionalIndexing(syncableElements),
elements: syncableElements,
},
};