import {LitElement, html, css} from 'lit'; import {customElement} from 'lit/decorators.js'; @customElement('embed-pivot') export class EmbedPivot extends LitElement { static styles = css` :host { display: block; padding: 16px; } `; // no shadow dom createRenderRoot() { return this; } render() { const url = this.getAttribute('data-pivot-url'); const w = this.getAttribute('data-width') || 600; const h = this.getAttribute('data-height') || 600; if (url) { return html``; } return html`