#2140 added stroke to contours
This commit is contained in:
		@@ -660,8 +660,8 @@ export default {
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
        return new paper.Segment({
 | 
					        return new paper.Segment({
 | 
				
			||||||
          point: pa,
 | 
					          point: pa,
 | 
				
			||||||
          // handleIn: hai,
 | 
					          handleIn: hai,
 | 
				
			||||||
          // handleOut: hao
 | 
					          handleOut: hao
 | 
				
			||||||
        })
 | 
					        })
 | 
				
			||||||
      }
 | 
					      }
 | 
				
			||||||
      const first_point = getPaddedRoundedSegments(
 | 
					      const first_point = getPaddedRoundedSegments(
 | 
				
			||||||
@@ -691,10 +691,10 @@ export default {
 | 
				
			|||||||
      const contrs = new paper.Path({
 | 
					      const contrs = new paper.Path({
 | 
				
			||||||
        name: 'contours',
 | 
					        name: 'contours',
 | 
				
			||||||
        segments: segments,
 | 
					        segments: segments,
 | 
				
			||||||
        fillColor: 'rgba(255,255,255,0.8)',
 | 
					        fillColor: 'rgba(255,255,255,0.4)',
 | 
				
			||||||
        // selected: true,
 | 
					        // selected: true,
 | 
				
			||||||
        // strokeColor: '#000',
 | 
					        strokeColor: '#fff',
 | 
				
			||||||
        // strokeWidth: 1,
 | 
					        strokeWidth: 1,
 | 
				
			||||||
        pivot: new paper.Point(this.pos),
 | 
					        pivot: new paper.Point(this.pos),
 | 
				
			||||||
        cid: this.id
 | 
					        cid: this.id
 | 
				
			||||||
      });
 | 
					      });
 | 
				
			||||||
@@ -1838,15 +1838,15 @@ export default {
 | 
				
			|||||||
    handlePaperVisibility(){
 | 
					    handlePaperVisibility(){
 | 
				
			||||||
      // contours focused
 | 
					      // contours focused
 | 
				
			||||||
      if (!this.isFocused()){
 | 
					      if (!this.isFocused()){
 | 
				
			||||||
        this.paper_objects.children['contours'].fillColor = "rgba(255,255,255,0.3)";
 | 
					        this.paper_objects.children['contours'].fillColor = "rgba(255,255,255,0.1)";
 | 
				
			||||||
      }else{
 | 
					      }else{
 | 
				
			||||||
        this.paper_objects.children['contours'].fillColor = "rgba(255,255,255,0.8)";
 | 
					        this.paper_objects.children['contours'].fillColor = "rgba(255,255,255,0.4)";
 | 
				
			||||||
        if (this.is_hover) {
 | 
					        if (this.is_hover) {
 | 
				
			||||||
          this.paper_objects.children['contours'].strokeColor = "#01ffe2";
 | 
					          this.paper_objects.children['contours'].strokeColor = "#01ffe2";
 | 
				
			||||||
          this.paper_objects.children['contours'].strokeWidth = 2;
 | 
					          this.paper_objects.children['contours'].strokeWidth = 2;
 | 
				
			||||||
        }else{
 | 
					        }else{
 | 
				
			||||||
          this.paper_objects.children['contours'].strokeColor = null;
 | 
					          this.paper_objects.children['contours'].strokeColor = "#fff";
 | 
				
			||||||
          this.paper_objects.children['contours'].strokeWidth = 0;
 | 
					          this.paper_objects.children['contours'].strokeWidth = 1;
 | 
				
			||||||
        }
 | 
					        }
 | 
				
			||||||
      }
 | 
					      }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user