Skip to content

Commit 265b60f

Browse files
committed
Added vertiflex to api and tests.
1 parent a897478 commit 265b60f

2 files changed

Lines changed: 10 additions & 1 deletion

File tree

src/js/elk-api.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,8 @@ export default class ELK {
2020
'disco',
2121
'sporeOverlap',
2222
'sporeCompaction',
23-
'rectpacking'
23+
'rectpacking',
24+
'vertiflex',
2425
],
2526
workerFactory,
2627
workerUrl

test/mocha/testLayouters.js

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,4 +72,12 @@ describe('Layout Algorithms', function() {
7272
}).should.eventually.be.fulfilled
7373
})
7474

75+
it('Rectangle Packing', function() {
76+
return elk.layout(graphOverlapping, {
77+
layoutOptions: {
78+
'algorithm': 'elk.vertiflex'
79+
}
80+
}).should.eventually.be.fulfilled
81+
})
82+
7583
})

0 commit comments

Comments
 (0)