1
0
Fork 0
Commit graph

8998 commits

Author SHA1 Message Date
joostdecock
b2b2e0cf73 chore: dependencies update 2024-03-23 11:36:28 +01:00
dependabot[bot]
d8b625a37a
chore(deps): Bump axios from 1.6.7 to 1.6.8
Bumps [axios](https://github.com/axios/axios) from 1.6.7 to 1.6.8.
- [Release notes](https://github.com/axios/axios/releases)
- [Changelog](https://github.com/axios/axios/blob/v1.x/CHANGELOG.md)
- [Commits](https://github.com/axios/axios/compare/v1.6.7...v1.6.8)

---
updated-dependencies:
- dependency-name: axios
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-03-18 04:42:00 +00:00
joostdecock
2b36340cb8 chore(core): Remove unused var in tests 2024-03-16 12:19:42 +01:00
joostdecock
18f009db1a chore: Dependency updates 2024-03-16 12:16:16 +01:00
joostdecock
88cbd6a4f9 chore(core): Drop the chai-string dependency for tests
We're using chai-string as it provides the `equalIgnoreSpaces`
assertion which we use in our SVG tests.

However, that package does not seem to be maintained, and lists chai v4
as its peer dependency. We've moved on to chai v5 and this is causes
issues in one of our github workflows as dependencies cannot be
resolved.

So, I've extracted the assertion we need, and dropped the dependency.
2024-03-16 12:10:31 +01:00
joostdecock
0d8c42fdde fix(markdown): Build-breaking formatting issues by crowdin 2024-03-03 10:28:25 +01:00
joostdecock
8f13ace1f3 chore: Update dependencies and changelog 2024-03-03 10:10:43 +01:00
Joost De Cock
02a0328cb1
Merge pull request #6164 from freesewing/i18n
New Crowdin Translations [skip build]
2024-03-02 15:39:08 +01:00
Joost De Cock
ca84c83c65 New translations en.json (French)
skip-build
2024-02-28 17:20:19 +01:00
dependabot[bot]
dd9c78dd31
chore(deps-dev): Bump eslint from 8.56.0 to 8.57.0
Bumps [eslint](https://github.com/eslint/eslint) from 8.56.0 to 8.57.0.
- [Release notes](https://github.com/eslint/eslint/releases)
- [Changelog](https://github.com/eslint/eslint/blob/main/CHANGELOG.md)
- [Commits](https://github.com/eslint/eslint/compare/v8.56.0...v8.57.0)

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

Signed-off-by: dependabot[bot] <support@github.com>
2024-02-26 04:37:25 +00:00
Joost De Cock
3a1efa045f
Merge pull request #6032 from BenJamesBen/chai-import-tests
fix(models, backend): In tests, use chai namespace import instead of default
2024-02-14 17:49:55 +01:00
Benjamin Fan
ae68d9d574 fix(models): In tests, import only expect from chai, not the entire namespace 2024-02-13 17:44:18 -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
Benjamin Fan
5f27a64a5c fix(models): In tests, use namespace import instead of default 2024-02-12 19:13:22 -08: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
Joost De Cock
4d94b8d8ca
Merge pull request #6001 from freesewing/joost
feat(core): Added Path.combine and related changes, closes #5976
2024-02-10 16:00:27 +01:00
joostdecock
dde6935cdf chore(core): Removed left-behind variable 2024-02-10 15:48:30 +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
Joost De Cock
4bb64f1bda
Merge pull request #5991 from BenJamesBen/stack-anchor-property
fix(core): Add missing anchor property to Stack() constructor
2024-02-10 14:18:33 +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
Benjamin Fan
0fdd1e5b3c fix(core): Add missing anchor property to Stack() constructor 2024-02-08 12:26:04 -08: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
Joost De Cock
777a9db557
Merge pull request #5862 from BenJamesBen/remove-distance_debug-messages
chore(core): Remove options distance debug logging
2024-01-27 17:07:06 +01:00
Joost De Cock
a12bc1394f
Merge pull request #5900 from BenJamesBen/remove-svg-body
fix(core): Remove Svg.body property
2024-01-26 16:06:03 +01:00
Benjamin Fan
470b34ae9e fix(core): Use Set instead of Array for options priority debug messages 2024-01-25 21:51:00 -08:00
dependabot[bot]
cda2a6e53c
build(deps): bump axios from 1.6.6 to 1.6.7
Bumps [axios](https://github.com/axios/axios) from 1.6.6 to 1.6.7.
- [Release notes](https://github.com/axios/axios/releases)
- [Changelog](https://github.com/axios/axios/blob/v1.x/CHANGELOG.md)
- [Commits](https://github.com/axios/axios/compare/v1.6.6...v1.6.7)

---
updated-dependencies:
- dependency-name: axios
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-01-26 04:52:30 +00:00
dependabot[bot]
731b9c481f
build(deps): bump axios from 1.6.5 to 1.6.6
Bumps [axios](https://github.com/axios/axios) from 1.6.5 to 1.6.6.
- [Release notes](https://github.com/axios/axios/releases)
- [Changelog](https://github.com/axios/axios/blob/v1.x/CHANGELOG.md)
- [Commits](https://github.com/axios/axios/compare/v1.6.5...v1.6.6)

---
updated-dependencies:
- dependency-name: axios
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-01-25 04:21:29 +00:00
Benjamin Fan
5828e53937 fix(core): Remove Svg.body property 2024-01-24 20:18:03 -08:00
Stefano Cislaghi
5bea21d68f fix: rehype not remark 2024-01-21 19:11:16 +00:00
Benjamin Fan
a298f43a18 chore(core): Remove options distance debug logging 2024-01-20 20:23:52 -08:00
dependabot[bot]
4f5fc2f1f5
build(deps): bump axios from 1.6.4 to 1.6.5
Bumps [axios](https://github.com/axios/axios) from 1.6.4 to 1.6.5.
- [Release notes](https://github.com/axios/axios/releases)
- [Changelog](https://github.com/axios/axios/blob/v1.x/CHANGELOG.md)
- [Commits](https://github.com/axios/axios/compare/v1.6.4...v1.6.5)

---
updated-dependencies:
- dependency-name: axios
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-01-08 04:36:14 +00: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
dependabot[bot]
aecb8b9e1f
build(deps): bump axios from 1.6.3 to 1.6.4
Bumps [axios](https://github.com/axios/axios) from 1.6.3 to 1.6.4.
- [Release notes](https://github.com/axios/axios/releases)
- [Changelog](https://github.com/axios/axios/blob/v1.x/CHANGELOG.md)
- [Commits](https://github.com/axios/axios/compare/v1.6.3...v1.6.4)

---
updated-dependencies:
- dependency-name: axios
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-01-04 04:39:26 +00:00
Joost De Cock
ec80822ffa
Merge pull request #5701 from freesewing/dependabot/npm_and_yarn/ora-8.0.1
build(deps): bump ora from 7.0.1 to 8.0.1
2023-12-28 17:25:16 +01:00
dependabot[bot]
ef9903a24c
build(deps): bump axios from 1.6.2 to 1.6.3
Bumps [axios](https://github.com/axios/axios) from 1.6.2 to 1.6.3.
- [Release notes](https://github.com/axios/axios/releases)
- [Changelog](https://github.com/axios/axios/blob/v1.x/CHANGELOG.md)
- [Commits](https://github.com/axios/axios/compare/v1.6.2...v1.6.3)

---
updated-dependencies:
- dependency-name: axios
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-12-27 04:16:37 +00: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
ae0438a75c fix(new-design): Remove debug output 2023-12-26 19:50:53 +01:00
dependabot[bot]
d52433870c
build(deps): bump ora from 7.0.1 to 8.0.1
Bumps [ora](https://github.com/sindresorhus/ora) from 7.0.1 to 8.0.1.
- [Release notes](https://github.com/sindresorhus/ora/releases)
- [Commits](https://github.com/sindresorhus/ora/compare/v7.0.1...v8.0.1)

---
updated-dependencies:
- dependency-name: ora
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-12-25 16:06:15 +00:00
Wouter van Wageningen
dfe98c19cf
Update utils.mjs
Fix #5697
2023-12-24 15:39:33 -08:00
joostdecock
14bca334f6 release: v3.1.0-rc-0 2023-12-24 14:06:17 +01:00
joostdecock
83111ac646 fix(new-design): Typo in filename 2023-12-24 14:01:17 +01:00
joostdecock
128a594cb2 fix(sde): Mock files to fix SDE 2023-12-24 13:53:23 +01:00
joostdecock
6e9e2f97ba fix: Add missing measurments images to SDE 2023-12-24 13:27:10 +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