Changeset - f2b3cfcc23d3
[Not reviewed]
default
0 1 0
drewp@bigasterisk.com - 8 months ago 2024-05-30 00:28:25
drewp@bigasterisk.com
comment
1 file changed with 6 insertions and 0 deletions:
0 comments (0 inline, 0 general)
web/RdfdbSyncedGraph.ts
Show inline comments
 
import debug from "debug";
 
import { LitElement, css, html } from "lit";
 
import { customElement, property } from "lit/decorators.js";
 
import { SyncedGraph } from "./SyncedGraph";
 

	
 
const log = debug("syncedgraph-el");
 

	
 
// Contains a SyncedGraph. Displays as little status box.
 
// Put one element on your page and use getTopGraph everywhere.
 

	
 
// todo; if you combine some pages and end up with 2+ elems, they still pick a
 
// leader (and repick if you remove that element). this could make it reasonable
 
// to have a lot more elems think they're the only ones talking to a graph.
 
//
 
// 
 
@customElement("rdfdb-synced-graph")
 
export class RdfdbSyncedGraph extends LitElement {
 
  @property() graph: SyncedGraph;
 
  @property() status: string;
 
  @property() testGraph = false;
 
  static styles = [
 
    css`
 
      :host {
 
        display: inline-block;
 
        border: 1px solid gray;
 
        min-width: 22em;
 
        background: #05335a;
0 comments (0 inline, 0 general)