redhotmagma-visualization 1.36.1 → 1.37.0

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.
@@ -209,7 +209,9 @@ var applyOnChildNode = function applyOnChildNode(imageCanvas, ctx, svgElement) {
209
209
  while (1) {
210
210
  switch (_context3.prev = _context3.next) {
211
211
  case 0:
212
- if (!(node.getAttribute("visibility") === "hidden")) {
212
+ if (!(node.nodeType === 3
213
+ /** ignore text nodes **/
214
+ || node.getAttribute("visibility") === "hidden")) {
213
215
  _context3.next = 2;
214
216
  break;
215
217
  }
package/package.json CHANGED
@@ -1,12 +1,12 @@
1
1
  {
2
2
  "name": "redhotmagma-visualization",
3
- "version": "1.36.1",
3
+ "version": "1.37.0",
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.36.1",
9
+ "@configuratorware/scripts": "1.37.0",
10
10
  "@tweenjs/tween.js": "^17.6.0",
11
11
  "console-polyfill": "^0.3.0",
12
12
  "css-element-queries": "^1.2.3",
@@ -114,7 +114,7 @@ const getImageSrc = imageNode =>
114
114
  imageNode.getAttribute("href") || imageNode.getAttribute("xlink:href");
115
115
 
116
116
  const applyOnChildNode = (imageCanvas, ctx, svgElement) => async node => {
117
- if (node.getAttribute("visibility") === "hidden") {
117
+ if (node.nodeType === 3 /** ignore text nodes **/ || node.getAttribute("visibility") === "hidden") {
118
118
  return;
119
119
  }
120
120
  if (node.tagName === "image") {