1
0
Fork 0
freesewing/lib/part.ts
2018-07-15 17:15:56 +02:00

28 lines
609 B
TypeScript

import { Point } from './point'
import { Path } from './path'
import { Attributes } from './attributes'
export class Part {
id: string;
render: boolean;
points: {
[index: string]: Point | boolean;
}
paths: { [index: string]: Path; } = {};
attributes = new Attributes();
[propName: string]: any;
constructor(id: string) {
this.id = id;
this.render = (id.substr(0,1) === '_') ? false : true;
this.points = {'origin': new Point(0,0)};
return this;
}
// purge = {
// points = function(prefix: string): void {}
// paths = function(prefix: string): void {}
// }
}