@pixldocs/canvas-renderer 0.3.25 → 0.3.26

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -11166,6 +11166,7 @@ class PixldocsRenderer {
11166
11166
  } else {
11167
11167
  normalized = normalized.replace(/<svg\b/i, `<svg viewBox="${viewBox}"`);
11168
11168
  }
11169
+ normalized = normalized.replace(/\b(rx|ry)="undefined"/g, '$1="0"');
11169
11170
  if (/\bx="[^"]*"/i.test(normalized)) {
11170
11171
  normalized = normalized.replace(/(<svg[^>]*\b)x="[^"]*"/i, '$1x="0"');
11171
11172
  } else {