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/node.test.js +9 -4
- package/node.test.js.map +1 -1
- package/package.json +1 -1
- package/web.test.js +9 -4
- package/web.test.js.map +1 -1
package/package.json
CHANGED
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
|
-
|
|
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
|
|
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
|
-
|
|
248
|
+
else {
|
|
249
|
+
node[key] = props[key];
|
|
250
|
+
}
|
|
246
251
|
}
|
|
247
252
|
if (guid)
|
|
248
253
|
node.id = guid;
|