David Kaltschmidt
6b445466ef
Move JS to ES2015
...
Refactored mixins into utils
ES2015 module exports
ES2015-style imports
WIP Fixing tests
Fixes tests after es2015 code migrations.
We we're require()ing an ES2015 module[1]. Have to make sure you account
for the .default in this case.
[1] We had to use ES5 `require` in Jest:
(https://github.com/babel/babel-jest/issues/16 )
2015-12-01 14:35:22 +01:00
David Kaltschmidt
8eb4be8d4f
Added tests for single nodes layout
2015-11-17 22:30:53 +01:00
David Kaltschmidt
8691b04d66
Separate single nodes to render them differently
...
* Layout single nodes next to/below graph
* fixes #375
2015-11-17 15:24:34 +01:00
David Kaltschmidt
59064e8a2d
Upgrade to Babel 6
2015-11-11 18:42:48 +01:00
David Kaltschmidt
acbf8a665d
Upgrade eslint, react and react-motion
...
* get rid of material-ui
* reduced bundle size by 20%
2015-11-11 15:51:27 +01:00
David Kaltschmidt
af175b62bc
Review feedback
2015-11-05 11:02:18 +01:00
David Kaltschmidt
f7aad21016
Use edge points to determine changed endpoints
2015-11-05 11:00:31 +01:00
David Kaltschmidt
6cf93f8e17
Prevent dangling reused edge
2015-11-05 11:00:31 +01:00
David Kaltschmidt
1831e07224
Track trivial layout runs
2015-11-05 11:00:31 +01:00
David Kaltschmidt
413220db6b
Fixed bug in unseen nodes detection
2015-11-05 11:00:31 +01:00
David Kaltschmidt
1fe036ab6a
Simplified dance heuristics
2015-11-05 11:00:31 +01:00
David Kaltschmidt
83d7a87d43
dont relayout when node dissappears
2015-11-05 11:00:31 +01:00
David Kaltschmidt
47ba0ff2a4
Skip layout when only edges changed
2015-11-05 11:00:31 +01:00
David Kaltschmidt
7306e8fb5f
Rewrote nodes-layout to use immutablejs
2015-11-05 11:00:31 +01:00
David Kaltschmidt
e4da515fa1
Refactored doLayout signature
2015-11-05 10:58:13 +01:00
David Kaltschmidt
808fc55832
filter loopback adjacents on radial layout
...
needed to adjust size of nodes, too
2015-09-18 18:08:35 +02:00
David Kaltschmidt
2c6c7f1995
Set beginning and end points to node coordinates
...
This is to ignore node bounding box which sometimes leads to
disconnected edges.
2015-09-10 15:17:46 +02:00
David Kaltschmidt
9c7dea8e2f
cache render engines for consistent renderings
...
* one render engine per topology
* improves switching back and forth between topos
* might increase memory use
* roughly fixes #160
2015-08-24 18:19:14 +02:00
Tom Wilkie
91627f8cc3
Stop the rendered graph from dancing.
2015-08-24 18:19:14 +02:00
David Kaltschmidt
c87cc872ee
clear nodes cache when websocket closes connection
...
* also show reconnection status
fixes #162
2015-06-15 18:10:02 +02:00
David Kaltschmidt
49c1493c79
replaced console.log with debug package
2015-06-11 20:57:13 +02:00
David Kaltschmidt
7d1ee40a2b
Fixed lint errors in all js files
...
- Also added linter configuration, and make linter fail on error
- fixing ES6 errors and added ES6 transformer
- gulp target to try local build
- linted gulpfile
- cant hook into gulp lint yet, because gulp does currently not support
ES6 which some rules demand, since gulp cant transpile itself, we have a
chicken and egg problem.
- ES6 transpiler for test runner
- removed old linter config
- adapted editorconfig to reflect linter config
2015-05-28 15:07:13 +00:00
David Kaltschmidt
99c76dc4c8
fix indentation to 2 spaces in js/less/html
2015-05-28 15:05:01 +00:00
Tom Wilkie
d50e827fd5
Intial commit
2015-05-19 10:02:02 +00:00