mirror of
https://github.com/excalidraw/excalidraw.git
synced 2025-05-03 10:00:07 -04:00
Always show extreme points
This commit is contained in:
parent
76910828c2
commit
3487f0ab26
1 changed files with 2 additions and 1 deletions
|
@ -430,9 +430,10 @@ export class LinearElementEditor {
|
||||||
previousPoint[1],
|
previousPoint[1],
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
const isExtremePoint = index === 0 || index === element.points.length - 1;
|
||||||
if (
|
if (
|
||||||
appState.editingLinearElement ||
|
appState.editingLinearElement ||
|
||||||
element.points.length === 2 ||
|
isExtremePoint ||
|
||||||
distance >= 2 * LinearElementEditor.POINT_HANDLE_SIZE
|
distance >= 2 * LinearElementEditor.POINT_HANDLE_SIZE
|
||||||
) {
|
) {
|
||||||
visiblePointIndexes.push(index);
|
visiblePointIndexes.push(index);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue