1
0
Fork 0

tada: Initial commit

This commit is contained in:
Joost De Cock 2018-12-22 14:45:07 +01:00
parent 90f088c6d0
commit 89de4d4499
14 changed files with 10335 additions and 1 deletions

View file

@ -0,0 +1 @@
export default '<g id="button"><circle cx="0" cy="0" r="3.4" style="stroke:#000000;fill:none;stroke-width:1;"/><circle cx="-1" cy="-1" r="0.5" style="stroke:none;fill:#000000;"/><circle cx="1" cy="-1" r="0.5" style="stroke:none;fill:#000000;" /><circle cx="1" cy="1" r="0.5" style="stroke:none;fill:#000000;" /><circle cx="-1" cy="1" r="0.5" style="stroke:none;fill:#000000;" /></g>';

View file

@ -0,0 +1 @@
export default '<g id="buttonhole"><path style="fill:none;stroke:#000000;" d="M -1,-5 L 1,-5 L 1,5 L -1,5 z" /><path style="fill:#000000;stroke:none;" d="M -1,-5 L 1,-5 L 1,-4 L -1,-4 z M -1,5 L 1,5 L 1,4 L -1,4 z" /></g>';

View 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;
}
}
};