@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.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(
|
|
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 {
|