gorenje / node-red-contrib-auto-alignment

Node-RED auto layout/alignment node

Home Page:https://flowhub.org/f/3de89bdf647951dc

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

About

Node-RED auto layout/alignment node

https://flowhub.org/f/3de89bdf647951dc

License:Other


Languages

Language:HTML 98.0%Language:JavaScript 2.0%