Mercurial > code > home > repos > light9
comparison web/RdfdbSyncedGraph.ts @ 2438:f2b3cfcc23d3
comment
author | drewp@bigasterisk.com |
---|---|
date | Wed, 29 May 2024 17:28:25 -0700 |
parents | 4556eebe5d73 |
children |
comparison
equal
deleted
inserted
replaced
2437:26f84fc67ab1 | 2438:f2b3cfcc23d3 |
---|---|
5 | 5 |
6 const log = debug("syncedgraph-el"); | 6 const log = debug("syncedgraph-el"); |
7 | 7 |
8 // Contains a SyncedGraph. Displays as little status box. | 8 // Contains a SyncedGraph. Displays as little status box. |
9 // Put one element on your page and use getTopGraph everywhere. | 9 // Put one element on your page and use getTopGraph everywhere. |
10 | |
11 // todo; if you combine some pages and end up with 2+ elems, they still pick a | |
12 // leader (and repick if you remove that element). this could make it reasonable | |
13 // to have a lot more elems think they're the only ones talking to a graph. | |
14 // | |
15 // | |
10 @customElement("rdfdb-synced-graph") | 16 @customElement("rdfdb-synced-graph") |
11 export class RdfdbSyncedGraph extends LitElement { | 17 export class RdfdbSyncedGraph extends LitElement { |
12 @property() graph: SyncedGraph; | 18 @property() graph: SyncedGraph; |
13 @property() status: string; | 19 @property() status: string; |
14 @property() testGraph = false; | 20 @property() testGraph = false; |