1
0
Fork 0
Commit graph

65 commits

Author SHA1 Message Date
Enoch Riese
239eff81c0 begin refactoring part resolution to handle one part at a time 2023-02-23 19:16:29 +02:00
Enoch Riese
6bdaa460aa get stack name using current settings rather than all settings 2023-01-07 15:14:32 -06:00
Enoch Riese
4bdbddb3d6 get pages to render properly on pdf export when settings.only is an array 2022-12-13 08:39:16 -06:00
Enoch Riese
d78b2bb6c1 Merge branch 'develop' into eriese-v3-printing 2022-12-12 09:44:25 -06:00
Benjamin F
969d481585 fix(core): Update Pattern.sampleOptions() to work with additional option types 2022-12-08 20:45:17 -08:00
Enoch Riese
4f42f4038c test the security fix 2022-12-08 20:06:22 -06:00
Enoch Riese
08f1dcdaba security fix 2022-12-08 19:31:57 -06:00
Enoch Riese
271686b23b Merge branch 'develop' into eriese-v3-printing 2022-11-16 10:05:37 -06:00
Enoch Riese
0115a46d8a get tests passing 2022-11-14 16:33:57 -06:00
Enoch Riese
922cfd02b9 add pre-layout hook for consistency between getRenderProps and render 2022-11-14 14:01:50 -06:00
Benjamin F
8d75107711 fix(core): Calculate option distances correctly. 2022-11-11 19:18:02 -08:00
Joost De Cock
91c6698139 fix(core): Check plugin name optionally 2022-10-23 19:49:41 +02:00
Joost De Cock
d380cc1259 fix(core): Typo in option distance comparison. Fixes #2742 2022-09-29 14:31:02 +02:00
Joost De Cock
d321f3934e fix(core): Handle from/after dependency visibility
Fixes #2876
2022-09-29 01:02:04 +02:00
Joost De Cock
0f82fa9b95 chore(core): Don't freeze gist 2022-09-28 22:51:55 +02:00
Joost De Cock
911ada1606 fix(core): Don't mutate settings. Fixes #2882 2022-09-28 22:30:42 +02:00
Joost De Cock
229b7e2e30 fix(core): Correctly handle hideAll in dependencies
fixes #2880
2022-09-28 21:37:17 +02:00
Joost De Cock
e960d31d96 chore: Lab debug and types. See #2838 2022-09-28 19:22:22 +02:00
Joost De Cock
22ed2f62bd fix(core): Hide grandchild dependencies 2022-09-28 18:33:01 +02:00
Joost De Cock
5a9a7b2b91 fix(core): Allow run-time hiding of parts 2022-09-28 18:08:16 +02:00
Joost De Cock
6ce5937fb9 wip(core): More tweaks to plugin discovery 2022-09-28 16:47:45 +02:00
Joost De Cock
3cb5384df5 feat(core): Added path.addText and path.setText methods
Also added a parameter to path.reverse to make it a deep clone.
2022-09-27 18:22:56 +02:00
Joost De Cock
bc8b742cb7 fix(core): Display name/version in logs 2022-09-26 09:52:09 +02:00
joostdecock
6cd953d825 fix(core): Don't initialize twice. Closes #2852 2022-09-25 11:17:43 +02:00
joostdecock
c7178c0697 fix(core): Hiding of parts/stacks 2022-09-25 10:55:37 +02:00
joostdecock
b3679ede55 fix(core): Fixed issue with wrong store for log 2022-09-25 10:55:37 +02:00
joostdecock
12c5c6a3f8 wip(core): Ensure imutable design parts and options 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
joostdecock
07ea66be77 fix(core): Hide stack if it's unwanted 2022-09-25 10:55:36 +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
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
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
56427cc4bd chore(core): Linter fixes 2022-09-15 06:34:05 +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
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
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
ac4d134075 feat(core): Pass shorthand() to draft methods 2022-09-10 19:13:43 +02:00
joostdecock
4121ef44d2 wip(core): Work on path unit tests 2022-09-10 18:23:19 +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