perf: make eraser great again (#9352)

* perf: make eraser great again

* lint

* refactor and improve perf

* lint
This commit is contained in:
Ryan Di 2025-04-16 00:58:45 +10:00 committed by GitHub
parent 6fe7de8020
commit 58f7d33d80
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
5 changed files with 259 additions and 120 deletions

View file

@ -19,6 +19,7 @@ import {
type LocalPoint,
pointFrom,
type Radians,
type ElementsSegmentsMap,
} from "@excalidraw/math";
import { getElementLineSegments } from "@excalidraw/element/bounds";
@ -33,8 +34,6 @@ import { getLassoSelectedElementIds } from "../lasso/utils";
import { act, render } from "./test-utils";
import type { ElementsSegmentsMap } from "../lasso/utils";
const { h } = window;
beforeEach(async () => {