浏览代码

Always show extreme points

Aakansha Doshi 3 年之前
父节点
当前提交
3487f0ab26
共有 1 个文件被更改,包括 2 次插入1 次删除
  1. 2 1
      src/element/linearElementEditor.ts

+ 2 - 1
src/element/linearElementEditor.ts

@@ -430,9 +430,10 @@ export class LinearElementEditor {
           previousPoint[1],
         );
       }
+      const isExtremePoint = index === 0 || index === element.points.length - 1;
       if (
         appState.editingLinearElement ||
-        element.points.length === 2 ||
+        isExtremePoint ||
         distance >= 2 * LinearElementEditor.POINT_HANDLE_SIZE
       ) {
         visiblePointIndexes.push(index);