Skip to content

Commit

Permalink
build: work in progress
Browse files Browse the repository at this point in the history
  • Loading branch information
khalilou88 committed Jan 14, 2025
1 parent 0400bfc commit 458d93e
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -68,10 +68,10 @@ export class <%= svgClassName %> implements OnInit {
const svg = this.elementRef.nativeElement;
this.render.setAttribute(svg, 'xmlns', 'http://www.w3.org/2000/svg');
<% if(width) { -%>
this.render.setAttribute(svg, 'width', this.width());
this.render.setAttribute(svg, 'width', this.width().toString());
<% } -%>
<% if(height) { -%>
this.render.setAttribute(svg, 'height', this.height());
this.render.setAttribute(svg, 'height', this.height().toString());
<% } -%>
<% if(viewBox) { -%>
this.render.setAttribute(svg, 'viewBox', this.viewBox());
Expand All @@ -83,7 +83,7 @@ export class <%= svgClassName %> implements OnInit {
this.render.setAttribute(svg, 'stroke', this.stroke());
<% } -%>
<% if(strokeWidth) { -%>
this.render.setAttribute(svg, 'stroke-width', this.strokeWidth());
this.render.setAttribute(svg, 'stroke-width', this.strokeWidth().toString());
<% } -%>
<% if(strokeLinecap) { -%>
this.render.setAttribute(svg, 'stroke-linecap', this.strokeLinecap());
Expand Down

0 comments on commit 458d93e

Please sign in to comment.