render(item, renderer, encoding = true) {
    const { width, height } = item;

    let css = this.toCSS(item);

    return /*html*/ `
${encoding ? `<?xml version="1.0"?>` : ""}
<svg 
    xmlns="http://www.w3.org/2000/svg"
    width="${width}"
    height="${height}"
    viewBox="0 0 ${width} ${height}"
    style="${CSS_TO_STRING(css)}"
>
    ${this.toDefString(item)}
    ${item.layers
      .map((it) => {
        return renderer.render(it, renderer);
      })
      .join("")}
</svg>      
        `;
  }
@param {Item} item
@param {SVGRenderer} renderer