Initial commit

This commit is contained in:
2025-03-07 19:22:02 +01:00
commit 4a98255d83
55743 changed files with 5280367 additions and 0 deletions
@@ -0,0 +1,16 @@
/**
* Sets the virtual parent of an element.
*
* @internal
* @param child - Theme element to set the virtual parent
* @param parent - The virtual parent, use `undefined` to remove a virtual parent relationship
*/ export function setVirtualParent(child, parent) {
if (!child) {
return;
}
const virtualChild = child;
if (!virtualChild._virtual) {
virtualChild._virtual = {};
}
virtualChild._virtual.parent = parent;
}