Buckets:
| /** | |
| * Mounts svg markup inside an open shadow root on the host element. | |
| * The shadow boundary scopes the svg <style> and its animations to the host, | |
| * so model authored css can not reach the surrounding page. The caller passes | |
| * markup that is already sanitized, this only isolates and sizes it. | |
| */ | |
| export function mountSvgShadow(host: HTMLElement, markup: string, style: string): void { | |
| const root = host.shadowRoot ?? host.attachShadow({ mode: 'open' }); | |
| root.innerHTML = markup ? `<style>${style}</style>${markup}` : ''; | |
| } | |
Xet Storage Details
- Size:
- 533 Bytes
- Xet hash:
- 186a0196c7dfd15122bd6d28ecc55ee3a7b86cc97b6a0893fa96389b59800f68
·
Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.