1
0
Fork 0
freesewing/sites/shared
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
..
components feat(core): New mergeOptions method and passing mergedOtions to toAbs 2023-06-11 14:16:07 +02:00
config most menu items using shared components 2023-06-02 12:39:55 -05:00
context wip(org): Work on pattern pages 2023-05-30 19:25:22 +02:00
designs fix(org): Linter errors 2022-12-26 17:44:00 +01:00
favicon feat(shared): Added favicon icon 2023-05-23 16:41:01 +02:00
hooks feat(org): Use dynamic pages for new designs 2023-06-03 21:36:35 +02:00
i18n feat(dev): Ported dev site to new v3 site framework 2023-05-16 10:34:13 +02:00
mdx chore(shared): Fix linter warnings in sites/shared 2023-05-19 18:15:06 +02:00
page-templates feat(org): Use dynamic pages for new designs 2023-06-03 21:36:35 +02:00
plugins cutting layout view 2023-06-06 11:17:14 -05:00
prebuild fix(shared): Prebuild issues after removing org step 2023-06-03 21:43:49 +02:00
strapi chore: Adapt sites to recent changes 2022-06-17 12:02:09 +02:00
styles feat(shared): Handle translation in pattern logs 2023-06-11 09:26:56 +02:00
themes fix(shared): lightBlue is sky now in Tailwind 2023-04-16 19:31:11 +02:00
package.json chore: Dependency updates 2023-06-09 18:26:26 +02:00
utils.mjs feat(shared): implemented log view 2023-06-10 20:33:34 +02:00