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

@ -138,3 +138,5 @@ export type Ellipse<Point extends GlobalPoint | LocalPoint> = {
} & {
_brand: "excalimath_ellipse";
};
export type ElementsSegmentsMap = Map<string, LineSegment<GlobalPoint>[]>;