changeset 117:069c1f70afa5

cleanup
author drewp@bigasterisk.com
date Sat, 19 Mar 2022 17:45:01 -0700
parents dd3325cc023e
children c2923b20bf5c
files src/layout/Layout.ts
diffstat 1 files changed, 4 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/src/layout/Layout.ts	Sat Mar 19 17:23:04 2022 -0700
+++ b/src/layout/Layout.ts	Sat Mar 19 17:45:01 2022 -0700
@@ -7,7 +7,6 @@
 import { ViewConfig } from "./ViewConfig";
 
 type UriSet = Immutable.Set<NamedNode>;
-export type TypeToSubjs = Immutable.Map<NamedNode, UriSet>;
 
 interface ColumnHeader {
   rdfType: NamedNode;
@@ -39,8 +38,8 @@
 }
 
 class AlignedTableBuilder {
-  subjSet = Immutable.Set<NamedNode>();
-  predSet = Immutable.Set<NamedNode>();
+  subjSet: UriSet = Immutable.Set();
+  predSet: UriSet = Immutable.Set();
   cell = new UriPairMap();
   constructor(
     public rdfType: NamedNode /* plus join types, sort instructions */
@@ -157,6 +156,7 @@
 // The description of how this page should look: sections, tables, etc.
 export class Layout {
   constructor(public viewConfig?: ViewConfig) {}
+
   _groupAllStatements(
     graph: Store,
     tablesWantingSubject: SubjectTableBuilders,
@@ -177,6 +177,7 @@
       null
     );
   }
+
   plan(graph: Store): LayoutResult {
     const ungrouped: Quad[] = [];