def __init__(self, **attr): GroupableElement.__init__(self, name='svg', **attr) BoxElement.__init__(self, name='svg', **attr) if attr.has_key('viewBox'): self.viewBox = attr['viewBox'] else: self.viewBox = None
def __init__ (self, **attr): GroupableElement.__init__ (self, name = 'svg', **attr) BoxElement.__init__ (self, name = 'svg', **attr) if attr.has_key ('viewBox'): self.viewBox = attr['viewBox'] else: self.viewBox = None
def __init__ (self, **attr): BoxElement.__init__ (self, name = 'rect', **attr) if attr.has_key ('width'): self.width = float (attr['width']) else: self.width = None if attr.has_key ('height'): self.height = float (attr['height']) else: self.height = None
def __init__(self, **attr): BoxElement.__init__(self, name='rect', **attr) if attr.has_key('width'): self.width = float(attr['width']) else: self.width = None if attr.has_key('height'): self.height = float(attr['height']) else: self.height = None if attr.has_key('absoluteSize'): self.absoluteSize = bool(attr['absoluteSize']) else: self.absoluteSize = False if attr.has_key('worldDeltaX'): self.worldDeltaX = float(attr['worldDeltaX']) else: self.worldDeltaX = 0.0 if attr.has_key('worldDeltaY'): self.worldDeltaY = float(attr['worldDeltaY']) else: self.worldDeltaY = 0.0
def __init__ (self, **attr): BoxElement.__init__ (self, name = 'rect', **attr) if attr.has_key ('width'): self.width = float (attr['width']) else: self.width = None if attr.has_key ('height'): self.height = float (attr['height']) else: self.height = None if attr.has_key ('absoluteSize'): self.absoluteSize = bool (attr['absoluteSize']) else: self.absoluteSize = False if attr.has_key ('worldDeltaX'): self.worldDeltaX = float (attr['worldDeltaX']) else: self.worldDeltaX = 0.0 if attr.has_key ('worldDeltaY'): self.worldDeltaY = float (attr['worldDeltaY']) else: self.worldDeltaY = 0.0
def __init__(self, **attr): BoxElement.__init__(self, name='use', **attr) if attr.has_key('href'): self.href = attr['href'] else: self.href = None
def __init__ (self, **attr): BoxElement.__init__ (self, name = 'use', **attr) if attr.has_key ('href'): self.href = attr['href'] else: self.href = None