diff options
author | Alex Tatiyants <atatiyan@gmail.com> | 2016-01-07 07:44:48 -0800 |
---|---|---|
committer | Alex Tatiyants <atatiyan@gmail.com> | 2016-01-07 07:44:48 -0800 |
commit | 721c4a49c47460f1618a0f679fe9125a5f519cdc (patch) | |
tree | de9ef56e05163272f904aa83fb320e1df9f48292 /app/components/plan-node/plan-node.ts | |
parent | 7363d83b6df50f6cd31f15aebe2ace95d13a2e00 (diff) |
fix various build issues
Diffstat (limited to 'app/components/plan-node/plan-node.ts')
-rw-r--r-- | app/components/plan-node/plan-node.ts | 10 |
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(); |