Wykres commitów

391 Commity (capellan-mypy)

Autor SHA1 Wiadomość Data
CapellanCitizen c24b60f7a8 @Override doesn't exist in 3.11 2025-03-08 15:39:57 -05:00
CapellanCitizen 51a922702f Additional strictness and some logging 2025-03-08 15:33:38 -05:00
CapellanCitizen f3c064b4e5 Progress 2025-03-07 21:20:22 -05:00
CapellanCitizen 47e03c08cc Mypy type correctness. 2025-03-05 21:13:11 -05:00
Kaalleen dc23265d2d
Use symbol as command position (#3542) 2025-03-02 20:54:56 +01:00
Kaalleen 24775f33bf
stroke: as_multi_line_string ignore single point paths (#3491) 2025-02-09 16:02:49 +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 26784be265
enable the expand option for contour fill (#3462) 2025-01-27 19:54:32 +01:00
Kaalleen 160ef32d43
Improve satin guided ripple stitch and add stitch grid first option (#3436)
* ripple stitch: add stitch grid first option
* introduce an anchor line to fine tune satin guided ripples
2025-01-26 07:37:21 +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 be595f1460
improve symbol handling (#3440) 2025-01-16 19:21:57 +01:00
Kaalleen 0e218fd317
satin: set start/end at nearest point as default (#3423) 2025-01-11 08:54:32 +01:00
Kaalleen fd0550edbc
exclude invisible from node_to_elements directly (#3424) 2025-01-09 17:07:00 +01:00
Kaalleen 9c89fc7675
precision test (FloatingPointError) (#3404) 2025-01-04 13:07:20 +01:00
Kaalleen 8c7c208b5e
fill: first stitch correction (#3391) 2025-01-01 07:54:14 +01:00
Kaalleen 2539af7e04
Multi shape tartan jumps (#3386)
* lettering_ description box size
* reduce jump stitches for combined tartan patterns
2024-12-30 20:40:24 +01:00
Kaalleen 38e74354cd
forgot to remove this (#3375) 2024-12-27 22:53:04 +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 13ddafb2ad
add bean stitch option to manual stitch (#3312) 2024-11-30 17:29:09 +01:00
Kaalleen a980ed0dbc
add randomization options to linear gradient fill (#3311) 2024-11-30 17:27:48 +01:00
Kaalleen dde0444ac2
Manual ripple pattern (#3256)
* 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-18 11:54:14 +01:00
Kaalleen d15b1f40c7
Add icons and descriptions for extension gallery (#3287) 2024-11-18 11:39:57 +01:00
Kaalleen b20ad42733
clone: do not fixup href (#3277) 2024-11-12 19:08:33 +01:00
Kaalleen 45dda2616d
Clipped groups (#3261) 2024-11-12 19:07:24 +01:00
Kaalleen 0113631627
Fix 'None'-string confusions in style (#3243) 2024-11-01 07:03:08 +01:00
Kaalleen dbfdb3e8d4
satin column: ignore single point paths (#3244) 2024-10-21 16:45:10 +02:00
Kaalleen 5185237643
fix gradient style (#3200) 2024-09-30 10:57:26 +02:00
Kaalleen 4edb11d058
Fix clones with NoneType hrefs (#3196) 2024-09-17 17:35:31 +02: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 07f98b0a9b
Fixed transforms on cloned commands (#3160)
Also, point-upwards now applied to commands that are children
of cloned elements.
2024-08-20 23:18:13 -04:00
Kaalleen 5e387d76a7
satin troubleshoot: do not fail on satins without rails (#3148) 2024-08-17 17:27:29 +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 828ce1d675
method expects string after all (#3108) 2024-07-24 16:27:37 +02:00
Kaalleen 1b09fdbddb
multiple int param is expected to return int not str (#3102) 2024-07-22 17:39:41 +02:00
rejbasket 9c537f33b9
shapely arm fix (#3094) 2024-07-20 09:20:10 +02:00
Kaalleen e52886a64a
Various fixes (#3028)
* several thread palette extension fixes
* fix svg tartan when original shape is invalid
* tartan stroke spaces
* style
* fix tartan color substituion at pattern start
* ripple: do not render too small paths
* use less space for params warning headline
* fix clone shape path
* zip export template fix (typo)
* add realistic stitch plan output warning (help tab)
2024-06-30 22:49:18 +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
Kaalleen 8968f8698c
fix typo (#3006) 2024-06-22 06:51:41 +02:00
Lex Neva e8017e0bcc
auto-fill pull compensation (#2891) 2024-06-20 19:45:53 +02:00
Kaalleen c017cae01a
gray out randomize stitch length param when random stitch length is disabled (#3002) 2024-06-20 16:56:00 +02:00
Kaalleen 1cc14f7ba6
add warning for closed path satins (#2976) 2024-06-09 11:06:08 +02:00
Lex Neva f3ed7249eb
auto fill gap fix (#2884)
* first try

* fill gaps

* fix style

* add parameter

* loops can only be made of non-segments
2024-06-07 14:33:20 -07:00
Kaalleen 952ba0023a
Update tartan gui (#2965)
* update tartan gui
* params settings size
* fix issue with set_precision
* fix issue with linear gradient
* do not add ignore layer command to png rerealistic output
2024-06-04 22:27:33 +02:00
Kaalleen 7f9ae2ca1e
Avoid FloatingPointError (fill) (#2959) 2024-06-03 06:52:03 +02:00