1
0
Fork 0
Commit graph

394 commits

Author SHA1 Message Date
Enoch Riese
46c705bdfa add sinon for better testing 2023-02-23 19:16:29 +02:00
Enoch Riese
86f98206d9 start of draft queue class 2023-02-23 19:16:29 +02:00
Enoch Riese
9be811bd98 lint fixes and rename 2023-02-23 19:16:29 +02:00
Enoch Riese
0cd2ad2b85 document and refactor 2023-02-23 19:16:29 +02:00
Enoch Riese
46f539df11 move all pattern config resolution to separate class 2023-02-23 19:16:29 +02:00
Enoch Riese
58a02f79f5 add tests for runtime part adding 2023-02-23 19:16:29 +02:00
Enoch Riese
45e56cb6dd all part resolution business happens on a per-part basis 2023-02-23 19:16:29 +02:00
Enoch Riese
239eff81c0 begin refactoring part resolution to handle one part at a time 2023-02-23 19:16:29 +02:00
Enoch Riese
0dab926ee7 document and refactor 2023-02-22 16:20:07 +02:00
Enoch Riese
e2ca4b38c4 move all pattern config resolution to separate class 2023-02-21 22:56:03 +02:00
Enoch Riese
d4675d8648 add tests for runtime part adding 2023-02-21 22:56:03 +02:00
Enoch Riese
07a1a3c0f1 all part resolution business happens on a per-part basis 2023-02-21 22:56:03 +02:00
Enoch Riese
6fe683be25 begin refactoring part resolution to handle one part at a time 2023-02-21 22:56:03 +02:00
Enoch Riese
3bbea6d4c2 mirror on fold macro 2023-02-21 22:56:03 +02:00
Joost De Cock
81dbcede66
Merge pull request #3371 from BenJamesBen/curvesintersect-return-values-fix
fix(core): utils.curvesIntersect correctly has 3 different return types, not 2
2023-01-12 13:30:58 +01:00
Enoch Riese
6bdaa460aa get stack name using current settings rather than all settings 2023-01-07 15:14:32 -06:00
Benjamin F
0251b30372 fix(core): Use shift instead of array index 2023-01-06 11:14:45 -08:00
Benjamin F
66c0e9a4e8 fix(core): utils.curvesIntersect() should return a single Point instead of an Array with one Point 2023-01-04 16:32:49 -08:00
Benjamin F
65895713c4 fix(core): Fix Path.join() to work with noop 2022-12-23 15:34:18 -08:00
Joost De Cock
94a3d0be50 fix(core): Call closure in Part.getId() 2022-12-23 15:36:08 +01:00
Joost De Cock
6da872abe0 fix(core): Add param inline docs for Part.getId() 2022-12-23 15:29:44 +01:00
Joost De Cock
1f51087c25 feat(core): Make Part.getId() a prototype method
As requested by @BenJamesBen in #3282
2022-12-22 19:35:14 +01:00
Benjamin F
fd2f2fef25 chore(core): Remove debug setting 2022-12-16 11:39:24 -08:00
Joost De Cock
ff49991204
Merge pull request #3224 from eriese/eriese-paperless
[Fix] Paperless exports to SVG and PDF
2022-12-13 19:51:33 +01:00
Enoch Riese
4bdbddb3d6 get pages to render properly on pdf export when settings.only is an array 2022-12-13 08:39:16 -06:00
Joost De Cock
c5d4eae079 feat: Export Bezier in shorthand call + docs 2022-12-12 18:45:51 +01:00
Enoch Riese
d78b2bb6c1 Merge branch 'develop' into eriese-v3-printing 2022-12-12 09:44:25 -06:00
Joost De Cock
12d51d5af4
Merge pull request #3172 from BenJamesBen/utils-comments-fixes
fix(core) Small corrections to utils.mjs comments
2022-12-09 08:04:20 +01:00
Joost De Cock
88b17bcee7
Merge pull request #3188 from BenJamesBen/pattern-sampleoptions-update
fix(core): Update Pattern.sampleOptions() and documentation
2022-12-09 08:00:27 +01:00
Benjamin F
04b36cb1a1 fix(core): Fix typo in points.mjs comment 2022-12-08 22:37:50 -08:00
Benjamin F
969d481585 fix(core): Update Pattern.sampleOptions() to work with additional option types 2022-12-08 20:45:17 -08:00
Enoch Riese
4f42f4038c test the security fix 2022-12-08 20:06:22 -06:00
Enoch Riese
08f1dcdaba security fix 2022-12-08 19:31:57 -06:00
Enoch Riese
91ece18d2b Merge branch 'develop' into eriese-v3-printing 2022-12-08 19:28:54 -06:00
Benjamin F
b000039033 fix(core) Small corrections to utils.mjs comments 2022-12-07 18:23:02 -08:00
Benjamin F
491902aca6 fix(core): In Path.clean(), initialize cur variable before use. 2022-12-04 20:19:51 -08:00
Enoch Riese
5aab19f7c5 Merge branch 'develop' into eriese-v3-printing 2022-12-04 16:29:06 -06:00
joostdecock
fab1e2f877 feat(core): Added Path.clean() method. Closes #3038 and #3056
This is a fix for bug #3038 which was investigated by @BenJamesBen
who also proposed a fix in PR #3056

However, after discussing the matter, we agreed it would be better
to have a generic method in core to guard against the issue of
spurious drawing operations.

This commit adds the `Path.clean()` method that does exactly that,
as well as its documentation.
2022-12-03 17:28:05 +01:00
Enoch Riese
271686b23b Merge branch 'develop' into eriese-v3-printing 2022-11-16 10:05:37 -06:00
Benjamin F
bd6ff9d657 fix(core): Calculate option distances correctly. 2022-11-16 15:11:35 +01:00
Enoch Riese
d921cc700d start refactoring tests for speed 2022-11-15 14:50:14 -06:00
Enoch Riese
0115a46d8a get tests passing 2022-11-14 16:33:57 -06:00
Enoch Riese
922cfd02b9 add pre-layout hook for consistency between getRenderProps and render 2022-11-14 14:01:50 -06:00
Joost De Cock
65edf0d249 fix(core): Active set, not stack 2022-10-23 19:49:58 +02:00
Joost De Cock
91c6698139 fix(core): Check plugin name optionally 2022-10-23 19:49:41 +02:00
Joost De Cock
322100f54c chore: Extended prettier for config files + run 2022-10-13 16:19:36 +02:00
Joost De Cock
f759f3986a feat(core): Cast distance to number. See #2897 2022-10-07 21:41:45 +02:00
Joost De Cock
693243d8e9 feat(core): Cast distance to number in Path.offset() 2022-10-06 23:12:26 +02:00
Joost De Cock
acf1b72c4c chore(core): Expose more SVG attributes 2022-09-30 15:47:32 +02:00
Joost De Cock
d380cc1259 fix(core): Typo in option distance comparison. Fixes #2742 2022-09-29 14:31:02 +02:00