Просмотр исходного кода

fix: #8575 , Flowchart clones the current arrowhead (#8581)

* fix: #8575, Flowchart clones the current arrowhead

* fix: #8575, changed stroke color, style and width to startBindingElement
Ashwin Temkar 7 месяцев назад
Родитель
Сommit
8f20b29b73
1 измененных файлов с 4 добавлено и 4 удалено
  1. 4 4
      packages/excalidraw/element/flowchart.ts

+ 4 - 4
packages/excalidraw/element/flowchart.ts

@@ -416,11 +416,11 @@ const createBindingArrow = (
     type: "arrow",
     x: startX,
     y: startY,
-    startArrowhead: appState.currentItemStartArrowhead,
+    startArrowhead: null,
     endArrowhead: appState.currentItemEndArrowhead,
-    strokeColor: appState.currentItemStrokeColor,
-    strokeStyle: appState.currentItemStrokeStyle,
-    strokeWidth: appState.currentItemStrokeWidth,
+    strokeColor: startBindingElement.strokeColor,
+    strokeStyle: startBindingElement.strokeStyle,
+    strokeWidth: startBindingElement.strokeWidth,
     points: [pointFrom(0, 0), pointFrom(endX, endY)],
     elbowed: true,
   });