jsketcher/web/app/cad/model/msketchObject.ts
2020-06-20 21:53:23 -07:00

22 lines
No EOL
449 B
TypeScript

import {MObject} from './mobject';
import {MFace} from "./mface";
export class MSketchObject extends MObject {
static TYPE = 'sketchObject';
face: MFace;
sketchPrimitive: any;
construction: boolean;
constructor(face, sketchPrimitive) {
super(MSketchObject.TYPE, sketchPrimitive.id);
this.face = face;
this.sketchPrimitive = sketchPrimitive;
this.construction = false;
}
get parent() {
return this.face;
}
}