26 lines
656 B
JavaScript
26 lines
656 B
JavaScript
import {
|
|
getConfig2
|
|
} from "./chunk-BFCVI5XI.js";
|
|
import {
|
|
__name,
|
|
select_default
|
|
} from "./chunk-I65GBZ6F.js";
|
|
|
|
// node_modules/mermaid/dist/chunks/mermaid.core/chunk-EXTU4WIE.mjs
|
|
var selectSvgElement = __name((id) => {
|
|
const { securityLevel } = getConfig2();
|
|
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
|
|
};
|
|
//# sourceMappingURL=chunk-B5NQPFQG.js.map
|