1
0
Fork 0
Commit graph

1031 commits

Author SHA1 Message Date
Enoch Riese
a1fe44e3dd Merge branch 'develop' into eriese-pdf-export 2022-08-24 16:19:45 -05:00
Enoch Riese
4e78e8e996 tests 2022-08-24 13:36:19 -05:00
joostdecock
0836ea1dc3 chore: migrate packages.json for ESM only 2022-08-24 19:40:31 +02:00
joostdecock
b4022164c7 chore: Migration build scripts to ESM 2022-08-24 19:39:15 +02:00
joostdecock
1e67a95fe0 chore: Update engine to NodeJS 16 2022-08-24 09:46:42 +02:00
joostdecock
2823f5bbd7 fix(core): Adapt tests for NodeJS v16 2022-08-24 09:45:35 +02:00
Enoch Riese
4e8a56bfc7 better empty check 2022-08-23 11:07:19 -05:00
joostdecock
ae40299f7b chore: develop now hosts v3 code 2022-08-23 13:45:20 +02:00
joostdecock
7595799211 chore: Added warning about v3 2022-08-23 13:33:08 +02:00
joostdecock
d230d0dee8 chore: Reconfigure packages 2022-08-23 13:13:56 +02:00
joostdecock
c8db1f1774 chore: Reconfigure packages 2022-08-22 19:13:28 +02:00
joostdecock
a102acb6aa chore: Reconfigure packages 2022-08-22 15:39:44 +02:00
Joost De Cock
ee92526d53 fix: Broken link in README's
As reported in #2605 there's a broken link in the README's that points
to an old overview of all published packages on freesewing.dev.

Since we migrated to NextJS that page no longer exists, futhermore we've
moved away from the single `packages` workspace and now have one for
`packages`, `designs`, `plugins`, and `sites`. So I've just dropped the
link and rephrased the sentence.
2022-08-19 09:00:48 +02:00
Enoch Riese
df7011329b properly take transformed position into account for checking blank pages 2022-08-17 14:27:06 -05:00
Enoch Riese
64a05e8f72 throw in a test, as a treat 2022-08-17 13:54:39 -05:00
Enoch Riese
10fe19455d don't render empty pdf pages 2022-08-17 00:34:25 -05:00
Enoch Riese
94c324b2e7 most export to pdf functionality re-instated 2022-08-16 00:33:35 -05:00
joostdecock
62fae66d25 wip(core): Added support for (part-level) optionGroups
This needs some work when merging deeply nested options, but it's a
start
2022-08-15 16:01:42 +02:00
joostdecock
681a1fc657 wip: Handle backwards compatibility for passing parts as array
This was broken by some earlier changes, but not it's ok again
2022-08-15 10:48:35 +02:00
Enoch Riese
a271117381 fix tests for new transform generation 2022-08-14 17:17:21 -05:00
Enoch Riese
4a0f3f65a6 documenting code 2022-08-14 16:50:16 -05:00
joostdecock
7f684d8c17 wip: Pass parts to design constructor as array
Since the part name needs to be set in the part, this makes
it more clear as there's no key associated with the part.
2022-08-14 18:16:15 +02:00
joostdecock
2b254c721d wip: Recursive resolving of (non-injected) dependencies
We started out with following dependencies that are injected
(from) and now added dependencies that are merely required to
be drafted first (after).

This also adds further support for part-level configuration.
2022-08-14 16:59:51 +02:00
joostdecock
4cf9c3bd47 wip: Added part-level dependencies
Restructured code a bit to handle all part-level config in one call.

Removed check in shorthand for debug as it's no longer used.
Updated tests to not fall over on different error message format in
newer NodeJS versions
2022-08-13 18:33:06 +02:00
joostdecock
689f908f68 wip: Allow runtime adding of parts
Just call `pattern.addPart()` and pass it either:
 - a part object with all it entails
 - a draft method as first and name as second parameter

