summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2018-02-04one more fixLex Neva
2018-02-04fix make localesLex Neva
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-28protect against bad values for certain params (#44)Lex Neva
This is a stopgap measure to prevent the extension from infinitely looping if the user mistakenly gives a zero or negative value for zig-zag spacing or running stitch length. It's definitely not ideal -- the user is still allowed to enter invalid numbers, but the extension just interprets any zero value as 0.01. In the future, I'll refactor things to add proper bounds-checking for parameters and limit the values that can be entered in the UI.
2018-01-28properly notify GUI of Stroke being disabled (#43)Lex Neva
fixes #32: when changing from Stroke to Fill in params, the preview drew both.
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-26add contributor covenant code of conduct (#38)Lex Neva
2018-01-23stop adding build.tar.gz to the releaseLex Neva
2018-01-23gitignore libembroideryLex Neva
2018-01-23don't lint embroidermodder's python filesLex Neva
2018-01-23fast finishLex Neva
2018-01-23prevent build loopLex Neva
2018-01-23use TRAVIS_BRANCH (which is the tag for tag builds)Lex Neva
2018-01-23trying for a single pre-release per branchLex Neva
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-13pyinstaller-based install instructionsLex Neva
also remove now-unnecessary installation shell script (sorry, @Moini!)
2018-01-13don't deploy on lint buildsLex Neva
2018-01-13hopefully finally fix travis deploy rulesLex Neva
2018-01-13fix travis deploy conditionsLex Neva
2018-01-13pyinstaller release method (#16)Lex Neva
pyinstaller packages up all of a python script's dependencies and builds them into standalone executables. It can either do a directory (containing a single executable and a bunch of shared libraries) or a self-contained executable that effectively just contains a compressed version of the directory. The problem is, if you have several scripts like we do, you get several large directories or standalone binaries, and there's a ton of duplication between them. Fortunately it looks like using the directory method and just combining the directories works fine (for this project). This PR runs the above build on any tagged commit and publishes a release in github containing the pyinstall-ified tarball. If the tag is named like "v1.2.3" _and_ the tag is on the master branch, then the github release will be marked as "production". Otherwise, it will be marked as a "pre-release". This means that we can build testable tarballs of the extension in a pull request by tagging a commit.
2018-01-07Comment out: pip install -r requirements.txtcclauss
2018-01-06 Add free automated flake8 testing of pull requestscclauss
The owner of the this repo would need to go to https://travis-ci.org/profile and flip the repository switch __on__ to enable free automated flake8 testing of each pull request.
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-06Use sys.stderr_backup in both save and restorecclauss
There is no __sys.stderr_backup__ defined in the [Python sys] module. __save_stderr()__ adds a variable by that name which is a bit unconventional but it does work. This PR changes __restore_stderr()__ to read that data from the same variable. Without this change, __restore_stderr()__ will probably raise a NameError at runtime because __stderr_backup__ is an undefined name. flake8 testing of https://github.com/lexelby/inkstitch on Python 2.7.14 $ __flake8 . --count --select=E901,E999,F821,F822,F823 --show-source --statistics__ ``` ./embroider_params.py:748:18: F821 undefined name 'stderr_backup' sys.stderr = stderr_backup ^ ```
2018-01-06don't intify floating point coordinatesLex Neva
2018-01-06add scale parameter in simulateLex Neva
2018-01-05add notes about the switch to 96dpiLex Neva
2018-01-04remove pixels_per_mm optionLex Neva
2018-01-04use PIXELS_PER_MM in simulateLex Neva
2018-01-04simulate bugfixLex Neva
2018-01-04parse and use viewBox attributeLex Neva
The viewBox effectively adds global scaling and translation to all shapes in the SVG. Borrowing from inkscape-silhouette, we construct a transform from the viewBox and apply it to all objects. When adding the stitch plan into the SVG, we need to compensate for this implied transformation, which we do by adding its inverse as a transform on the stitch plan polylines. All of this allows us to do away with the nonstandard 10 pixels per mm that was previously hardcoded into inkstitch. Old designs can add a viewBox to switch from 10 pixels per mm to the standard 96 ppi that Inkscape uses.
2018-01-03remove outdated index.htmlLex Neva
2018-01-03more README fixupsLex Neva
2018-01-03Create CNAMELex Neva
2018-01-03Set theme jekyll-theme-minimalLex Neva
2018-01-03readme fixupsLex Neva
2018-01-03rename to ink/stitchLex Neva
2018-01-01add link to video of live preview featureLex Neva
2018-01-01remove live simulation from TODOLex Neva
2018-01-01Merge pull request #10 from lexelby/live-simulateLex Neva
live stitching preview in the Params extension
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-31make debugging slightly easier by popping up tracebackLex Neva
2017-12-31trim unnecessary whitespaceLex Neva
2017-12-31don't start outdated simulationLex Neva
2017-12-31adjust default simulation speed to always take ~5 secondsLex Neva
2017-12-31show simulate window at startLex Neva
2017-12-31don't mirror Y axis for patchesLex Neva