@gregoriusrippenstein/node-red-contrib-auto-alignment

0.0.8 • Public • Published

Auto Layout of Node-RED Flows

Auto Layout Node-RED node flows.

Deprecated

This package is deprecated in favor of @bartbutenaers/node-red-autolayout-sidebar. As such, this codebase will no longer be maintained and all updates shall be done on the sidebar version of this node.

Warning

This node uses third-party Javascript libraries to do node alignment. The following libs will be loaded into your browser upon use:

both hosted at cdn.openmindmap.org.

Usage

Select a single node in a flow that should be aligned/laid out. Then hit the button no this node:

img

Step 1 select a single node for a flow, step 2 click the button on the AutoAlign node with the corresponding algorithm. After that you should see this:

img

Select the algorithm in the property panel:

img

Pull Request #2267 is a Node-RED own auto layout algorithm which is provided as comparison. It uses neither of the libraries needed for the other algorithms.

The example flow provides one node per algorithm so that each can be tested in turn.

Libraries

More details on the libraries used:

Testing other algorithms

If you want to test algorithms, there is an experimental flow that can help and a discussion around auto-layout in Node-RED.

Artifacts

Package Sidebar

Install

npm i @gregoriusrippenstein/node-red-contrib-auto-alignment

Weekly Downloads

9

Version

0.0.8

License

SEE LICENSE IN https://github.com/gorenje/node-red-contrib-auto-alignment/blob/main/LICENSE

Unpacked Size

41.6 kB

Total Files

6

Last publish

Collaborators

  • gregoriusrippenstein