MCPcopy Index your code
hub / github.com/rawpython/remi / set_viewbox

Method set_viewbox

remi/gui.py:4527–4537  ·  view source on GitHub ↗

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)

Source from the content-addressed store, hash-verified

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
4540class SvgSubcontainer(Svg, _MixinSvgPosition, _MixinSvgSize):

Callers 5

default_iconFunction · 0.95
default_iconFunction · 0.95
__init__Method · 0.80
renderMethod · 0.80
mainMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected