|
@@ -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 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({
|
|
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 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],
|
|
|
|
- strokeColor: '#01ffe2',
|
|
|
|
- strokeWidth: strokewidth
|
|
|
|
- }));
|
|
|
|
|
|
+ children.push(new paper.Path.Circle({
|
|
|
|
+ radius: ray/2,
|
|
|
|
+ fillColor: '#01ffe2'
|
|
|
|
+ }))
|
|
|
|
|
|
- children.push(new paper.Path.Line({
|
|
|
|
- from: [ray, ray],
|
|
|
|
- to: [- ray, - ray],
|
|
|
|
|
|
+ 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,
|