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 segmentFillColor = fillColor;
if(s.labeled) {
segmentBorderColor = labeledSegmentBorderColor;
} else {
segmentBorderColor = borderColor;
}
if(this.labelingDeleteMode) {
if(s.deleted) {
segmentBorderColor = deletedSegmentBorderColor;
segmentFillColor = deletedSegmentFillColor;
}
} else {
if(s.deleted) {
return;
}
}
if(s.labeled) {
segmentBorderColor = labeledSegmentBorderColor;
} else {
segmentBorderColor = borderColor;
}
var expanded = s.expandDist(rangeDist, 0.01);

Loading…
Cancel
Save