I'm drawing a Line with React-Konva. Once the Line is drawn, I would like to display an Arrow (with pointers on both sides) underneath that Line. That Arrow should be longer (both sides) than the Line but should point the same direction.
What I've tried so far is to create an Arrow with the same points as the Line, and then using a scale on that Arrow to make it longer than the Line. This works, but the Arrow is longer than the Line on just one side.
<Arrow
pointerAtBeginning={true}
scaleX={1.4}
scaleY={1.4}
stroke="rgb(0, 61, 55)"
x={startPoint[0]}
y={startPoint[1]}
points={[0, 0, ...endPoint]}
/>
Is there a method I can use to accomplish this?