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 | |
parent | 7363d83b6df50f6cd31f15aebe2ace95d13a2e00 (diff) |
fix various build issues
Diffstat (limited to 'app/components')
-rw-r--r-- | app/components/plan-node/plan-node.ts | 10 | ||||
-rw-r--r-- | app/components/plan-view/plan-view.ts | 4 |
2 files changed, 8 insertions, 6 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(); diff --git a/app/components/plan-view/plan-view.ts b/app/components/plan-view/plan-view.ts index 302d8ee..93b3a97 100644 --- a/app/components/plan-view/plan-view.ts +++ b/app/components/plan-view/plan-view.ts @@ -55,7 +55,7 @@ export class PlanView { maxRows: this.rootContainer[this._planService.MAXIMUM_ROWS_PROP] || 0, maxCost: this.rootContainer[this._planService.MAXIMUM_COSTS_PROP] || 0, maxDuration: this.rootContainer[this._planService.MAXIMUM_DURATION_PROP] || 0 - } + }; } ngOnInit() { @@ -75,7 +75,7 @@ export class PlanView { var unit: string = ''; if (originalValue < 1) { - duration = "<1"; + duration = '<1'; unit = 'ms'; } else if (originalValue > 1 && originalValue < 1000) { duration = originalValue.toString(); |