mirror of
https://github.com/xibyte/jsketcher
synced 2025-12-06 08:25:19 +01:00
26 lines
537 B
TypeScript
26 lines
537 B
TypeScript
import {MShell} from './mshell';
|
|
import {MFace} from './mface';
|
|
|
|
export class MOpenFaceShell extends MShell {
|
|
|
|
private surfacePrototype: any;
|
|
|
|
constructor(surfacePrototype, csys?) {
|
|
super();
|
|
this.surfacePrototype = surfacePrototype;
|
|
this.csys = csys;
|
|
this.faces.push(new MFace(this.id + '/SURFACE', this,
|
|
surfacePrototype.boundTo([], 100, 100), csys));
|
|
if (!this.csys) {
|
|
this.csys = this.face.csys;
|
|
}
|
|
}
|
|
|
|
get face() {
|
|
return this.faces[0];
|
|
}
|
|
|
|
get parent() {
|
|
return null;
|
|
}
|
|
}
|