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

Method constructor

static/katex/katex.mjs:1118–1129  ·  view source on GitHub ↗
(href, classes, children, options)

Source from the content-addressed store, hash-verified

1116
1117class Anchor {
1118 constructor(href, classes, children, options) {
1119 this.children = void 0;
1120 this.attributes = void 0;
1121 this.classes = void 0;
1122 this.height = void 0;
1123 this.depth = void 0;
1124 this.maxFontSize = void 0;
1125 this.style = void 0;
1126 initNode.call(this, classes, options);
1127 this.children = children || [];
1128 this.setAttribute('href', href);
1129 }
1130
1131 setAttribute(attribute, value) {
1132 this.attributes[attribute] = value;

Callers

nothing calls this directly

Calls 1

setAttributeMethod · 0.95

Tested by

no test coverage detected