89
|
1 import { html, css, LitElement } from "lit";
|
|
2 import { customElement } from "lit/decorators.js";
|
|
3 export { StreamedGraph } from "@bigasterisk/streamed-graph";
|
|
4
|
|
5 @customElement("my-element")
|
|
6 export class MyElement extends LitElement {
|
|
7 static styles = css`
|
|
8 :host {
|
|
9 }
|
|
10 `;
|
|
11
|
|
12 render() {
|
|
13 return html`
|
|
14 <h1>streamed-graph demo</h1>
|
|
15 <streamed-graph
|
|
16 url="/collector/graph/reposync"
|
|
17 view="repos.n3"
|
|
18 expanded="true"
|
|
19 ></streamed-graph>
|
|
20 `;
|
|
21 }
|
|
22 }
|
|
23
|
|
24 declare global {
|
|
25 interface HTMLElementTagNameMap {
|
|
26 "my-element": MyElement;
|
|
27 }
|
|
28 }
|