summaryrefslogtreecommitdiff
path: root/lib/elements/element.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-27cut satin: allow multiple cut position commands (#4015)Kaalleen
2025-10-22Gradient color: fix cache key error (#4007)Kaalleen
* use first stop color for non linear gradient fill objects * fix bug in get_cache_key for gradient objects
2025-10-10satin: multiple levels for short stitches (#3987)Kaalleen
2025-08-31stroke to satin: ensure a good starting point for closed paths (#3944)Kaalleen
starting point for the conversion, not necessarily the resulting column
2025-08-27color fixes (#3936)Kaalleen
2025-08-22a few fixes for converting stroke to satin internally (#3926)Lex Neva
* 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-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-21prevent erroring out on #3742 (#3743)Kaalleen
2025-05-20fix ripple anchor cache (#3737)Kaalleen
2025-05-20Manual stitch: apply clipping (#3734)Kaalleen
* manual stitch: apply clipping * add clip to cache
2025-03-09Mypy type correctness (#3199)capellancitizen
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-26End points (#3370)Kaalleen
* end at nearest point to next element (if requested and possible)
2024-11-01Fix 'None'-string confusions in style (#3243)Kaalleen
2024-09-30fix gradient style (#3200)Kaalleen
2024-08-14Clones now also clone commands attached to element and its children. (#3032, ↵capellancitizen
#3121) (#3086)
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-20gray out randomize stitch length param when random stitch length is disabled ↵Kaalleen
(#3002)
2024-05-11Update inkex (#2892)Kaalleen
* fix currentColor * fix pip inkex import * fix color block extension
2024-05-06Remove unused param from legacy fill (#2879)Kaalleen
* remove unused param from legacy fill * zigzag -> zig-zag, some ordering
2024-04-27Add option to disable the stitch plan cache (#2655)George Steel
Setting the cache size to 0 bypasses the cache completely. This is necessary during development to ensure newly-changed code actually gets run. Also fixes the error pane in the params gui. * make params warning pane large enough to see contents * rename sizers in preferences dialog descriptive names * add shapely version bound * add option to disable stitch plan cache * remove out-of-date wxg file * make a cache size of 0 disable the cache
2024-04-06remove empty d error (#2818)Kaalleen
2024-03-29Add "the tartan universe" (#2782)Kaalleen
2024-03-28Fixed clones of group elements not appearing. (#2766)capellancitizen
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-03-07Fix lettering along path when glyphs have subgroups (#2754)Kaalleen
* remove "use no commands" restriction for lettering along path
2024-03-01collapse length is not used anymore (#2745)Claudine Peyrat
replace collapse length by minimum jump stitch length in a tool tip
2023-11-22Add linear gradient fill (#2587)Kaalleen
2023-09-07improve params errors (#2437)Lex Neva
2023-05-01remove random seed param from unaffected stitch types (#2251)Kaalleen
2023-04-30multiple_int_param: ignore multiple spaces (#2255)Kaalleen
2023-04-20Fix custom lock (#2224)Kaalleen
Authored by: Lex Neva
2023-04-15Add inkstitch svg version tag (#2199)Kaalleen
... to make it easier to update legacy default values
2023-04-01zigzag: do not care about dashes (#2188)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-07change method to update legacy fill_method (#2111)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-02-25Clone Cache (#2086)Kaalleen
Co-authored-by: Lex Neva
2023-02-18include guides in cache keyLex Neva
2023-02-18consistent cache key for Stitch objectsLex Neva
2023-02-18use patterns in cache keyLex Neva
2023-02-18use commands in cache keyLex Neva
2023-02-18cache key includes previous stitchLex Neva
2023-02-18cache key generation using params, path, color, and styleLex Neva
2023-02-18remove unused and broken has_style() methodLex Neva