1
0
Fork 0
Commit graph

6894 commits

Author SHA1 Message Date
Joost De Cock
358eaa3fbf
Merge pull request #2035 from freesewing/dependabot/npm_and_yarn/packages/tiberius/ansi-regex-5.0.1
build(deps): bump ansi-regex from 5.0.0 to 5.0.1 in /packages/tiberius
2022-03-27 17:42:35 +02:00
Joost De Cock
bd2a4c3e59 chore(org): Add prebuild step to dev mode 2022-03-27 17:40:07 +02:00
Joost De Cock
225e56d8ef chore(org): Keep prebuild folder 2022-03-27 17:36:52 +02:00
Joost De Cock
b7b970e40a chore(lab): Do not build all versions for each lab build 2022-03-26 20:27:46 +01:00
dependabot[bot]
593713eceb
build(deps): bump ansi-regex from 5.0.0 to 5.0.1 in /packages/tiberius
Bumps [ansi-regex](https://github.com/chalk/ansi-regex) from 5.0.0 to 5.0.1.
- [Release notes](https://github.com/chalk/ansi-regex/releases)
- [Commits](https://github.com/chalk/ansi-regex/compare/v5.0.0...v5.0.1)

---
updated-dependencies:
- dependency-name: ansi-regex
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-03-26 19:23:01 +00:00
Joost De Cock
3b217a0382
Merge pull request #2033 from freesewing/dependabot/npm_and_yarn/packages/walburga/ansi-regex-5.0.1
build(deps): bump ansi-regex from 5.0.0 to 5.0.1 in /packages/walburga
2022-03-26 20:22:00 +01:00
Joost De Cock
1c4c83659a
Merge pull request #2034 from freesewing/dependabot/npm_and_yarn/packages/yuri/ansi-regex-5.0.1
build(deps): bump ansi-regex from 5.0.0 to 5.0.1 in /packages/yuri
2022-03-26 20:21:53 +01:00
Joost De Cock
d46fa2488c fix(lab): build utils in prebuild step 2022-03-26 19:30:31 +01:00
Joost De Cock
2793ca45e2 fix(lab): Issues in prebuild script 2022-03-26 19:30:14 +01:00
dependabot[bot]
b06cee8f32
build(deps): bump ansi-regex from 5.0.0 to 5.0.1 in /packages/yuri
Bumps [ansi-regex](https://github.com/chalk/ansi-regex) from 5.0.0 to 5.0.1.
- [Release notes](https://github.com/chalk/ansi-regex/releases)
- [Commits](https://github.com/chalk/ansi-regex/compare/v5.0.0...v5.0.1)

---
updated-dependencies:
- dependency-name: ansi-regex
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-03-26 17:07:34 +00:00
dependabot[bot]
0c854c3ea8
build(deps): bump ansi-regex from 5.0.0 to 5.0.1 in /packages/walburga
Bumps [ansi-regex](https://github.com/chalk/ansi-regex) from 5.0.0 to 5.0.1.
- [Release notes](https://github.com/chalk/ansi-regex/releases)
- [Commits](https://github.com/chalk/ansi-regex/compare/v5.0.0...v5.0.1)

---
updated-dependencies:
- dependency-name: ansi-regex
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-03-26 17:07:29 +00:00
Joost De Cock
d4833fb6a4 feat(lab): Add support for multiple versions in the lab 2022-03-26 18:06:14 +01:00
Joost De Cock
4db8ab099b chore(lab): Keep auto-generated pages out of repo 2022-03-26 18:06:14 +01:00
Joost De Cock
7f10fe451b chore(lab): Keep page structure 2022-03-26 18:06:14 +01:00
Joost De Cock
1ccb1ae4b8 feat(lab): Console log options in xray 2022-03-26 18:06:14 +01:00
Joost De Cock
50b27e01a7 chore: Updated gitignore and added lib folder 2022-03-26 18:06:14 +01:00
Joost De Cock
b505e6123f fix(lab): Grammar issue in error message
Shout-out to @anna-puk for reporting this
2022-03-24 12:45:27 +01:00
Joost De Cock
a912008117 wip(lab): Tweaks to events display 2022-03-24 11:43:00 +01:00
Joost De Cock
9495e9207c wip(lab): Moved error to its own component 2022-03-24 11:43:00 +01:00
dependabot[bot]
5ad7e73fcf
Bump nodemailer from 6.7.2 to 6.7.3
Bumps [nodemailer](https://github.com/nodemailer/nodemailer) from 6.7.2 to 6.7.3.
- [Release notes](https://github.com/nodemailer/nodemailer/releases)
- [Changelog](https://github.com/nodemailer/nodemailer/blob/master/CHANGELOG.md)
- [Commits](https://github.com/nodemailer/nodemailer/compare/v6.7.2...v6.7.3)

---
updated-dependencies:
- dependency-name: nodemailer
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-03-22 04:04:10 +00:00
Nick Dower
95c6ab42c4
Merge pull request #2013 from freesewing/dependabot/npm_and_yarn/packages/walburga/example/nanoid-3.3.1
Bump nanoid from 3.1.23 to 3.3.1 in /packages/walburga/example
2022-03-19 15:22:04 +01:00
Nick Dower
bf1fbf132e
Merge pull request #2012 from freesewing/dependabot/npm_and_yarn/packages/lunetius/example/nanoid-3.3.1
Bump nanoid from 3.1.25 to 3.3.1 in /packages/lunetius/example
2022-03-19 15:21:53 +01:00
Nick Dower
6e71a607f6
Merge pull request #2011 from freesewing/dependabot/npm_and_yarn/packages/bee/example/nanoid-3.3.1
Bump nanoid from 3.1.29 to 3.3.1 in /packages/bee/example
2022-03-19 15:21:39 +01:00
Joost De Cock
da2c7d5044 fix(components): Missing pattern class on SVG 2022-03-19 15:10:30 +01:00
Joost De Cock
8a2a13f240 wip(lab): Working on crash reporting in the new dev env 2022-03-18 19:11:00 +01:00
dependabot[bot]
b7128f0cf1
Bump nanoid from 3.1.23 to 3.3.1 in /packages/walburga/example
Bumps [nanoid](https://github.com/ai/nanoid) from 3.1.23 to 3.3.1.
- [Release notes](https://github.com/ai/nanoid/releases)
- [Changelog](https://github.com/ai/nanoid/blob/main/CHANGELOG.md)
- [Commits](https://github.com/ai/nanoid/compare/3.1.23...3.3.1)

---
updated-dependencies:
- dependency-name: nanoid
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-03-18 15:28:25 +00:00
dependabot[bot]
58fa24416c
Bump nanoid from 3.1.25 to 3.3.1 in /packages/lunetius/example
Bumps [nanoid](https://github.com/ai/nanoid) from 3.1.25 to 3.3.1.
- [Release notes](https://github.com/ai/nanoid/releases)
- [Changelog](https://github.com/ai/nanoid/blob/main/CHANGELOG.md)
- [Commits](https://github.com/ai/nanoid/compare/3.1.25...3.3.1)

---
updated-dependencies:
- dependency-name: nanoid
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-03-18 15:28:13 +00:00
dependabot[bot]
140573d114
Bump nanoid from 3.1.29 to 3.3.1 in /packages/bee/example
Bumps [nanoid](https://github.com/ai/nanoid) from 3.1.29 to 3.3.1.
- [Release notes](https://github.com/ai/nanoid/releases)
- [Changelog](https://github.com/ai/nanoid/blob/main/CHANGELOG.md)
- [Commits](https://github.com/ai/nanoid/compare/3.1.29...3.3.1)

---
updated-dependencies:
- dependency-name: nanoid
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-03-18 15:28:02 +00:00
Joost De Cock
5cfcd2e274 wip(lab): Working on preloading pattern settings 2022-03-17 19:05:19 +01:00
Nick Dower
0114dcda7f
Merge pull request #1998 from freesewing/i18n
New Crowdin updates
2022-03-14 11:02:56 +01:00
Joost De Cock
d0f8ef7726 New translations workbench.yaml (Dutch) 2022-03-14 08:26:02 +01:00
Joost De Cock
158ae48889 New translations workbench.yaml (German) 2022-03-14 08:26:02 +01:00
Joost De Cock
9e68627f19 New translations workbench.yaml (Spanish) 2022-03-14 08:26:01 +01:00
Joost De Cock
cd1ee18a64 New translations workbench.yaml (French) 2022-03-14 08:25:59 +01:00
dependabot[bot]
fb144a9bdf
Bump lodash from 4.17.15 to 4.17.21 in /packages/svgtopdf
Bumps [lodash](https://github.com/lodash/lodash) from 4.17.15 to 4.17.21.
- [Release notes](https://github.com/lodash/lodash/releases)
- [Commits](https://github.com/lodash/lodash/compare/4.17.15...4.17.21)

---
updated-dependencies:
- dependency-name: lodash
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-03-14 07:23:34 +00:00
Joost De Cock
643b50703b
Merge pull request #1995 from freesewing/joost/customlayout
feat: First stab at custom layout
2022-03-14 08:22:35 +01:00
Joost De Cock
c639f50a62 fix: Linter warnings 2022-03-13 17:29:22 +01:00
Joost De Cock
353f9cd1c3 fix(core): Added postLayout hook to tests 2022-03-13 15:01:28 +01:00
Joost De Cock
2b67932f31 fix(charlie): Removed unused shorthand object 2022-03-13 14:40:49 +01:00
Joost De Cock
10adb33402 fix(lab): Issues after linter fixes 2022-03-13 14:38:48 +01:00
Joost De Cock
9fc3752d8d
Update packages/freesewing.shared/components/workbench/layout/print/pagesize-picker.js
Co-authored-by: Nick Dower <nicholasdower@gmail.com>
2022-03-13 14:33:20 +01:00
Joost De Cock
9bb6dbe179
Update packages/freesewing.shared/components/workbench/layout/print/pagesize-picker.js
Co-authored-by: Nick Dower <nicholasdower@gmail.com>
2022-03-13 14:33:15 +01:00
Joost De Cock
a254baa747
Update packages/freesewing.shared/components/workbench/layout/draft.js
Co-authored-by: Nick Dower <nicholasdower@gmail.com>
2022-03-13 14:33:10 +01:00
Joost De Cock
74cf28b871 chore: Fixed linter warnings 2022-03-13 08:48:21 +01:00
Joost De Cock
b349765655 feat(charlie): Add notches to front pocket facing. Closes #1991 2022-03-12 19:10:00 +01:00
Joost De Cock
67da7dd595 feat(lab): First stab at custom layout
This adds a React component to handle custom layouts.
This React component is a long way from perfect, but it's a start.

There are two reasons that (at least in my opinion) implementing this is non-trivial:

1) React re-render vs DOM updates

   For performance reasons, we can't re-render with React when the user drags a
   pattern part (or rotates it). It would kill performance.
   So, we don't re-render with React upon dragging/rotating, but instead manipulate
   the DOM directly.

   So far so good, but of course we don't want a pattern that's only correctly laid
   out in the DOM. We want to updat the pattern gist so that the new layout is stored.
   For this, we re-render with React on the end of the drag (or rotate).

   Handling this balance between DOM updates and React re-renders is a first contributing
   factor to why this component is non-trivial

2) SVG vs DOM coordinates

   When we drag or rotate with the mouse, all the events are giving us coordinates of
   where the mouse is in the DOM.

   The layout uses coordinates from the embedded SVG which are completely different.
   So we need to make this translation and that adds complexity.

3) Part-level transforms

   It's not just that the DOM coordinates and SVG coordinate system is different, each
   part also has it's own transforms applied and because of this behaves as if they have
   their own coordinate system.

   In other words, a point (0,0) in the part is not the top-left corner of the page.
   In the best-case scenario, it's the top-left corner of the part. But even this is
   often not the case as parts will have transforms applied to them.

4) Flip along X or Y axis

   Parts can be flipped along the X or Y axis to facilitate a custom layout.
   This is handled in a transform, so the part's coordinate's don't actually change. They
   are flipped late into the rendering process (by the browser displaying the SVG).

   Handling this adds yet more mental overhead

5) Bounding box

   While moving and rotating parts around is one thing. Recalculating the bounding box
   (think auto-cropping the pattern) gets kinda complicated because of the reasons
   outlined above.

   We are currently handling a lot in the frontend code. It might be more elegant to move
   some of this to core. For example, core expects the custom layout to set the widht and height
   rather than figuring it out on its own as it does for auto-generated layouts.

 Known issues

 - Rotating gets a little weird sometimes as the part rotates around it's center in the
   SVG coordinate system, but the mouse uses it's own coordinates as the center point that's
   used to calculate the angle of the rotation

 - Moving parts into the negative space (minus X or Y coordinated) does not extend the bounding box.

 - Rotation gets weird when a part is mirrored

 - The bounding box update when a part is rotated is not entirely accurate

I've sort of left it at this because I'm starting to wonder if we should perhaps re-think
how custom layouts are supported in the core. And I would like to discuss this with the core team.
2022-03-12 18:54:47 +01:00
Joost De Cock
9b5c8a8751 wip(core): Changes to facilitate manual layouts 2022-03-06 18:55:13 +01:00
Joost De Cock
b948904de1 wip(lab): Working on handling layout 2022-03-06 18:54:30 +01:00
Joost De Cock
0dcb4cead5 New translations settings.yml (Dutch) 2022-03-05 23:05:24 +01:00
Joost De Cock
0222fcfbbb New translations settings.yml (Dutch) 2022-03-05 22:55:03 +01:00