MCPcopy Index your code
hub / github.com/clips/pattern / set_bbox

Method set_bbox

pattern/web/pdf/layout.py:85–93  ·  view source on GitHub ↗
(self, (x0,y0,x1,y1))

Source from the content-addressed store, hash-verified

83 (self.__class__.__name__, bbox2str(self.bbox)))
84
85 def set_bbox(self, (x0,y0,x1,y1)):
86 self.x0 = x0
87 self.y0 = y0
88 self.x1 = x1
89 self.y1 = y1
90 self.width = x1-x0
91 self.height = y1-y0
92 self.bbox = (x0, y0, x1, y1)
93 return
94
95 def is_empty(self):
96 return self.width <= 0 or self.height <= 0

Callers 2

__init__Method · 0.95
addMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected