This commit is contained in:
nik
2025-10-03 22:27:28 +03:00
parent 829fad0e17
commit 871cf7e792
16520 changed files with 2967597 additions and 3 deletions

View File

@@ -0,0 +1,26 @@
import {
getConfig2 as getConfig
} from "./chunk-6PHMZWEM.mjs";
import {
select_default
} from "./chunk-2LXNVE6Q.mjs";
import {
__name
} from "./chunk-DLQEHMXD.mjs";
// src/rendering-util/selectSvgElement.ts
var selectSvgElement = /* @__PURE__ */ __name((id) => {
const { securityLevel } = getConfig();
let root = select_default("body");
if (securityLevel === "sandbox") {
const sandboxElement = select_default(`#i${id}`);
const doc = sandboxElement.node()?.contentDocument ?? document;
root = select_default(doc.body);
}
const svg = root.select(`#${id}`);
return svg;
}, "selectSvgElement");
export {
selectSvgElement
};