Mercurial > code > home > repos > homeauto
annotate service/wifi/src/index.ts @ 1474:f91ba30b4f75
build adjustments. now seems to read streamedgraph correctly.
Ignore-this: 2768ea249aefb81d4720607e815d77c1
darcs-hash:7414b3c41ebf8a76d651de848a5db99e919bb644
author | drewp <drewp@bigasterisk.com> |
---|---|
date | Tue, 31 Dec 2019 02:45:25 -0800 |
parents | |
children | 2b9865bf1737 |
rev | line source |
---|---|
1474
f91ba30b4f75
build adjustments. now seems to read streamedgraph correctly.
drewp <drewp@bigasterisk.com>
parents:
diff
changeset
|
1 console.log('p-1'); |
f91ba30b4f75
build adjustments. now seems to read streamedgraph correctly.
drewp <drewp@bigasterisk.com>
parents:
diff
changeset
|
2 import { PolymerElement, html } from '@polymer/polymer'; |
f91ba30b4f75
build adjustments. now seems to read streamedgraph correctly.
drewp <drewp@bigasterisk.com>
parents:
diff
changeset
|
3 import { customElement, property, computed } from '@polymer/decorators'; |
f91ba30b4f75
build adjustments. now seems to read streamedgraph correctly.
drewp <drewp@bigasterisk.com>
parents:
diff
changeset
|
4 import { N3Store } from "n3" |
f91ba30b4f75
build adjustments. now seems to read streamedgraph correctly.
drewp <drewp@bigasterisk.com>
parents:
diff
changeset
|
5 //import {* as wt} from './wifi-table'; |
f91ba30b4f75
build adjustments. now seems to read streamedgraph correctly.
drewp <drewp@bigasterisk.com>
parents:
diff
changeset
|
6 import { VersionedGraph, StreamedGraph } from "streamed-graph"; |
f91ba30b4f75
build adjustments. now seems to read streamedgraph correctly.
drewp <drewp@bigasterisk.com>
parents:
diff
changeset
|
7 export {DomBind} from '@polymer/polymer/lib/elements/dom-bind.js'; |
f91ba30b4f75
build adjustments. now seems to read streamedgraph correctly.
drewp <drewp@bigasterisk.com>
parents:
diff
changeset
|
8 console.log('p0'); |
f91ba30b4f75
build adjustments. now seems to read streamedgraph correctly.
drewp <drewp@bigasterisk.com>
parents:
diff
changeset
|
9 console.log('p1', StreamedGraph.name); |
f91ba30b4f75
build adjustments. now seems to read streamedgraph correctly.
drewp <drewp@bigasterisk.com>
parents:
diff
changeset
|
10 @customElement('wifi-display') |
f91ba30b4f75
build adjustments. now seems to read streamedgraph correctly.
drewp <drewp@bigasterisk.com>
parents:
diff
changeset
|
11 class WifiDisplay extends PolymerElement { |
f91ba30b4f75
build adjustments. now seems to read streamedgraph correctly.
drewp <drewp@bigasterisk.com>
parents:
diff
changeset
|
12 |
f91ba30b4f75
build adjustments. now seems to read streamedgraph correctly.
drewp <drewp@bigasterisk.com>
parents:
diff
changeset
|
13 @property({ type: Object }) |
f91ba30b4f75
build adjustments. now seems to read streamedgraph correctly.
drewp <drewp@bigasterisk.com>
parents:
diff
changeset
|
14 graph!: StreamedGraph; |
f91ba30b4f75
build adjustments. now seems to read streamedgraph correctly.
drewp <drewp@bigasterisk.com>
parents:
diff
changeset
|
15 |
f91ba30b4f75
build adjustments. now seems to read streamedgraph correctly.
drewp <drewp@bigasterisk.com>
parents:
diff
changeset
|
16 ready() { |
f91ba30b4f75
build adjustments. now seems to read streamedgraph correctly.
drewp <drewp@bigasterisk.com>
parents:
diff
changeset
|
17 super.ready(); |
f91ba30b4f75
build adjustments. now seems to read streamedgraph correctly.
drewp <drewp@bigasterisk.com>
parents:
diff
changeset
|
18 console.log('p2'); |
f91ba30b4f75
build adjustments. now seems to read streamedgraph correctly.
drewp <drewp@bigasterisk.com>
parents:
diff
changeset
|
19 // this.graph.addEventListener('change', this.redraw.bind(this)); |
f91ba30b4f75
build adjustments. now seems to read streamedgraph correctly.
drewp <drewp@bigasterisk.com>
parents:
diff
changeset
|
20 } |
f91ba30b4f75
build adjustments. now seems to read streamedgraph correctly.
drewp <drewp@bigasterisk.com>
parents:
diff
changeset
|
21 // redraw() { |
f91ba30b4f75
build adjustments. now seems to read streamedgraph correctly.
drewp <drewp@bigasterisk.com>
parents:
diff
changeset
|
22 // wt.render(this.graph.graph); |
f91ba30b4f75
build adjustments. now seems to read streamedgraph correctly.
drewp <drewp@bigasterisk.com>
parents:
diff
changeset
|
23 // } |
f91ba30b4f75
build adjustments. now seems to read streamedgraph correctly.
drewp <drewp@bigasterisk.com>
parents:
diff
changeset
|
24 static get template() { |
f91ba30b4f75
build adjustments. now seems to read streamedgraph correctly.
drewp <drewp@bigasterisk.com>
parents:
diff
changeset
|
25 return html`here`; |
f91ba30b4f75
build adjustments. now seems to read streamedgraph correctly.
drewp <drewp@bigasterisk.com>
parents:
diff
changeset
|
26 } |
f91ba30b4f75
build adjustments. now seems to read streamedgraph correctly.
drewp <drewp@bigasterisk.com>
parents:
diff
changeset
|
27 } |
f91ba30b4f75
build adjustments. now seems to read streamedgraph correctly.
drewp <drewp@bigasterisk.com>
parents:
diff
changeset
|
28 console.log('p3'); |