removed dashed circles from boussole #2309
This commit is contained in:
		@@ -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,18 +313,19 @@ 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
 | 
				
			||||||
        children.push(new paper.Path.Circle({
 | 
					        if (!da) { // draw only 2 main non-dashed circles
 | 
				
			||||||
          center: [pos.x, pos.y],
 | 
					          children.push(new paper.Path.Circle({
 | 
				
			||||||
          radius: ray/8*i,
 | 
					            center: [pos.x, pos.y],
 | 
				
			||||||
          strokeColor: '#fff',
 | 
					            radius: ray/8*i,
 | 
				
			||||||
          strokeWidth: sw,
 | 
					            strokeColor: '#fff',
 | 
				
			||||||
          dashArray: da
 | 
					            strokeWidth: sw,
 | 
				
			||||||
        }));
 | 
					            dashArray: da
 | 
				
			||||||
        
 | 
					          }));
 | 
				
			||||||
 | 
					        }
 | 
				
			||||||
      }
 | 
					      }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
      // axes
 | 
					      // axes
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user