1
0
Fork 0
Commit graph

1853 commits

Author SHA1 Message Date
anna-puk
8051a3c98c lily configuration 2024-03-02 20:37:03 +00:00
anna-puk
c990c337cb create a lily design 2024-03-02 20:25:08 +00:00
Benjamin Fan
9a4fe14892 chore(onyx, shelly, tamiko): Load bustPlugin unconditionally 2024-02-17 08:11:55 -08:00
joostdecock
786a5d06cb chore(brian): Always load plugin-bust
The plugin changed how it handles conditionality, so we are always
loading it.
2024-02-17 16:06:32 +01:00
joostdecock
4264c81070 feat[plugin-bust]: Move conditionality to preSetDraft lifecycle hook
This plugin is used to draft designs for high bust rather than full
chest circumference. To facilitate that, we provide(d) a named export
called `withCondition` that checks whether the plugin is wanted, and if
so loads it.

Problem with that is that the conditional loading of a plugin applied
to the entire pattern. And since we support drafting patterns for
multiple sets (and use this to sample) this means that all of these sets
would either get the plugin effect or not, based on the first set.

So, to fix that, we have changed the lifecycle hook used by this plugin
to `preSetDraft` (from `preDraft`) and changed the `withCondition`
method to always return true.

This means that the plugin will always be loaded, and we have moved the
check that used to be in `withCondition` to the lifecycle hook.

In other words, this plugin will now always be loaded and will check for
each set whether it needs to do something.

This allows the conditionality to apply to each set in the pattern,
rather than to the entire pattern.

Note that conditionally loading plugins pattern-wide is still a valid
use-case. It just so happens that for this plugin, it was the wrong
approach.
2024-02-17 15:57:40 +01:00
joostdecock
59adf43911 chore: Set engines in package.json 2024-02-11 17:31:52 +01:00
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
joostdecock
a520b08b5d fix(huge): Base pocket opening on pocket height. Fixes #6004 2024-02-11 12:51:16 +01:00
joostdecock
b01a650a5f fix(hugo): Incorrect complete check. Closes #6006 2024-02-11 11:44:36 +01:00
joostdecock
91c5edb1aa fix(brian): Take biceps ease into account for armhole depth
Originally, #5999 was filed to report issues with the sleeve on Jaeger
not responding to biceps ease as expected. Increasing the biceps ease
would actually make the sleeve more narrow.

Turns out, this is a side-effect of the way the armhole depth is
calculated in v3. We used to take the biceps measurement (and ease) for
that, but now we rely on the waist to armpit measurements.

In brain, we used this new measurements along with the
armholeDepthFactor option to locate the bottom of the armhole.
This means that when we change the biceps ease, nothing will change in
the briam armhole, which means the total sleevecap length target remains
unchanges.
However, in Jaeger, increased biceps ease causes a taller sleevecap, and
since the total target sleevecap length (inherited from Brian) remains
unchanged, the pattern accomodates by making the sleeve more narrow so
that the taller sleevecap has the same sleevecap length. This is what
results in the counterintuitive behavior where increasing the biceps
ease makes the sleevecap more narrow.

This resolves that by taking the biceps ease into account when
calculating the bottom of the armhole in Brian. As a result, changing
the biceps ease will impact the armhole on Brian, which will in turn
influence the target sleevecap length that Bent drafts a 2-part sleeve
for, and now things work as aspected.

Given that Brian is such a foundational block, making changes to it is a
high-stakes game, but I feel this is a bug, so we need to fix it.

Fixes #5999
2024-02-10 17:38:57 +01:00
joostdecock
a30b08371c feat(core): Added Path.combine and related changes, closes #5976
The discussion in #5976 is whether `Path.join()` should use a line
segment to close any gaps in the path caused by move operations, or by
differences in the end and start points of paths being joined.

The answer is yes, that is the intended behaviour, but people who read
_join_ might expect differently.

So I have made a few changes to clarify this:

- The new `Path.combine()` method combines multiple path instances into
  a single instance without making any changes to the drawing operations
- Since `Path.combine()` is variadic, I have also updated `Path.join()`
  to be variadic too, since that is more consistent.
- The old way of calling `Path.join(path, bool)` is deprecated and will
  log a warning. Calling `Path.join()` this way will be removed in v4.
- Related to this change is how `Path.length()` should behave when there
  are gaps in the path. Currently, it skips those. So I've added a
  parameter that when set to `true` will include them.
