Wykres commitów

19 Commity (a11aee20eed45ac91cf61f2249e40b40edf0fde8)

Autor SHA1 Wiadomość Data
Kaalleen ffc0db1ddf
Convert to satin internally (3874) 2025-07-19 22:30:15 +02:00
Kaalleen 2235ec6571
Fix issue with bad color names (#3816)
* 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-11 22:14:52 +02:00
Martin Fischer 6992923621
fix(test): fix output tests being fluky (#3859)
Fixes #3855.
2025-07-10 09:39:18 -04:00
Kaalleen 4a08f503bd
fix style (#3838) 2025-07-01 06:49:30 +03:00
Kaalleen 81e48c151b
Merge pull request #3825 from not-my-profile/support-bundled-inkex
Revert "add icc color workaround (#3687)" and use 1.4.x inkex
2025-06-29 06:56:15 +02:00
Martin Fischer 40f1b2eccf fix: tests during Nix build
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-28 07:10:54 +02:00
Martin Fischer 140c4bf995 test: add tests for ThreadColor initialization 2025-06-28 07:09:44 +02:00
Martin Fischer 2134897db8
fix: set trims=True for pyembroidery.write (#3821)
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 28534cf1a8.

So trims have been broken in Ink/Stitch since v2.2.0.

Fixes #2813.
2025-06-23 22:38:06 -04:00
Kaalleen c1759232b4
Read sew stack debug information once and re-use (#3604) 2025-03-25 07:15:33 +01:00
capellancitizen 99509df8d8
Mypy type correctness (#3199) 2025-03-09 21:21:48 -04:00
Kaalleen 497fbcfab5
Add debug variable to enable sew stack elements (#3476) 2025-02-03 22:37:36 +01:00
Lex Neva 913c2700d1
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 <thecapellancitizen@gmail.com>
2025-01-29 12:04:07 -05:00
Kaalleen b010519688
Enable start end commands for satins (#3315)
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-12-07 15:20:11 +01:00
capellancitizen 7474aa7a3a
Fixed hidden objects being stitched out when cloned (Fix #3167) (#3171)
Extracted Base.descendants into a util function
2024-08-28 20:12:16 -04:00
capellancitizen f3a3cde71e
Clones now also clone commands attached to element and its children. (#3032, #3121) (#3086) 2024-08-14 19:40:42 -04:00
capellancitizen cca25ba679
Clean-up of clone code (#2851) 2024-04-23 18:09:32 -04:00
capellancitizen 7e756b8971
Additional Clone functionality (#2834)
- 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-04-12 16:01:17 -04:00
capellancitizen 2bbebe56fd
Fixed clones of group elements not appearing. (#2766) 2024-03-28 22:21:42 +01:00
Kaalleen 2f35a4a192
Fix Style Issues (#1154)
Co-authored-by: Lex Neva <github.com@lexneva.name>
2021-07-25 07:24:34 +02:00