1
0
Fork 0
freesewing/packages/core/tests
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
..
fixtures fix (core) resolve after depenndencies before from dependencies 2023-05-22 16:16:05 -05:00
attributes.test.mjs wip(core): Work on late-stage config resolver 2022-09-09 20:20:38 +02:00
defs.test.mjs Added test for clone() 2023-04-21 13:48:18 +00:00
design.test.mjs fix(core): Fixed issue with wrong store for log 2022-09-25 10:55:37 +02:00
hooks.test.mjs refactor (core) reorganize method groupings in Pattern 2023-04-18 17:12:55 -04:00
part.test.mjs chore(core): Code QA fixes 2023-05-19 10:34:51 +02:00
path.test.mjs fix(core): Add test for Path.join() for paths with noop operations 2022-12-29 07:06:59 -08:00
pattern-draft.test.mjs refactor (core) move draft handling into its own class 2023-04-18 17:12:55 -04:00
pattern-init.test.mjs fix (core) resolve after depenndencies before from dependencies 2023-05-22 16:16:05 -05:00
pattern-other.test.mjs feat(core): Added Pattern.getLogs() and updated Pattern.getRenderProps() 2023-06-01 16:45:13 +02:00
pattern-part-hiding.test.mjs document and cleanup 2023-03-08 14:37:09 -06:00
pattern-renderer.test.mjs feat(core): Added Pattern.getLogs() and updated Pattern.getRenderProps() 2023-06-01 16:45:13 +02:00
pattern-runtime-parts.test.mjs add sinon for better testing 2023-02-28 13:33:39 -06:00
pattern-sample.test.mjs fix (core) fix rounding in count sampling. add tests 2023-04-19 11:30:32 -04:00
point.test.mjs start refactoring tests for speed 2022-11-15 14:50:14 -06:00
snap.test.mjs move all pattern config resolution to separate class 2023-02-28 13:33:39 -06:00
snippet.test.mjs chore: Extended prettier for config files + run 2022-10-13 16:19:36 +02:00
stacks.test.mjs chore (core) cleanup 2023-04-18 18:47:49 -04:00
store.test.mjs remove stale test 2023-03-12 13:04:00 -05:00
svg.test.mjs @eriese recommendations 2023-04-21 03:48:37 +00:00
utils.test.mjs Merge pull request #3931 from freesewing/beamIntersectsCurve 2023-04-29 20:10:14 +02:00