1
0
Fork 0
Commit graph

25 commits

Author SHA1 Message Date
Enoch Riese
05f37dac90 chore (lint) 2023-07-26 20:21:18 -06:00
Enoch Riese
8781e60350 support fractions and comma decimal separators 2023-07-26 16:38:51 -06:00
Enoch Riese
8a4c558cee more contained fixes to docs 2023-07-17 11:40:45 -05:00
joostdecock
631ea8a50d feat(core): New mergeOptions method and passing mergedOtions to toAbs
When using toAbs for all but the most trivial cases, one needs access to
the options. Unlike measurements which are always there, options aren't
always set since they are only set when they differ from the default.

This would shift a lot of responsibility on the pattern designer who
would have to check whether an option is set, and if it's not use the
default which in turn depends on what type of an option it is (and it's
pct for example you have to remember to divide it by 100 and so on).

This feels footgun-y so instead I've added a `mergeOptions` method that
merges the options passed by the user with the defaults from the pattern
config so that you have a simple object with all option values.

This should get passed to `toAbs()` as the 3rd parameter.
2023-06-11 14:16:07 +02:00
Enoch Riese
ef69ea1e3c test view with options menu 2023-06-06 14:19:22 -05:00
Enoch Riese
0e329e195d print view settings menu 2023-06-05 16:08:58 -05:00
Enoch Riese
a1714c48d0 make it look like Joost's version 2023-06-03 11:31:40 -05:00
Enoch Riese
2ad0ac3491 add toggler to boolean menu items 2023-06-02 12:41:27 -05:00
Enoch Riese
b975355f45 document new shared menus 2023-06-02 12:39:55 -05:00
Enoch Riese
a8891d6091 lint fixes 2023-06-02 12:39:55 -05:00
Enoch Riese
cc14c562d2 both menus using same structure and components 2023-06-02 12:39:55 -05:00
Enoch Riese
75bc302dd4 most menu items using shared components 2023-06-02 12:39:55 -05:00
Enoch Riese
0f0fcb5e6b refactor menus to share components 2023-06-02 12:39:55 -05:00
joostdecock
beb580785b chore(shared): Linter warnings 2023-06-01 09:17:02 +02:00
joostdecock
cab7f5d2c5 wip(org): More work on managing patterns 2023-05-31 15:32:54 +02:00
joostdecock
801ba17ab6 chore: More QA fixes for sites 2023-05-19 18:27:36 +02:00
joostdecock
c49a47a0de chore: Fixing linter warnings 2023-05-19 16:31:28 +02:00
joostdecock
5a92cc6659 chore(lab): Do not include dynamic docs in the lab 2023-05-18 15:25:40 +02:00
joostdecock
e4850ca908 chore(shared): More work on design option inputs 2023-05-18 14:12:33 +02:00
joostdecock
e986ec33e9 fix(shared): Deal with list option inputs 2023-05-18 14:06:22 +02:00
joostdecock
262084150e feat(shared): work on v3 design options menu 2023-05-18 11:26:10 +02:00
joostdecock
5052e885fa chore(shared): Emoji key for design options 2023-05-15 20:35:00 +02:00
joostdecock
3ef6d832c8 wip(shared): Started working on design-options menu 2023-05-13 19:58:50 +02:00
joostdecock
e74a73e61e wip(shared): Working on the core settings menu 2023-05-13 14:17:47 +02:00
joostdecock
517fa3f5e3 wip(shared): Re-factoring workbench 2023-05-11 19:14:48 +02:00