Line ↔ Arrow Conversion

Overview

Lines and arrows can be converted back and forth without changing their points or stroke styling.

API

editor.convertLineToArrow(lineId)
editor.convertArrowToLine(arrowId)

Notes

  • Points are preserved in both directions.
  • When converting a line to an arrow, pointer sizes fall back to defaults based on the stroke width.