1
0
Fork 0
Commit graph

906 commits

Author SHA1 Message Date
joostdecock
516c819c40 feat(core): Added Point.addText and Point.addCircle 2022-09-25 10:55:36 +02:00
joostdecock
65b053ac1c feat(core): Add setHidden to shorthand 2022-09-21 12:24:19 +02:00
joostdecock
f08f2d7e48 feat(core): Add getId to shorthand 2022-09-21 10:15:59 +02:00
Joost De Cock
22680fbddc chore(core): Change init to be private (__init) 2022-09-20 15:24:10 +02:00
Joost De Cock
bb89b6ca65 chore(core): Unit tests for v3 code 2022-09-19 23:35:52 +02:00
Joost De Cock
d5eb2946d3 chore(core): More unit tests 2022-09-19 18:04:47 +02:00
Joost De Cock
269b1a36f1 fix(core): Tests for smurve and smurve_ 2022-09-19 10:32:53 +02:00
Joost De Cock
d7cbd42ced feat(core): Added path.smurve() and path.smurve_() methods 2022-09-19 09:28:45 +02:00
Joost De Cock
21ea22a18d chore(core): Don't use reveal, use unhide 2022-09-18 23:01:10 +02:00
Joost De Cock
04f6852482 feat(core): Added additional lifecycle hooks
Specifically:

- preInit
- postInit
- preSetDraft
- prePartDraft
- postPartDraft
- postSetDraft
2022-09-18 22:48:55 +02:00
Joost De Cock
5dc7401308 chore(core): Use hide, not render 2022-09-18 18:16:17 +02:00
Joost De Cock
200cebf582 chore(core): Refactor v3 code 2022-09-18 15:11:10 +02:00
Joost De Cock
e163ed1782 feat(core): Tests for multisets 2022-09-17 10:28:01 +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
Enoch Riese
9bacc1109f
Merge branch 'develop' into eriese-windows 2022-09-15 10:40:05 -05:00
Joost De Cock
6efd47b421 fix(core): Force anchor to 0,0
Pretty sure this won't be suiteable for all scenarios but it does
at least result in the correct transform for the typical cases.
2022-09-15 16:52:48 +02:00
Joost De Cock
a416b8b860 chore: More linting 2022-09-15 13:49:55 +02:00
Joost De Cock
8e187a947a chore: Add linting for yaml 2022-09-15 10:23:06 +02:00
Joost De Cock
c9f9202c9b chore: Added eslint config and workflow 2022-09-15 07:53:35 +02:00
Joost De Cock
56427cc4bd chore(core): Linter fixes 2022-09-15 06:34:05 +02:00
Joost De Cock
a76af50900 wip(core): Working on eslint integration 2022-09-14 16:56:42 +02:00
Joost De Cock
671819fda3 chore: Linter fixes 2022-09-14 15:23:10 +02:00
Joost De Cock
a953f1692b chore: Prettier run 2022-09-14 15:04:24 +02:00
Joost De Cock
ef5e792d6b chore: Linter fixes 2022-09-14 15:02:39 +02:00
Joost De Cock
b1429a3704 chore: Reconfigure packages 2022-09-14 13:42:36 +02:00
Joost De Cock
8cc4c588ff Merge branch 'v3-stacks' into develop 2022-09-14 13:24:38 +02:00
Joost De Cock
1c442ad580 wip(core): Work on stack-based layouts 2022-09-14 12:24:09 +02:00
Enoch Riese
aba62cd3bc add support for windows-specific build and prebuild scripts 2022-09-13 11:32:50 -05:00
Joost De Cock
7ac5a88dff feat(core): Added support for stacks in layout 2022-09-13 17:56:01 +02:00
joostdecock
85748db201 wip(core): Started working on support for stacks in core 2022-09-12 20:10:22 +02:00
Joost De Cock
aa1d76ee80 feat(core): Allow loading of plugin data 2022-09-12 18:01:37 +02:00
joostdecock
34c05af3bb fix(core): Don't hide after parts 2022-09-11 18:09:17 +02:00
joostdecock
48b366c57e fix(core): Issue with hiding dependencies 2022-09-11 18:00:41 +02:00
joostdecock
b78aa97af9 wip(core): Test for part in shorthand 2022-09-10 19:34:43 +02:00
joostdecock
bdd5cb562e chore: Run unit tests from source 2022-09-10 19:16:17 +02:00
joostdecock
ac4d134075 feat(core): Pass shorthand() to draft methods 2022-09-10 19:13:43 +02:00
joostdecock
b7071bb487 wip(core): Unit tests 2022-09-10 18:45:57 +02:00
joostdecock
4121ef44d2 wip(core): Work on path unit tests 2022-09-10 18:23:19 +02:00
joostdecock
cf0c70f4c6 wip(core): Work on part unit tests 2022-09-10 16:00:43 +02:00
joostdecock
904e0044c5 wip(core): Work on pattern/design unit tests 2022-09-10 15:04:57 +02:00
joostdecock
032b2d6e3c wip(core): Draft fixes and testing 2022-09-10 13:35:26 +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
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
575d7c3de8 chore: Contributors update 2022-09-07 16:17:33 +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