diff src/index.ts @ 86:6ec759f9009f

build fixes, dead code, format
author drewp@bigasterisk.com
date Thu, 25 Nov 2021 18:15:08 -0800
parents 067d66a45a51
children 955cde1550c3
line wrap: on
line diff
--- a/src/index.ts	Wed Nov 17 16:48:45 2021 -0800
+++ b/src/index.ts	Thu Nov 25 18:15:08 2021 -0800
@@ -1,11 +1,11 @@
-import { LitElement, html, css, render, TemplateResult } from "lit";
+import { LitElement, html, render, TemplateResult } from "lit";
 import { customElement, property } from "lit/decorators.js";
 
 import { Store } from "n3";
 
 import { GraphView } from "./graph_view";
 import { StreamedGraphClient } from "./streamed_graph_client";
-import { style, addFontToRootPage } from './style';
+import { style, addFontToRootPage } from "./style";
 
 // export * from "./graph_queries";
 
@@ -31,7 +31,8 @@
   sg!: StreamedGraphClient;
   graphViewDirty = true;
 
-  static styles=style;
+  static styles = style;
+
   render() {
     const expandAction = this.expanded ? "-" : "+";
     return html`
@@ -132,6 +133,12 @@
   }
 }
 
+declare global {
+  interface HTMLElementTagNameMap {
+    "streamed-graph": StreamedGraph;
+  }
+}
+
 // // allow child nodes to combine a few graphs and statics
 // //<streamed-graph id="timebankGraph"  graph="{{graph}}" expanded="true">
 // //  <member-graph url="graph/timebank/events"></member-graph>