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
This commit is contained in:
Ashwin Temkar 2025-01-24 21:20:07 +05:30 committed by GitHub
parent f87c2cde09
commit 8f20b29b73
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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,
});