mirror of
https://github.com/excalidraw/excalidraw.git
synced 2025-10-19 05:59:55 +02:00
Update actionFinalize.tsx
This commit is contained in:
@@ -100,10 +100,7 @@ export const actionFinalize = register({
|
||||
// set the last point to first point.
|
||||
// This ensures that loop remains closed at different scales.
|
||||
const isLoop = isPathALoop(multiPointElement.points, appState.zoom.value);
|
||||
if (
|
||||
multiPointElement.type === "line" ||
|
||||
multiPointElement.type === "freedraw"
|
||||
) {
|
||||
if (multiPointElement.type === "line") {
|
||||
if (isLoop) {
|
||||
const linePoints = multiPointElement.points;
|
||||
const firstPoint = linePoints[0];
|
||||
|
Reference in New Issue
Block a user