entite action picto #2249

This commit is contained in:
2023-11-06 17:06:37 +01:00
parent 6b4e8ae99c
commit 039f44072b
2 changed files with 56 additions and 30 deletions

View File

@@ -1014,29 +1014,42 @@ export default {
// svgIcon.fillColor = null;
// svgIcon.position = {x:0, y:0};
let children = [];
let ray = 0.7; //this.map_item_ray;
let pos = {x:0, y:0};
let strokewidth = 0.4;
let ray = 1; //this.map_item_ray;
// let pos = {x:0, y:0};
children.push(new paper.Path.Line({
from: [- ray, ray],
to: [ray, - ray],
strokeColor: '#000',
strokeWidth: strokewidth
}));
// children.push(new paper.Path.Line({
// from: [- ray, ray],
// to: [ray, - ray],
// strokeColor: '#000',
// strokeWidth: strokewidth
// }));
children.push(new paper.Path.Line({
from: [ray, ray],
to: [- ray, - ray],
strokeColor: '#000',
strokeWidth: strokewidth
}));
// children.push(new paper.Path.Line({
// from: [ray, ray],
// to: [- ray, - ray],
// strokeColor: '#000',
// 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({
radius: ray,
fillColor: 'rgba(255,255,255,0.01)'
}))
return new paper.Group({
children: children,
name: 'action_icon'
@@ -1061,22 +1074,34 @@ export default {
// });
let children = [];
let ray = 0.7; //this.map_item_ray;
let pos = {x:0, y:0};
let strokewidth = 0.4;
// let pos = {x:0, y:0};
// let strokewidth = 0.4;
children.push(new paper.Path.Line({
from: [- ray, ray],
to: [ray, - ray],
strokeColor: '#01ffe2',
strokeWidth: strokewidth
}));
// children.push(new paper.Path.Line({
// from: [- ray, ray],
// to: [ray, - ray],
// strokeColor: '#01ffe2',
// strokeWidth: strokewidth
// }));
children.push(new paper.Path.Line({
from: [ray, ray],
to: [- ray, - ray],
// children.push(new paper.Path.Line({
// from: [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',
strokeWidth: strokewidth
}));
strokeWidth: 0.2,
fillColor: 'rgba(0,0,0,0)'
}))
children.push(new paper.Path.Circle({
radius: ray,