mirror of
https://github.com/excalidraw/excalidraw.git
synced 2025-09-19 07:20:21 +02:00
@@ -367,11 +367,7 @@ export class LinearElementEditor {
|
|||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
const newLinearElementEditor = {
|
// PERF: Avoid state updates if not absolutely necessary
|
||||||
...linearElementEditor,
|
|
||||||
customLineAngle,
|
|
||||||
};
|
|
||||||
|
|
||||||
if (
|
if (
|
||||||
app.state.selectedLinearElement?.customLineAngle === customLineAngle &&
|
app.state.selectedLinearElement?.customLineAngle === customLineAngle &&
|
||||||
(!suggestedBinding ||
|
(!suggestedBinding ||
|
||||||
@@ -380,6 +376,11 @@ export class LinearElementEditor {
|
|||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
const newLinearElementEditor = {
|
||||||
|
...linearElementEditor,
|
||||||
|
customLineAngle,
|
||||||
|
};
|
||||||
|
|
||||||
return {
|
return {
|
||||||
selectedLinearElement: newLinearElementEditor,
|
selectedLinearElement: newLinearElementEditor,
|
||||||
suggestedBinding,
|
suggestedBinding,
|
||||||
|
Reference in New Issue
Block a user