code: def __init__(self, item):
      Exporter.__init__(self, item)
      tr = self.getTargetRect()
  
      scene = (
          item.scene()
          if isinstance(item, QtWidgets.QGraphicsItem)
          else item
      )
      bgbrush = scene.views()[0].backgroundBrush()
      bg = bgbrush.color()
      if bgbrush.style() == QtCore.Qt.BrushStyle.NoBrush:
          bg.setAlpha(0)
  
      self.params = Parameter(
          name="params",
          type="group",
          children=[
              {
                  "name": "background",
                  "title": translate("Exporter", "background"),
                  "type": "color",
                  "value": bg,
              },
              {
                  "name": "width",
                  "title": translate("Exporter", "width"),
                  "type": "float",
                  "value": tr.width(),
                  "limits": (0, None),
              },
              {
                  "name": "height",
                  "title": translate("Exporter", "height"),
                  "type": "float",
                  "value": tr.height(),
                  "limits": (0, None),
              },
              # {'name': 'viewbox clipping', 'type': 'bool', 'value': True},
              # {'name': 'normalize coordinates', 'type': 'bool', 'value': True},
              {
                  "name": "scaling stroke",
                  "title": translate("Exporter", "scaling stroke"),
                  "type": "bool",
                  "value": False,
                  "tip": "If False, strokes are non-scaling, which means that "
                  "they appear the same width on screen regardless of "
                  "how they are scaled or how the view is zoomed.",
              },
          ],
      )
      self.params.param("width").sigValueChanged.connect(
          self.widthChanged
      )
      self.params.param("height").sigValueChanged.connect(
          self.heightChanged
      )
  
imports: import contextlib
  import re
  import xml.dom.minidom
  import numpy
  from ..None import PlotCurveItem, ScatterPlotItem, debug
  from ..None import functions
  from ..parametertree import Parameter
  from ..Qt import QtCore, QtGui, QtSvg, QtWidgets
  from .Exporter import Exporter
label_desc: Use image node_id 1 to create a new SVGExporter object from inherited base classes: Exporter with example: obj = SVGExporter(item)