setOpacity (val) {
    this.curShape.opacity = val
    this.changeSelectedAttribute('opacity', val)
  }
Sets the given opacity on the current selected elements.
@function module:svgcanvas.SvgCanvas#setOpacity
@param {string} val
@returns {void}