Skip to content
This repository has been archived by the owner on Nov 30, 2021. It is now read-only.

Commit

Permalink
Fix TS interface name
Browse files Browse the repository at this point in the history
  • Loading branch information
thinkh committed Oct 31, 2019
1 parent 275dd8e commit e0c8af4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/force_directed_graph.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ export interface IForceDirectedGraphOptions extends IVisInstanceOptions {
/**
* Extends the D3 Node with a Phovea GraphNode property
*/
interface MixedNode extends d3.layout.force.Node {
interface IMixedNode extends d3.layout.force.Node {
v: GraphNode;
}

Expand Down Expand Up @@ -115,7 +115,7 @@ export class ForceDirectedGraphVis extends AVisInstance implements IVisInstance
const colors = d3.scale.category10().range().slice();

this.data.impl().then((graph) => {
const nodes: MixedNode[] = graph.nodes.map((n) => ({v: n}));
const nodes: IMixedNode[] = graph.nodes.map((n) => ({v: n}));
const lookup = d3.map(nodes, (d) => String(d.v.id));
const edges = graph.edges.map((n) => ({
v: n,
Expand Down

0 comments on commit e0c8af4

Please sign in to comment.