1
0
Fork 0
Commit graph

394 commits

Author SHA1 Message Date
joostdecock
8713993242 feat(core): Pass pattern to insertText hook 2023-07-02 19:40:43 +02:00
joostdecock
8fde32950c fix(core): Make mergeI18n methos more robust 2023-07-02 13:50:46 +02:00
joostdecock
fe61e85fa9 Merge branch 'develop' into i18n3 2023-06-26 18:50:52 +02:00
joostdecock
714c4ae368 feat(core): Added snippet.scale() and snippet.rotate() methods 2023-06-21 11:46:35 +02:00
Enoch Riese
64bffa5ff9 fix (designs) add missing measurements to design configs 2023-06-20 18:18:39 -05:00
joostdecock
73dc20e1d2 fix(core): Make mergeI18n options optional 2023-06-17 20:15:33 +02:00
Joost De Cock
1264a07afe
Merge branch 'develop' into i18n3 2023-06-17 20:11:44 +02:00
joostdecock
01e2d4e41a Merge branch 'develop' into joost 2023-06-12 18:22:14 +02:00
joostdecock
c5753abdc0 feat(core): Allow toAbs for non-snapped values too 2023-06-11 18:04:49 +02: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
joostdecock
c1fdf83088 feat(core): Consistent debug output style 2023-06-11 09:41:32 +02:00
joostdecock
46f547eb14 feat(core): Log message formatting improvements 2023-06-11 09:36:16 +02:00
joostdecock
88f74a4e5e feat(core): better log message formatting 2023-06-11 09:30:53 +02:00
joostdecock
66841b6a7f feat(core): Added new translation proposal for designs 2023-06-09 20:44:19 +02:00
joostdecock
b174eff5f8 fix(core): Allow paperless to be truthy 2023-06-05 18:39:50 +02:00
joostdecock
ab6511f4b9 chore(core): Cleaned up renderprops 2023-06-04 16:52:02 +02:00
joostdecock
982b3984b8 feat(core): Added support for renderProps in defs 2023-06-04 16:44:38 +02:00
joostdecock
a2800dddda feat(core): Added Pattern.getLogs() and updated Pattern.getRenderProps()
The data returned by `Pattern.getRenderProps()` was not serializable as
we were returning `this` all over the place, thereby including marcors,
log methods, cyclic object references, and so on.

This commit changes that by implementing a `.asRenderProp()` method on
all of the various objects (stack, part, path, point, snippet,
attributes, svg) and only including data that can be serialized.

In addition, we no longer include the logs in the renderProps because
they are not related to rendering the pattern.
Instead, the new method `Pattern.getLogs()` gives you the logs.
2023-06-01 16:45:13 +02:00
Enoch Riese
cc143153b2 fix (core) resolve after depenndencies before from dependencies 2023-05-22 16:16:05 -05:00
joostdecock
92e8c6fdca chore(core): Code QA fixes 2023-05-19 10:34:51 +02:00
Benjamin F
8ecb2cfcec fix(core): (part) Allow existing unknown macro test to pass 2023-05-07 13:51:59 -07:00
Benjamin F
b46d3ac67e fix(core): (part) Added warning message if invalid macro name used 2023-05-07 13:15:54 -07:00
Joost De Cock
92a51ec163
Merge pull request #3964 from eriese/eriese-3957
fixes #3957 Re-use existing part for out-of-cycle draft
2023-05-03 15:39:27 +02:00
Joost De Cock
f5f4acaad2
Merge pull request #3863 from freesewing/snippets
Allow `defs` in the `svg` to be overwritten.
2023-05-02 20:03:33 +02:00
Enoch Riese
282696f1cd fixes #3957 re-use existing part for out-of-cycle draft 2023-05-02 12:25:04 -05:00
Joost De Cock
7aed296564
Merge pull request #3931 from freesewing/beamIntersectsCurve
utils.beamIntersectsCurve()
2023-04-29 20:10:14 +02:00
Enoch Riese
c65c08432a don't rely on browsers to compute transforms in layouting 2023-04-28 15:46:33 -04:00
Wouter van Wageningen
a5f141a586 Docs and code cleanup 2023-04-28 18:26:55 +00:00
Wouter van Wageningen
68c0fca124 Code and tests 2023-04-28 16:42:35 +00:00
Wouter van Wageningen
e9ab680c53
Merge pull request #3919 from freesewing/develop
Get up to date with develop
2023-04-26 23:24:53 -07:00
Joost De Cock
f47047249d
Merge pull request #3835 from eriese/eriese-core-refactor
refactor (core) separate various Pattern concerns into helper classes
2023-04-24 08:41:45 +02:00
Wouter van Wageningen
9ed72e9f45 Now with tests! 2023-04-20 18:30:40 +00:00
Wouter van Wageningen
f47e09768e spelling 2023-04-20 17:50:36 +00:00
Enoch Riese
0cbc0856f4 fix (cutlist) edits to work with plugin-mirror's new strictness 2023-04-20 10:23:27 -04:00
Enoch Riese
da76f23274 add back in accidentally deleted method 2023-04-20 10:07:43 -04:00
Wouter van Wageningen
3e91e23ed5 Working version 2023-04-20 05:44:39 +00:00
Wouter van Wageningen
895baf48d5 Spelling mistake 2023-04-20 05:43:05 +00:00
Enoch Riese
5abd8e166b chore (core) document new classes [vercel skip] 2023-04-19 12:40:48 -04:00
Enoch Riese
c6d4fc3aea fix (core) fix rounding in count sampling. add tests 2023-04-19 11:30:32 -04:00
Wouter van Wageningen
2a3c0d1126 Tweak 2023-04-19 14:48:03 +00:00
Wouter van Wageningen
5dcaa15f32 First attempt 2023-04-19 06:08:26 +00:00
Enoch Riese
8ccab0df21 chore (core) cleanup 2023-04-18 18:47:49 -04:00
Enoch Riese
13ec5e43e5 refactor (core) reorganize method groupings in Pattern 2023-04-18 17:12:55 -04:00
Enoch Riese
8fea9a4beb refactor (core) move draft handling into its own class 2023-04-18 17:12:55 -04:00
Enoch Riese
9e8db66c94 refactor (core) move packing and rendering to its own class 2023-04-18 17:12:55 -04:00
Enoch Riese
c5baaab234 refactor (core) move plugin and hook handling to its own class 2023-04-18 17:12:55 -04:00
Enoch Riese
e59341effa refactor (core) separate sampling into its own handler 2023-04-18 17:12:55 -04:00
Enoch Riese
3c54e94c43 chore (core) move pattern related classes to their own folder 2023-04-18 17:12:55 -04:00
Joost De Cock
fbd7c13dba
Merge pull request #3821 from freesewing/inherit-freeid
fix(core): Proposal to fix #3781
2023-04-16 09:26:26 +02:00
joostdecock
f4f7562dd7 Merge branch 'develop' into transform-support 2023-04-15 19:53:45 +02:00