From 51418cd7bbc8c530d89eba8af1a5468fb16326f5 Mon Sep 17 00:00:00 2001 From: Scott Cooper Date: Tue, 16 Oct 2018 00:24:11 -0700 Subject: [PATCH] feat: make svgHeight and svgWidth inputs closes #200 --- src/lib/trend/trend.component.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/lib/trend/trend.component.ts b/src/lib/trend/trend.component.ts index a0592b98..e600d473 100644 --- a/src/lib/trend/trend.component.ts +++ b/src/lib/trend/trend.component.ts @@ -102,11 +102,11 @@ export class TrendComponent implements OnChanges { @Input() strokeWidth = 1; @Input() gradient: string[] = []; @Input() preserveAspectRatio: string; + @Input() svgHeight: string | number = '25%'; + @Input() svgWidth: string | number = '100%'; @ViewChild('pathEl') pathEl: ElementRef; gradientTrimmed: any[]; d: any; - svgWidth: string | number = '100%'; - svgHeight: string | number = '25%'; viewBox: string; pathStroke: any; gradientId: string;