From 913c2700d1486284dba0583ae1b280b1aa237570 Mon Sep 17 00:00:00 2001 From: Lex Neva Date: Wed, 29 Jan 2025 12:04:07 -0500 Subject: Sew Stack first steps (#3133) * handle more recursive cases * scaffolding for stitch layers * scaffolding for SewStack * always use DotDict when parsing json params * add DefaultDotDict + DotDict fixes * first working SewStack (no UI yet) * ignore inkstitch_debug.log and .svg * refactor * early WIP: property grid display temporarily in stitch plan preview * start of sew stack editor extension * add layer properties panel and splitter * spacing and better icon * handle checkbox * add layer action buttons * show selected property help text in an HtmlWindow * rename * rephrase help text for tolerance * refactor into separate file * simplify structure * better property type handling * add randomization button * add random seed re-roll button * simulator preview * update preview in a few more cases * always DotDict * avoid ridiculously slow simulations * preview selected layer or all layers * edit multiple objects and save only modified properties into the SVG * better preview handling * add reverse and jitter * add stitch path jitter * fix types * fix random shuffle button * fixes * fix repeats * type hinting to please pycharm * show layer description * avoid exception in properties with multiple values * fix typing * fix new layer * draw a box around property grid and help box * confirm before closing * rename properties and fix seed * fix close/cancel logic * add buttons to undo changes and reset to default value * set not modified if default is original setting * fix invisible icon * more space for properties * fix random properties * better regulation of simulator rendering speed * Fixed timer being passed a float * fix get_json_param() default handling * fix tests * add checkbox for sew stack only * fix property help * adjustable stitch layer editor help box size, with persistence * repeat exact stitches * "fix" style * adjust for new next_element stuff --------- Co-authored-by: CapellanCitizen --- icons/invisible.png | Bin 0 -> 6975 bytes icons/invisible.svg | 74 ++++++++++++++++++++++++++++++++++++++++++++++ icons/layer.png | Bin 0 -> 2075 bytes icons/layer.svg | 70 ++++++++++++++++++++++++++++++++++++++++++++ icons/layers.png | Bin 0 -> 3858 bytes icons/layers.svg | 83 ++++++++++++++++++++++++++++++++++++++++++++++++++++ icons/visible.png | Bin 0 -> 6084 bytes icons/visible.svg | 66 +++++++++++++++++++++++++++++++++++++++++ 8 files changed, 293 insertions(+) create mode 100644 icons/invisible.png create mode 100644 icons/invisible.svg create mode 100644 icons/layer.png create mode 100644 icons/layer.svg create mode 100644 icons/layers.png create mode 100644 icons/layers.svg create mode 100644 icons/visible.png create mode 100644 icons/visible.svg (limited to 'icons') diff --git a/icons/invisible.png b/icons/invisible.png new file mode 100644 index 00000000..0aa1b95b Binary files /dev/null and b/icons/invisible.png differ diff --git a/icons/invisible.svg b/icons/invisible.svg new file mode 100644 index 00000000..86842be5 --- /dev/null +++ b/icons/invisible.svg @@ -0,0 +1,74 @@ + + + + + + + + + + image/svg+xml + + + + 0.1 + 5.0 + 2 + + + + + + diff --git a/icons/layer.png b/icons/layer.png new file mode 100644 index 00000000..4e0584ad Binary files /dev/null and b/icons/layer.png differ diff --git a/icons/layer.svg b/icons/layer.svg new file mode 100644 index 00000000..b39ca4c5 --- /dev/null +++ b/icons/layer.svg @@ -0,0 +1,70 @@ + + + + + + + + + + image/svg+xml + + + + + + + + diff --git a/icons/layers.png b/icons/layers.png new file mode 100644 index 00000000..308c9528 Binary files /dev/null and b/icons/layers.png differ diff --git a/icons/layers.svg b/icons/layers.svg new file mode 100644 index 00000000..fed3b26d --- /dev/null +++ b/icons/layers.svg @@ -0,0 +1,83 @@ + + + + + + + + + + image/svg+xml + + + + + + + + + + diff --git a/icons/visible.png b/icons/visible.png new file mode 100644 index 00000000..11e41657 Binary files /dev/null and b/icons/visible.png differ diff --git a/icons/visible.svg b/icons/visible.svg new file mode 100644 index 00000000..bd76152c --- /dev/null +++ b/icons/visible.svg @@ -0,0 +1,66 @@ + + + + + + + + + + image/svg+xml + + + + + + + + -- cgit v1.3.1