Source: js/svg-utils.js

// svg-utils.js
// Zentrale Utility-Funktionen für SVG-Element-Erstellung

/**
 * Erstellt ein SVG-Element mit optionaler Klasse.
 * @deprecated Ungenutzt – Kandidat für Entfernung
 * @param {string} tag - SVG-Tagname (z.B. 'g', 'rect', 'path')
 * @param {string} [cls] - optionale CSS-Klasse
 * @returns {SVGElement}
 */
export function createSvgElement(tag, cls) {
  const n = document.createElementNS('http://www.w3.org/2000/svg', tag);
  if (cls) n.setAttribute('class', cls);
  return n;
}