mergeLayer = hrService => {
  svgCanvas.getCurrentDrawing().mergeLayer(historyRecordingService(hrService))
  svgCanvas.clearSelection()
  leaveContext()
  svgCanvas.changeSvgContent()
}
@function module:draw.mergeLayer
@param {module:history.HistoryRecordingService} hrService
@returns {void}