Wykres commitów

370 Commity (eb526927e16954390d06929535d6f5c3766b5f6c)

Autor SHA1 Wiadomość Data
Lex Neva 1f7b69980c render graphs as a single path to avoid killing inkscape 2019-04-04 19:57:40 -04:00
Lex Neva 6c5e57d39c implement lettering presets 2019-04-02 23:39:54 -04:00
Lex Neva a6a86973dd add localization for font names and descriptions 2019-04-02 23:07:38 -04:00
Lex Neva a9cf553066 add font description to font selector dropdown 2019-04-02 22:36:54 -04:00
Lex Neva 5550536949 implement font chooser 2019-04-02 20:15:06 -04:00
Kaalleen 211561eabc
simulator stitch box improvement (#402) 2019-04-02 06:27:33 +02:00
Lex Neva f5f0ce49a8 fix 'too many values to unpack' exception 2019-03-30 22:20:46 -04:00
Lex Neva d0ce93649d
Merge pull request #401 from inkstitch/lexelby/satin-density-fix
don't do density compensation in underlay
2019-03-30 21:57:19 -04:00
Lex Neva 37722b7ddf fix underlay underpath checkbox 2019-03-30 21:56:39 -04:00
Lex Neva 284ef6afcb avoid parsing forward slashes in docstring 2019-03-29 20:24:24 -04:00
Lex Neva 513850c975 add vertical travel edges for less jagged travel paths 2019-03-29 20:19:25 -04:00
Lex Neva 90a16fb7f9 more debug logging 2019-03-29 15:03:28 -04:00
Lex Neva 1995015021 add SVG debugging with LineStrings 2019-03-28 15:52:42 -04:00
Lex Neva 56f1d85647 add timing logging for auto-fill 2019-03-28 15:22:11 -04:00
Lex Neva 8aa86f6619 set up debug logging 2019-03-28 15:21:50 -04:00
Kaalleen f435520663
Add Custom Page to Print PDF (#418) 2019-03-26 18:24:02 +01:00
Lex Neva f6e6d099d2 penalize outline edges more 2019-03-24 14:57:47 -04:00
Lex Neva af6588a442 'fix' style 2019-03-24 14:50:49 -04:00
Lex Neva cf6621d0dd make travel stitch prefer the center of the shape 2019-03-22 20:08:47 -04:00
Lex Neva e54b9d7d8d default underlay underpathing to enabled as well 2019-03-22 19:34:03 -04:00
Lex Neva e7a8a3677b put underlay underpath checkbox in the right tab 2019-03-21 21:09:03 -04:00
Lex Neva eada4bed7e don't let simulator preview thread crash 2019-03-21 21:09:03 -04:00
Lex Neva 90fe045169 don't try to end inside the shape 2019-03-21 21:09:03 -04:00
Lex Neva 97ced89e87 switch to multigraph to avoid accidentally deleting outline edges 2019-03-20 22:41:57 -04:00
Lex Neva 1e5733bbcd add first stitch 2019-03-20 20:46:26 -04:00
Lex Neva 4c1f1bc2bb tidy up start/end travel code 2019-03-20 20:45:29 -04:00
Lex Neva 69df0271b5 protect against shapely error 2019-03-20 20:35:54 -04:00
Lex Neva 685df3b3f0 fix start/end at top or bottom of shape 2019-03-19 23:28:19 -04:00
Lex Neva 68590492f5 allow starting and ending on the border of a hole 2019-03-19 22:36:05 -04:00
Lex Neva 6b8121fb04 add underpath checkboxes for underlay and top stitching 2019-03-19 22:30:07 -04:00
Lex Neva 8520d4e63c avoid cutting corners 2019-03-19 20:26:25 -04:00
Lex Neva ba2b78d349 use blazing-fast STRtree for intersection detection 2019-03-19 20:02:42 -04:00
Lex Neva 2ba333c8a7 avoid putting underpathing on top 2019-03-18 20:57:05 -04:00
Lex Neva ec14fe7343 more cleanup 2019-03-14 21:54:51 -04:00
Lex Neva 200e2ac5f7 deduplicate and comment code 2019-03-14 21:46:44 -04:00
Lex Neva e616061e85 underpathing! 2019-03-14 21:02:47 -04:00
Lex Neva 30ea54dc6d tidy up the code a bit 2019-03-13 20:11:07 -04:00
Lex Neva 8323bd5f0f remove unused code 2019-03-13 06:18:27 -04:00
Lex Neva 8ffa9ca90e faster, simpler auto-fill algorithm 2019-03-12 23:03:22 -04:00
Lex Neva 0a06fa740c shapely.geometry -> shgeo for brevity 2019-03-12 22:32:56 -04:00
Lex Neva 110dca3c9a make debugging auto-fill easier 2019-03-10 18:24:10 -04:00
Lex Neva 13b6c67644 less haphazard positioning for commands 2019-03-08 20:51:58 -05:00
Lex Neva d1c001857d get root properly 2019-03-08 20:51:58 -05:00
Lex Neva fb3c8186d2 lower trim threshold to 0.75mm 2019-03-08 20:06:36 -05:00
Lex Neva a14ed903cf auto satin should trim at the end too 2019-03-08 19:59:28 -05:00
Lex Neva 602f201cb6 implement trim option for lettering 2019-03-08 19:57:11 -05:00
Lex Neva 53a9bd6b31 add trims in stitches.auto_satin 2019-03-08 19:57:11 -05:00
Lex Neva 4ba3cd7085 refactor add_commands() out into commands module 2019-03-08 19:57:11 -05:00
Lex Neva aea7b846a2 correct for viewbox 2019-03-08 19:57:11 -05:00
Lex Neva 003ee406a5 add trim checkbox 2019-03-08 19:57:11 -05:00
Lex Neva f30dba6728 don't do density compensation in underlay 2019-03-08 19:55:13 -05:00
Kaalleen 0b9f95ed88
keep color when convert to satin column 2019-03-06 17:49:43 +01:00
Lex Neva b63fe4aa84 avoid gaps at the end 2019-03-01 21:31:20 -05:00
Lex Neva bf40f01b5d compensate for non-parallel rails
This uses some trig to try to reduce the excess density we were seeing with
rails that expand or contract from each other.  While I was in there I
redid the satin algorithm, making it much simpler and less magical-seeming.
2019-03-01 21:31:20 -05:00
Lex Neva fa3236372b fix style 2019-02-16 16:53:38 -05:00
Lex Neva be7d0af82d improve error message when trying to autofill tiny shapes 2019-02-16 16:53:38 -05:00
Lex Neva 4c7f8f32fd show inkscape label in error messages 2019-02-16 16:53:38 -05:00
Lex Neva 52bf2c80b6 fix style 2019-02-16 16:53:38 -05:00
Lex Neva fdd9a74fd6 fix argument bug in auto-satin 2019-02-16 16:53:38 -05:00
redhat421 f3cdcfbdfa Remove extra self param from store_preset call. (#381)
It looks like an extra "self" parameter was added to the store_preset call in the add_preset function.

This prevents add_preset from working.
2019-02-16 16:53:38 -05:00
Kaalleen 7b04eb1234 Fix print metadata (#372) 2019-02-16 16:53:38 -05:00
Lex Neva 3d99377852 don't add jump stitches between satin column fill and top stitching 2019-01-17 19:55:51 -05:00
Lex Neva 6a8edfc1cd fix crash if fill start and end points are very close 2019-01-04 20:22:10 -05:00
Lex Neva 04ed93cb25 ability to stitch a single-point running stitch path 2019-01-04 20:08:11 -05:00
Lex Neva 004df12e88 don't crash on a design with no stitches 2018-12-30 20:15:32 -05:00
Lex Neva c8d354a2fc print error message correctly 2018-12-22 22:12:23 -05:00
Lex Neva 32458c619a fix fill == none detection 2018-12-19 14:39:47 -05:00
Lex Neva 9f4f6d85a0 fix duplicate point handling 2018-12-19 12:46:31 -05:00
Lex Neva 3cf7f1547c fix error message 2018-12-18 20:32:14 -05:00
Lex Neva dc77f5cebc fix style 2018-12-18 20:25:08 -05:00
Lex Neva ef45f4b740 Merge branch 'master' into lexelby/bugs 2018-12-18 20:23:04 -05:00
Lex Neva 1e0280db10
basic lettering GUI (#351) 2018-12-15 20:21:41 -05:00
Lex Neva 8f3c922011 fix style 2018-12-13 20:10:50 -05:00
Lex Neva 9ae97154d6 add option to skip last stitch in fill rows 2018-12-12 20:55:04 -05:00
Lex Neva 7a73b20115 tidy imports 2018-12-12 20:55:04 -05:00
Lex Neva 74e6dac011 avoid creating paths with empty 'd' in stitch plan (#363) 2018-12-12 20:55:04 -05:00
Lex Neva e47fcaa8da tidy up imports 2018-12-12 20:55:04 -05:00
Lex Neva ef83ff75a0 use proper defaults for fill and stroke in Params (#362) 2018-12-12 20:55:04 -05:00
Kaalleen 8389d792ad
Fix encoding 2018-11-23 22:09:40 +01:00
Lex Neva f5c85183d9
basic lettering (#344)
Can handle multiple lines of text and routes the stitching in alternating directions on each line.
2018-11-14 20:23:06 -05:00
Lex Neva be833f898f
new extension: Auto-Route Satin Columns (#330)
**video demo:** https://www.youtube.com/watch?v=tbghtqziB1g

This branch adds a new extension, Auto-Route Satin Columns, implementing #214!  This is a huge new feature that opens the door wide for exciting stuff like lettering (#142).

To use it, select some satin columns and run the extension.  After a few seconds, it will replace your satins with a new set with a logical stitching order.  Under-pathing and jump-stitches will be added as necessary, and satins will be broken to facilitate jumps.  The resulting satins will retain all of the parameters you had set on the original satins, including underlay, zig-zag spacing, etc.

By default, it will choose the left-most extreme as the starting point and the right-most extreme as the ending point (even if these occur partway through a satin such as the left edge of a letter "o").  You can override this by attaching the new "Auto-route satin stitch starting/ending position" commands.

There's also an option to add trims instead of jump stitches.  Any jump stitch over 1mm is trimmed.  I might make this configurable in the future but in my tests it seems to do a good job.  Trim commands are added to the SVG, so it's easy enough to modify/delete as you see fit.
2018-10-30 17:43:21 -06:00
Lex Neva d9525968a2
fix manual stitch and add debugging support (#339)
* add debugging support using pydev

* fix: don't add tie stitches for manual stitch

* fix style
2018-10-23 18:08:46 -06:00
Lex Neva 1d55716f26
add g-code output format (#336) 2018-10-20 17:50:39 -06:00
Lex Neva 8830eb7d40
new extension: split satin (#315)
This branch adds a new command to split a satin column at a specified point.  The split happens at a stitch boundary to ensure that the two resulting satins sew just like the original.  All parameters set on the original satin remain set on the two new satins, and all rungs are retained.  If one of the satins would have no rungs left, a new rung is added.

How to use:

1. Select a satin column (simple satin doesn't work)
2. Attach the "Satin split point" command using the "Attach commands to selected objects" extension.
3. Move the symbol (or just the connector line's endpoint) to point to the exact spot you want the satin to be split at.
4. Select the satin column again.
5. Run "Split Satin Column".
6. The split point command and connector line disappear, and nothing else appears to have happened.  Select your satin and you'll see that it's been split.

This extension is a by-product of my initial work on #214.  Ink/Stitch will need the ability to split a satin at an arbitrary point, and I figured, why not go ahead and release that functionality as an extension while I'm at it? :)
2018-09-29 14:00:36 -06:00
Lex Neva 5139c13fd7
Merge pull request #316 from inkstitch/lexelby/bug-fixes
more bug fixes
2018-09-29 13:22:05 -06:00
Kaalleen efc2816f3c
update simulator (#318)
* fix change direction button
* pause animation when going one step forward or backward
* add button tool tips to inform about shortcut keys
2018-09-22 07:59:20 +02:00
Lex Neva ac77a72f3f bullets require unicode strings 2018-09-18 20:39:54 -04:00
Lex Neva 9203283081 use ugettext() instead of gettext() 2018-09-18 20:24:53 -04:00
Lex Neva 5e9cb83a93 remove code style exemption for params.py and simulator.py 2018-09-16 13:09:49 -04:00
Lex Neva fa125ff27e remove obselete 'fake color change' code 2018-09-16 13:09:00 -04:00
Lex Neva 9b619de228 use faster algorithm for ties 2018-09-15 21:35:04 -04:00
Lex Neva bdf98a7e91 handle SVGs without bounding box 2018-09-15 21:03:42 -04:00
Lex Neva d30507171b Merge remote-tracking branch 'origin/master' into lexelby/bug-fixes 2018-09-12 20:51:16 -04:00
Lex Neva d398e10b85 Merge remote-tracking branch 'origin/master' into lexelby/bug-fixes 2018-09-12 20:31:06 -04:00
Lex Neva a876066c75 Merge remote-tracking branch 'origin/master' into simulator-timeline 2018-09-12 20:30:13 -04:00
Lex Neva ba1c2ea78f fix lint 2018-09-12 20:25:15 -04:00
Lex Neva 7b5995c705 fix logic 2018-09-10 23:06:18 -04:00
Lex Neva 944022ee53 proper running stitch for big row spacing 2018-09-10 23:04:08 -04:00
Lex Neva b437b8403c fix pencil icon path 2018-09-09 00:07:59 -04:00
Lex Neva c980279ae6 fix missing imports 2018-09-01 20:11:44 -04:00
Lex Neva 71643ba280 make error messages more useful 2018-09-01 20:11:01 -04:00
Lex Neva 1c2dc2d954 add error message for invalid geometries (#216) 2018-09-01 20:11:01 -04:00
Lex Neva c3d6780bf1 only save modified values in presets 2018-09-01 20:11:01 -04:00
Lex Neva 29f0e31ccd name AutoFill tabs consistently 2018-09-01 20:11:01 -04:00
Lex Neva 05327d56db stop showing 'None' in Params 2018-09-01 20:11:01 -04:00
Lex Neva e2b5e96834 add change indicator to Params (#217) 2018-09-01 20:11:01 -04:00
Lex Neva 1531e8f520 support ~, and %vars% in Embroider output directory (#279) 2018-09-01 20:11:01 -04:00
Lex Neva 29a8bd37d5 useful error message when writing embroidery file fails (fixes #279) 2018-09-01 20:11:01 -04:00
Lex Neva 5c0e2b8e9f don't show an icon on windows 2018-09-01 20:11:01 -04:00
Lex Neva 7bf8c2d871 helpful error message for empty path "d" attribute (fixes #220)
also internationalizes "error:" string
2018-09-01 20:11:01 -04:00
Lex Neva 9360e9b930 fix code style 2018-09-01 14:22:46 -04:00
Lex Neva 3fe3399d90 simulator standalone mode 2018-09-01 13:35:47 -04:00
Lex Neva cdc95ceca3 make dest dir on windows 2018-08-28 15:20:35 -04:00
Lex Neva 5f29e5a4a5 show negative speed when animating backward 2018-08-27 21:56:25 -04:00
Lex Neva e749fdc781 reverse the >> button 2018-08-27 20:57:49 -04:00
Lex Neva 8d196ace7f position params's simulator window at the top of the screen 2018-08-27 16:43:23 -04:00
Lex Neva ab656800a0 fix windows issue 2018-08-27 16:27:51 -04:00
Lex Neva a636462803 i18n 2018-08-27 15:54:06 -04:00
Lex Neva 7eb36c5fc6 buttons for backward and forward one stitch 2018-08-27 15:51:27 -04:00
Lex Neva e56e99329a remove old code 2018-08-27 15:45:10 -04:00
Lex Neva 165d96e3b1 show command name in simulator (STITCH, JUMP, etc) 2018-08-27 15:36:54 -04:00
Lex Neva 7319937ea6 make line thickness value less magical 2018-08-26 23:50:17 -04:00
Lex Neva 7637848ad8 zoom and pan support 2018-08-26 23:34:27 -04:00
Lex Neva 6bb2fa0c91 uniform crosshair size independent of zoom 2018-08-26 16:41:57 -04:00
Lex Neva b3516785aa automatically scale and center the design 2018-08-26 16:14:03 -04:00
Lex Neva e854df4307 handle auto-refresh from Params 2018-08-26 15:34:13 -04:00
Lex Neva a355af2874 handle window size and target duration 2018-08-26 15:02:51 -04:00
Lex Neva 79e8ad5b31 forward/backward one frame support 2018-08-26 14:44:13 -04:00
Lex Neva 8351cf21a0 add keyboard shortcut support 2018-08-26 14:32:34 -04:00
Lex Neva 0bc2992686 shouldn't subtract rendering time from CallLater time 2018-08-26 00:10:11 -04:00
Lex Neva c44e008029 draggable slider and editable stitch number 2018-08-25 22:48:44 -04:00
Lex Neva bf70fd9031 WIP: revamp UI and rendering algorithm 2018-08-25 22:05:18 -04:00
Lex Neva 11d3cea80c Merge remote-tracking branch 'origin/master' into simulator-timeline 2018-08-25 11:47:48 -04:00
Momo c5bd187884 * seperated controls
* one frame movements
2018-08-25 10:57:17 +02:00
Lex Neva 77177f9b55 fix style 2018-08-24 20:56:42 -04:00
Lex Neva 53f92df056 add 'Add Commands' extension 2018-08-24 20:56:41 -04:00
Lex Neva 7f9208ae2a style fixes 2018-08-24 20:56:30 -04:00
Lex Neva a8ac170e87 implement stop position 2018-08-24 20:56:20 -04:00
Lex Neva a448b2c0ea add origin command and remove guides method 2018-08-24 20:54:34 -04:00
Lex Neva d4acb52d69 add `point` property to StandaloneCommand 2018-08-24 20:54:12 -04:00
Lex Neva 91eb98cc33 Merge remote-tracking branch 'origin/master' into lexelby/style 2018-08-24 20:46:10 -04:00
Lex Neva 82d7f49418 properly internationalize install extension 2018-08-23 21:24:46 -04:00
Momo 403a1c533d reset speed when starting simulation through arrow buttons 2018-08-23 16:36:11 +02:00
Momo 56e153e871 merge forward/backward/speed 2018-08-23 12:48:41 +02:00
Lex Neva 082e1664bb fix missing layer and object commands 2018-08-22 22:54:21 -04:00
Lex Neva 674283c135 fix missing install extension INX file 2018-08-22 14:12:39 -04:00
Lex Neva d02ddff475 handle unicode in inx generation 2018-08-22 14:02:53 -04:00
Momo 479cebb56d fix bug on updating params 2018-08-22 20:01:38 +02:00
Momo 505388a9c1 fix jumping timeline and remove symbols 2018-08-22 19:24:53 +02:00
Lex Neva f53fe05200 a few more fixups 2018-08-21 21:57:15 -04:00