 (padding * 2);
            const height = bbox.height + (padding * 2);

            svgCopy.setAttribute(
                'viewBox',
                `${bbox.x - padding} ${bbox.y - padding} ${width} ${height}`
            );
            svgCopy.setAttribute('width', width);
            svgCopy.setAttribute('height', height);

            const serializer = new XMLSerializer();
            const svgStr = serializer.serializeToString(svgCopy);
            const svgBase64 = btoa(unescape(encodeURIComponent(sv