wrench: Switch (back) to webpack for compilation
This commit is contained in:
parent
ba2729811d
commit
5e7c8f110a
6 changed files with 3427 additions and 633 deletions
|
@ -44,10 +44,10 @@ var back = {
|
|||
points.armholePitch.x / 2,
|
||||
points.armholePitch.y
|
||||
);
|
||||
macro("title", {
|
||||
at: points.title,
|
||||
nr: 2
|
||||
});
|
||||
macro("title", { at: points.title, nr: 2 });
|
||||
|
||||
points.logo = points.title.shift(-90, 100);
|
||||
snippets.logo = new F.snippet("logo", points.logo);
|
||||
};
|
||||
|
||||
if (final) {
|
||||
|
|
|
@ -1,15 +1,15 @@
|
|||
import freesewing from "freesewing";
|
||||
import cutonfold from "@freesewing/plugin-cutonfold";
|
||||
import * as plugintitle from "@freesewing/plugin-title";
|
||||
//import logo from "@freesewing/plugin-logo";
|
||||
import title from "@freesewing/plugin-title";
|
||||
import logo from "@freesewing/plugin-logo";
|
||||
import config from "../config/config";
|
||||
import back from "./back";
|
||||
import { version } from "../package.json";
|
||||
console.log("title is ", plugintitle);
|
||||
console.log("logo is", logo);
|
||||
var pattern = new freesewing.pattern({ version: version, ...config })
|
||||
.with(cutonfold)
|
||||
.with(plugintitle);
|
||||
// .with(logo)
|
||||
.with(title)
|
||||
.with(logo);
|
||||
//pattern.on("preRenderSvg", function(next) {
|
||||
// this.attributes.add(`freesewing:${name}`, version);
|
||||
// next();
|
||||
|
@ -21,4 +21,4 @@ pattern.draft = function() {
|
|||
return pattern;
|
||||
};
|
||||
|
||||
export default pattern;
|
||||
module.exports = pattern;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue