aboutsummaryrefslogtreecommitdiff
path: root/app/components/plan-node/plan-node.ts
diff options
context:
space:
mode:
Diffstat (limited to 'app/components/plan-node/plan-node.ts')
-rw-r--r--app/components/plan-node/plan-node.ts10
1 files changed, 6 insertions, 4 deletions
diff --git a/app/components/plan-node/plan-node.ts b/app/components/plan-node/plan-node.ts
index ce5f5db..8e4e261 100644
--- a/app/components/plan-node/plan-node.ts
+++ b/app/components/plan-node/plan-node.ts
@@ -53,8 +53,7 @@ export class PlanNode {
constructor(private _planService: PlanService,
private _syntaxHighlightService: SyntaxHighlightService,
private _helpService: HelpService,
- private _colorService: ColorService)
- { }
+ private _colorService: ColorService) { }
ngOnInit() {
this.currentHighlightType = this.viewOptions.highlightType;
@@ -126,7 +125,10 @@ export class PlanNode {
break;
}
- if (this.width < 1) { this.width = 1 }
+ if (this.width < 1) {
+ this.width = 1;
+ }
+
this.backgroundColor = this._colorService.numberToColorHsl(1 - this.width / nodeWidth);
}
@@ -134,7 +136,7 @@ export class PlanNode {
var dur: number = _.round(this.node[this._planService.ACTUAL_DURATION_PROP]);
// convert duration into approriate units
if (dur < 1) {
- this.duration = "<1";
+ this.duration = '<1';
this.durationUnit = 'ms';
} else if (dur > 1 && dur < 1000) {
this.duration = dur.toString();