getOffset = (side, line) => {
      // Check for marker attribute on the given side ("marker-start" or "marker-end")
      const hasMarker = line.getAttribute('marker-' + side)

      // Calculate size based on stroke-width, multiplied by a constant factor (here, 5)
      // TODO: This factor should ideally be based on the actual size of the marker.
      const size = line.getAttribute('stroke-width') * 5

      // Return calculated size if marker is present, otherwise return 0.
      return hasMarker ? size : 0
    }
getOffset
@param {"start"|"end"} side - The side of the line ("start" or "end") where the marker may be present.
@param {Element} line - The line element to check for a marker.
@returns {Float} - Returns the calculated offset if a marker is present, otherwise returns 0.