entite action picto #2249
This commit is contained in:
parent
6b4e8ae99c
commit
039f44072b
@ -741,6 +741,7 @@ export default {
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
console.log(`item_type: ${item_type}, symbol_name: ${symbol_name}`);
|
||||||
|
|
||||||
let instance = new paper.SymbolItem(this.paper_symbol_definitions[symbol_name]);
|
let instance = new paper.SymbolItem(this.paper_symbol_definitions[symbol_name]);
|
||||||
instance.name = 'entite';
|
instance.name = 'entite';
|
||||||
@ -1591,10 +1592,10 @@ export default {
|
|||||||
let group = this.map_mode === 'terraindevie' ? this.paper_main_object.children['entites'] : this.paper_main_object.children['agissantes'];
|
let group = this.map_mode === 'terraindevie' ? this.paper_main_object.children['entites'] : this.paper_main_object.children['agissantes'];
|
||||||
if(group){
|
if(group){
|
||||||
group.children.forEach((item) => {
|
group.children.forEach((item) => {
|
||||||
if (this.opened_entite_id && item.item_id === parseInt(this.opened_entite_id)) {
|
if (this.opened_entite_id && item.item_id === parseInt(this.opened_entite_id) && item.item_type !== 'entite_hidden') {
|
||||||
item.definition = item.item_type === 'entite' ? this.paper_symbol_definitions.entite_hover : this.paper_symbol_definitions.entite_action_hover;
|
item.definition = item.item_type === 'entite' ? this.paper_symbol_definitions.entite_hover : this.paper_symbol_definitions.entite_action_hover;
|
||||||
} else {
|
} else {
|
||||||
if (!this.hover_elmt || item.item_id !== this.hover_elmt.id) {
|
if ((!this.hover_elmt || item.item_id !== this.hover_elmt.id) && item.item_type !== 'entite_hidden') {
|
||||||
item.definition = item.item_type === 'entite' ? this.paper_symbol_definitions.entite : this.paper_symbol_definitions.entite_action;
|
item.definition = item.item_type === 'entite' ? this.paper_symbol_definitions.entite : this.paper_symbol_definitions.entite_action;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -1014,29 +1014,42 @@ export default {
|
|||||||
// svgIcon.fillColor = null;
|
// svgIcon.fillColor = null;
|
||||||
// svgIcon.position = {x:0, y:0};
|
// svgIcon.position = {x:0, y:0};
|
||||||
let children = [];
|
let children = [];
|
||||||
let ray = 0.7; //this.map_item_ray;
|
let ray = 1; //this.map_item_ray;
|
||||||
let pos = {x:0, y:0};
|
// let pos = {x:0, y:0};
|
||||||
let strokewidth = 0.4;
|
|
||||||
|
|
||||||
children.push(new paper.Path.Line({
|
// children.push(new paper.Path.Line({
|
||||||
from: [- ray, ray],
|
// from: [- ray, ray],
|
||||||
to: [ray, - ray],
|
// to: [ray, - ray],
|
||||||
strokeColor: '#000',
|
// strokeColor: '#000',
|
||||||
strokeWidth: strokewidth
|
// strokeWidth: strokewidth
|
||||||
}));
|
// }));
|
||||||
|
|
||||||
children.push(new paper.Path.Line({
|
// children.push(new paper.Path.Line({
|
||||||
from: [ray, ray],
|
// from: [ray, ray],
|
||||||
to: [- ray, - ray],
|
// to: [- ray, - ray],
|
||||||
strokeColor: '#000',
|
// strokeColor: '#000',
|
||||||
strokeWidth: strokewidth
|
// strokeWidth: strokewidth
|
||||||
}));
|
// }));
|
||||||
|
|
||||||
|
|
||||||
|
children.push(new paper.Path.Circle({
|
||||||
|
radius: ray/2,
|
||||||
|
fillColor: 'rgba(0,0,0,1)'
|
||||||
|
}))
|
||||||
|
|
||||||
|
children.push(new paper.Path.Circle({
|
||||||
|
radius: ray,
|
||||||
|
strokeColor: 'rgba(0,0,0,1)',
|
||||||
|
strokeWidth: 0.2,
|
||||||
|
fillColor: 'rgba(0,0,0,0)'
|
||||||
|
}))
|
||||||
|
|
||||||
children.push(new paper.Path.Circle({
|
children.push(new paper.Path.Circle({
|
||||||
radius: ray,
|
radius: ray,
|
||||||
fillColor: 'rgba(255,255,255,0.01)'
|
fillColor: 'rgba(255,255,255,0.01)'
|
||||||
}))
|
}))
|
||||||
|
|
||||||
|
|
||||||
return new paper.Group({
|
return new paper.Group({
|
||||||
children: children,
|
children: children,
|
||||||
name: 'action_icon'
|
name: 'action_icon'
|
||||||
@ -1061,22 +1074,34 @@ export default {
|
|||||||
// });
|
// });
|
||||||
let children = [];
|
let children = [];
|
||||||
let ray = 0.7; //this.map_item_ray;
|
let ray = 0.7; //this.map_item_ray;
|
||||||
let pos = {x:0, y:0};
|
// let pos = {x:0, y:0};
|
||||||
let strokewidth = 0.4;
|
// let strokewidth = 0.4;
|
||||||
|
|
||||||
children.push(new paper.Path.Line({
|
// children.push(new paper.Path.Line({
|
||||||
from: [- ray, ray],
|
// from: [- ray, ray],
|
||||||
to: [ray, - ray],
|
// to: [ray, - ray],
|
||||||
strokeColor: '#01ffe2',
|
// strokeColor: '#01ffe2',
|
||||||
strokeWidth: strokewidth
|
// strokeWidth: strokewidth
|
||||||
}));
|
// }));
|
||||||
|
|
||||||
children.push(new paper.Path.Line({
|
// children.push(new paper.Path.Line({
|
||||||
from: [ray, ray],
|
// from: [ray, ray],
|
||||||
to: [- ray, - ray],
|
// to: [- ray, - ray],
|
||||||
|
// strokeColor: '#01ffe2',
|
||||||
|
// strokeWidth: strokewidth
|
||||||
|
// }));
|
||||||
|
|
||||||
|
children.push(new paper.Path.Circle({
|
||||||
|
radius: ray/2,
|
||||||
|
fillColor: '#01ffe2'
|
||||||
|
}))
|
||||||
|
|
||||||
|
children.push(new paper.Path.Circle({
|
||||||
|
radius: ray,
|
||||||
strokeColor: '#01ffe2',
|
strokeColor: '#01ffe2',
|
||||||
strokeWidth: strokewidth
|
strokeWidth: 0.2,
|
||||||
}));
|
fillColor: 'rgba(0,0,0,0)'
|
||||||
|
}))
|
||||||
|
|
||||||
children.push(new paper.Path.Circle({
|
children.push(new paper.Path.Circle({
|
||||||
radius: ray,
|
radius: ray,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user