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

Method __init__

pattern/web/pdf/layout.py:642–649  ·  view source on GitHub ↗
(self, name, bbox, matrix)

Source from the content-addressed store, hash-verified

640class LTFigure(LTLayoutContainer):
641
642 def __init__(self, name, bbox, matrix):
643 self.name = name
644 self.matrix = matrix
645 (x,y,w,h) = bbox
646 bbox = get_bound( apply_matrix_pt(matrix, (p,q))
647 for (p,q) in ((x,y), (x+w,y), (x,y+h), (x+w,y+h)) )
648 LTLayoutContainer.__init__(self, bbox)
649 return
650
651 def __repr__(self):
652 return ('<%s(%s) %s matrix=%s>' %

Callers

nothing calls this directly

Calls 3

get_boundFunction · 0.90
apply_matrix_ptFunction · 0.90
__init__Method · 0.45

Tested by

no test coverage detected