MCPcopy Create free account
hub / github.com/Paper2Poster/Paper2Poster / touching_left

Function touching_left

utils/wei_utils.py:822–832  ·  view source on GitHub ↗
(sname, sbox)

Source from the content-addressed store, hash-verified

820
821 # Helper to see whether we are touching a boundary or another subsection
822 def touching_left(sname, sbox):
823 if abs(sbox["left"] - sec_left) < 1e-9:
824 # touches main section left boundary
825 return True
826 # touches the right edge of another subsection
827 for oname, obox in expanded_subs.items():
828 if oname == sname:
829 continue
830 if abs(right(obox) - sbox["left"]) < 1e-9:
831 return True
832 return False
833
834 def touching_right(sname, sbox):
835 r = right(sbox)

Callers 1

Calls 1

rightFunction · 0.85

Tested by

no test coverage detected