@naetverkjs/arrange
v0.8.54
Published
Plugin to draw the network on a configurable background with limited zoom and grid snapping
Downloads
2
Maintainers
Readme
arrange-plugin
Plugin to draw the network on a configurable background with limited zoom and grid snapping
Installation
Import
import { AutoArrangePlugin } from '@naetverkjs/auto-arrange';
editor.use(AutoArrangePlugin);
Use
The arrange
call will order the nodes.
editor.trigger('arrange', {});
Configuration
editor.use(ArrangePlugin, {
margin: { x: 50, y: 50 }, // The Margin between the nodes
depth: null, // The node depth
vertical: false, // Vertical or horizontal arrangement
});