From 1cdba8de5ffd5101ddc4bcedea5f600cb5cfd2e4 Mon Sep 17 00:00:00 2001 From: joostdecock Date: Thu, 19 Jul 2018 14:43:45 +0000 Subject: [PATCH] :construction: Pre-weekend commit --- lib/freesewing.ts | 1 - lib/part.ts | 14 ++++++++++++++ 2 files changed, 14 insertions(+), 1 deletion(-) diff --git a/lib/freesewing.ts b/lib/freesewing.ts index ff38f068b76..9909cecfe51 100644 --- a/lib/freesewing.ts +++ b/lib/freesewing.ts @@ -2,7 +2,6 @@ import { Pattern } from './pattern' import { Point } from './point' import { Path } from './path' import { Snippet } from './snippet' -import themes from './themes' import * as utils from './utils' export class Freesewing { diff --git a/lib/part.ts b/lib/part.ts index b71f9c5c01b..4681bc94248 100644 --- a/lib/part.ts +++ b/lib/part.ts @@ -19,6 +19,20 @@ export class Part { return this; } + + //macro(type: string, options: {}): void { + // switch(type) { + // case 'cof': + // this.points.cofFrom = options.from.shiftTowards(options.to, 10); + // this.points.cofTo = options.to.shiftTowards(options.from, 10); + // this.points.cofVia1 = options.from.rotate(-90, this.points.cofFrom); + // this.points.cofVia2 = options.to.rotate(-90, this.points.cofTo); + // this.paths.cof = new Path().move(cofFrom).line(cofVia1).line(cofVia2).line(cofTo); + // break; + // } + //} + + // purge = { // points = function(prefix: string): void {} // paths = function(prefix: string): void {}