Wykres commitów

150 Commity (main)

Autor SHA1 Wiadomość Data
Kaalleen 612f18dc71
stroke to satin: ensure a good starting point for closed paths (#3944)
starting point for the conversion, not necessarily the resulting column
2025-08-31 11:25:46 +02:00
Lex Neva dbef888e4d
fix crash with tiny satin (#3934)
* avoid crash on tiny satin

* cleanup small satins too

* fix #3933

---------

Co-authored-by: Kaalleen <reni@allenka.de>
2025-08-24 09:14:09 -04:00
Lex Neva c6c10ad642
a few fixes for converting stroke to satin internally (#3926)
* remove unused flatten_subpath()

* there will always be two rails here

* handle degenerate zero-length sections

* remove unused SatinColumn.merge()

* mark merge() as private and adjust docstring
2025-08-22 08:47:24 -04:00
Kaalleen 2417b351d2
satin: skip contour underlay if there are no pairs (#3912) 2025-08-19 13:59:02 +02:00
Kaalleen 9263affdd5
rungs at nodes for on-the-fly-satins (#3903) 2025-08-19 13:58:41 +02:00
Kaalleen e01532e2ac
Satin: first_stitch method fails on invalid path (#3882)
* satin: do not fail on invalid path in first stitch method
* fix validation errors too
2025-07-20 11:29:07 +02:00
Kaalleen ffc0db1ddf
Convert to satin internally (3874) 2025-07-19 22:30:15 +02:00
Kaalleen 407713ae1a
satin: fix empty rail issue (#3863) 2025-07-12 07:58:49 +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
Kaalleen 04fcf8fd13
Fix an issue when auto_satin produces NoneType satins (#3680) 2025-04-18 19:03:20 +02:00
Kaalleen 37f3c57b95
Multicolor satin (windows): apply settings in spinctrldouble when they hit enter (#3677)
* multicolor satin (windows): apply settings in spinctrldouble when they hit enter
* enable nearest points for multicolor satin
---------
Co-authored-by: CapellanCitizen
2025-04-18 07:19:52 +02:00
Kaalleen d6faff13ea
generate split line at specified end point rather than next point (#3634) 2025-04-06 12:28:58 +02:00
Kaalleen 51952d1f2a
Rewrite force lock stitch extension (#3559)
* rewrite force lock stitch extension
* do not add forced lock stitch before color change
2025-03-10 08:21:18 +01:00
Kaalleen 7fcb5fcfb2
satin: ignore ending_point when it is already at the end (#3460) 2025-01-25 16:08:35 +01:00
Kaalleen 6ed0a35dd2
satin ending_point: fix error when split point at start/end (#3452) 2025-01-22 10:21:06 +01:00
Kaalleen 0e218fd317
satin: set start/end at nearest point as default (#3423) 2025-01-11 08:54:32 +01:00
Kaalleen 9c89fc7675
precision test (FloatingPointError) (#3404) 2025-01-04 13:07:20 +01:00
Kaalleen 7ba51c0c96
various fixes (#3372) 2024-12-27 18:10:39 +01:00
Kaalleen ef7d056173
End points (#3370)
* end at nearest point to next element (if requested and possible)
2024-12-26 16:19:35 +01:00
Kaalleen f2d2d154d0
add rungs when rails are intersecting (#3344) 2024-12-15 14:58:30 +01:00
Kaalleen 1abd305132
Split satins at stitch level (#3336) 2024-12-14 16:49:10 +01: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
Kaalleen dbfdb3e8d4
satin column: ignore single point paths (#3244) 2024-10-21 16:45:10 +02:00
Kaalleen 5e387d76a7
satin troubleshoot: do not fail on satins without rails (#3148) 2024-08-17 17:27:29 +02:00
rejbasket 9c537f33b9
shapely arm fix (#3094) 2024-07-20 09:20:10 +02:00
Kaalleen 2281130ab7
Various fixes (#3011)
* change satin underlay stitch length default for real
* fix zero length lock stitch
* fix typos
2024-06-23 13:59:20 +02:00
Lex Neva e8017e0bcc
auto-fill pull compensation (#2891) 2024-06-20 19:45:53 +02:00
Kaalleen 1cc14f7ba6
add warning for closed path satins (#2976) 2024-06-09 11:06:08 +02:00
Kaalleen 7a19800a6f
add links to documention in inx extensions (#2937) 2024-05-22 21:49:35 +02:00
Kaalleen 175709cdcf
set default underlay stitch length to 3 (#2925) 2024-05-22 21:47:29 +02:00
Claudine Peyrat 501a089142
add a tooltip to split method param (#2926) 2024-05-20 22:53:44 +02:00
Kaalleen 2cd0f89747
filter invalid satin second trial (#2918) 2024-05-17 11:23:34 +02:00
Kaalleen 4cda460741
filter invalid paths in satins (#2916) 2024-05-17 09:57:16 +02:00
Kaalleen 705dabaa56
fix gap after auto-route satin (#2907) 2024-05-16 06:43:01 +02:00
Kaalleen 747ae5e3b7
fix center walk underlay repeats (#2895) 2024-05-12 20:19:56 +02:00
Kaalleen bf42ef00ca
Update inkex (#2892)
* fix currentColor
* fix pip inkex import
* fix color block extension
2024-05-11 08:14:40 +02:00
George Steel d32a8fd466
Add randomized running and fill stitches (#2830)
Add a mode to running stitch that uses randomized phase and stitch length instead of even spacing. This greatly reduces moire effects when stitching closely-spaced curves in running-stitch-based fills.

Add option for randomized running stitch to:

    ripple stitch
    circular fill
    contour fill
    guided fill
    auto-fill

When is randomization is not selected, ripple stitch will use even running stitch when staggers are set to 0 (default) and the stagger algorithm from guided fill (which does not look nice with a stagger period of 0) when staggers is nonzero.

Also includes fix for satin contour underlays (missing tolerance default) mentioned in #2814. This sets the default tolerance to 0.2mm, which is the largest tolerance guaranteed to be backwards-compatible with existing designs using the default inset of 0.4mm.

Original commits:
* fix satin underlay tolerance default
* Add randomized running stitch, make available in ripple stitch, circular, and contour
* add randomized guided fill
* make ripple stitch use even stitching when not staggering or randomizing.
* add random auto-fill and switch jitter parameter to a percentage (matches satin)
* fix comments
2024-05-05 13:55:33 -04:00
Kaalleen a5aa9dd688
add stitch tolerance to satin underlays (#2814) 2024-04-01 22:52:27 +02:00
Kaalleen 8e70f3d2fe
Add object based min stitch length (#2792)
* add object based min stitch length (overwrites global)
* add object based minimum jump stitch (overwrites global)
* rename patches to stitch_groups
2024-03-26 07:10:40 +01:00
Kaalleen 1112959da1
use offset curve for convert satin extension (#2775)
filter invalid rungs when merging satin sections
2024-03-23 09:00:40 +01:00
Kaalleen 3bf30f6f26
add no rung warning (#2791) 2024-03-23 08:18:39 +01:00
Kaalleen 760f39df90
Satin warnings (#2735) 2024-02-23 16:52:29 +01:00
Kaalleen e87fe0cce7
Detect satins with two rungs (#2734)
1. select elements
2. troubleshoot
2024-02-21 22:48:33 +01:00
Kaalleen 28dba29684
troubleshoot: pointer on rail (#2657) 2023-12-28 06:53:29 +01:00
Claudine Peyrat 732a6556de
replace jumps by running stitches in large satin columns (#2624)
* replace jumps by running stitches

- this modify the contour underlay by adding a running stitch to travel from first side to second side
- it also add running stitches between underlays and between underlay and final satin stitches

* rename patch to stitch_group

* Update satin_column.py

add a function to avoid repetitive code
2023-12-17 18:58:52 +01:00
Claudine Peyrat 905bab632e
Update satin_column.py (#2578)
* Update satin_column.py

* Update satin_column.py
2023-10-28 19:56:47 +02:00
Claudine Peyrat a2adb03b6a
correct tooltip (#2573)
tooltip for random zig-zag spacing was  hinting it was applied to stitch length.
2023-10-23 20:23:16 +02:00
Lex Neva 5e208661d2
Merge pull request #2431 from inkstitch/lexelby/split-satin-stagger
stagger split satin rows
2023-09-11 16:57:23 -04:00
Kaalleen c90064d0d3 zigzag: ensure pairs 2023-09-07 18:55:57 +02:00
Lex Neva acd565c640 obey reversed rails when synthesizing rungs 2023-08-05 11:31:12 -04:00