1
0
Fork 0
Commit graph

165 commits

Author SHA1 Message Date
joostdecock
714c4ae368 feat(core): Added snippet.scale() and snippet.rotate() methods 2023-06-21 11:46:35 +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
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
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
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
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
Wouter van Wageningen
e7ce509762 Added test for clone() 2023-04-21 13:48:18 +00:00
Wouter van Wageningen
8887a97dd2 @eriese recommendations 2023-04-21 03:48:37 +00:00
Wouter van Wageningen
9ed72e9f45 Now with tests! 2023-04-20 18:30:40 +00:00
Enoch Riese
c6d4fc3aea fix (core) fix rounding in count sampling. add tests 2023-04-19 11:30:32 -04: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
eef6c84c9c [vercel skip] chore (core) maintain coverage threshold 2023-04-15 11:59:31 -04:00
Enoch Riese
042d4e71a9 [vercel skip] chore (core) document and test Stack.home 2023-04-14 23:49:45 -04:00
Enoch Riese
98a90344f5 remove stale test 2023-03-12 13:04:00 -05:00
Enoch Riese
a4a64bdb21 document and cleanup 2023-03-08 14:37:09 -06:00
Enoch Riese
7551f09b8d use presets for common hide configurations 2023-03-08 14:37:09 -06:00
Enoch Riese
ca80dfbfa3 implement and test final proposal 2023-03-08 14:37:09 -06:00
Enoch Riese
b750562acc a bit more testing and cleanup 2023-03-01 08:44:55 -06:00
Enoch Riese
e0f5d533ae refactor and test part hiding 2023-02-28 13:33:39 -06:00
Enoch Riese
d1f4d875c5 add sinon for better testing 2023-02-28 13:33:39 -06:00
Enoch Riese
ade6ad97f1 start of draft queue class 2023-02-28 13:33:39 -06:00
Enoch Riese
4a924536f9 lint fixes and rename 2023-02-28 13:33:39 -06:00
Enoch Riese
5945483f86 move all pattern config resolution to separate class 2023-02-28 13:33:39 -06:00
Enoch Riese
49ae4ec61a add tests for runtime part adding 2023-02-28 13:33:39 -06:00
Enoch Riese
34fc6953e2 all part resolution business happens on a per-part basis 2023-02-28 13:33:39 -06:00
Enoch Riese
e1990bbb99 begin refactoring part resolution to handle one part at a time 2023-02-28 13:33:39 -06:00
Enoch Riese
e3acb96ee2 lint fix 2023-01-07 15:42:54 -06:00
Enoch Riese
f060abbee0 add test 2023-01-07 15:37:43 -06:00
Benjamin F
80eab3896b fix(core): Add test for Path.join() for paths with noop operations 2022-12-29 07:06:59 -08:00
Joost De Cock
b5e9086152 chore(core): Added test for Part.getId() 2022-12-23 15:52:02 +01:00
Enoch Riese
5f4cba396f
Fix Pattern test after removal of debug setting 2022-12-19 12:18:41 -06:00
Enoch Riese
4f42f4038c test the security fix 2022-12-08 20:06:22 -06:00
Enoch Riese
59bf4ffb51 test uncovered lines 2022-12-04 16:59:34 -06:00
Enoch Riese
271686b23b Merge branch 'develop' into eriese-v3-printing 2022-11-16 10:05:37 -06:00
Enoch Riese
341a5cce61 more lint fixes 2022-11-15 17:29:02 -06:00
Enoch Riese
3243216369 lint fixes 2022-11-15 17:10:18 -06:00
Enoch Riese
5f37bd8c1f decrease timeout now that it's working 2022-11-15 16:50:28 -06:00
Enoch Riese
2f08c59e78 60 second timeout 2022-11-15 16:17:04 -06:00
Enoch Riese
d921cc700d start refactoring tests for speed 2022-11-15 14:50:14 -06:00
Enoch Riese
6c68b33f3e up timeout to 20000 2022-11-15 12:56:21 -06:00
Enoch Riese
0115a46d8a get tests passing 2022-11-14 16:33:57 -06:00