1
0
Fork 0
Commit graph

16 commits

Author SHA1 Message Date
Enoch Riese
3c54e94c43 chore (core) move pattern related classes to their own folder 2023-04-18 17:12:55 -04:00
joostdecock
b3679ede55 fix(core): Fixed issue with wrong store for log 2022-09-25 10:55:37 +02:00
Joost De Cock
485492e452 wip: Work on design init 2022-09-25 10:55:37 +02:00
Joost De Cock
200cebf582 chore(core): Refactor v3 code 2022-09-18 15:11:10 +02:00
Joost De Cock
0b18d81e14 feat(core): Added support for multiple sets of settings
This changes they was settings (what the user provides) are handled.
Before this, settings were passed as an object and that was it.
Now, settings are treated as an array of settings objects and this adds
full support for managing multiple sets of settings in a single pattern
instance.

This is the mechanism that's used for FreeSewing's sampling which used
to be a rather hackish implementation, but now merely sets up the
relevant list of settings, and then calls `pattern.draft()` as usual.

Things to be mindful of is that parts, the store and settings themselves
are tied to each set of settings. So where they used to be an object,
they are now an array of object.
2022-09-17 10:24:13 +02:00
Joost De Cock
ef5e792d6b chore: Linter fixes 2022-09-14 15:02:39 +02:00
joostdecock
904e0044c5 wip(core): Work on pattern/design unit tests 2022-09-10 15:04:57 +02:00
Joost De Cock
c72c1ec485 chore(core): Keep defaults in config.mjs 2022-09-09 20:29:31 +02:00
Joost De Cock
0cbffd6dc6 wip(core): Work on late-stage config resolver
This moves resolving of the config from the pattern constructor to the
init() method. The idea is that adding a part to a pattern is exactly
the same as adding a part to a design. In other words, late-stage adding
of parts would be no different as the config gets resolved after that.

This is currently broken in many different ways, but the unit tests
particular to this new way of resolving the config do pass.
2022-09-09 20:20:38 +02:00
Joost De Cock
58c15f6c81 chore(core): Do not add hide methods to options 2022-09-08 11:53:05 +02:00
joostdecock
7133f33eaf wip(core): Work on plugin loading 2022-09-04 18:22:02 +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
e4b5d52aaf wip(core): Work on v3 2022-08-27 09:28:36 +02:00
Joost De Cock
3671f44e90 chore: Move core files to .mjs 2022-08-26 18:51:02 +02:00
Renamed from packages/core/src/design.js (Browse further)