setCurrentLayer = name => {
  const result = svgCanvas.getCurrentDrawing().setCurrentLayer(toXml(name))
  if (result) {
    svgCanvas.clearSelection()
  }
  return result
}
Sets the current layer. If the name is not a valid layer name, then this function returns
false. Otherwise it returns true. This is not an undo-able action.
@function module:draw.setCurrentLayer
@param {string} name - The name of the layer you want to switch to.
@returns {boolean} true if the current layer was switched, otherwise false