removed dashed circles from boussole #2309

This commit is contained in:
Bachir Soussi Chiadmi 2023-10-06 12:18:55 +02:00
parent 8c126fbe26
commit a8692abfb9

View File

@ -303,7 +303,7 @@ export default {
let ray = this.map_item_ray; let ray = this.map_item_ray;
let pos = {x:0, y:0}; let pos = {x:0, y:0};
// big global exterior circle to keep center aligned // big invisible global exterior circle to keep center aligned
children.push(new paper.Path.Circle({ children.push(new paper.Path.Circle({
center: [0, 0], center: [0, 0],
radius: ray*3, radius: ray*3,
@ -313,10 +313,11 @@ export default {
} }
})); }));
// cercles pointillés // cercles
for (let i = 1; i < 9; i++) { for (let i = 1; i < 9; i++) {
let sw = i === 4 || i === 8 ? 0.5 : 0.25; let sw = i === 4 || i === 8 ? 0.5 : 0.25; // width
let da = i === 4 || i === 8 ? null : [5,5]; let da = i === 4 || i === 8 ? null : [5,5]; // dash array
if (!da) { // draw only 2 main non-dashed circles
children.push(new paper.Path.Circle({ children.push(new paper.Path.Circle({
center: [pos.x, pos.y], center: [pos.x, pos.y],
radius: ray/8*i, radius: ray/8*i,
@ -324,7 +325,7 @@ export default {
strokeWidth: sw, strokeWidth: sw,
dashArray: da dashArray: da
})); }));
}
} }
// axes // axes