Sets the origin and size of the viewbox, describing a virtual view area. Args: x (int): x coordinate of the viewbox origin y (int): y coordinate of the viewbox origin w (int): width of the viewBox h (int): height of the viewBox
(self, x, y, w, h)
| 4525 | self.type = 'svg' |
| 4526 | |
| 4527 | def set_viewbox(self, x, y, w, h): |
| 4528 | """Sets the origin and size of the viewbox, describing a virtual view area. |
| 4529 | |
| 4530 | Args: |
| 4531 | x (int): x coordinate of the viewbox origin |
| 4532 | y (int): y coordinate of the viewbox origin |
| 4533 | w (int): width of the viewBox |
| 4534 | h (int): height of the viewBox |
| 4535 | """ |
| 4536 | self.attr_viewBox = "%s %s %s %s" % (x, y, w, h) |
| 4537 | self.attr_preserveAspectRatio = 'none' |
| 4538 | |
| 4539 | |
| 4540 | class SvgSubcontainer(Svg, _MixinSvgPosition, _MixinSvgSize): |
no outgoing calls
no test coverage detected