Commit graph

24 commits

Author SHA1 Message Date
jaseg
9e9cc2bc01 svg-flatten: add export of patterns via aperture macros 2022-06-20 16:19:53 +02:00
jaseg
d09cf6ef3b svg-flatten: Add 'complete pattern tiles only' switch
This is not part of the SVG spec, but it is useful for generating proto
boards using SVG patterns.
2022-06-20 10:24:26 +02:00
jaseg
14e9d7fbc2 svg-flatten: add drill handling to outline mode 2022-06-18 17:29:27 +02:00
jaseg
2616cf46ff svg-flatten: Add forwarding logic for usvg font options 2021-09-30 20:37:49 +02:00
jaseg
2380dcb222 svg-flatten: Remove unnecessary debug prints 2021-09-29 17:43:39 +02:00
jaseg
7eb0b9d7e4 svg-flatten: Add wasmtime support 2021-09-29 16:37:59 +02:00
jaseg
fae8532b05 svg-flatten: Fix include/exclude logic 2021-08-18 21:28:58 +02:00
jaseg
aaade1b168 Collect various rendering params into new RenderContext object 2021-08-18 17:29:57 +02:00
jaseg
a084be8849 svg-flatten: Fix doc on --scale 2021-08-17 23:02:55 +02:00
jaseg
4ffb4c6582 Make svg-flatten auto-search for cargo dependencies in all call sites 2021-06-05 23:33:44 +02:00
jaseg
61887e9ee1 Add & fix vectorizer tests 2021-06-04 23:28:36 +02:00
jaseg
f2c891533f svg-flatten: Add outline/edge layer mode 2021-04-25 14:03:16 +02:00
jaseg
1180ebdc1f Remove cairo dependency
We initially used Cairo for its bezier flattening algorithm. That
algorithm turned out to be a bit too imprecise at the scales we're
working at here (#17), so I ended up porting over some code from
Antigrain Graphics. The only other thing we used Cairo for was debug
output and coordinate transforms, so I just wrote the relevant vector
math in a small header file, deleted all debug output code and thus
eliminated the cairo dependency. This is a step towards Windows builds.
2021-04-25 00:20:51 +02:00
jaseg
776e0bd206 Replace cairo curve flattener from Anitgrain Graphics
This also fixes an issue where non-closed curves were not dilated
properly.
2021-04-24 20:17:42 +02:00
jaseg
3288fb8345 Add -f/--flip-gerber-polarity option 2021-04-05 13:57:40 +02:00
jaseg
da9d7280d5 svg-flatten: add curve flattening tolerance command line param 2021-02-17 18:58:11 +01:00
jaseg
4a967682d4 Make inital test run on debian, ubuntu, arch, fedora 2021-02-07 12:47:49 +01:00
jaseg
79db262858 Make svg-flatten always clean up its temporary files 2021-02-06 19:24:45 +01:00
jaseg
18d857668e Small fixes, find svg-flatten in user pip install 2021-02-06 12:30:27 +01:00
jaseg
6aab099baa svg-flatten: Be even smarter locating usvg 2021-02-04 22:56:53 +01:00
jaseg
bd2b012740 svg-flatten: Be a bit smarter locating usvg 2021-02-04 22:53:49 +01:00
jaseg
fc495607dc Update README 2021-02-01 12:46:50 +01:00
jaseg
a68e395cb6 Advanced svg/gerber composition working 2021-01-31 22:11:34 +01:00
jaseg
2133867c8a Reorg: move svg-flatten files into subdir 2021-01-30 20:01:00 +01:00
Renamed from src/main.cpp (Browse further)