1
0
Fork 0
Commit graph

29 commits

Author SHA1 Message Date
Joost De Cock
f191151ee4 chore: Linter changes 2021-04-24 10:16:31 +02:00
Joost De Cock
5c72645d45 fix(core): Treat dependencies as array
This is for #971
2021-04-23 20:09:16 +02:00
Joost De Cock
c7395cd9d9 Fix(core): Resolve array-based dependencies
Tentative fix for #971
2021-04-23 17:42:03 +02:00
Sanne Kalkman
fc4124e62e remove space in translate svg 2020-11-23 16:50:32 +01:00
Joost De Cock
1a5b2769aa feat(components): Better snippet support in Draft component
The Draft react component would load the snippets that are part of our
plugin bundle. However, any additional snippets that are created by
plugins would not not get added to the `defs` section, and thus not
be rendered.

This changes the behavior by doing two things:

 - in `core` it adds an SVG object to the renderProps, and makes
   sure to run the `preRender` hook on this SVG object prior to
   returning the renderProps. This way, svg.defs now holds all
   defs, including any that may have been added by custom plugins
 - in the `Draft` component, we no longer add a list of predefined
   snippets to the defs section, but instead just use the svg.defs
   section verbatim. This removes any discrepancies in how SVG
   rendering and React rendering handles the defs section of the
   SVG document, and thus displays snippets.
2020-11-08 18:19:10 +01:00
Joost De Cock
72c2a6c9e7 feat(core): Added support for conditional plugins 2020-09-12 19:01:12 +02:00
Joost De Cock
a76ae76fb0 feat(core): Added info type to raise method 2020-09-12 16:31:55 +02:00
Joost De Cock
39d1cdd0ca feat(core): Added name property to parts to hold the part name 2020-08-30 11:48:09 +02:00
Joost De Cock
9125b49841 chore(core): Fixed linter warnings 2020-08-23 17:09:09 +02:00
Joost De Cock
01ab30656d chore(core): Removed info event type 2020-07-23 10:27:03 +02:00
Joost De Cock
9ace3b6255 fix(core): Fixed typo in debug code 2020-07-21 13:07:31 +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
b360359cf6 feat(core): Added debug as event type 2020-07-17 14:44:16 +02:00
Joost De Cock
583abb0236 feat(core): Added support for raising events 2020-07-11 18:04:29 +02:00
Joost De Cock
7d3815939b feat(core): Added support for custom sample styles 2020-07-11 15:15:02 +02:00
Joost De Cock
673743faae feat(core): Add support for injecting sample styles
This allows you to override the (path) styles when we
sample the pattern by setting `settings.sample.styles`.

This closes #380
2020-05-30 14:02:37 +02:00
Joost De Cock
ff82e2568b feat: Do not set plugin configuration object on pattern.use()
Plugins can pass a configuration object (or any
sort of data) when loaded with `pattern.use()`.

We use to set that parameter to `false` when loading, but
now we leave it `undefined`. This makes is easy for plugins
to use a default parameter for the configuration/data passed
to it.
2020-04-18 11:36:02 +02:00
Joost De Cock
6710d76b08 🎨 Updated prettier config 2019-08-03 15:03:33 +02:00
Joost De Cock
45498afbba 🐛 Prevent draft method from forcing render of hidden part 2019-07-08 15:37:27 +02:00
Joost De Cock
7cc063712b 🚨 Removed linter warnings 2019-06-01 16:18:14 +02:00
Joost De Cock
6aa14f0613 🚧 Fixes to the part dependency resolver 2019-05-31 19:18:38 +02:00
Joost De Cock
0157b43b68 🔥 Removed lingering console.log statements 2019-05-31 16:30:36 +02:00
Joost De Cock
d3a1ea6554 🔧 Reconfigure packages 2019-05-31 16:09:41 +02:00
Joost De Cock
3a9f21e3e1 🐛 Fixed issue in the part dependency resolver 2019-05-31 14:48:46 +02:00
Joost De Cock
b8c8f741aa 🔧 Reconfigure packages 2019-05-31 10:20:20 +02:00
Joost De Cock
a888922968 🚧 Progress on workbench 2019-05-06 17:01:44 +02:00
Joost De Cock
158c19ae1d 🚧 Progress on workbench 2019-05-05 17:06:22 +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/pattern.js (Browse further)