1
0
Fork 0
Commit graph

1044 commits

Author SHA1 Message Date
dependabot[bot]
d547ba9fb5
chore(deps-dev): bump mocha from 10.7.0 to 10.7.3
Bumps [mocha](https://github.com/mochajs/mocha) from 10.7.0 to 10.7.3.
- [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.7.0...v10.7.3)

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

Signed-off-by: dependabot[bot] <support@github.com>
2024-08-26 04:27:11 +00: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
55e776db2c add unit tests for circleSegment method 2024-07-12 07:29:11 +02:00
Jonathan Haas
dd1b4f1a14 feature(core): add path.circleSegment() method and documentation 2024-07-11 18:38:04 +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
Jonathan Haas
1ee4864761 fix(core): Fix typo in path.clean() method 2024-07-02 18:41:18 +02: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
Joost De Cock
ebfd10d2eb
Merge pull request #6768 from freesewing/dependabot/npm_and_yarn/sinon-18.0.0
chore(deps-dev): Bump sinon from 17.0.2 to 18.0.0
2024-06-12 15:09:51 +02:00
joostdecock
eded9e9d3a fix(core): Handle path splits on start or end points
In some edge cases, like when splitting a path on or very close to its
start or end point, `Path.split()` will return an array in which one of
the elements is not a Path object, but rather an empty array.

That is rather combersome to check for, so this changes that behaviour
and will return null for such cases.

I've also updated the documentation to clarify this behaviour.

Fixes #6816

This also fixes a bug when a path was being split on its end point.
2024-06-12 13:24:42 +02:00
dependabot[bot]
db5ecd1eac
chore(deps-dev): Bump sinon from 17.0.2 to 18.0.0
Bumps [sinon](https://github.com/sinonjs/sinon) from 17.0.2 to 18.0.0.
- [Release notes](https://github.com/sinonjs/sinon/releases)
- [Changelog](https://github.com/sinonjs/sinon/blob/main/docs/changelog.md)
- [Commits](https://github.com/sinonjs/sinon/compare/v17.0.2...v18.0.0)

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

Signed-off-by: dependabot[bot] <support@github.com>
2024-05-23 16:05:08 +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
Joost De Cock
f82ebd97d8
Merge pull request #6558 from HaasJona/add/path-angle
add(core): Add Path.angleAt(point) method
2024-04-18 19:02:26 +02:00
Jonathan Haas
ed608b52a0
Add documentation and rename method 2024-04-18 10:53:30 +02:00
Joost De Cock
281a04c37f
Merge pull request #6527 from HaasJona/fix/path-offset
fix(core): Path.offset(...) improvements
2024-04-16 19:07:55 +02:00
Jonathan Haas
789ff3f8ca Fix test 2024-04-15 19:31:01 +02:00
Jonathan Haas
85946eb716 Add clarifying comment 2024-04-15 18:43:39 +02:00
Jonathan Haas
25059b818f Add test for path.angleAt 2024-04-15 18:28:49 +02:00
Jonathan Haas
d2731a6d88 add(core): Add Path.angleAt(point) method 2024-04-15 18:28:49 +02:00
Jonathan Haas
1909955d73 Make pointOnCurve behaviour match documentation 2024-04-15 18:28:09 +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
Jonathan Haas
080874dd88
fix(core): Path.offset(...) no longer fails on very short curves or zero length paths. Fixes #6519 2024-04-08 08:25:09 +02:00
joostdecock
04505691d6 Merge branch 'develop' into joost 2024-04-06 18:05:18 +02: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
Jonathan Haas
849563d1ec
add(core): Add Path.rotate(...) function analogue to Point.rotate(...) 2024-04-05 14:45:20 +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
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
8f13ace1f3 chore: Update dependencies and changelog 2024-03-03 10:10:43 +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
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
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