summaryrefslogtreecommitdiff
path: root/embroider_simulate.py
AgeCommit message (Collapse)Author
2018-03-30print through web browser (#127)Lex Neva
* spawn a web server and open a printable view of the design in the user's web browser * configurable inclusion of client and operator views * editable fields for color names, client, title, and purchase order number * groundwork laid to save these parameters back into the SVG * major refactor of codebase to support printing * code is organized logically into modules * added inkstitch logo and branding guidelines * l10n text extraction now handled by babel * removed legacy embroider_update extension * partial fix for #125
2018-02-22Windows fixes (#83)Lex Neva
* os.execv doesn't replace the process on windows * fix simulate/params crash * pyinstaller windowed mode breaks things? * fix output routing for windows * properly route stderr to inkscape too * don't print unless there's something to print * remove last backup version if necessary * add documentation for Windows build
2018-02-19windows build (#79)Lex Neva
Ink/stitch now supports windows!
2018-02-04framework for translations (#55)Lex Neva
sets up all the plumbing to send strings to CrowdIn for translation and incorporate the results
2018-01-29add margin around simulator (#46)Lex Neva
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-28Fix simulate (#42)Lex Neva
* 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-23add params for "TRIM after" and "STOP after" (#29)Lex Neva
* 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-06automatically scale simulation windowLex Neva
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-06don't intify floating point coordinatesLex Neva
2018-01-06add scale parameter in simulateLex Neva
2018-01-04use PIXELS_PER_MM in simulateLex Neva
2018-01-04simulate bugfixLex Neva
2018-01-01adjust colors in the simulator to make them visibleLex Neva
Colors too close to white are darkened just a bit to make them stand out against the white background.
2018-01-01add restart option for simulatorLex Neva
2018-01-01render objects in the correct orderLex Neva
2017-12-31trim unnecessary whitespaceLex Neva
2017-12-31adjust default simulation speed to always take ~5 secondsLex Neva
2017-12-31don't mirror Y axis for patchesLex Neva
2017-12-30render in a background threadLex Neva
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-30params simulate windowLex Neva
when you change params, a simulate window opens to preview the results right away
2017-12-28generalize EmbroiderySimulatorLex Neva
* 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-28rename draw_one_stitch to be more accurateLex Neva
2017-11-05remove unused importLex Neva
2017-10-24default simulate to a slower speedLex Neva
2017-10-03add Simulate effect to visualize stitching orderLex Neva