summaryrefslogtreecommitdiff
path: root/lib/elements/stroke.py
AgeCommit message (Collapse)Author
11 daysRunning stitch length sequence (#4034)Kaalleen
* allow running stitch length sequences * contour fill: fix error message for long stitch length * satin: fix center underlay stitch length
2025-10-05stroke: filter invalid paths in clipped path (#3989)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-05-20Manual stitch: apply clipping (#3734)Kaalleen
* manual stitch: apply clipping * add clip to cache
2025-04-18Disconnect stroke and fill pull compensation param (#3670)Kaalleen
* make stroke pull compensation a sided property
2025-03-02Use symbol as command position (#3542)Kaalleen
2025-02-09stroke: as_multi_line_string ignore single point paths (#3491)Kaalleen
2025-01-26Improve satin guided ripple stitch and add stitch grid first option (#3436)Kaalleen
* ripple stitch: add stitch grid first option * introduce an anchor line to fine tune satin guided ripples
2024-12-27forgot to remove this (#3375)Kaalleen
2024-12-27various fixes (#3372)Kaalleen
2024-12-26End points (#3370)Kaalleen
* end at nearest point to next element (if requested and possible)
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-11-30add bean stitch option to manual stitch (#3312)Kaalleen
2024-11-18Manual ripple pattern (#3256)Kaalleen
* ripple stitch: add manual pattern placement option * add flip copies option * rewrite adjust grid * more control for satin guided ripples: render at rungs
2024-11-12Clipped groups (#3261)Kaalleen
2024-07-24method expects string after all (#3108)Kaalleen
2024-07-22multiple int param is expected to return int not str (#3102)Kaalleen
2024-06-22fix typo (#3006)Kaalleen
2024-06-20gray out randomize stitch length param when random stitch length is disabled ↵Kaalleen
(#3002)
2024-05-05Add randomized running and fill stitches (#2830)George Steel
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-03-26Add object based min stitch length (#2792)Kaalleen
* add object based min stitch length (overwrites global) * add object based minimum jump stitch (overwrites global) * rename patches to stitch_groups
2024-01-28add zigzag option to meander (#2699)Kaalleen
2023-11-10fix invalid clip path (#2577)Kaalleen
use fallback if shape has grating issues (too small)
2023-07-04render satins with only one subpath as running stitch (#2404)Kaalleen
2023-05-16change running stitch length defaultKaalleen
2023-05-14add reverse rails to rippleKaalleen
2023-05-10apply clip to stroke (#2283)Kaalleen
2023-05-06Avoid duplicated points in make_spiral (#2268)Kaalleen
* avoid duplicated points in make_spiral * circular fill: add end_row_spacing, repeats and bean repeats * fix circular fill if original shape is a circle
2023-04-28stagger ripples: rows are lines (#2250)Kaalleen
2023-04-27Ripple stitch: add density and stagger option (#2206)Kaalleen
2023-04-27stroke_method: running stitch fallback (#2241)Kaalleen
2023-04-23add pull compensation param to zigzag stitches (#2228)Kaalleen
2023-04-08add max stitch length setting to manual stitch (#2201)Kaalleen
2023-03-25Stitch selection methods (#2114)Kaalleen
2023-03-09Various fixes (#2125)Kaalleen
* add unit info to scale value in ripple stitch * fix apply threadlist with empty description * fix satin type ripple with unequal nodes * fix legacy auto_fill conversion * inform about too small meander shapes
2023-03-07Add extension stroke to lpe satin (#2115)Kaalleen
2023-03-07Allow locks, trim, stop on manual stitch placement (#2101)Rick Levine
Co-authored-by: Lex Neva
2023-02-27Various lock stitch options (#2006)Kaalleen
Co-authored-by: Lex Neva
2023-01-22Replace running stitch algorithm to give consistent stitch lengths.George Steel
2023-01-15Add bean stitch repeat pattern (#1938)Kaalleen
! backward compatibility warning: Users need to fix their documents if they used comma separated values for multiple fill underlays (without a space)
2023-01-07Merge branch 'main' of https://github.com/inkstitch/inkstitch into ↵George Steel
george-steel/random-base-satin
2023-01-07Cutwork needle info (#1988)Kaalleen
* add cutwork needle info to thread color * apply threadlist: apply cutwork_needle attribute
2022-12-26use random oracle for randomized satin columns and redo split stitchesGeorge Steel
2022-11-22small zigzag warning (#1891)Kaalleen
2022-06-30Fixes (#1703)Kaalleen
* guide line position * use direction from line to shape * optimize intersection detection * fix flapack elf * handle weird guide lines better * update starting point for self crossing (multiple) fills * ripple: fixes and non circular join style * avoid jumps in ripple stitch * fallback only necessary if shape does not intersect grating * make valid may return a polygon * add profiling * Stitch.__init__ didn't work right and was super slow * shrink or grow to multipolygon Co-authored-by: Lex Neva
2022-06-22add running stitch tolerance param (#1701)Lex Neva
2022-06-10Guided ripple stitch (#1675)Kaalleen
Co-authored-by: @lexelby
2022-05-24Add ripple stitch feature (#1667)Kaalleen
2022-05-20Merge pull request #1548 from inkstitch/feature_guided_fillLex Neva
Feature guided fill
2022-05-19avoid simple satin division by zero errorKaalleen