Mercurial > code > home > repos > streamed-graph
comparison src/index.ts @ 38:d4036715028b
try exporting the PolymerElement so it can be depended on and therefore not culled by tree-shaking
author | drewp@bigasterisk.com |
---|---|
date | Sun, 29 Dec 2019 19:43:25 -0800 |
parents | 8b4dc9e87b56 |
children | 895ae7c5b0f4 |
comparison
equal
deleted
inserted
replaced
37:6a1d158d6ca4 | 38:d4036715028b |
---|---|
8 | 8 |
9 import { GraphView } from "./graph_view"; | 9 import { GraphView } from "./graph_view"; |
10 import { StreamedGraphClient } from "./streamed_graph_client"; | 10 import { StreamedGraphClient } from "./streamed_graph_client"; |
11 export { StreamedGraphClient } from "./streamed_graph_client"; | 11 export { StreamedGraphClient } from "./streamed_graph_client"; |
12 | 12 |
13 interface VersionedGraph { | 13 export interface VersionedGraph { |
14 version: number; | 14 version: number; |
15 store: N3Store | undefined; | 15 store: N3Store | undefined; |
16 } | 16 } |
17 | 17 |
18 @customElement("streamed-graph") | 18 @customElement("streamed-graph") |
19 class StreamedGraph extends PolymerElement { | 19 export class StreamedGraph extends PolymerElement { |
20 @property({ type: String }) | 20 @property({ type: String }) |
21 url: string = ""; | 21 url: string = ""; |
22 | 22 |
23 @property({ type: Object }) | 23 @property({ type: Object }) |
24 graph!: VersionedGraph; | 24 graph!: VersionedGraph; |