summaryrefslogtreecommitdiff
path: root/lib/commands.py
AgeCommit message (Collapse)Author
2025-07-11Do not redefine underscore (#3865)Kaalleen
* do not redefine underscore * Disallow any redefinitions going forward --------- Co-authored-by: CapellanCitizen <>
2025-04-26Claudine/fix font sample (#3684)Claudine Peyrat
* twist monicha * Update lettering_font_sample.py * better use default value * and leave Monicha alone in this branch * ensure command and marker symbols --------- Co-authored-by: Kaalleen <reni@allenka.de>
2025-04-15add satin_cut_point command to hidden connector commands (#3654)Kaalleen
2025-03-16fix command position index error (#3585)Kaalleen
2025-03-11shift command position of commands with connector lines a little bit out (#3572)Kaalleen
2025-03-09Mypy type correctness (#3199)capellancitizen
2025-03-04Command symbol size and opacity (#3548)Kaalleen
* scale symbols: allow more than 200% * make symbols slightly bigger by default * set opacity value for commands (70%)
2025-03-02Use symbol as command position (#3542)Kaalleen
2024-12-07Enable start end commands for satins (#3315)Kaalleen
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-08-20Fixed transforms on cloned commands (#3160)capellancitizen
Also, point-upwards now applied to commands that are children of cloned elements.
2024-08-14Clones now also clone commands attached to element and its children. (#3032, ↵capellancitizen
#3121) (#3086)
2024-07-14Command translations (#3075)Kaalleen
* command translations * windows: do not unescape
2023-08-08ignore commands with "empty-d-connectors" (#2436)Kaalleen
2023-06-23command recognition (#2384)Kaalleen
2023-05-16command positionKaalleen
2023-05-08Gradient blocks (#2275)Kaalleen
* remove underlay * set start and end commands for consecutive blocks with the same color * keep previous params * add option for manual input of end_row_spacing
2023-05-01rename target position command (#2247)Kaalleen
2022-12-17fix #1921 (#1922)Kaalleen
2022-11-22Claudine/lettering with trims (#1866)Claudine Peyrat
* add trim after each letter allow to add a trim after each letter * add trim after letter, word or line rewriting everythng * style correction correcting all that is signaled by make style * corrections i don't understand why i add to modify get_command_pos in commands. If I don't i can not add a command at the end of a glyph that ends with a polyline (eg B from Fold) * replace checkbox with dropdown * rename variables in English * use same trim methods for auto_satin and non auto_satin * check if trim option is never strip lines of text Co-authored-by: Claudine <claudine@MacBook-Pro-2.local> Co-authored-by: Kaalleen <reni@allenka.de> Co-authored-by: Kaalleen <36401965+kaalleen@users.noreply.github.com>
2022-05-24Add ripple stitch feature (#1667)Kaalleen
2022-05-18Auto route for running stitch (#1638)Kaalleen
* add auto route for running stitch * introduce free motion commands Co-authored-by: Lex Neva <github.com@lexneva.name>
2021-08-16Merge pull request #1254 from inkstitch/kaalleen/satin-patternsLex Neva
Satin pattern and split stitch
2021-08-15fix commands on multiple import (#1306)Kaalleen
2021-08-07Merge remote-tracking branch 'origin/main' into kaalleen/satin-patternsLex Neva
2021-08-03fix add-layer-commands (#1298)Kaalleen
2021-07-29fix #1213 (#1287)Kaalleen
2021-07-25Fix Style Issues (#1154)Kaalleen
Co-authored-by: Lex Neva <github.com@lexneva.name>
2021-06-28undo previous changes (group command stuff)Kaalleen
2021-06-28pattern markersKaalleen
2021-06-27group patternsKaalleen
2021-06-12stacking commands (#1243)Kaalleen
2021-03-11add copyright headersLex Neva
2021-03-04Update for Inkscape 1.0 (#880)Kaalleen
* update for inkscape 1.0 * add about extension * Build improvements for the inkscape1.0 branch (#985) * zip: export real svg not stitch plan * #411 and #726 * Tools for Font Creators (#1018) * ignore very small holes in fills * remove embroider (#1026) * auto_fill: ignore shrink_or_grow if result is empty (#589) * break apart: do not ignore small fills Co-authored-by: Hagen Fritsch <rumpeltux-github@irgendwo.org> Co-authored-by: Lex Neva <github.com@lexneva.name>
2020-05-16support svg objects (#643)Kaalleen
2020-04-25Namespaced Attributes (#657)Kaalleen
2020-04-02do not translate internal command names (#645)Kaalleen
2019-08-05add Troubleshoot extension (#465)Kaalleen
adds an extension to help you understand what's wrong with an object and how to fix it, e.g. "invalid" fill shapes
2019-07-04add trim commands in import and stitch planLex Neva
2019-03-08less haphazard positioning for commandsLex Neva
2019-03-08implement trim option for letteringLex Neva
2019-03-08refactor add_commands() out into commands moduleLex Neva
2018-10-30new extension: Auto-Route Satin Columns (#330)Lex Neva
**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-09-29new extension: split satin (#315)Lex Neva
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-08-24add 'Add Commands' extensionLex Neva
2018-08-24style fixesLex Neva
2018-08-24implement stop positionLex Neva
2018-08-24add origin command and remove guides methodLex Neva
2018-08-24add `point` property to StandaloneCommandLex Neva
2018-08-21autopep8Lex Neva
2018-08-20gettextify INX templatesLex Neva