mirror of
https://github.com/xibyte/jsketcher
synced 2025-12-14 04:12:53 +01:00
first approach to history
This commit is contained in:
parent
b3560b726a
commit
0ce0072d76
1 changed files with 21 additions and 1 deletions
|
|
@ -41,9 +41,29 @@ TCAD.workbench.applyHistory = function(history) {
|
|||
}
|
||||
|
||||
}
|
||||
|
||||
};
|
||||
|
||||
TCAD.workbench.Cut = function() {
|
||||
|
||||
this.depth = null;
|
||||
|
||||
this.load = function(data) {
|
||||
this.depth = data.depth;
|
||||
};
|
||||
|
||||
this.save = function() {
|
||||
return {
|
||||
depth : this.depth
|
||||
};
|
||||
};
|
||||
|
||||
this.apply = function(app, face, faces) {
|
||||
TCAD.craft.cut(app, face, faces, this.depth);
|
||||
};
|
||||
};
|
||||
|
||||
TCAD.workbench.Cut.prototype.TYPE = 'CUT';
|
||||
|
||||
|
||||
TCAD.craft = {};
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue