|
@@ -196,10 +196,12 @@ export default {
|
|
|
},
|
|
|
deep: true
|
|
|
},
|
|
|
- active_revision: {
|
|
|
- handler (n, o) {
|
|
|
- // console.log(`concernementMapItem watch active_revision o:${o}, n:${n}`);
|
|
|
- if(o & n){ // do not trigger on first variable filling (if o is null)
|
|
|
+ concernement: {
|
|
|
+ handler (n, o){
|
|
|
+ // check for active_revision changes
|
|
|
+ // do not trigger on first variable filling (if o is null)
|
|
|
+ if(o && o.active_revision && n.active_revision){
|
|
|
+ // console.log(`concernementMapItem watch concernement o.active_revision:${o.active_revision}, n.active_revision:${n.active_revision}`);
|
|
|
this.resetPaperActiveRevision();
|
|
|
}
|
|
|
},
|
|
@@ -559,16 +561,19 @@ export default {
|
|
|
}
|
|
|
},
|
|
|
resetPaperActiveRevision(){
|
|
|
+ console.log('resetPaperActiveRevision');
|
|
|
this.getJarvisEnvelopeConvexe();
|
|
|
// remove contours if already exists
|
|
|
if (this.paper_main_object.children.contours) {
|
|
|
this.paper_main_object.children.contours.remove();
|
|
|
}
|
|
|
+ // redraw contours
|
|
|
this.paper_main_object.addChild(this.setPaperContour());
|
|
|
// remove entites if already exists
|
|
|
if (this.paper_main_object.children.entites) {
|
|
|
this.paper_main_object.children.entites.remove();
|
|
|
}
|
|
|
+ // redraw entites
|
|
|
this.paper_main_object.addChild(this.setPaperEntites());
|
|
|
},
|
|
|
clearPaperContents(){
|