1
0
Fork 0
Commit graph

151 commits

Author SHA1 Message Date
joostdecock
38bb3bc6f0 release: v3.2.0
- Added:
  - core:
    - Added the `Path.combine()` method
    - The `Path.join()` method is now variadic
    - The `Path.length()` now takes an parameter to include move operations in the length calculation
  - lumina:
    - Initial release
  - lumira:
    - Initial release
  - plugin-annotations:
    - The `title` macro now takes a `notes` and `classes.notes` as its config, allowing you to add notes
    - The `classes.cutlist` config is removed from the title plugin, cutlist info is now included as notes
  - plugin-i18n:
    - This plugin now supports translation of nested arrays of strings, giving you more flexibility to concatenate translated parts of strings
  - react-components:
    - This Pattern component now supports translation of nested arrays of strings, giving you more flexibility to concatenate translated parts of strings
  - sandy:
    - Added a new *panels* option
  - tristan:
    - Inital release
- Deprecated:
  - core:
    - Calling `Path.join` with a second parameter to indicate that the resulting paths most be closed is now deprecated and will be removed in FreeSewing v4.
- Fixed:
  - brian:
    - Take biceps ease into account when calculating armhole depth
  - carlton:
    - Fixed a stray seam allowance path on the collar
  - charlie:
    - The back pocket welt (4) and front pocket facing (8) incorrectly indicated to cut 2 instead of 4 in the cutlist. Fixes #5791
  - hugo:
    - Fix issue that crashed the design when complete is off. Fixes #6006
    - Base pocket opening on pocket height, rather than width of the garment. Fixes #6004
- Removed:
  - plugin-annotations:
    - The `classes.cutlist` config is removed from the title plugin, cutlist info is now included as notes

Shout-out to @woutervdub and @benjamesben for their many contributotions
to this v3.2 release 🙏
2024-02-11 13:43:07 +01:00
joostdecock
617fb6fa17 chore: Preparing 3.2 release 2024-02-11 13:30:18 +01:00
dependabot[bot]
64959fc0ab
build(deps-dev): bump mocha from 10.2.0 to 10.3.0
Bumps [mocha](https://github.com/mochajs/mocha) from 10.2.0 to 10.3.0.
- [Release notes](https://github.com/mochajs/mocha/releases)
- [Changelog](https://github.com/mochajs/mocha/blob/master/CHANGELOG.md)
- [Commits](https://github.com/mochajs/mocha/compare/v10.2.0...v10.3.0)

---
updated-dependencies:
- dependency-name: mocha
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-02-09 04:57:52 +00:00
joostdecock
26e282f5b7 fix: Fix tests after major chai upgrade
Note that the tests for Lumina are failing, but that's not related to
the chai upgrade, rather it seems these tests fail because of issues in
the design that we'll tackle later (it's a brand new design yet to be
released).
2024-02-04 12:14:42 +01:00
joostdecock
add96a0ee2 chore: Updated README templates 2024-02-04 10:52:16 +01:00
dependabot[bot]
57b64af805
build(deps-dev): bump chai from 4.3.10 to 5.0.3
Bumps [chai](https://github.com/chaijs/chai) from 4.3.10 to 5.0.3.
- [Release notes](https://github.com/chaijs/chai/releases)
- [Changelog](https://github.com/chaijs/chai/blob/main/History.md)
- [Commits](https://github.com/chaijs/chai/compare/v4.3.10...v5.0.3)

---
updated-dependencies:
- dependency-name: chai
  dependency-type: direct:development
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-01-30 18:15:52 +00:00
joostdecock
0d45d22447 chore: Updated title unit tests 2024-01-07 16:06:48 +01:00
joostdecock
66b8bf3a06 fix(plugin-annotations): Typo on var name 2024-01-07 15:52:50 +01:00
joostdecock
c06a18e06e feat: Support notes in title macro
This started out as a fix for #5753 after I felt the approach in #5760
was not the best way to handle this.

The problem lies in the way the cutlist data is added to the pattern by
the title plugin. The whole cutlist thing was added by a less
experienced contributor, and they were a little too focussed on what
they were trying to accomplish, rather than keeping an eye on the big
picture.

In this case, a bunch of points get added to the part to anchor all of
the text for the cutlist. This causes problems when inheriting parts
because points are added per material, and now we don't know what
materials were used and how to remove these points.

I appreciate @woutervdub effort to resolve this in #5760 but as I
mentioned above, I don't love the approach.
Rather than finding a clever way to remove these points, I am of the
opinion that they should never have been added in the first place.

Specifically, all we are doing is adding one or more lines of text. The
idea that you need multiple points for this is an incorrect assumption,
and therein lies the root of this problem.

So, this refactor adds support to the title macro for 'notes'. These
notes will be added below the title. The cutlist info is now just
prepended to the notes. So it stops being something 'special' (which it
never should have been) and instead just behaves like other text that is
placed on the part by the title macro.

The only flanking measure required to make this happen was to add
support for nested arrays in handling text.
This way, you can pass a nested array to concatenate strings in such a
way that each part will still be individually translated.

And as all text in FreeSewing, to force a linebreak, you just use "\n"
as The Dark Lord intended.
2024-01-06 17:54:11 +01:00
joostdecock
ba370f74d2 release: v3.1.0
- Rephrased flag message when expand is off to avoid confusion about included seam allowance. Fixes

 - Added IDs to dimension macros that missed them, causing them to not be shown
 - Keep seam allowance out of the binding length calculation

 - Rephrased flag message when expand is off to avoid confusion about included seam allowance. Fixes

 - Rephrased flag message when expand is off to avoid confusion about included seam allowance. Fixes

 - Rephrased flag message when expand is off to avoid confusion about included seam allowance. Fixes

 - Rephrased flag message when expand is off to avoid confusion about included seam allowance. Fixes

 - Rephrased flag message when expand is off to avoid confusion about included seam allowance. Fixes

 - Rephrased flag message when expand is off to avoid confusion about included seam allowance. Fixes

 - Rephrased flag message when expand is off to avoid confusion about included seam allowance. Fixes

 - Rephrased flag message when expand is off to avoid confusion about included seam allowance. Fixes

 - Rephrased flag message when expand is off to avoid confusion about included seam allowance. Fixes
 - Corrected part mixup in translation of flag message

 - Rephrased flag message when expand is off to avoid confusion about included seam allowance. Fixes

 - Rephrased flag message when expand is off to avoid confusion about included seam allowance. Fixes

 - Fixed wrong use of options in a value method. Fixes

 - Remove names from old plugins from list option

 - Rephrased flag message when expand is off to avoid confusion about included seam allowance. Fixes
 - The skirt and curved waistband are now constructed with the ringsector macro

 - Rephrased flag message when expand is off to avoid confusion about included seam allowance. Fixes

 - Replaced all instances of 'seperate' with 'separate' in option names

 - Initial release

 - Rephrased flag message when expand is off to avoid confusion about included seam allowance. Fixes

 - Changed defaults to have more rise in the back
 - Increase default rise
 - Decrease default vertical stretch
 - Decreased default back waist dip
 - Increased default front waist dip
 - Allowed lower values on back exposure, causing back to flare out
 - Fix issue with back part when bulge is on and expand is off

 - Pocket opening was not drawn on the facing and pocket pieces. Fixes
 - Improve placement of the front welt. Fixes

 - Rephrased flag message when expand is off to avoid confusion about included seam allowance. Fixes

 - Initial release

 - Added support for notes in flags

 - Removing macros did not always remove the cutlist data in the store. Fixes

 - First release of the plugin providing the default packing implementation

 - First release of the plugin facilitating drafting a ring sector

 - Allow plugins to provide their own packing implementation
 - Added named export `cbqc` which exports the constant to approximate a circle with Cubic Bézier curves
 - Core will now set `activeMacro` in the store, keeping track of the running macro - Added the `generateMacroIds`, `getMacroIds`, and `removeMacroNodes` store methods

 - Fix order in mergeOptions method so user settings take precendence over defaults
 - Fix upward snap for snapped percentage option when snap is a simple number
 - The conditional loading of plugins had a bug causing them to never be loaded
 - Make Path.split() more robust when handling edge-case. Fixes
 - Prevent utils.circlesIntersect() from running sqrt on a negative number. Fixes

 - Removed unwanted debug output
2023-12-26 20:30:42 +01:00
joostdecock
14bca334f6 release: v3.1.0-rc-0 2023-12-24 14:06:17 +01:00
Joost De Cock
c62d19766b chore: Updated dependencies - Fixed axios issue 2023-12-24 10:18:14 +01:00
joostdecock
d2030405dc chore: Reconfigure packages 2023-12-03 17:34:44 +01:00
Thrunic
a267a53d33
Typo fix in plugin-annotations en.json (mirorred -> mirrored) 2023-11-24 17:50:48 -05:00
Joost De Cock
4689f56626 fix: Rename removeGrainline to removeGrain 2023-11-20 15:44:59 +01:00
joostdecock
ac054b8115 fix(plugin-annotations): Remove unneeded partName 2023-11-18 19:06:29 +01:00
joostdecock
bf0cd0f835 fix(plugin-annotations): Ensure grainline is removed
This builds on the fix by @woutervdub in #5449 that ensures the
rmcutonfold macro removes the cutonfold info from the store.

However, the same problem applies to the grainline data which can be set
by both cutonfold and grainline.

So I've added that. And while I was at it also created explicit methods
to remove this data instead of having to pass in false which I found
counterintuitive and a throwback to the v2-ways.

In addition, the grainline can be set by both grainline and cutonfold
macros. So when we remove either of them, we should only remove the
grainline info if it was actually set by them. But there's no way to
know that at remove time.
So I've also added the logic to set grainOrigin in the store which will
be `cutonfold` or `grainline` depending on the macro that set the grain.
2023-11-10 18:10:12 +01:00
Wouter van Wageningen
406ac84c2b
Fix bug #5448 2023-11-09 20:48:08 -08:00
joostdecock
306fba47d7 chore: Reconfigure packages 2023-11-03 19:41:41 +01:00
joostdecock
283dec780d fix(plugin-annotations): Add force to default settings 2023-10-29 17:21:37 +01:00
joostdecock
2fa394c8ab chore: Reconfigure packages 2023-10-28 21:49:40 +02:00
joostdecock
3b3d313fe8 fix(shared): Import logo path from non-JSX file 2023-10-28 21:49:28 +02:00
joostdecock
ef94458e20 Merge branch 'develop' into joost 2023-10-28 21:45:30 +02:00
Soham Tembhurne
a25df39508
fix line spacing 2023-10-28 00:52:36 +05:30
sohamtembhurne
84f1befd83 logo.mjs: fix transform issues 2023-10-28 00:38:11 +05:30
sohamtembhurne
cda517fd04 updated path to use {logoPath} instead of string 2023-10-26 14:10:08 +05:30
joostdecock
73fbc4e8bd chore: Reconfigure packages 2023-10-25 17:16:03 +02:00
Joost De Cock
9d06e89636 chore: Reconfigure packages 2023-10-18 17:56:39 +02:00
Joost De Cock
e33d3c1499 chore: Remove lint 2023-10-18 17:27:30 +02:00
Joost De Cock
207dd9008b chore(plugin-annotations): Remove lint 2023-10-18 16:32:35 +02:00
Joost De Cock
28e4eeae91 chore: Reconfigure packages 2023-10-18 16:05:10 +02:00
Joost De Cock
cb106578b3 feat(core): Better support for macro removal an node id tracking 2023-10-18 16:00:15 +02:00
Joost De Cock
e808375b60 chore(plugin-banner): Fix typo in code comment 2023-10-17 08:14:52 +02:00
Joost De Cock
d739e8f5bd Merge branch 'joost' into plugins-scale 2023-10-15 16:05:28 +02:00
Joost De Cock
6da7a292f2 chore: Reconfigure & dependencies 2023-10-14 13:13:13 +02:00
joostdecock
eb32bc5fe0 release: v3.0.0 🎉 2023-09-30 17:48:57 +02:00
joostdecock
4d9c614c89 Merge branch 'joost' into develop 2023-09-30 17:41:35 +02:00
joostdecock
57f5d84e9c chore: Reconfigure packages 2023-09-30 17:40:53 +02:00
joostdecock
4ed30ae5ff chore: Reconfigure packages 2023-09-30 15:08:44 +02:00
joostdecock
ebe5b17b0b chore: Reconfigure packages 2023-09-30 14:59:01 +02:00
joostdecock
9929aed51a release: v3.0.0-alpha.13 2023-09-29 09:59:38 +02:00
joostdecock
703e0e807d release: v3.0.0-alpha.11 2023-09-29 09:51:24 +02:00
joostdecock
1154d2de93 Merge branch 'develop' into joost 2023-09-28 15:42:16 +02:00
joostdecock
18042c8f3d feat(core): Return from macros 2023-09-28 13:26:32 +02:00
dependabot[bot]
633e17e197
chore(deps-dev): bump chai from 4.3.7 to 4.3.9
Bumps [chai](https://github.com/chaijs/chai) from 4.3.7 to 4.3.9.
- [Release notes](https://github.com/chaijs/chai/releases)
- [Changelog](https://github.com/chaijs/chai/blob/4.x.x/History.md)
- [Commits](https://github.com/chaijs/chai/compare/v4.3.7...v4.3.9)

---
updated-dependencies:
- dependency-name: chai
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-09-28 04:54:14 +00:00
joostdecock
237d525557 chore: Reconfigure 2023-09-27 16:19:13 +02:00
woutervdub
d06a91a4a7 Implement #4951 2023-09-22 02:15:35 +00:00
Joost De Cock
ef41c23379 feat(plugin-annotations): Added eyelet snippet 2023-09-18 11:04:22 +02:00
joostdecock
b8458362b0 fix(plugin-annotations): Fix issue with rotating scalebox 2023-09-16 13:04:22 +02:00
joostdecock
4198c35ea8 feat(plugin-annotations): Add setCut method 2023-09-16 10:33:20 +02:00