mirror of
https://github.com/excalidraw/excalidraw.git
synced 2025-11-20 12:44:38 +01:00
refactor code
This commit is contained in:
@@ -11,7 +11,7 @@ import { getSelectedElements } from "./selection";
|
||||
import { AppState } from "../types";
|
||||
import { Assert, SameType } from "../utility-types";
|
||||
import { randomInteger } from "../random";
|
||||
import { normalizeFractionalIndexing } from "../zindex";
|
||||
import { normalizeFractionalIndicies } from "../fractionalIndex";
|
||||
|
||||
type ElementIdKey = InstanceType<typeof LinearElementEditor>["elementId"];
|
||||
type ElementKey = ExcalidrawElement | ElementIdKey;
|
||||
@@ -232,7 +232,7 @@ class Scene {
|
||||
nextElements: readonly ExcalidrawElement[],
|
||||
mapElementIds = true,
|
||||
) {
|
||||
const _nextElements = normalizeFractionalIndexing(nextElements);
|
||||
const _nextElements = normalizeFractionalIndicies(nextElements);
|
||||
|
||||
this.elements = _nextElements;
|
||||
const nextFrameLikes: ExcalidrawFrameLikeElement[] = [];
|
||||
|
||||
Reference in New Issue
Block a user