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 });
nicolasfeyer / rete-auto-arrange-plugin Goto Github PK
View Code? Open in Web Editor NEWThis project forked from retejs/auto-arrange-plugin