reset active revision on mapitem close #2307
This commit is contained in:
parent
a8692abfb9
commit
3b4acd6949
@ -214,6 +214,7 @@ export default {
|
|||||||
...mapActions(ConcernementsStore,['openCloseConcernements',
|
...mapActions(ConcernementsStore,['openCloseConcernements',
|
||||||
// 'setConcernementMapItem',
|
// 'setConcernementMapItem',
|
||||||
'hideShowConcernement',
|
'hideShowConcernement',
|
||||||
|
'setActiveRevision',
|
||||||
'setBesoinPaperId',
|
'setBesoinPaperId',
|
||||||
'setOpenedDoleanceField',
|
'setOpenedDoleanceField',
|
||||||
'setOpenedRecit']),
|
'setOpenedRecit']),
|
||||||
@ -565,13 +566,16 @@ export default {
|
|||||||
},
|
},
|
||||||
resetPaperActiveRevision(){
|
resetPaperActiveRevision(){
|
||||||
console.log('resetPaperActiveRevision');
|
console.log('resetPaperActiveRevision');
|
||||||
|
|
||||||
this.getJarvisEnvelopeConvexe();
|
this.getJarvisEnvelopeConvexe();
|
||||||
|
|
||||||
// remove contours if already exists
|
// remove contours if already exists
|
||||||
if (this.paper_main_object.children.contours) {
|
if (this.paper_main_object.children.contours) {
|
||||||
this.paper_main_object.children.contours.remove();
|
this.paper_main_object.children.contours.remove();
|
||||||
}
|
}
|
||||||
// redraw contours
|
// redraw contours
|
||||||
this.paper_main_object.addChild(this.setPaperContour());
|
this.paper_main_object.addChild(this.setPaperContour());
|
||||||
|
|
||||||
// remove entites if already exists
|
// remove entites if already exists
|
||||||
if (this.paper_main_object.children.entites) {
|
if (this.paper_main_object.children.entites) {
|
||||||
this.paper_main_object.children.entites.remove();
|
this.paper_main_object.children.entites.remove();
|
||||||
@ -629,7 +633,7 @@ export default {
|
|||||||
]
|
]
|
||||||
|
|
||||||
// handles
|
// handles
|
||||||
const delta = 0.05;
|
const delta = 0.05 * this.scale;
|
||||||
// handle IN
|
// handle IN
|
||||||
const hli = Math.abs(lab)*delta; // handle longeur
|
const hli = Math.abs(lab)*delta; // handle longeur
|
||||||
const vnai = { x: -vma.y, y: vma.x } // get the ma normal unit vector IN
|
const vnai = { x: -vma.y, y: vma.x } // get the ma normal unit vector IN
|
||||||
@ -1673,7 +1677,9 @@ export default {
|
|||||||
Matter.Composite.remove(this.matterEngine.world, this.constraint);
|
Matter.Composite.remove(this.matterEngine.world, this.constraint);
|
||||||
}
|
}
|
||||||
|
|
||||||
this.concernement.active_revision = this.concernement.revision_id;
|
// this.concernement.active_revision = this.concernement.revision_id;
|
||||||
|
this.setActiveRevision(this.cid, this.concernement.revision_id);//this.concernement.revisions[this.concernement.revisions.length -1].revision_id);
|
||||||
|
this.resetPaperActiveRevision();
|
||||||
|
|
||||||
this.handlePaperVisibilityOnBeforeClose();
|
this.handlePaperVisibilityOnBeforeClose();
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user