This will overwrite any existing parts without any warning
2022-08-13 15:11:33 +02:00
joostdecock
2eee247676 wip: Extended unit test 2022-08-13 14:38:59 +02:00
joostdecock
6c3208768e wip: Added support for part-level measurments and optionalMeasurements
This adds support for part-level measurements and optional measurements
2022-08-13 14:27:39 +02:00
Joost De Cock
a1a3e1c194 fix(core): Fixes for backwards compatibility 2022-08-10 16:24:25 +02:00
Enoch Riese
58b4d8cd37 Merge branch 'develop' into eriese-layout-buttons 2022-08-09 16:17:28 -05:00
Enoch Riese
1a65a16e56 separate print layout from draft layout. add better buttons 2022-08-09 16:17:17 -05:00
joostdecock
70bd946bdc wip(core/brian/aaron): Support for 2022 style part inheritance
This is very rough around the edges, but it's kinda working, so
I'm committing this now.

What this enabled is the ability to extend a part by importing
only that part and then just saying you want a part `from` the
imported one.

The imported part comes with all options, it does not currently
come with all measurements.

This also *follows* dependencies. For example in Brian, we never
explicitly add the base and sleevecap parts, they are simply
added automatically because other parts are buily *from* them.

Best to look at the source code of designs/brian and designs/aaron
to understand what's going on and how it is different.
2022-08-09 20:17:35 +02:00
joostdecock
ac9b616b99 wip(core): Support for 2022 style Design constructor
This is the first commit to tackle some exploratory work
in the context of discussion #2538 that deals with a number
of things, such as:

- Making it easier to attach parts to designs
- Making it easier to attach parts at run-time
- Simplify part inheritance into other designs
- Find ways to handle dependenices across designs
- Find ways to keep the part-specific config with the part

In this initial commit, I've update the Design constructor to
handle two different ways of calling it:

- legacy: new Design(config, plugins, conditionalPlugins)
- 2022: new Design(config)

I didn't want to call this the `new` way because that doesn't
age well, so I went with `legacy` and `2022` and this is how I
will refer to them from now on.

This is very much a work in progress and while I will create a PR
to keep on eye on the tests, I don't expect to merge this as-is.
2022-08-07 17:29:33 +02:00
joostdecock
6e2a0a33d9 fix(core): Removed debug statement in tests 2022-08-07 15:17:02 +02:00
joostdecock
a359b58229 chore: Reconfigure packages 2022-07-31 16:13:51 +02:00
Joost De Cock
3ac64f9458
Merge branch 'develop' into octoplushie 2022-07-31 15:25:40 +02:00
Joost De Cock
e334a974b5
Merge pull request #2506 from freesewing/cutlist
feat(core): Added pattern.getCutList() method
2022-07-31 15:11:34 +02:00
joostdecock
e5f991241d chore(core): Better naming of test 2022-07-31 15:04:38 +02:00
joostdecock
68c49c64ae chore(core): More unit tests 2022-07-31 14:42:42 +02:00
joostdecock
698fb7d942 chore(core): Syntax change for better test coverage 2022-07-31 14:42:42 +02:00
joostdecock
af89117598 chore(core): Adding unit tests 2022-07-31 14:42:42 +02:00
joostdecock
c67c79af8f chore(core): Tests for path 2022-07-31 14:42:42 +02:00
joostdecock
470e4ccab6 chore(core): Working on test coverage 2022-07-31 14:42:42 +02:00
joostdecock
6acb9f976a feat(core): Added pattern.getCutList() method 2022-07-31 14:32:24 +02:00
joostdecock
8d1bc3c516 feat(core): Add ability to remove cutOnFold 2022-07-31 12:17:51 +02:00
joostdecock
5c486382ec chore(core): Removed duplicate test 2022-07-31 12:01:02 +02:00
joostdecock
4de192835e chore(core): Tweaks to new methods after review 2022-07-31 09:40:40 +02:00
joostdecock
bc567874c1 feat(core): Added new cutting methods. Closes #2470 2022-07-30 20:02:42 +02:00
joostdecock
62ebfa3b73 chore(core): More unit tests 2022-07-30 16:53:07 +02:00
joostdecock
1c87769e87 chore(core): Syntax change for better test coverage 2022-07-30 15:16:17 +02:00
joostdecock
293c6bec09 chore(core): Adding unit tests 2022-07-24 21:34:22 +02:00