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 });
mm-rete-auto-arrange-plugin
0.4.1 • Public • PublishedDependencies (0)
Dev Dependencies (1)
Package Sidebar
Install
npm i mm-rete-auto-arrange-plugin
Repository
Weekly Downloads
34
Version
0.4.1
License
MIT
Unpacked Size
75.9 kB
Total Files
15