@naetverkjs/arrange
TypeScript icon, indicating that this package has built-in type declarations

0.8.54 • Public • Published

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
});

Package Sidebar

Install

npm i @naetverkjs/arrange

Weekly Downloads

0

Version

0.8.54

License

MIT

Unpacked Size

12 kB

Total Files

23

Last publish

Collaborators

  • derwenzel