mol_plot_all 1.2.55 → 1.2.56

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mol_plot_all",
3
- "version": "1.2.55",
3
+ "version": "1.2.56",
4
4
  "main": "node.js",
5
5
  "module": "node.esm.js",
6
6
  "browser": "web.js",
package/web.test.js CHANGED
@@ -182,7 +182,7 @@ var $;
182
182
  $.$mol_jsx_booked = null;
183
183
  $.$mol_jsx_document = {
184
184
  getElementById: () => null,
185
- createElement: (name) => $.$mol_dom_context.document.createElement(name),
185
+ createElementNS: (space, name) => $.$mol_dom_context.document.createElementNS(space, name),
186
186
  createDocumentFragment: () => $.$mol_dom_context.document.createDocumentFragment(),
187
187
  };
188
188
  $.$mol_jsx_frag = '';
@@ -224,8 +224,11 @@ var $;
224
224
  }
225
225
  }
226
226
  }
227
- if (!node)
228
- node = Elem ? $.$mol_jsx_document.createElement(Elem) : $.$mol_jsx_document.createDocumentFragment();
227
+ if (!node) {
228
+ node = Elem
229
+ ? $.$mol_jsx_document.createElementNS(props?.xmlns ?? 'http://www.w3.org/1999/xhtml', Elem)
230
+ : $.$mol_jsx_document.createDocumentFragment();
231
+ }
229
232
  $.$mol_dom_render_children(node, [].concat(...childNodes));
230
233
  if (!Elem)
231
234
  return node;
@@ -242,7 +245,9 @@ var $;
242
245
  continue;
243
246
  }
244
247
  }
245
- node[key] = props[key];
248
+ else {
249
+ node[key] = props[key];
250
+ }
246
251
  }
247
252
  if (guid)
248
253
  node.id = guid;