1
0
Fork 0
Commit graph

415 commits

Author SHA1 Message Date
Jonathan Haas
d73f8b825f change(plugins): Revert ringsector changes from #6955 2024-09-09 16:00:24 +02:00
dependabot[bot]
4c571a5e0e
chore(deps-dev): bump mocha from 10.6.0 to 10.7.0
Bumps [mocha](https://github.com/mochajs/mocha) from 10.6.0 to 10.7.0.
- [Release notes](https://github.com/mochajs/mocha/releases)
- [Changelog](https://github.com/mochajs/mocha/blob/main/CHANGELOG.md)
- [Commits](https://github.com/mochajs/mocha/compare/v10.6.0...v10.7.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-07-24 04:16:53 +00:00
Joost De Cock
e8482185ff
Merge pull request #6955 from HaasJona/add/circleSegment
Add path.circleSegment() function
2024-07-14 16:12:29 +02:00
Jonathan Haas
b34eeff785 simplify ringSector macro to use the new method 2024-07-11 18:52:35 +02:00
dependabot[bot]
4efd978b21
chore(deps-dev): bump mocha from 10.5.2 to 10.6.0
Bumps [mocha](https://github.com/mochajs/mocha) from 10.5.2 to 10.6.0.
- [Release notes](https://github.com/mochajs/mocha/releases)
- [Changelog](https://github.com/mochajs/mocha/blob/main/CHANGELOG.md)
- [Commits](https://github.com/mochajs/mocha/compare/v10.5.2...v10.6.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-07-05 04:33:05 +00:00
dependabot[bot]
b8813079c8
chore(deps-dev): bump mocha from 10.5.0 to 10.5.2
Bumps [mocha](https://github.com/mochajs/mocha) from 10.5.0 to 10.5.2.
- [Release notes](https://github.com/mochajs/mocha/releases)
- [Changelog](https://github.com/mochajs/mocha/blob/main/CHANGELOG.md)
- [Commits](https://github.com/mochajs/mocha/compare/v10.5.0...v10.5.2)

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

Signed-off-by: dependabot[bot] <support@github.com>
2024-06-27 04:50:38 +00:00
dependabot[bot]
af8bcbf1fc
chore(deps-dev): bump mocha from 10.4.0 to 10.5.0
Bumps [mocha](https://github.com/mochajs/mocha) from 10.4.0 to 10.5.0.
- [Release notes](https://github.com/mochajs/mocha/releases)
- [Changelog](https://github.com/mochajs/mocha/blob/main/CHANGELOG.md)
- [Commits](https://github.com/mochajs/mocha/compare/v10.4.0...v10.5.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-06-25 04:35:58 +00:00
joostdecock
9718d9580b chore: Update dependencies and contributors 2024-06-12 15:25:33 +02:00
bobgeorgethe3rd
9184449fe6 fix(ringsector) Add line to end path 2024-05-23 12:53:52 +00:00
joostdecock
21f386f56e prerelease: v3.3.0-rc.1 2024-05-11 17:30:26 +02:00
dependabot[bot]
6ff2f8d4b6
chore(deps-dev): Bump chai from 5.1.0 to 5.1.1
Bumps [chai](https://github.com/chaijs/chai) from 5.1.0 to 5.1.1.
- [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/v5.1.0...v5.1.1)

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

Signed-off-by: dependabot[bot] <support@github.com>
2024-05-10 05:00:32 +00:00
dependabot[bot]
73662ab39f
chore(deps-dev): Bump mocha from 10.3.0 to 10.4.0
Bumps [mocha](https://github.com/mochajs/mocha) from 10.3.0 to 10.4.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.3.0...v10.4.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-04-29 17:23:44 +00:00
joostdecock
aaf4e04fd1 chore: Dependency updates 2024-04-27 16:12:28 +02:00
joostdecock
6ca891ae6f chore: Update dependencies and contributors 2024-04-27 15:29:01 +02:00
dependabot[bot]
0269f81ead
chore(deps-dev): Bump mocha from 10.3.0 to 10.4.0
Bumps [mocha](https://github.com/mochajs/mocha) from 10.3.0 to 10.4.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.3.0...v10.4.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-04-09 17:56:32 +00:00
joostdecock
f8d9aeb035 chore: Changelog/all-contributors update
Updated the changelog after recent features/fixes by @haasjona and
@woutervdub

Re-ran reconfigure to update README's with the updated contributor list.
2024-04-06 18:00:10 +02:00
dependabot[bot]
633b87272a
chore(deps-dev): Bump mocha from 10.3.0 to 10.4.0
Bumps [mocha](https://github.com/mochajs/mocha) from 10.3.0 to 10.4.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.3.0...v10.4.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-03-27 04:07:47 +00:00
Joost De Cock
5bb261c946 chore: Reconfigure after adding new contributor 2024-03-25 19:49:59 +01:00
joostdecock
b2b2e0cf73 chore: dependencies update 2024-03-23 11:36:28 +01:00
joostdecock
18f009db1a chore: Dependency updates 2024-03-16 12:16:16 +01:00
joostdecock
8f13ace1f3 chore: Update dependencies and changelog 2024-03-03 10:10:43 +01:00
Benjamin Fan
a5af52728e fix(plugin-annotations): Prevent store.get() warning message if no grainOrigin is set 2024-02-17 19:21:44 -08:00
Joost De Cock
96ef465b33
Merge pull request #6079 from freesewing/joost
feat: Changes to handle per-set bust plugin conditionality
2024-02-17 16:51:54 +01:00
Joost De Cock
c20ed9743d
Merge pull request #6076 from BenJamesBen/include-setname-in-titles-and-pdf
fix(shared, plugins): Provide measurement set name to patterns
2024-02-17 16:31:33 +01:00
joostdecock
c3ea6bc5c2 chore(plugin-bust): Removed unused variable 2024-02-17 16:24:39 +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
Benjamin Fan
a8e51a278b fix(shared, plugins): Provide measurement set name to patterns 2024-02-14 12:35:45 -08:00
Joost De Cock
327a592ef9
Merge pull request #6047 from BenJamesBen/pdf-missing-symbols-workaround
fix(plugin-annotations): Use non-special characters in scaleboxes to work around #5874
2024-02-14 18:49:03 +01:00
Benjamin Fan
30328be7e1 fix(plugin-annotations): Update scalebox tests for workaround dimensions 2024-02-13 10:11:10 -08:00
Benjamin Fan
1730d34bd1 fix(plugin-annotations): Use non-special characters in scaleboxes to work around #5874 2024-02-13 09:52:03 -08:00
dependabot[bot]
e55f384618
Bump chai from 5.0.3 to 5.1.0
Bumps [chai](https://github.com/chaijs/chai) from 5.0.3 to 5.1.0.
- [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/v5.0.3...v5.1.0)

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

Signed-off-by: dependabot[bot] <support@github.com>
2024-02-13 04:23:41 +00:00
dependabot[bot]
5cf54d8393
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-12 08:41:43 +00: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
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
a8e6f39abb chore(plugin-i18n): Linter warning 2024-01-07 17:08:16 +01: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