state sync

This commit is contained in:
2025-11-23 14:59:17 -08:00
parent 537bdf1ad7
commit 39f4a8d3fc
812 changed files with 373062 additions and 84 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
};