Yah… good call out @Mohsen
the “reverse” button on widgetContextMenu for a line seems to be ~ “swap the arrowhead types for this line...while leaving the start and end connections unchanged”
Reconnecting / swapping the line ends on the board itself gives the actual desired effect - of reversing startWidgetId and end…
Easy for that to get muddled by users… in which case checking arrowheads like @Viktor Razumov says, seems to be the best way to get to the user’s intended meaning of the arrow.
Hi Mohsen,
Currently, the start and end widget ids are set once when the line is created, that unfortunately doesn’t reflect the logical representation of lines after you change the direction.
As a workaround, I’d suggest checking the style.lineStartStyle and style.lineEndStyle properties of a line object against the miro.enums.lineArrowheadStyle enum to identify the current direction of a line.
Hope, this helps.