Wykres commitów

22 Commity (fe1f49ff9c1d22d1be7703717619d39a77abdbe7)

Autor SHA1 Wiadomość Data
Lex Neva 72d52dc317
framework for translations (#55)
sets up all the plumbing to send strings to CrowdIn for translation and incorporate the results
2018-02-04 22:38:24 -05:00
Lex Neva 1dd76646cc
add margin around simulator (#46)
This adds a 10px margin around the design in the simulator view (both the Simulate plugin and the Params preview window). This is useful because otherwise stitches at the edges weren't very visible. Also, because we're using anti-aliased lines, parts of the drawing did actually extend beyond the canvas previously.

All in all, with the margin it just feels more comfortable.
2018-01-29 20:09:34 -05:00
Lex Neva fabe5bcd32
Fix simulate (#42)
* Simulate now works regardless of the output format you chose when you ran Embroider.
* Simulate (and the preview in Params) now respects TRIMs.
* Inkscape restart required (embroider.inx changed).

This one kind of grew in the telling. #37 was a theoretically simple bug, but in reality, the code necessary to fix it was the straw that broke the camel's back, and I had to do a fair bit of (much needed) code reorganization. Mostly the reorganization was just under the hood, but there was one user-facing change around the Embroider extension's settings window.

Way back in the day, the only way to control things like the stitch length or satin density was through global options specified in the extension settings. We've long since moved to per-object params, but for backward compatibility, ink/stitch defaulted to the command-line arguments.

That means that it was possible to get different stitch results from the same SVG file if you changed the extension's settings. For that reason, I never touched mine. I didn't intend for my users to use those extension-level settings at all, and I've planned to remove those settings for awhile now.

At this point, the extension settings just getting in the way of implementing more features, so I'm getting rid of them and moving the defaults into the parameters system. I've still left things like the output format and the collapse length (although I'm considering moving that one too).
2018-01-28 16:10:37 -05:00
Lex Neva acaebaa956
add params for "TRIM after" and "STOP after" (#29)
* adds new options to Params: "TRIM after" and "STOP after"
  * adds tooltip support to Params
  * inkstitch now includes libembroidery and can directly output any supported file type
    * this avoids the need for `libembroidery-convert` and compiling embroidermodder!
  * TRIM support for DST format (inserts 3 JUMPs)
  * STOP command supported as an extra color change that the operator can assign to code C00
  * TRIMs cause the following jump stitch not to be displayed in the Embroidery layer
2018-01-23 20:13:37 -05:00
Lex Neva 3cd61b8ff9 automatically scale simulation window
The simulation window is scaled to fill the available space on the screen.  In
the Params dialog, the simulation window sits to the right of the Params window
and fills the remaining space.
2018-01-06 15:49:44 -05:00
Lex Neva 218ec1b63d don't intify floating point coordinates 2018-01-06 15:11:57 -05:00
Lex Neva 8d8e886d8b add scale parameter in simulate 2018-01-06 15:11:57 -05:00
Lex Neva 21c22bd790 use PIXELS_PER_MM in simulate 2018-01-04 22:42:19 -05:00
Lex Neva 1e2c67e13d simulate bugfix 2018-01-04 22:42:08 -05:00
Lex Neva 09b9dd94e6 adjust colors in the simulator to make them visible
Colors too close to white are darkened just a bit to make them stand out
against the white background.
2018-01-01 15:26:18 -05:00
Lex Neva 084dc783d2 add restart option for simulator 2018-01-01 15:00:58 -05:00
Lex Neva e9bddedf36 render objects in the correct order 2018-01-01 14:56:27 -05:00
Lex Neva 75241f5f9d trim unnecessary whitespace 2017-12-31 22:38:15 -05:00
Lex Neva c2388a53a6 adjust default simulation speed to always take ~5 seconds 2017-12-31 22:28:28 -05:00
Lex Neva 824dd3c4e6 don't mirror Y axis for patches 2017-12-31 22:05:05 -05:00
Lex Neva 7152caa14d render in a background thread
The problem with this approach is that sometimes the SystemExit happens down
inside shapely and it complains bitterly (on stderr).  May have to rethink.
2017-12-30 20:54:35 -05:00
Lex Neva 61ed1da1cf params simulate window
when you change params, a simulate window opens to preview the results right
away
2017-12-30 16:05:21 -05:00
Lex Neva 69590df70c generalize EmbroiderySimulator
* add ability to use patches instead of a stitch file
  * add stop() and load() methods to use a new stitch file / patches list
2017-12-28 19:52:40 -05:00
Lex Neva a736f7293f rename draw_one_stitch to be more accurate 2017-12-28 15:39:56 -05:00
Lex Neva f7fff3332a remove unused import 2017-11-05 00:47:05 +00:00
Lex Neva 5986ea4f22 default simulate to a slower speed 2017-10-24 03:46:52 +01:00
Lex Neva 8744ae054b add Simulate effect to visualize stitching order 2017-10-03 13:10:08 +01:00