|
@@ -22,7 +22,7 @@ import ConcernementMapPopup from '@components/ConcernementMapPopup.vue';
|
|
|
// import iconProximite from "@/assets/icons/proximite.svg"
|
|
|
// import iconSuperposition from "@/assets/icons/superposition.svg"
|
|
|
import iconPuissanceagir from "@/assets/icons/puissancedagir.svg"
|
|
|
-// import iconAction from "@/assets/icons/action.svg"
|
|
|
+import iconAction from "@/assets/icons/action.svg"
|
|
|
import iconDoleancer from "@/assets/icons/doleancer.svg"
|
|
|
|
|
|
export default {
|
|
@@ -149,6 +149,9 @@ export default {
|
|
|
case 'reponse':
|
|
|
nitem.definition = this.paper_symbol_definitions.reponse_hover;
|
|
|
break;
|
|
|
+ case 'entite_action':
|
|
|
+ nitem.definition = this.paper_symbol_definitions.entite_action_hover;
|
|
|
+ break;
|
|
|
}
|
|
|
}
|
|
|
}
|
|
@@ -174,6 +177,9 @@ export default {
|
|
|
case 'reponse':
|
|
|
oitem.definition = this.paper_symbol_definitions.reponse;
|
|
|
break;
|
|
|
+ case 'entite_action':
|
|
|
+ oitem.definition = this.paper_symbol_definitions.entite_action;
|
|
|
+ break;
|
|
|
}
|
|
|
}
|
|
|
|
|
@@ -200,6 +206,8 @@ export default {
|
|
|
//
|
|
|
this.addPaperSymbolDefinition('entite', this.setPaperEntiteSymbol());
|
|
|
this.addPaperSymbolDefinition('entite_hover', this.setPaperEntiteHoverSymbol());
|
|
|
+ this.addPaperSymbolDefinition('entite_action', this.setPaperEntiteActionSymbol());
|
|
|
+ this.addPaperSymbolDefinition('entite_action_hover', this.setPaperEntiteActionHoverSymbol());
|
|
|
this.addPaperSymbolDefinition('besoin', this.setPaperBesoinSymbol());
|
|
|
this.addPaperSymbolDefinition('besoin_hover', this.setPaperBesoinHoverSymbol());
|
|
|
this.addPaperSymbolDefinition('reponse', this.setPaperReponseSymbol());
|
|
@@ -863,6 +871,40 @@ export default {
|
|
|
strokeWidth:2
|
|
|
})
|
|
|
},
|
|
|
+ setPaperEntiteActionSymbol(){
|
|
|
+ let svgIcon = paper.project.importSVG(iconAction);
|
|
|
+ svgIcon.strokeColor = '#000';
|
|
|
+ svgIcon.strokeWidth = 0.75;
|
|
|
+ svgIcon.fillColor = null;
|
|
|
+ svgIcon.position = {x:0, y:0};
|
|
|
+
|
|
|
+ let circle = new paper.Path.Circle({
|
|
|
+ radius: 15,
|
|
|
+ fillColor: 'rgba(255,255,255,0.05)'
|
|
|
+ })
|
|
|
+
|
|
|
+ return new paper.Group({
|
|
|
+ children: [circle, svgIcon],
|
|
|
+ name: 'action_icon'
|
|
|
+ });
|
|
|
+ },
|
|
|
+ setPaperEntiteActionHoverSymbol(){
|
|
|
+ let svgIcon = paper.project.importSVG(iconAction);
|
|
|
+ svgIcon.strokeColor = '#01ffe2';
|
|
|
+ svgIcon.strokeWidth = 0.75;
|
|
|
+ svgIcon.fillColor = null;
|
|
|
+ svgIcon.position = {x:0, y:0};
|
|
|
+
|
|
|
+ let circle = new paper.Path.Circle({
|
|
|
+ radius: 15,
|
|
|
+ fillColor: 'rgba(255,255,255,0.05)'
|
|
|
+ })
|
|
|
+
|
|
|
+ return new paper.Group({
|
|
|
+ children: [circle, svgIcon],
|
|
|
+ name: 'action_icon'
|
|
|
+ });
|
|
|
+ },
|
|
|
setPaperBesoinSymbol(){
|
|
|
return new paper.Path({
|
|
|
pivot: new paper.Point(this.pos),
|