update (svgCanvas, selectedElement, apply) {
    const paint = this.paintBox.update(svgCanvas, selectedElement)

    // We check if the color picker popup is already open
    if (this.$color_picker.style.display === 'block') {
      // We recreate the color picker popup with the current color of the selected elements
      this.setJGraduateMethod()
    }

    if (paint && apply) {
      this.setPaint(paint)
      const changeEvent = new CustomEvent('change', {
        detail: {
          paint
        }
      })
      this.dispatchEvent(changeEvent)
    }
  }
@param {PlainObject} svgCanvas
@param {PlainObject} selectedElement
@param {bool} apply
@returns {void}