- Added documentation for `Path.combine()`
- Updated documentation for `Path.join()`
- Updated documentation for `Path.length()`
2024-02-10 15:40:41 +01:00
joostdecock
705585cb78 chore: Typoe in changelog 2024-02-04 17:54:54 +01:00
joostdecock
703f8fd6e1 chore: Updated dependencies 2024-02-04 11:54:17 +01:00
joostdecock
f2353ba177 chore: Updated changelog with tristan release 2024-02-04 10:54:27 +01:00
joostdecock
afc2e7f264 feat: Added new designs 2024-02-04 10:52:32 +01:00
joostdecock
add96a0ee2 chore: Updated README templates 2024-02-04 10:52:16 +01:00
joostdecock
02c619d84c chore: README update 2024-02-04 10:44:55 +01:00
joostdecock
038d0f3903 Merge branch 'develop' into joost 2024-02-04 10:17:39 +01:00
joostdecock
7bf62f2317 chore: Updated husky and changelog 2024-02-04 10:16:39 +01:00
Wouter van Wageningen
cf7a4e714e
Merge pull request #5844 from woutervdub/tristan
Tristan
2024-01-17 19:13:53 -08:00
woutervdub
78aaf659de Increase peplum, correct titles, arrange cut lists 2024-01-18 03:08:56 +00:00
Wouter van Wageningen
2c80f67329
Merge pull request #5843 from freesewing/develop
catchup
2024-01-16 22:03:09 -08:00
joostdecock
6d567a356f fix(charlie): Indicate correct cutlist nr on parts 4 and 8
Closes #5791
Shout-out to @jpmunic for reporting this
2024-01-14 14:45:21 +01:00
joostdecock
dfa4c0f509 fix: Structure of changelog 2024-01-07 15:53:44 +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
9e5fbdf3ba chore: Updated dependencies 2024-01-06 11:57:11 +01:00
joostdecock
602f4f2a68 Revert "chore: Hold back design for v3 release"
This reverts commit f9de3f6990.

In doing so, this rescues the naomiwu design which was removed on
purpose from one branch, but then that removal commit accidentally got
merged in the branch where it was being kept.
2024-01-06 11:50:17 +01:00
joostdecock
377b2341d6 feat: Updated newsletter script for multiple languages
This will now send out the newsletter in various languages
as well as load subscribers from the v3 backend.
2024-01-02 12:31:31 +01:00
Joost De Cock
aff8714daa wip: Work on i18n support for newsletter 2024-01-01 15:55:49 +01:00
Joost De Cock
a1ca849847 chore: Blog post for v3.1 release 2023-12-30 18:20:24 +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
Joost De Cock
18284cf904 Merge branch 'develop' into joost 2023-12-24 10:02:07 +01:00
woutervdub
e77b0e8699 more lint 2023-12-13 23:04:03 +00:00
joostdecock
72d4e3c8d5 chore[sde]: Adding missing downloads and dependencies 2023-12-10 13:40:29 +01:00
joostdecock
3e2fafa647 chore: Updating SDE dependency list 2023-12-10 13:13:58 +01:00
joostdecock
d77adf5efe Merge branch 'develop' into joost 2023-12-09 15:46:39 +01:00
joostdecock
b1cbe526d1 chore: Update dependencies 2023-12-09 15:39:22 +01:00
50d7c144dc Change everything over to use-local-storage-state. Remove mentions of use-persisted-state 2023-12-05 00:07:33 +02:00
joostdecock
7d43702ff5 chore: Dependencies config 2023-12-03 17:34:00 +01:00
Joost De Cock
d65784c4dc
Merge pull request #5443 from Thrunic/develop
Box - Update to v3 standards
2023-12-02 18:12:29 +01:00
Natalia Sayang
92a17886ed Working on Tristan docs 2023-11-26 21:16:20 +00:00
Joost De Cock
e1bb5e7f92 fix(uma): Issue with back. Fixes #5477 2023-11-20 18:15:36 +01:00
Thrunic
b0c91d0124 Replaced old code with .addTest(...) 2023-11-10 16:32:05 -05:00
woutervdub
a2e4c8a7b5 cutlist and designs, oh my! 2023-11-10 04:58:16 +00:00
Thrunic
4a81924e1e Added IDs to the macros in the default box. 2023-11-08 17:23:53 -05:00
Thrunic
b03544cdd7 Replace .attr(...) with .addClass(...) in the default box used for new designs. 2023-11-08 17:19:04 -05:00
Thrunic
375f37988a Removed checks for complete and paperless from the default box used for new designs, since they're now superfluous. 2023-11-08 17:16:53 -05:00