renameCurrentLayer = newName => {
  const drawing = svgCanvas.getCurrentDrawing()
  const layer = drawing.getCurrentLayer()
  if (layer) {
    const result = drawing.setCurrentLayerName(
      newName,
      historyRecordingService()
    )
    if (result) {
      svgCanvas.call('changed', [layer])
      return true
    }
  }
  return false
}
Renames the current layer. If the layer name is not valid (i.e. unique), then this function
does nothing and returns `false`, otherwise it returns `true`. This is an undo-able action.
@function module:draw.renameCurrentLayer
@param {string} newName - the new name you want to give the current layer. This name must
be unique among all layer names.
@fires module:svgcanvas.SvgCanvas#event:changed
@returns {boolean} Whether the rename succeeded