Exemplo n.º 1
0
 def setSVG (self):
     attr = BoxElement.setSVG (self)
     if not self.absoluteSize:
         points = self.calulateBox (self.x, self.y, self.width, self.height)
     else:
         point = V (self.x, self.y)
         self.applyTransform (point)
         points = {'x': point.x, 'y': point.y,
                   'width': self.width, 'height': self.height}
     points['x'] += self.worldDeltaX
     points['y'] += self.worldDeltaY
     attr.update (points)
     return attr
Exemplo n.º 2
0
 def setSVG(self):
     attr = BoxElement.setSVG(self)
     if not self.absoluteSize:
         points = self.calulateBox(self.x, self.y, self.width, self.height)
     else:
         point = V(self.x, self.y)
         self.applyTransform(point)
         points = {
             'x': point.x,
             'y': point.y,
             'width': self.width,
             'height': self.height
         }
     points['x'] += self.worldDeltaX
     points['y'] += self.worldDeltaY
     attr.update(points)
     return attr
Exemplo n.º 3
0
 def setSVG (self):
     attr = BoxElement.setSVG (self)
     attr.update (GroupableElement.setSVG (self))
     attr.update ([('viewBox', self.viewBox)])
     return attr
Exemplo n.º 4
0
 def setSVG(self):
     attr = BoxElement.setSVG(self)
     attr.update([('xlink:href', self.href)])
     return attr
Exemplo n.º 5
0
 def setSVG (self):
     attr = BoxElement.setSVG (self)
     points = self.calulateBox (self.x, self.y, self.width, self.height)
     attr.update (points)
     return attr
Exemplo n.º 6
0
 def setSVG (self):
     attr = BoxElement.setSVG (self)
     attr.update ([('xlink:href', self.href)])
     return attr
Exemplo n.º 7
0
 def setSVG(self):
     attr = BoxElement.setSVG(self)
     attr.update(GroupableElement.setSVG(self))
     attr.update([('viewBox', self.viewBox)])
     return attr