summaryrefslogtreecommitdiff
path: root/tests
AgeCommit message (Collapse)Author
2025-07-19Convert to satin internally (3874)Kaalleen
2025-07-11Fix issue with bad color names (#3816)Kaalleen
* fix issue with bad color names and define element colors at one place and reuse * fix bad tartan color * verify color in gradient block * add thread color tests * use default color behavior for elements linked to non-existing definitions (gradients) * Added mypy change for tests (authored by: CapellanCitizen)
2025-07-10fix(test): fix output tests being fluky (#3859)Martin Fischer
Fixes #3855.
2025-07-01fix style (#3838)Kaalleen
2025-06-29Merge pull request #3825 from not-my-profile/support-bundled-inkexKaalleen
Revert "add icc color workaround (#3687)" and use 1.4.x inkex
2025-06-28fix: tests during Nix buildMartin Fischer
Fixes the following error when executing the tests during a Nix build: Traceback (most recent call last): File "/build/inkstitch/lib/elements/element.py", line 714, in handle_unexpected_exceptions yield File "/build/inkstitch/lib/elements/element.py", line 650, in embroider stitch_groups = self._load_cached_stitch_groups(previous_stitch, next_element) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/build/inkstitch/lib/debug/debug.py", line 172, in decorated result = func(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^ File "/build/inkstitch/lib/elements/element.py", line 541, in _load_cached_stitch_groups stitch_groups = get_stitch_plan_cache().get(cache_key) ^^^^^^^^^^^^^^^^^^^^^^^ File "/build/inkstitch/lib/utils/cache.py", line 31, in get_stitch_plan_cache cache_dir = get_user_dir('cache') ^^^^^^^^^^^^^^^^^^^^^ File "/build/inkstitch/lib/utils/paths.py", line 50, in get_user_dir os.makedirs(path) File "<frozen os>", line 215, in makedirs File "<frozen os>", line 215, in makedirs File "<frozen os>", line 225, in makedirs PermissionError: [Errno 13] Permission denied: '/homeless-shelter'
2025-06-28test: add tests for ThreadColor initializationMartin Fischer
2025-06-23fix: set trims=True for pyembroidery.write (#3821)Martin Fischer
While the trims default was changed in pyembroidery back in 2019 with c4242f0f940c86766c0c27f65b5a09641b0af4bd that change only made it into the used Ink/Stitch fork of pyembroidery in 2022 with 28534cf1a8d692687d9f40c3be622e0945b5a2ee. So trims have been broken in Ink/Stitch since v2.2.0. Fixes #2813.
2025-03-25Read sew stack debug information once and re-use (#3604)Kaalleen
2025-03-09Mypy type correctness (#3199)capellancitizen
2025-02-03Add debug variable to enable sew stack elements (#3476)Kaalleen
2025-01-29Sew Stack first steps (#3133)Lex Neva
* 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 <thecapellancitizen@gmail.com>
2024-12-07Enable start end commands for satins (#3315)Kaalleen
Updates commands fill_start (_end) => starting_point (_end) stain_start (_end) and run_start (_end) => autoroute_start ripple_target => target_point Sets inkstitch svg version to 3
2024-08-28Fixed hidden objects being stitched out when cloned (Fix #3167) (#3171)capellancitizen
Extracted Base.descendants into a util function
2024-08-14Clones now also clone commands attached to element and its children. (#3032, ↵capellancitizen
#3121) (#3086)
2024-04-23Clean-up of clone code (#2851)capellancitizen
2024-04-12Additional Clone functionality (#2834)capellancitizen
- Recursive Clones now pick up inkstitch:angle etc. from clones they clone - Style now properly propogates to clones - Unlink Clone tool (which applies angle changes, etc.) - Minor refactoring
2024-03-28Fixed clones of group elements not appearing. (#2766)capellancitizen
2021-07-25Fix Style Issues (#1154)Kaalleen
Co-authored-by: Lex Neva <github.com@lexneva.name>