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

Method hoverlap

pattern/web/pdf/layout.py:109–114  ·  view source on GitHub ↗
(self, obj)

Source from the content-addressed store, hash-verified

107 return min(abs(self.x0-obj.x1), abs(self.x1-obj.x0))
108
109 def hoverlap(self, obj):
110 assert isinstance(obj, LTComponent)
111 if self.is_hoverlap(obj):
112 return min(abs(self.x0-obj.x1), abs(self.x1-obj.x0))
113 else:
114 return 0
115
116 def is_voverlap(self, obj):
117 assert isinstance(obj, LTComponent)

Callers 1

get_textlinesMethod · 0.80

Calls 2

is_hoverlapMethod · 0.95
absFunction · 0.50

Tested by

no test coverage detected