MCPcopy Create free account
hub / github.com/TruthHun/BookStack / toNode

Method toNode

static/katex/katex.mjs:1371–1382  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1369 }
1370
1371 toNode() {
1372 const svgNS = "http://www.w3.org/2000/svg";
1373 const node = document.createElementNS(svgNS, "line"); // Apply attributes
1374
1375 for (const attr in this.attributes) {
1376 if (Object.prototype.hasOwnProperty.call(this.attributes, attr)) {
1377 node.setAttribute(attr, this.attributes[attr]);
1378 }
1379 }
1380
1381 return node;
1382 }
1383
1384 toMarkup() {
1385 let markup = "<line";

Callers

nothing calls this directly

Calls 1

setAttributeMethod · 0.45

Tested by

no test coverage detected