@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 +2 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +2 -1
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -11166,7 +11166,8 @@ class PixldocsRenderer {
|
|
|
11166
11166
|
} else {
|
|
11167
11167
|
normalized = normalized.replace(/<svg\b/i, `<svg viewBox="${viewBox}"`);
|
|
11168
11168
|
}
|
|
11169
|
-
normalized = normalized.replace(
|
|
11169
|
+
normalized = normalized.replace(/="undefined"/g, '="0"');
|
|
11170
|
+
normalized = normalized.replace(/="NaN"/g, '="0"');
|
|
11170
11171
|
if (/\bx="[^"]*"/i.test(normalized)) {
|
|
11171
11172
|
normalized = normalized.replace(/(<svg[^>]*\b)x="[^"]*"/i, '$1x="0"');
|
|
11172
11173
|
} else {
|