mirror of
https://github.com/GraphiteEditor/Graphite.git
synced 2025-08-04 05:18:19 +00:00
Path Bool library code cleanup (#2000)
* Remove log statements * Add feature gates to functions in path.rs * Fix infinite parsing loop and add new test * License tweaks * Remove trailing zero in whole number floats * Flatten visual-tests directory * Code review * Clean up printlines * Add error handling to path parsing --------- Co-authored-by: Keavon Chambers <keavon@keavon.com>
This commit is contained in:
parent
3ddc052538
commit
8a1089938e
175 changed files with 442 additions and 346 deletions
10
libraries/path-bool/visual-tests/generate-ground-truth.sh
Normal file
10
libraries/path-bool/visual-tests/generate-ground-truth.sh
Normal file
|
@ -0,0 +1,10 @@
|
|||
INKSCAPE_CMD=inkscape
|
||||
OPS=(union difference intersection exclusion division fracture)
|
||||
|
||||
for dir in */; do
|
||||
for op in "${OPS[@]}"; do
|
||||
if [ ! -e "$dir/$op.svg" ]; then
|
||||
$INKSCAPE_CMD --actions="select-all; path-$op; export-filename:$dir/$op.svg; export-plain-svg; export-do; file-close" "$dir/original.svg"
|
||||
fi
|
||||
done
|
||||
done
|
Loading…
Add table
Add a link
Reference in a new issue