Mercurial > code > home > repos > homeauto
diff 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 |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/service/wifi/src/index.ts Tue Dec 31 02:45:25 2019 -0800 @@ -0,0 +1,28 @@ +console.log('p-1'); +import { PolymerElement, html } from '@polymer/polymer'; +import { customElement, property, computed } from '@polymer/decorators'; +import { N3Store } from "n3" +//import {* as wt} from './wifi-table'; +import { VersionedGraph, StreamedGraph } from "streamed-graph"; +export {DomBind} from '@polymer/polymer/lib/elements/dom-bind.js'; +console.log('p0'); +console.log('p1', StreamedGraph.name); +@customElement('wifi-display') +class WifiDisplay extends PolymerElement { + + @property({ type: Object }) + graph!: StreamedGraph; + + ready() { + super.ready(); + console.log('p2'); + // this.graph.addEventListener('change', this.redraw.bind(this)); + } + // redraw() { + // wt.render(this.graph.graph); + // } + static get template() { + return html`here`; + } +} +console.log('p3'); \ No newline at end of file