1
0
Fork 0
Commit graph

127 commits

Author SHA1 Message Date
Joost De Cock
55e5dc3d0c feat(plugin-cutlist): New plugin to manage cutlist
This also removed the cutlist-related functionality that was added to
core as an early v3 feature.
2022-09-07 21:16:44 +02:00
Joost De Cock
ef4a70c8f3 feat(core): Make top-level store methods available through shorthand 2022-09-07 19:52:50 +02:00
Joost De Cock
411f617ffe feat(core): Add default logging to store 2022-09-07 16:55:44 +02:00
Joost De Cock
e2c5b61b17 feat(core): Support for store methods in plugins 2022-09-07 16:16:33 +02:00
Joost De Cock
c2dc4a9ad7 chore: Fixed last tests for v3 merge 2022-09-07 11:22:26 +02:00
joostdecock
0dae02d24b wip(core): Comment out outdated tests 2022-09-03 11:55:18 +02:00
Joost De Cock
8a74a36697 feat(core): Move plugins to part-level config 2022-08-31 17:52:39 +02:00
Joost De Cock
9b028af1a3 feat(core): Treat conditionalPlugins and plugins the same 2022-08-29 19:23:31 +02:00
Joost De Cock
c09ae4aa69 wip(core): Migrated to named exports only 2022-08-28 02:14:39 +02:00
Joost De Cock
ba7c663941 wip(core): Work on porting unit tests to v3 2022-08-27 09:27:07 +02:00
Joost De Cock
eccdd23ded Merge branch 'proposal-parts' into v3-phase1 2022-08-26 12:38:39 +02:00
joostdecock
12e2a5319a Merge branch 'develop' of github.com:freesewing/freesewing into develop 2022-08-25 13:56:10 +02:00
joostdecock
647dded023 chore: Fix linter warnings 2022-08-25 12:53:07 +02:00
joostdecock
547d11569d chore(core): Port tests to ESM 2022-08-25 11:47:54 +02:00
Enoch Riese
a1fe44e3dd Merge branch 'develop' into eriese-pdf-export 2022-08-24 16:19:45 -05:00
Enoch Riese
4e78e8e996 tests 2022-08-24 13:36:19 -05:00
joostdecock
2823f5bbd7 fix(core): Adapt tests for NodeJS v16 2022-08-24 09:45:35 +02:00
Enoch Riese
df7011329b properly take transformed position into account for checking blank pages 2022-08-17 14:27:06 -05:00
Enoch Riese
64a05e8f72 throw in a test, as a treat 2022-08-17 13:54:39 -05:00
joostdecock
62fae66d25 wip(core): Added support for (part-level) optionGroups
This needs some work when merging deeply nested options, but it's a
start
2022-08-15 16:01:42 +02:00
Enoch Riese
a271117381 fix tests for new transform generation 2022-08-14 17:17:21 -05:00
joostdecock
7f684d8c17 wip: Pass parts to design constructor as array
Since the part name needs to be set in the part, this makes
it more clear as there's no key associated with the part.
2022-08-14 18:16:15 +02:00
joostdecock
2b254c721d wip: Recursive resolving of (non-injected) dependencies
We started out with following dependencies that are injected
(from) and now added dependencies that are merely required to
be drafted first (after).

This also adds further support for part-level configuration.
2022-08-14 16:59:51 +02:00
joostdecock
4cf9c3bd47 wip: Added part-level dependencies
Restructured code a bit to handle all part-level config in one call.

Removed check in shorthand for debug as it's no longer used.
Updated tests to not fall over on different error message format in
newer NodeJS versions
2022-08-13 18:33:06 +02:00
joostdecock
689f908f68 wip: Allow runtime adding of parts
Just call `pattern.addPart()` and pass it either:
 - a part object with all it entails
 - a draft method as first and name as second parameter

This will overwrite any existing parts without any warning
2022-08-13 15:11:33 +02:00
joostdecock
2eee247676 wip: Extended unit test 2022-08-13 14:38:59 +02:00
joostdecock
6c3208768e wip: Added support for part-level measurments and optionalMeasurements
This adds support for part-level measurements and optional measurements
2022-08-13 14:27:39 +02:00
Joost De Cock
a1a3e1c194 fix(core): Fixes for backwards compatibility 2022-08-10 16:24:25 +02:00
joostdecock
ac9b616b99 wip(core): Support for 2022 style Design constructor
This is the first commit to tackle some exploratory work
in the context of discussion #2538 that deals with a number
of things, such as:

- Making it easier to attach parts to designs
- Making it easier to attach parts at run-time
- Simplify part inheritance into other designs
- Find ways to handle dependenices across designs
- Find ways to keep the part-specific config with the part

In this initial commit, I've update the Design constructor to
handle two different ways of calling it:

- legacy: new Design(config, plugins, conditionalPlugins)
- 2022: new Design(config)

I didn't want to call this the `new` way because that doesn't
age well, so I went with `legacy` and `2022` and this is how I
will refer to them from now on.

This is very much a work in progress and while I will create a PR
to keep on eye on the tests, I don't expect to merge this as-is.
2022-08-07 17:29:33 +02:00
joostdecock
6e2a0a33d9 fix(core): Removed debug statement in tests 2022-08-07 15:17:02 +02:00
Joost De Cock
3ac64f9458
Merge branch 'develop' into octoplushie 2022-07-31 15:25:40 +02:00
Joost De Cock
e334a974b5
Merge pull request #2506 from freesewing/cutlist
feat(core): Added pattern.getCutList() method
2022-07-31 15:11:34 +02:00
joostdecock
e5f991241d chore(core): Better naming of test 2022-07-31 15:04:38 +02:00
joostdecock
68c49c64ae chore(core): More unit tests 2022-07-31 14:42:42 +02:00
joostdecock
af89117598 chore(core): Adding unit tests 2022-07-31 14:42:42 +02:00
joostdecock
c67c79af8f chore(core): Tests for path 2022-07-31 14:42:42 +02:00
joostdecock
470e4ccab6 chore(core): Working on test coverage 2022-07-31 14:42:42 +02:00
joostdecock
6acb9f976a feat(core): Added pattern.getCutList() method 2022-07-31 14:32:24 +02:00
joostdecock
8d1bc3c516 feat(core): Add ability to remove cutOnFold 2022-07-31 12:17:51 +02:00
joostdecock
5c486382ec chore(core): Removed duplicate test 2022-07-31 12:01:02 +02:00
joostdecock
4de192835e chore(core): Tweaks to new methods after review 2022-07-31 09:40:40 +02:00
joostdecock
bc567874c1 feat(core): Added new cutting methods. Closes #2470 2022-07-30 20:02:42 +02:00
joostdecock
62ebfa3b73 chore(core): More unit tests 2022-07-30 16:53:07 +02:00
joostdecock
293c6bec09 chore(core): Adding unit tests 2022-07-24 21:34:22 +02:00
joostdecock
a357c2e642 chore(core): Tests for path 2022-07-23 20:21:16 +02:00
joostdecock
785c03d013 chore(core): Working on test coverage 2022-07-23 17:00:48 +02:00
Joost De Cock
ac7b1de00e chore(core): Migrated core from rollup to esbuild 2022-06-12 21:49:34 +02:00
Joost De Cock
353f9cd1c3 fix(core): Added postLayout hook to tests 2022-03-13 15:01:28 +01:00
Joost De Cock
c6b39a8a99 fix(core): Double zero in test 2022-02-19 09:47:11 +01:00
Joost De Cock
cbf258bb6e chore: Reconfigure packages 2022-02-16 20:45:38 +01:00