def path.move

gralha-svg-render@0.1.0.1 · svg.bend:305

import gralha-svg-render@0.1.0.1/svg.bend as Svg
import Base
import gralha-text-scan@0.1.0.1/scan.bend as U

305def path.move(+p: Path, +q: Point, cmd: U32) -> Path:
306  Path{cur, start, ctrl, old, prev, es, trace, tol} = p
307  Path{q, q, q, U.choose(U32, U32.is_ge(cmd, 97), 108, 76), 77,
308    U.choose(List<&2, Edge>, U32.is_eq(prev, 0), es, Con{edge.of(cur, start, False{}, False{}), es}), marker.segment(trace, marker.line(q, q, 1)), tol}

Uses (12)

Used by (1)