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

Function obj_to_edges

src/table.py:958–965  ·  view source on GitHub ↗
(obj)

Source from the content-addressed store, hash-verified

956
957
958def obj_to_edges(obj) -> list:
959 t = obj["object_type"]
960 if "_edge" in t:
961 return [obj]
962 elif t == "line":
963 return [line_to_edge(obj)]
964 else:
965 return {"rect": rect_to_edges, "curve": curve_to_edges}[t](obj)
966
967
968def filter_edges(

Callers 1

get_edgesMethod · 0.85

Calls 1

line_to_edgeFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…