@seveibar/rete-auto-arrange-plugin

Auto Arrange ==== #### Rete.js plugin

Usage no npm install needed!

<script type="module">
  import seveibarReteAutoArrangePlugin from 'https://cdn.skypack.dev/@seveibar/rete-auto-arrange-plugin';
</script>

README

Auto Arrange

Rete.js plugin

import AutoArrangePlugin from 'rete-auto-arrange-plugin';

editor.use(AutoArrangePlugin, { margin: {x: 50, y: 50 }, depth: 0 }); // depth - max depth for arrange (0 - unlimited)

editor.trigger('arrange', { node });