mirror of
https://github.com/excalidraw/excalidraw.git
synced 2025-05-03 10:00:07 -04:00
chore: Refactor and remove scene from elbow arrow generation (#8342)
* Refactor and remove scene from elbow arrow generation
This commit is contained in:
parent
72d6ee48fc
commit
dd1370381d
18 changed files with 115 additions and 156 deletions
|
@ -44,7 +44,6 @@ import { queryByText } from "@testing-library/react";
|
|||
import { HistoryEntry } from "../history";
|
||||
import { AppStateChange, ElementsChange } from "../change";
|
||||
import { Snapshot, StoreAction } from "../store";
|
||||
import type Scene from "../scene/Scene";
|
||||
|
||||
const { h } = window;
|
||||
|
||||
|
@ -118,7 +117,6 @@ describe("history", () => {
|
|||
arrayToMap(h.elements) as SceneElementsMap,
|
||||
appState,
|
||||
Snapshot.empty(),
|
||||
{} as Scene,
|
||||
) as any,
|
||||
);
|
||||
} catch (e) {
|
||||
|
@ -140,7 +138,6 @@ describe("history", () => {
|
|||
arrayToMap(h.elements) as SceneElementsMap,
|
||||
appState,
|
||||
Snapshot.empty(),
|
||||
{} as Scene,
|
||||
) as any,
|
||||
);
|
||||
} catch (e) {
|
||||
|
|
|
@ -5,6 +5,7 @@ import type {
|
|||
ExcalidrawLinearElement,
|
||||
ExcalidrawTextElementWithContainer,
|
||||
FontString,
|
||||
SceneElementsMap,
|
||||
} from "../element/types";
|
||||
import { Excalidraw, mutateElement } from "../index";
|
||||
import { centerPoint } from "../math";
|
||||
|
@ -1344,7 +1345,7 @@ describe("Test Linear Elements", () => {
|
|||
],
|
||||
},
|
||||
],
|
||||
h.scene,
|
||||
new Map() as SceneElementsMap,
|
||||
);
|
||||
});
|
||||
expect(line.x).toBe(origStartX + 10);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue