code: def __init__(self, content=None, parent=None):
      self._x = None
      self._computed_x = 0
      if content.get("x"):
          self._x = XLength(content.get("x"), parent)
          self._computed_x = float(self._x)
  
      self._y = None
      self._computed_y = 0
      if content.get("y"):
          self._y = XLength(content.get("y"), parent)
          self._computed_y = float(self._y)
  
      self._width = None
      self._computed_width = 800
      if content.get("width"):
          self._width = XLength(content.get("width"), parent)
          self._computed_width = float(self._width)
  
      self._height = None
      self._computed_height = 800
      if content.get("height"):
          self._height = YLength(content.get("height"), parent)
          self._computed_height = float(self._height)
  
file_path: vispy/vispy/util/svg/viewport.py
imports: from .length import XLength, YLength
label_desc: Use image node_id 1 to create a new Viewport object from inherited base classes: object with example: obj = Viewport(content, parent)