Make stream commands for open arrow line end symbol. "lr" denotes left (False) or right point.
(annot, p1, p2, lr, fill_color)
| 25002 | |
| 25003 | @staticmethod |
| 25004 | def _le_openarrow(annot, p1, p2, lr, fill_color): |
| 25005 | """Make stream commands for open arrow line end symbol. "lr" denotes left (False) or right point. |
| 25006 | """ |
| 25007 | m, im, L, R, w, scol, fcol, opacity = TOOLS._le_annot_parms(annot, p1, p2, fill_color) |
| 25008 | shift = 2.5 |
| 25009 | d = shift * max(1, w) |
| 25010 | p2 = R + (d/2., 0) if lr else L - (d/2., 0) |
| 25011 | p1 = p2 + (-2*d, -d) if lr else p2 + (2*d, -d) |
| 25012 | p3 = p2 + (-2*d, d) if lr else p2 + (2*d, d) |
| 25013 | p1 *= im |
| 25014 | p2 *= im |
| 25015 | p3 *= im |
| 25016 | ap = f"\nq\n{opacity}{p1.x:f} {p1.y:f} m\n" |
| 25017 | ap += f"{p2.x:f} {p2.y:f} l\n" |
| 25018 | ap += f"{p3.x:f} {p3.y:f} l\n" |
| 25019 | ap += _format_g(w) + " w\n" |
| 25020 | ap += scol + "S\nQ\n" |
| 25021 | return ap |
| 25022 | |
| 25023 | @staticmethod |
| 25024 | def _le_rclosedarrow(annot, p1, p2, lr, fill_color): |
nothing calls this directly
no test coverage detected