Wykres commitów

93 Commity (dev-build-kaalleen-remove-delete)

Autor SHA1 Wiadomość Data
capellancitizen 99509df8d8
Mypy type correctness (#3199) 2025-03-09 21:21:48 -04:00
Kaalleen f672d71335
use get_user_dir (#3549) 2025-03-04 09:56:51 +01:00
Benson Muite bef98ef4eb
Migrate from appdirs to platformdirs (#3449) (#3450) 2025-03-04 09:17:22 +01:00
Kaalleen 70d2ea52c4
remove scipy dependency (#3483)
smoothing with scipy (could be improved in a later commit)
2025-03-02 18:35:17 +01:00
Kaalleen 332a05405b
greater lettering memory (#3504) 2025-02-13 18:06:12 +01:00
Kaalleen cee9aa0d1d
lettering tools: remember last font (#3498) 2025-02-11 18:52:01 +01: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 f0d0f559b6
cache: reset on operational error (#3421) 2025-01-09 17:06:35 +01:00
Kaalleen ca02ac5b01
save and reload simulator speed (optionally) (#3420) 2025-01-09 17:06:07 +01:00
Kaalleen 154309906f
save more simulator settings (#3323) 2024-12-07 15:13:22 +01:00
Kaalleen a66ae845f1
Print-pdf: simplify path detection (#3282)
* print-pdf: simplify path detection
* i18n: more cleaning up
* Version, License paths
2024-11-18 12:56:38 +01:00
Kaalleen e8123b7274
Thread catalog: fix broken path (#3281)
* thread catalog: fix broken path
* apply threadlist: use wxpython to also include custom lists
* apply_palette: save last choice
2024-11-18 11:12:58 +01:00
Kaalleen 7c99a138d1
unit: prevent zerodivision error for zero length segments (#3268) 2024-11-12 19:03:49 +01:00
Kaalleen 7cf952dce2
fill: ensure polygon in pull comp adjusted shape (#3143) 2024-08-18 20:05:37 +02: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
Kaalleen 90994356ec
default min stitch length 0 to 0.1 (as previously) (#3107) 2024-07-24 16:28:23 +02:00
Kaalleen 22920f5c51
reset corrupted cache files (#3074) 2024-07-09 18:19:15 +02:00
Kaalleen 7a856a77e4
wxpythonify about extension (#3007) 2024-06-23 10:58:16 +02:00
Lex Neva e8017e0bcc
auto-fill pull compensation (#2891) 2024-06-20 19:45:53 +02:00
Kaalleen dbdba2cda3
Add preferences button to simulator (#2992)
* split simulator panel files
* add view panel to position view options at the side
* fix single simulator start size (macOS)
2024-06-14 09:49:57 +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
Lex Neva 3f0f04abec
simulator fixes (#2844)
* fix slide and control panel rendering bugs

* clear marker lists when clearing stitch plan

* switch simulator back to wx

* remove unused function

* fix off-by-one error in color bar

* avoid overlapping command symbols of different types

* don't maximize simulator

* adjust alignment

* remove unused API server

* bugfix

* focus entire simulator panel

* rename simulator/realistic preview -> simulator

* experimental: background color picker

* set pagecolor to background color by default

* satisfy macos

* toggle jumps on drawing canvas

* clear frog family

---------

Co-authored-by: Kaalleen
2024-04-30 20:21:32 +02:00
George Steel 05ca4132f1
Add option to disable the stitch plan cache (#2655)
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-27 14:16:18 -04:00
Kaalleen 2439adafa8
Add "the tartan universe" (#2782) 2024-03-29 10:25:02 +01:00
Kaalleen 39a825d823
Do not omit "multi_shapes" in geometry collections (#2708) 2024-02-01 19:23:29 +01:00
Kaalleen 2677c30a0f
Second chance for invalid fill stitch graphs (#2643) 2024-01-25 17:54:08 +01:00
Kaalleen d1624fdb36
Contour fill: replace buffer with offset_curve (#2654) 2023-12-26 09:37:30 +01:00
Lex Neva f0262a5709
handle case of travelling along shape border (#2593) 2023-11-10 16:42:46 +01:00
Lex Neva 82f2edac1a
attach params/lettering simulator window and allow detach (#2557) 2023-10-21 18:16:34 +02:00
Lex Neva f9438ac9ff return early for paths already inside 2023-07-01 08:23:46 +02:00
Lex Neva ec68c17a05 remove debug timing in frequently-run functions 2023-07-01 08:23:46 +02:00
Lex Neva 81e84db8a2 avoid losing start and end of path when clamping 2023-07-01 08:23:46 +02:00
Lex Neva 20829e6133
new way betterer satin algo (#2178)
* significantly faster length calculation
* way betterer satin algo
2023-04-14 18:51:40 +02:00
Lex Neva f57d61b6e6 meander fixes 2023-04-02 00:14:57 -04:00
Kaalleen 9552291de5
change method to update legacy fill_method (#2111) 2023-03-07 17:52:09 +01:00
Kaalleen 90d3fcf69c
add meander preview images (#2113) 2023-03-07 17:44:28 +01:00
Kaalleen ec076315bb
Various lock stitch options (#2006)
Co-authored-by: Lex Neva
2023-02-27 16:05:52 +01:00
Kaalleen ed4aa55a73
Circular fill (#2053) 2023-02-27 16:01:37 +01:00
Lex Neva 36f0946e2d fix flask json deprecation 2023-02-22 21:10:33 -05:00
Lex Neva 7fa3fec534 fix deprecation warning 2023-02-20 15:27:56 -05:00
Lex Neva 9ccf8b9b77 better smoothing algorithm 2023-02-20 15:27:56 -05:00
Lex Neva 68249fa783 avoid weird end of line after smoothing 2023-02-20 15:27:55 -05:00
Lex Neva 847e133f97 meander fill: more work 2023-02-20 15:27:55 -05:00
Lex Neva e2965e78f0 use snake case
per python coding standard
2023-02-20 15:27:55 -05:00
Lex Neva 85f921cd33 typo fix 2023-02-20 15:27:55 -05:00
Lex Neva ba835b4f5e meander fill: initial version 2023-02-20 15:27:55 -05:00
Lex Neva 8cead6e3d9 add smoothness option for contour fill 2023-02-20 15:27:35 -05:00
Lex Neva 0ace1ce72c add clamp_path_to_polygon 2023-02-20 15:27:35 -05:00