This commit is contained in:
Akko
2025-08-04 18:57:35 +02:00
parent 8cf6e78a79
commit 9495868c2e
5030 changed files with 518594 additions and 17609 deletions

View File

@@ -0,0 +1,22 @@
"use strict";
const nssvg = "http://www.w3.org/2000/svg";
const nsxhtml = "http://www.w3.org/1999/xhtml";
class HTMLTextRenderData {
constructor() {
this.svgRoot = document.createElementNS(nssvg, "svg");
this.foreignObject = document.createElementNS(nssvg, "foreignObject");
this.domElement = document.createElementNS(nsxhtml, "div");
this.styleElement = document.createElementNS(nsxhtml, "style");
this.image = new Image();
const { foreignObject, svgRoot, styleElement, domElement } = this;
foreignObject.setAttribute("width", "10000");
foreignObject.setAttribute("height", "10000");
foreignObject.style.overflow = "hidden";
svgRoot.appendChild(foreignObject);
foreignObject.appendChild(styleElement);
foreignObject.appendChild(domElement);
}
}
export { HTMLTextRenderData, nssvg, nsxhtml };
//# sourceMappingURL=HTMLTextRenderData.mjs.map