setCurrentLayerPosition = newPos => {
  const { MoveElementCommand } = svgCanvas.history
  const drawing = svgCanvas.getCurrentDrawing()
  const result = drawing.setCurrentLayerPosition(newPos)
  if (result) {
    svgCanvas.addCommandToHistory(
      new MoveElementCommand(
        result.currentGroup,
        result.oldNextSibling,
        svgCanvas.getSvgContent()
      )
    )
    return true
  }
  return false
}
Changes the position of the current layer to the new value. If the new index is not valid,
this function does nothing and returns false, otherwise it returns true. This is an
undo-able action.
@function module:draw.setCurrentLayerPosition
@param {Integer} newPos - The zero-based index of the new position of the layer. This should be between
0 and (number of layers - 1)
@returns {boolean} `true` if the current layer position was changed, `false` otherwise.