1
0
Fork 0
Commit graph

33 commits

Author SHA1 Message Date
joostdecock
c67c79af8f chore(core): Tests for path 2022-07-31 14:42:42 +02:00
joostdecock
50b37f4cb5 feat(core): Added new utility methods for attrs 2022-07-23 14:52:56 +02:00
Joost De Cock
cb84abcfbc chore(core): Prettier run 2022-05-31 15:57:53 +02:00
Joost De Cock
c0ae2d5e00 fix(core): Incorrect detection of cached path boundary 2022-05-21 19:10:21 +02:00
Joost De Cock
3af2a13439 fix(core): Incorrect warning message 2022-05-21 18:42:13 +02:00
Joost De Cock
f544050529 fix(core): Handle path split on start/end of path segments 2022-03-29 19:32:07 +02:00
Joost De Cock
0b1137f09b chore: Linter run 2022-03-28 19:38:18 +02:00
Joost De Cock
6dad5ca833 chore(core): Always raise debug
Currently we check in many different places whether debug is enabled
prior to raising a debug event.

This changes that to always raise debug, but let the debug.raise()
method only store it on the pattern object if/when debug is
enabled.
2022-01-28 18:18:37 +01:00
Joost De Cock
d05e7f2196 chore(core): Don't raise debug info for path.render 2022-01-28 16:57:30 +01:00
joostdecock
c6ceaf2372 release: v2.18.0
## 2.18.0 (2021-09-09)

 ### core

 #### Fixed

  - Handle path.offset() of very short curves with control points on the start or end point Closes [#1257](https://github.com/freesewing/freesewing/issues/1257)

 ### holmes

 #### Fixed

  - The `brimWidth` option is not a percent option, allowing the pattern to scale properly

 ### huey

 #### Fixed

  - Replace cut-on-fold indicator on pocket with a regular grainline indicator Closes [#1265](https://github.com/freesewing/freesewing/issues/1265)

 ### i18n

 #### Added

  - Added translations for Yuri

 #### Fixed

  - Added optional chaining so missing options always lead to clear error message

 ### simon

 #### Fixed

  - Avoid paperless depending on a complete pattern

 ### theo

 #### Fixed

  - Avoid paperless depending on a complete pattern

 ### wahid

 #### Fixed

  - Close Seam Allowance path of front lining Closes [#1267](https://github.com/freesewing/freesewing/issues/1267)
  - Support a zero value for the `backScyeDart` option

 ### yuri
  - Handle path.offset() of very short curves with control points on the start or end point Closes [#1257](https://github.com/freesewing/freesewing/issues/1257)

  - The `brimWidth` option is not a percent option, allowing the pattern to scale properly

  - Replace cut-on-fold indicator on pocket with a regular grainline indicator Closes [#1265](https://github.com/freesewing/freesewing/issues/1265)

  - Added translations for Yuri

  - Added optional chaining so missing options always lead to clear error message

  - Avoid paperless depending on a complete pattern

  - Avoid paperless depending on a complete pattern

  - Close Seam Allowance path of front lining Closes [#1267](https://github.com/freesewing/freesewing/issues/1267)
  - Support a zero value for the `backScyeDart` option
2021-09-09 20:29:21 +02:00
joostdecock
4efc780fc4 fix(core): Handle path.offset() for very short curves
This path.offset method used to travel 2mm along the path to find
out the direction at the start/end of paths.
That caused errors when the curve being offsetted was less then 2mm.
So now, it checks and if it's shorter will use 10% of the path length instead.

This closes #1257
2021-09-04 14:45:29 +02:00
Joost De Cock
ef3bd03e2c chore: Linter run 2021-08-30 11:40:16 +02:00
Joost De Cock
c463b10e43 fix(core): Fix bug in path.shiftAlong
This bug would be triggered by an edge-case where we have a path
that is made up of multiple curves/lines.

If the distance to shift lies just beyond the end of one segment,
yet the remaining distance is smaller than the step (by default
that means smaller than 1/25mm) no point would be returned.

This closes #1140
2021-06-22 18:24:11 +02:00
Joost De Cock
b51add044b fix(core): Make path.shiftAlong more precise. Closes #976 2021-04-28 19:39:17 +02:00
Joost De Cock
f191151ee4 chore: Linter changes 2021-04-24 10:16:31 +02:00
Joost De Cock
ac3894eaa9 chore: Round coordinates when outputting SVG 2021-04-11 16:28:38 +02:00
Joost De Cock
8924f2d40b fix(core): Do no round point coordinates 2021-04-11 16:20:39 +02:00
Joost De Cock
12692e1a64 chore: Changes required for ES6 version of bezier-js 2020-11-04 20:06:19 +01:00
Joost De Cock
2699bb9496 fix(core): Fixed wrong return message in debug output for Path 2020-07-24 16:27:42 +02:00
Joost De Cock
f6e919e42f chore(core): Fixed a few issues regarding to events 2020-07-23 11:54:55 +02:00
Joost De Cock
75f0e97c05 chore(core): Made raise non-iterable 2020-07-23 10:26:04 +02:00
Joost De Cock
ffd7ecda59 chore(core): Added raise to path instances
I am not happy about this, but when a Path object is not created via
the proxied constructor, we don't have the raise method inside of it.
2020-07-21 13:59:13 +02:00
Joost De Cock
4ac64e05cb chore: Further tweaks to pattern events 2020-07-19 13:01:01 +02:00
Joost De Cock
03da84b824 feat(core): Added new debug event type and debug system 2020-07-18 16:48:29 +02:00
Joost De Cock
d7cd438fb7 feat(breanna): First Breanna release candidate 2020-01-18 15:34:57 +01:00
Joost De Cock
06499b9697 feat(core): Added the path.insop() method 2020-01-12 19:04:29 +01:00
Joost De Cock
d906d68613 feat(core): Added the path.noop() method to core 2020-01-12 17:57:05 +01:00
Joost De Cock
a2f4725f39 refactor(core): Switches to our own fork of js-bezier 2020-01-04 14:22:33 +01:00
Joost De Cock
6710d76b08 🎨 Updated prettier config 2019-08-03 15:03:33 +02:00
Joost De Cock
ded5795ebe Added the path.setRender() method to core 2019-07-16 16:18:07 +02:00
Joost De Cock
9f2eda43e9 💡 Improved error message in path.shiftAlong 2019-07-06 14:01:25 +02:00
Joost De Cock
803e1c0552 🚨 Removed linter warnings 2019-05-10 13:14:31 +02:00
Joost De Cock
476f4b8088 📦 Renamed freesewing pkg to @freesewing/core 2019-04-19 10:09:50 +02:00
Renamed from packages/freesewing/src/path.js (Browse further)