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