2018-07-12 12:53:49 +00:00
|
|
|
import { Point } from './point'
|
2018-07-10 19:29:09 +02:00
|
|
|
|
2018-07-12 12:53:49 +00:00
|
|
|
export class Part {
|
|
|
|
id: string;
|
|
|
|
render: boolean;
|
2018-07-11 12:45:02 +00:00
|
|
|
points: {
|
|
|
|
[index: string]: Point;
|
|
|
|
}
|
|
|
|
[propName: string]: any;
|
2018-07-10 19:29:09 +02:00
|
|
|
|
2018-07-12 12:53:49 +00:00
|
|
|
constructor(id: string) {
|
2018-07-10 19:29:09 +02:00
|
|
|
this.id = id;
|
2018-07-12 12:53:49 +00:00
|
|
|
this.render = (id.substr(0,1) === '_') ? false : true;
|
2018-07-11 12:45:02 +00:00
|
|
|
this.points = {};
|
2018-07-10 19:29:09 +02:00
|
|
|
|
|
|
|
return this;
|
|
|
|
}
|
2018-07-11 12:45:02 +00:00
|
|
|
|
2018-07-12 12:53:49 +00:00
|
|
|
|
|
|
|
// purge = {
|
|
|
|
// points = function(prefix: string): void {}
|
|
|
|
// paths = function(prefix: string): void {}
|
|
|
|
// }
|
2018-07-10 19:29:09 +02:00
|
|
|
}
|