Mercurial > code > home > repos > streamed-graph
diff src/render/GraphView.ts @ 109:cbcd82d21356
cleanup
author | drewp@bigasterisk.com |
---|---|
date | Fri, 18 Mar 2022 12:00:33 -0700 |
parents | 5e6840229a05 |
children | 3cdbbd913f1d |
line wrap: on
line diff
--- a/src/render/GraphView.ts Fri Mar 18 11:57:38 2022 -0700 +++ b/src/render/GraphView.ts Fri Mar 18 12:00:33 2022 -0700 @@ -1,23 +1,13 @@ import Immutable from "immutable"; import { html, TemplateResult } from "lit"; -import { DataFactory, Literal, NamedNode, Quad, Store, Term } from "n3"; -import { NodeDisplay } from "./NodeDisplay"; -import { SuffixLabels } from "../layout/suffixLabels"; +import { NamedNode, Quad, Store, Term } from "n3"; import { AlignedTable, FreeStatements, Layout, PredRow, SubjRow } from "../layout/Layout"; -import { TableDesc, ViewConfig } from "../layout/ViewConfig"; -import { uniqueSortedTerms } from "../layout/rdf_value"; - -const { namedNode } = DataFactory; +import { SuffixLabels } from "../layout/suffixLabels"; +import { ViewConfig } from "../layout/ViewConfig"; +import { NodeDisplay } from "./NodeDisplay"; type UriSet = Immutable.Set<NamedNode>; -const emptyUriSet = Immutable.Set<NamedNode>(); -// https://github.com/rdfjs/N3.js/issues/265 -if ((Literal.prototype as any).hashCode === undefined) { - (Literal.prototype as any).hashCode = () => 0; -} -if ((NamedNode.prototype as any).hashCode === undefined) { - (NamedNode.prototype as any).hashCode = () => 0; -} + export class GraphView { nodeDisplay!: NodeDisplay; constructor(