From f13294488139a7e2bf01530f3dd8cd4cfae56663 Mon Sep 17 00:00:00 2001 From: Ali Sait Teke Date: Wed, 29 Jan 2025 21:09:33 +0000 Subject: [PATCH] fix(seat-item.custom.ts): add viewBox attribute to imported SVG for proper scaling --- src/lib/svg/stage/blocks/block-item/seat/seat-item.custom.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/src/lib/svg/stage/blocks/block-item/seat/seat-item.custom.ts b/src/lib/svg/stage/blocks/block-item/seat/seat-item.custom.ts index 57f2255..252baaf 100644 --- a/src/lib/svg/stage/blocks/block-item/seat/seat-item.custom.ts +++ b/src/lib/svg/stage/blocks/block-item/seat/seat-item.custom.ts @@ -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