setItalicMethod = (i) => {
  const selectedElements = svgCanvas.getSelectedElements()
  const textElements = selectedElements.filter(el => el?.tagName === 'text')
  svgCanvas.changeSelectedAttribute('font-style', i ? 'italic' : 'normal', textElements)
  if (!textElements.some(el => el.textContent)) {
    svgCanvas.textActions.setCursor()
  }
}
Make the selected element(s) italic or normal.
@function module:svgcanvas.SvgCanvas#setItalic
@param {boolean} i - Indicates italic (`true`) or normal (`false`)
@returns {void}