1
0
Fork 0
Commit graph

24 commits

Author SHA1 Message Date
Jonathan Haas
c9300e6739 [core] fix: stack anchoring (#261)
Fixes #54

Also adds the fabric class to lumina parts for proper line width and rainbow coloring.

The last commit is probably not right. It works, but I'm not sure if these are the right functions to change.

![image](/attachments/7a017a76-c7ba-4078-a1a1-e6c900f7d5ee)

Reviewed-on: https://codeberg.org/freesewing/freesewing/pulls/261
Reviewed-by: Joost De Cock <joostdecock@noreply.codeberg.org>
Co-authored-by: Jonathan Haas <haasjona@gmail.com>
Co-committed-by: Jonathan Haas <haasjona@gmail.com>
2025-04-18 13:00:40 +00:00
Joost De Cock
51dc1d9732
[breaking]: FreeSewing v4 (#7297)
Refer to the CHANGELOG for all info.

---------

Co-authored-by: Wouter van Wageningen <wouter.vdub@yahoo.com>
Co-authored-by: Josh Munic <jpmunic@gmail.com>
Co-authored-by: Jonathan Haas <haasjona@gmail.com>
2025-04-01 16:15:20 +02:00
Benjamin Fan
5828e53937 fix(core): Remove Svg.body property 2024-01-24 20:18:03 -08:00
joostdecock
8de63bb446 feat(core): Do not render snippets by default when complete is false 2023-09-06 08:57:43 +02:00
joostdecock
8713993242 feat(core): Pass pattern to insertText hook 2023-07-02 19:40:43 +02:00
joostdecock
ab6511f4b9 chore(core): Cleaned up renderprops 2023-06-04 16:52:02 +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
Wouter van Wageningen
3e91e23ed5 Working version 2023-04-20 05:44:39 +00:00
Wouter van Wageningen
2a3c0d1126 Tweak 2023-04-19 14:48:03 +00:00
Wouter van Wageningen
5dcaa15f32 First attempt 2023-04-19 06:08:26 +00: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
acf1b72c4c chore(core): Expose more SVG attributes 2022-09-30 15:47:32 +02:00
Joost De Cock
bb89b6ca65 chore(core): Unit tests for v3 code 2022-09-19 23:35:52 +02:00
Joost De Cock
d5eb2946d3 chore(core): More unit tests 2022-09-19 18:04:47 +02:00
Joost De Cock
5dc7401308 chore(core): Use hide, not render 2022-09-18 18:16:17 +02:00
Joost De Cock
200cebf582 chore(core): Refactor v3 code 2022-09-18 15:11:10 +02:00
Joost De Cock
56427cc4bd chore(core): Linter fixes 2022-09-15 06:34:05 +02:00
joostdecock
b7071bb487 wip(core): Unit tests 2022-09-10 18:45:57 +02:00
Joost De Cock
0cbffd6dc6 wip(core): Work on late-stage config resolver
This moves resolving of the config from the pattern constructor to the
init() method. The idea is that adding a part to a pattern is exactly
the same as adding a part to a design. In other words, late-stage adding
of parts would be no different as the config gets resolved after that.

This is currently broken in many different ways, but the unit tests
particular to this new way of resolving the config do pass.
2022-09-09 20:20:38 +02:00
Joost De Cock
0ae85ecf49 chore(core): Get data from data.mjs 2022-09-01 08:51:56 +02:00
Joost De Cock
d59bab6a6c fix(core): Handle hiding of parts 2022-08-29 17:44:24 +02:00
Joost De Cock
c09ae4aa69 wip(core): Migrated to named exports only 2022-08-28 02:14:39 +02:00
Joost De Cock
3671f44e90 chore: Move core files to .mjs 2022-08-26 18:51:02 +02:00
Renamed from packages/core/src/svg.js (Browse further)