Browse Source

Deleted segments are always visible #76 (#77)

master
rozetko 6 years ago committed by GitHub
parent
commit
aca0195581
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 16
      src/controllers/analytic_controller.ts

16
src/controllers/analytic_controller.ts

@ -266,17 +266,21 @@ export class AnalyticController {
let segmentBorderColor; let segmentBorderColor;
let segmentFillColor = fillColor; let segmentFillColor = fillColor;
if(s.labeled) {
segmentBorderColor = labeledSegmentBorderColor;
} else {
segmentBorderColor = borderColor;
}
if(this.labelingDeleteMode) { if(this.labelingDeleteMode) {
if(s.deleted) { if(s.deleted) {
segmentBorderColor = deletedSegmentBorderColor; segmentBorderColor = deletedSegmentBorderColor;
segmentFillColor = deletedSegmentFillColor; segmentFillColor = deletedSegmentFillColor;
} }
} else {
if(s.deleted) {
return;
}
}
if(s.labeled) {
segmentBorderColor = labeledSegmentBorderColor;
} else {
segmentBorderColor = borderColor;
} }
var expanded = s.expandDist(rangeDist, 0.01); var expanded = s.expandDist(rangeDist, 0.01);

Loading…
Cancel
Save