Skip to content

Commit

Permalink
fix(seat-item.custom.ts): add viewBox attribute to imported SVG for p…
Browse files Browse the repository at this point in the history
…roper scaling
  • Loading branch information
alisaitteke committed Jan 29, 2025
1 parent ad88e27 commit f132944
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ export class SeatItemCustomSvg extends SvgBase {
super.domGenerate(to, index);
const importedSVG = select(this.customSvg.documentElement.cloneNode(true));
importedSVG.attr('width', this.global.config.style.seat.radius)
importedSVG.attr('viewBox',`0 0 ${this.global.config.style.seat.radius} ${this.global.config.style.seat.radius}`)
this.node.node().append(importedSVG.node())
this.addChild(new SeatItemCustomSvgArea(this))
return this
Expand Down

0 comments on commit f132944

Please sign in to comment.