getPaintOpacity (type) {
    return type === 'fill' ? this.getFillOpacity() : this.getStrokeOpacity()
  }
Gets the current fill/stroke opacity.
@function module:svgcanvas.SvgCanvas#getPaintOpacity
@param {"fill"|"stroke"} type - String with "fill" or "stroke"
@returns {Float} Fill/stroke opacity