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