@pixldocs/canvas-renderer 0.3.26 → 0.3.28

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.cjs CHANGED
@@ -11185,7 +11185,8 @@ class PixldocsRenderer {
11185
11185
  } else {
11186
11186
  normalized = normalized.replace(/<svg\b/i, `<svg viewBox="${viewBox}"`);
11187
11187
  }
11188
- normalized = normalized.replace(/\b(rx|ry)="undefined"/g, '$1="0"');
11188
+ normalized = normalized.replace(/="undefined"/g, '="0"');
11189
+ normalized = normalized.replace(/="NaN"/g, '="0"');
11189
11190
  if (/\bx="[^"]*"/i.test(normalized)) {
11190
11191
  normalized = normalized.replace(/(<svg[^>]*\b)x="[^"]*"/i, '$1x="0"');
11191
11192
  } else {