Mercurial > code > home > repos > streamed-graph
comparison src/streamed-graph.ts @ 9:26d3e4860adc
working on porting graph_view to n3.js. also working on making tests run
author | drewp@bigasterisk.com |
---|---|
date | Fri, 06 Dec 2019 09:19:43 -0800 |
parents | 6fefd287aff9 |
children | 7ca4ff2088c3 |
comparison
equal
deleted
inserted
replaced
8:6fefd287aff9 | 9:26d3e4860adc |
---|---|
5 | 5 |
6 import { PolymerElement, html } from '@polymer/polymer'; | 6 import { PolymerElement, html } from '@polymer/polymer'; |
7 import { customElement, property, computed } from '@polymer/decorators'; | 7 import { customElement, property, computed } from '@polymer/decorators'; |
8 import { render } from 'lit-html'; | 8 import { render } from 'lit-html'; |
9 import { graphView } from './graph_view'; | 9 import { graphView } from './graph_view'; |
10 import { Store, DataFactory } from "n3" | 10 import { N3Store } from "n3" |
11 | 11 |
12 import { StreamedGraphClient } from './streamed_graph_client'; | 12 import { StreamedGraphClient } from './streamed_graph_client'; |
13 | 13 |
14 @customElement('streamed-graph') | 14 @customElement('streamed-graph') |
15 class StreamedGraph extends PolymerElement { | 15 class StreamedGraph extends PolymerElement { |
16 @property({ type: String }) | 16 @property({ type: String }) |
17 url: string = ''; | 17 url: string = ''; |
18 | 18 |
19 @property({ type: Object }) | 19 @property({ type: Object }) |
20 graph: {version: number, graph: Store}; | 20 graph: {version: number, graph: N3Store}; |
21 | 21 |
22 @property({ type: Boolean }) | 22 @property({ type: Boolean }) |
23 expanded: Boolean = false; | 23 expanded: Boolean = false; |
24 | 24 |
25 @computed('expanded') | 25 @computed('expanded') |