1
0
Fork 0
freesewing/sites/shared/components/workbench
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
..
exporting implement export view in new UI 2023-06-06 15:20:07 -05:00
layout clean up 2023-06-06 11:25:53 -05:00
menus feat(core): New mergeOptions method and passing mergedOtions to toAbs 2023-06-11 14:16:07 +02:00
pattern remove opinionated changes from react-components 2023-06-06 13:24:20 -05:00
views fix(shared): Linter warnings 2023-06-11 09:52:38 +02:00
gist.mjs fix(workbench): Removed obsolete debug setting 2023-05-11 08:13:07 -07:00
header.mjs fix(shared): Remove unused import 2023-06-10 13:55:03 +02:00
index.mjs feat(shared): implemented log view 2023-06-10 20:33:34 +02:00
logs.mjs fix lab build errors after mjs transition 2023-02-09 21:39:19 -06:00
pan-zoom-pattern.mjs lint fixes 2023-06-07 14:12:51 -05:00
preloaders.mjs fix(lab): Fixed lab after moving to esm and named exports 2023-02-05 17:59:22 +01:00
workbench.en.yaml cutting layout view 2023-06-06 11:17:14 -05:00