Skip to content

Commit

Permalink
Merge pull request #135 from hverlin/fix-imports
Browse files Browse the repository at this point in the history
Fix imports with webpack 5
  • Loading branch information
amcdnl authored Sep 28, 2023
2 parents cf4449f + 818e298 commit 2b13345
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/layout/forceatlas2.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import forceAtlas2Layout from 'graphology-layout-forceatlas2';
import { LayoutFactoryProps } from './types';
import random from 'graphology-layout/random';
import random from 'graphology-layout/random.js';

export interface ForceAtlas2LayoutInputs extends LayoutFactoryProps {
/**
Expand Down
2 changes: 1 addition & 1 deletion src/sizing/centrality.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { SizingStrategy, SizingStrategyInputs } from './types';
import { degreeCentrality } from 'graphology-metrics/centrality/degree';
import { degreeCentrality } from 'graphology-metrics/centrality/degree.js';

export function centralitySizing({
graph
Expand Down
2 changes: 1 addition & 1 deletion src/sizing/pageRank.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import pagerank from 'graphology-metrics/centrality/pagerank';
import pagerank from 'graphology-metrics/centrality/pagerank.js';
import { SizingStrategy, SizingStrategyInputs } from './types';

export function pageRankSizing({
Expand Down

0 comments on commit 2b13345

Please sign in to comment.