|
@@ -1330,26 +1330,28 @@ export default {
|
|
let cam = new paper.Path({
|
|
let cam = new paper.Path({
|
|
strokeColor: '#fff',
|
|
strokeColor: '#fff',
|
|
strokeWidth: 2,
|
|
strokeWidth: 2,
|
|
- fillColor: "rgba(255, 255, 255, 0.4)"
|
|
|
|
|
|
+ fillColor: "rgba(255, 255, 255, 0.4)",
|
|
|
|
+ item_type: 'doleance_step',
|
|
|
|
+ item_id: 'lenquete'
|
|
});
|
|
});
|
|
-
|
|
|
|
- cam.add({x: this.pos.x + n, y: this.pos.y + n});
|
|
|
|
- cam.lineTo({x: this.pos.x + m , y: this.pos.y + m});
|
|
|
|
- cam.arcTo({x: this.pos.x + p, y: this.pos.y + o}, {x: this.pos.x, y: this.pos.y + r});
|
|
|
|
- cam.lineTo({x: this.pos.x, y: this.pos.y + dr});
|
|
|
|
- cam.arcTo({x: this.pos.x + p_d, y: this.pos.y + o_d}, {x: this.pos.x + n, y: this.pos.y + n});
|
|
|
|
|
|
+ cam.add({x: this.pos.x , y: this.pos.y + dr});
|
|
|
|
+ cam.lineTo({x: this.pos.x, y: this.pos.y + r});
|
|
|
|
+ cam.arcTo({x: this.pos.x - p, y: this.pos.y + o}, {x: this.pos.x - m, y: this.pos.y + m});
|
|
|
|
+ cam.lineTo({x: this.pos.x - n, y: this.pos.y + n});
|
|
|
|
+ cam.arcTo({x: this.pos.x - p_d, y: this.pos.y + o_d}, {x: this.pos.x , y: this.pos.y + dr});
|
|
enquete.addChild(cam)
|
|
enquete.addChild(cam)
|
|
// texte
|
|
// texte
|
|
- enquete.addChild(new paper.PointText({
|
|
|
|
- point: {
|
|
|
|
- x:this.pos.x + Math.sin(22.5*(Math.PI/180)) * r*0.75,
|
|
|
|
- y:this.pos.y + Math.cos(22.5*(Math.PI/180)) * r*0.75
|
|
|
|
- },
|
|
|
|
- content: doleance['lenquete'],
|
|
|
|
- fontSize: fontsize,
|
|
|
|
- fillColor: '#fff',
|
|
|
|
- justification: 'center'
|
|
|
|
- }));
|
|
|
|
|
|
+ // enquete.addChild(new paper.PointText({
|
|
|
|
+ // point: {
|
|
|
|
+ // x:this.pos.x + Math.sin(22.5*(Math.PI/180)) * r*0.75,
|
|
|
|
+ // y:this.pos.y + Math.cos(22.5*(Math.PI/180)) * r*0.75
|
|
|
|
+ // },
|
|
|
|
+ // content: doleance['lenquete'],
|
|
|
|
+ // fontSize: fontsize,
|
|
|
|
+ // fillColor: '#fff',
|
|
|
|
+ // justification: 'center',
|
|
|
|
+ // locked: true
|
|
|
|
+ // }));
|
|
g.addChild(enquete);
|
|
g.addChild(enquete);
|
|
|
|
|
|
//
|
|
//
|
|
@@ -1360,27 +1362,31 @@ export default {
|
|
});
|
|
});
|
|
// camenbert
|
|
// camenbert
|
|
let rescam = new paper.Path({
|
|
let rescam = new paper.Path({
|
|
|
|
+ name: 'resolution',
|
|
|
|
+ item_type: 'doleance_step',
|
|
|
|
+ item_id: 'probleme_initial_resolu',
|
|
strokeColor: '#fff',
|
|
strokeColor: '#fff',
|
|
strokeWidth: 2,
|
|
strokeWidth: 2,
|
|
- fillColor: "rgba(255, 255, 255, 0.4)"
|
|
|
|
|
|
+ fillColor: "rgba(255, 255, 255, 0.4)",
|
|
|
|
+
|
|
});
|
|
});
|
|
- rescam.add({x: this.pos.x , y: this.pos.y + dr});
|
|
|
|
- rescam.lineTo({x: this.pos.x, y: this.pos.y + r});
|
|
|
|
- rescam.arcTo({x: this.pos.x - p, y: this.pos.y + o}, {x: this.pos.x - m, y: this.pos.y + m});
|
|
|
|
- rescam.lineTo({x: this.pos.x - n, y: this.pos.y + n});
|
|
|
|
- rescam.arcTo({x: this.pos.x - p_d, y: this.pos.y + o_d}, {x: this.pos.x , y: this.pos.y + dr});
|
|
|
|
|
|
+ rescam.add({x: this.pos.x + n, y: this.pos.y + n});
|
|
|
|
+ rescam.lineTo({x: this.pos.x + m , y: this.pos.y + m});
|
|
|
|
+ rescam.arcTo({x: this.pos.x + p, y: this.pos.y + o}, {x: this.pos.x, y: this.pos.y + r});
|
|
|
|
+ rescam.lineTo({x: this.pos.x, y: this.pos.y + dr});
|
|
|
|
+ rescam.arcTo({x: this.pos.x + p_d, y: this.pos.y + o_d}, {x: this.pos.x + n, y: this.pos.y + n});
|
|
resolution.addChild(rescam)
|
|
resolution.addChild(rescam)
|
|
// texte
|
|
// texte
|
|
- resolution.addChild(new paper.PointText({
|
|
|
|
- point: {
|
|
|
|
- x:this.pos.x - Math.sin(22.5*(Math.PI/180)) * r*0.75,
|
|
|
|
- y:this.pos.y + Math.cos(22.5*(Math.PI/180)) * r*0.75
|
|
|
|
- },
|
|
|
|
- content: doleance['probleme_initial_resolu'] ? doleance['oui_nouvelle_situation'] : doleance['non_adresse_doleance'],
|
|
|
|
- fontSize: fontsize,
|
|
|
|
- fillColor: '#fff',
|
|
|
|
- justification: 'center'
|
|
|
|
- }));
|
|
|
|
|
|
+ // resolution.addChild(new paper.PointText({
|
|
|
|
+ // point: {
|
|
|
|
+ // x:this.pos.x - Math.sin(22.5*(Math.PI/180)) * r*0.75,
|
|
|
|
+ // y:this.pos.y + Math.cos(22.5*(Math.PI/180)) * r*0.75
|
|
|
|
+ // },
|
|
|
|
+ // content: doleance['probleme_initial_resolu'] ? doleance['oui_nouvelle_situation'] : doleance['non_adresse_doleance'],
|
|
|
|
+ // fontSize: fontsize,
|
|
|
|
+ // fillColor: '#fff',
|
|
|
|
+ // justification: 'center'
|
|
|
|
+ // }));
|
|
g.addChild(resolution);
|
|
g.addChild(resolution);
|
|
|
|
|
|
|
|
|
|
@@ -1468,22 +1474,32 @@ export default {
|
|
if (this.is_opened) {
|
|
if (this.is_opened) {
|
|
|
|
|
|
// lets define some options regarding the map_mode
|
|
// lets define some options regarding the map_mode
|
|
- let paper_group_tohit;
|
|
|
|
|
|
+ let paper_group_tohit, op;
|
|
switch (this.map_mode) {
|
|
switch (this.map_mode) {
|
|
case "terraindevie":
|
|
case "terraindevie":
|
|
paper_group_tohit = 'entites';
|
|
paper_group_tohit = 'entites';
|
|
|
|
+ op = {};
|
|
break;
|
|
break;
|
|
case "action":
|
|
case "action":
|
|
paper_group_tohit = 'agissantes';
|
|
paper_group_tohit = 'agissantes';
|
|
|
|
+ op = {};
|
|
break;
|
|
break;
|
|
case "puissancedagir":
|
|
case "puissancedagir":
|
|
paper_group_tohit = 'puissanceagir_besoins';
|
|
paper_group_tohit = 'puissanceagir_besoins';
|
|
|
|
+ op = {};
|
|
|
|
+ break;
|
|
|
|
+ case "doleancer":
|
|
|
|
+ paper_group_tohit = 'doleance_steps';
|
|
|
|
+ op = {
|
|
|
|
+ // class: paper.Path
|
|
|
|
+ fill: true
|
|
|
|
+ };
|
|
break;
|
|
break;
|
|
}
|
|
}
|
|
|
|
|
|
- let result = this.paper_objects.children[paper_group_tohit].hitTest(event.point);
|
|
|
|
|
|
+ let result = this.paper_objects.children[paper_group_tohit].hitTest(event.point, op);
|
|
// console.log('move result', result);
|
|
// console.log('move result', result);
|
|
- if (result) {
|
|
|
|
|
|
+ if (result && result.item.item_id) {
|
|
// console.log('move has result', result);
|
|
// console.log('move has result', result);
|
|
let hover_elmt = {
|
|
let hover_elmt = {
|
|
type: result.item.item_type,
|
|
type: result.item.item_type,
|