From 721c4a49c47460f1618a0f679fe9125a5f519cdc Mon Sep 17 00:00:00 2001 From: Alex Tatiyants Date: Thu, 7 Jan 2016 07:44:48 -0800 Subject: fix various build issues --- app/components/plan-node/plan-node.ts | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'app/components/plan-node') 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(); -- cgit v1.2.3