tada: Initial commit
This commit is contained in:
parent
90f088c6d0
commit
89de4d4499
14 changed files with 10335 additions and 1 deletions
15
packages/plugin-buttons/src/index.js
Normal file
15
packages/plugin-buttons/src/index.js
Normal file
|
@ -0,0 +1,15 @@
|
|||
import button from "./button";
|
||||
import buttonhole from "./buttonhole";
|
||||
import { name, version } from "../package.json";
|
||||
|
||||
export default {
|
||||
name: name,
|
||||
version: version,
|
||||
hooks: {
|
||||
preRender: function(svg) {
|
||||
if (svg.attributes.get("freesewing:plugin-buttons") === false)
|
||||
svg.attributes.set("freesewing:plugin-buttons", version);
|
||||
svg.defs += button+buttonhole;
|
||||
}
|
||||
}
|
||||
};
|
Loading…
Add table
Add a link
Reference in a new issue