1
0
Fork 0
Commit graph

13 commits

Author SHA1 Message Date
Joost De Cock
e329f05a30 feat(components): Updates for settings.scale. See #1638 2022-01-15 21:30:45 +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
7d3815939b feat(core): Added support for custom sample styles 2020-07-11 15:15:02 +02:00
Joost De Cock
cda9b03713 refactor(components): Removed prop-types dependency 2020-04-25 19:09:02 +02:00
Joost De Cock
054b7565e6 feat(components): Added pan and zoom to Workbench. Closes #368 2020-04-25 13:29:02 +02:00
Joost De Cock
a833496e04 chore(components): Renamed Render to Draft
Note that this was already exported as Draft, and the Draft folder
was a symlink to Render. Now it's just called Draft.
2020-04-18 18:14:09 +02:00
Joost De Cock
1af55d9e22 refactor: The Draft component is renamed to Render. Draft is deprecated 2019-11-01 17:34:54 +01:00
Joost De Cock
59788e410c Updates to components 2019-06-23 18:00:50 +02:00
Joost De Cock
b02c6d1b68 🚧 Work on components 2019-05-25 11:11:58 +02:00
Joost De Cock
803e1c0552 🚨 Removed linter warnings 2019-05-10 13:14:31 +02:00
Joost De Cock
c9afc0edd0 🚧 Progress on workbench and CFP 2019-05-09 15:24:26 +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