1
0
Fork 0
Commit graph

1031 commits

Author SHA1 Message Date
joostdecock
ab6511f4b9 chore(core): Cleaned up renderprops 2023-06-04 16:52:02 +02:00
joostdecock
982b3984b8 feat(core): Added support for renderProps in defs 2023-06-04 16:44:38 +02:00
joostdecock
a2800dddda feat(core): Added Pattern.getLogs() and updated Pattern.getRenderProps()
The data returned by `Pattern.getRenderProps()` was not serializable as
we were returning `this` all over the place, thereby including marcors,
log methods, cyclic object references, and so on.

This commit changes that by implementing a `.asRenderProp()` method on
all of the various objects (stack, part, path, point, snippet,
attributes, svg) and only including data that can be serialized.

In addition, we no longer include the logs in the renderProps because
they are not related to rendering the pattern.
Instead, the new method `Pattern.getLogs()` gives you the logs.
2023-06-01 16:45:13 +02:00
Joost De Cock
7cd9d43a23
Merge pull request #4108 from eriese/eriese-part-priority
fix (core) draft after dependencies before from dependencies
2023-05-23 17:26:44 +02:00
Enoch Riese
cc143153b2 fix (core) resolve after depenndencies before from dependencies 2023-05-22 16:16:05 -05:00
dependabot[bot]
41ec594b36
Bump eslint from 8.40.0 to 8.41.0
Bumps [eslint](https://github.com/eslint/eslint) from 8.40.0 to 8.41.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.40.0...v8.41.0)

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

Signed-off-by: dependabot[bot] <support@github.com>
2023-05-22 05:08:13 +00:00
joostdecock
92e8c6fdca chore(core): Code QA fixes 2023-05-19 10:34:51 +02:00
Joost De Cock
57138f9ef6
Merge pull request #4013 from BenJamesBen/unknown-macro-warning
fix(core): (part) Add warning message if invalid macro name used
2023-05-10 13:45:22 +02:00
Joost De Cock
9cea67a7dc
Merge pull request #4016 from freesewing/dependabot/npm_and_yarn/eslint-8.40.0
chore(deps-dev): bump eslint from 8.39.0 to 8.40.0
2023-05-09 19:31:55 +02:00
Enoch Riese
837b86368d 🔖 v3.0.0-alpha.10 2023-05-08 01:34:29 -05:00
dependabot[bot]
a6c2aa7653
chore(deps-dev): bump eslint from 8.39.0 to 8.40.0
Bumps [eslint](https://github.com/eslint/eslint) from 8.39.0 to 8.40.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.39.0...v8.40.0)

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

Signed-off-by: dependabot[bot] <support@github.com>
2023-05-08 05:04:50 +00:00
Benjamin F
8ecb2cfcec fix(core): (part) Allow existing unknown macro test to pass 2023-05-07 13:51:59 -07:00
Benjamin F
b46d3ac67e fix(core): (part) Added warning message if invalid macro name used 2023-05-07 13:15:54 -07:00
Joost De Cock
92a51ec163
Merge pull request #3964 from eriese/eriese-3957
fixes #3957 Re-use existing part for out-of-cycle draft
2023-05-03 15:39:27 +02:00
Joost De Cock
f5f4acaad2
Merge pull request #3863 from freesewing/snippets
Allow `defs` in the `svg` to be overwritten.
2023-05-02 20:03:33 +02:00
Enoch Riese
282696f1cd fixes #3957 re-use existing part for out-of-cycle draft 2023-05-02 12:25:04 -05:00
Joost De Cock
7aed296564
Merge pull request #3931 from freesewing/beamIntersectsCurve
utils.beamIntersectsCurve()
2023-04-29 20:10:14 +02:00
Enoch Riese
c65c08432a don't rely on browsers to compute transforms in layouting 2023-04-28 15:46:33 -04:00
Wouter van Wageningen
a5f141a586 Docs and code cleanup 2023-04-28 18:26:55 +00:00
Wouter van Wageningen
68c0fca124 Code and tests 2023-04-28 16:42:35 +00:00
Wouter van Wageningen
e9ab680c53
Merge pull request #3919 from freesewing/develop
Get up to date with develop
2023-04-26 23:24:53 -07:00
dependabot[bot]
25ac25eb03
chore(deps-dev): bump eslint from 8.38.0 to 8.39.0
Bumps [eslint](https://github.com/eslint/eslint) from 8.38.0 to 8.39.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.38.0...v8.39.0)

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

Signed-off-by: dependabot[bot] <support@github.com>
2023-04-25 05:22:16 +00:00
Joost De Cock
f47047249d
Merge pull request #3835 from eriese/eriese-core-refactor
refactor (core) separate various Pattern concerns into helper classes
2023-04-24 08:41:45 +02:00
Wouter van Wageningen
e7ce509762 Added test for clone() 2023-04-21 13:48:18 +00:00
Wouter van Wageningen
8887a97dd2 @eriese recommendations 2023-04-21 03:48:37 +00:00
Wouter van Wageningen
9ed72e9f45 Now with tests! 2023-04-20 18:30:40 +00:00
Wouter van Wageningen
f47e09768e spelling 2023-04-20 17:50:36 +00:00
Enoch Riese
0cbc0856f4 fix (cutlist) edits to work with plugin-mirror's new strictness 2023-04-20 10:23:27 -04:00
Enoch Riese
da76f23274 add back in accidentally deleted method 2023-04-20 10:07:43 -04:00
Wouter van Wageningen
3e91e23ed5 Working version 2023-04-20 05:44:39 +00:00
Wouter van Wageningen
895baf48d5 Spelling mistake 2023-04-20 05:43:05 +00:00
Joost De Cock
b5e72442f2 release: v3.0.0-alpha.9 2023-04-19 19:49:36 +02:00
Enoch Riese
5abd8e166b chore (core) document new classes [vercel skip] 2023-04-19 12:40:48 -04:00
Enoch Riese
c6d4fc3aea fix (core) fix rounding in count sampling. add tests 2023-04-19 11:30:32 -04:00
Wouter van Wageningen
2a3c0d1126 Tweak 2023-04-19 14:48:03 +00:00
Wouter van Wageningen
5dcaa15f32 First attempt 2023-04-19 06:08:26 +00:00
Enoch Riese
8ccab0df21 chore (core) cleanup 2023-04-18 18:47:49 -04:00
Enoch Riese
13ec5e43e5 refactor (core) reorganize method groupings in Pattern 2023-04-18 17:12:55 -04:00
Enoch Riese
8fea9a4beb refactor (core) move draft handling into its own class 2023-04-18 17:12:55 -04:00
Enoch Riese
9e8db66c94 refactor (core) move packing and rendering to its own class 2023-04-18 17:12:55 -04:00
Enoch Riese
c5baaab234 refactor (core) move plugin and hook handling to its own class 2023-04-18 17:12:55 -04:00
Enoch Riese
e59341effa refactor (core) separate sampling into its own handler 2023-04-18 17:12:55 -04:00
Enoch Riese
3c54e94c43 chore (core) move pattern related classes to their own folder 2023-04-18 17:12:55 -04:00
dependabot[bot]
4940549c68
chore(deps-dev): bump chai from 4.2.0 to 4.3.7
Bumps [chai](https://github.com/chaijs/chai) from 4.2.0 to 4.3.7.
- [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/4.2.0...v4.3.7)

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

Signed-off-by: dependabot[bot] <support@github.com>
2023-04-18 05:38:07 +00:00
Joost De Cock
fbd7c13dba
Merge pull request #3821 from freesewing/inherit-freeid
fix(core): Proposal to fix #3781
2023-04-16 09:26:26 +02:00
joostdecock
f4f7562dd7 Merge branch 'develop' into transform-support 2023-04-15 19:53:45 +02:00
Enoch Riese
eef6c84c9c [vercel skip] chore (core) maintain coverage threshold 2023-04-15 11:59:31 -04:00
joostdecock
aa9555cb63 fix(core): Proposal to fix #3781
This is an (untested) fix for #3781
It ensures a part's freeId is inherited when the part is injected.
2023-04-15 17:54:56 +02:00
joostdecock
b33a739f54 Merge branch 'develop' into annotations 2023-04-15 15:47:00 +02:00
joostdecock
3cbb59e30f chore(core): Linter fix 2023-04-15 15:37:48 +02:00