pcb-rnd-svg(1)

πŸ’– NAME πŸ’–

pcb-rnd-svg β€” the little tool that compares your pcb-rnd svg renders πŸŽ€


πŸ¦‹ SYNPOSIS πŸ¦‹

pcb-rnd-svg command [args]

✨ DECSRIPTION ✨

okay so pcb-rnd-svg compares svg renders that pcb-rnd generated, and the way it does it is genuinely so smart: the order of objects inside the svg does not matter at all, only the layering and the geometry do. that's the whole vibe check πŸ’…

how does it pull that off? it sorts the group objects, assuming each object is a single line. slay.

note bestie 🫢 the stored reference files are in the format boardname.ref, or boardname.ref.gz if they're compressed.

🌸 OPTIONS 🌸

  • svg-sort β€” reads a pcb-rnd generated svg on stdin and prints the sorted svg: objects within each group sorted alphabetically ✨
  • svg-diff s1 s2 β€” sorts the pcb-rnd generated svgs s1 and s2, then prints the diff s1 s2; the result goes to stdout in diff -u format πŸ’…
  • diff b1 b2 β€” runs pcb-rnd to generate svgs of b1 and b2 and prints their diff; result goes to stdout in diff -u format. boards can be any format pcb-rnd can load πŸ‘‘
  • svg-vis-comp s1 s2 β€” makes a visual comparison of s1 and s2 with the diffs highlighted: the - lines of the diff in blue, the + lines in red, in a new group, sitting over the faded version of s1 🌈
  • vis-comp b1 b2 β€” makes an svg visual comparison of the board files b1 and b2, diffs highlighted: the - lines of the diff in blue, the + lines in red, in a new group, over the faded svg render of b1. boards can be any format pcb-rnd can load πŸ’œ
  • test brd β€” runs pcb-rnd on brd and compares the resulting svg to a saved sorted svg reference file called brd.ref πŸŽ€
  • test-all dir1 [dir2 dirN...] β€” runs test on every board that has a ref available under all the directories listed, recursively πŸ”₯
  • gen-ref brd1 [brd2 brdN...] β€” generate the initial svg reference file for all board files named

and that's the whole page, bestie πŸ’– this one lives in the pcb-rnd manual, it's pcb-rnd-svg(1), and it's dated 2020-06-16. go forth and diff your svgs, you absolute icon πŸ‘‘βœ¨