Reference: https://html.spec.whatwg.org/multipage/custom-elements.html#custom-element-conformance
const encoder = new TextEncoder();
customElements.define('al-point-visualization', class extends HTMLElement {
- constructor() {
- super();
+ connectedCallback() {
const template = document.querySelector('template').content;
const shadowRoot = this.attachShadow({ mode: 'open' });
shadowRoot.appendChild(template.cloneNode(true));