1
0
Fork 0

construction: Pre work on offsets

This commit is contained in:
joostdecock 2018-07-26 13:43:45 +00:00 committed by Joost De Cock
parent 5e7c8f110a
commit fceb73f4ea
5 changed files with 175 additions and 8 deletions

View file

@ -48,6 +48,19 @@ var back = {
points.logo = points.title.shift(-90, 100);
snippets.logo = new F.snippet("logo", points.logo);
console.log("path offset");
points.t1 = new F.point(100, 400);
points.t2 = new F.point(200, 400);
points.t3 = new F.point(200, 500);
points.t4 = new F.point(100, 500);
paths.test = new F.path()
.move(points.t1)
.line(points.t2)
.line(points.t3)
.line(points.t4)
.close();
paths.test.offset(10);
};
if (final) {

View file

@ -5,15 +5,11 @@ import logo from "@freesewing/plugin-logo";
import config from "../config/config";
import back from "./back";
import { version } from "../package.json";
console.log("logo is", logo);
var pattern = new freesewing.pattern({ version: version, ...config })
.with(cutonfold)
.with(title)
.with(logo);
//pattern.on("preRenderSvg", function(next) {
// this.attributes.add(`freesewing:${name}`, version);
// next();
//});
pattern.draft = function() {
back.draft(pattern.parts.back);