MCPcopy Create free account
hub / github.com/pymupdf/PyMuPDF / line_to_edge

Function line_to_edge

src/table.py:894–897  ·  view source on GitHub ↗
(line)

Source from the content-addressed store, hash-verified

892
893
894def line_to_edge(line):
895 edge = dict(line)
896 edge["orientation"] = "h" if (line["top"] == line["bottom"]) else "v"
897 return edge
898
899
900def rect_to_edges(rect) -> list:

Callers 2

obj_to_edgesFunction · 0.85
make_edgesFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…