redhotmagma-visualization 1.37.1 → 1.37.3
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.
|
@@ -337,7 +337,7 @@ var setSvgSize = function setSvgSize(svgElement, _ref4) {
|
|
|
337
337
|
svgElement.setAttribute("height", height);
|
|
338
338
|
|
|
339
339
|
if (svgElement.hasAttribute("viewBox")) {
|
|
340
|
-
var _svgElement$getAttrib = svgElement.getAttribute("viewBox").split(
|
|
340
|
+
var _svgElement$getAttrib = svgElement.getAttribute("viewBox").split(/[\s,]/),
|
|
341
341
|
_svgElement$getAttrib2 = _slicedToArray(_svgElement$getAttrib, 2),
|
|
342
342
|
x = _svgElement$getAttrib2[0],
|
|
343
343
|
y = _svgElement$getAttrib2[1];
|
package/package.json
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "redhotmagma-visualization",
|
|
3
|
-
"version": "1.37.
|
|
3
|
+
"version": "1.37.3",
|
|
4
4
|
"license": "UNLICENSED",
|
|
5
5
|
"private": false,
|
|
6
6
|
"main": "./index.js",
|
|
7
7
|
"dependencies": {
|
|
8
8
|
"@babel/polyfill": "^7.12.1",
|
|
9
|
-
"@configuratorware/scripts": "1.37.
|
|
9
|
+
"@configuratorware/scripts": "1.37.3",
|
|
10
10
|
"@tweenjs/tween.js": "^17.6.0",
|
|
11
11
|
"console-polyfill": "^0.3.0",
|
|
12
12
|
"css-element-queries": "^1.2.3",
|
|
@@ -203,7 +203,7 @@ const setSvgSize = (svgElement, { width, height }) => {
|
|
|
203
203
|
svgElement.setAttribute("height", height);
|
|
204
204
|
|
|
205
205
|
if (svgElement.hasAttribute("viewBox")) {
|
|
206
|
-
const [x, y] = svgElement.getAttribute("viewBox").split(
|
|
206
|
+
const [x, y] = svgElement.getAttribute("viewBox").split(/[\s,]/);
|
|
207
207
|
svgElement.setAttribute("viewBox", [x, y, width, height].join(" "));
|
|
208
208
|
}
|
|
209
209
|
|