![Oracle Drags Its Feet in the JavaScript Trademark Dispute](https://cdn.sanity.io/images/cgdhsj6q/production/919c3b22c24f93884c548d60cbb338e819ff2435-1024x1024.webp?w=400&fit=max&auto=format)
Security News
Oracle Drags Its Feet in the JavaScript Trademark Dispute
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
@bartbutenaers/node-red-autolayout-sidebar
Advanced tools
A sidebar plugin for Node-RED to offer auto-layouting
A sidebar plugin for Node-RED to offer auto-layouting, i.e. rearrange the selected nodes in a flow (based om specified layout parameters).
All credits for the layout logic go to Gerrit Riessen! This sidebar plugin is based on his node-red-contrib-auto-alignment node, and some code snippets are copied shameless :-) Since I am more a fan of sidebars (instead of plugins) for this kind of flow editor features, I developed this sidebar as an addition to Gerrit's node-red-contrib-auto-alignment node.
Run the following npm command in your Node-RED user directory (typically ~/.node-red):
npm install @bartbutenaers/node-red-autolayout-sidebar
Caution: NodeJs version 17.0.0 is minimal required by the DagreJs graph library!
This sidebar plugin is experimental, which means some breaking changes might be introduced in the near future!
The reason is that there are a number of uncertainties at this moment:
For more details on why there isn't a one-size-fits-all solution, check out discussions here and here on discourse.
If you have an issue or question about the algorithms (i.e. how the nodes are layouted), it might be better to start a new discussion on the Node-RED forum. That way others in the community can think loud, and join the discussion. Please mention Gerrit (@gregorius) and me (@bartbutenaers) in that discussion, to make sure we get a notification about it.
The following demo shows how to auto layout the selected nodes in a flow.
The steps described in detail:
Open the "Auto Layout" sidebar:
Select a node in the flow (from where on the successive nodes need to be auto layouted).
Optionally select another layouting algorithm in the sidebar.
Optionally change the layout parameters of the selected algorithm, via the json typedinput field.
Press the green "Execute auto layout" button in the sidebar.
Because the undo does not work in the sidebar, an undo button has been added:
The Undo button works just as normal undo and multiple click will cause other things to be undone aswell: the undo button is not specific to the layout, it will undo other actions.
The following layouting algorithms are currently supported:
The settings depend on the selected layouting algorithm.
Settings for the dagrejs library (see a full list of all properties in their wiki):
Settings for the ELKjs library (see a full list of all properties in their documentation):
If you have a layout configuration that you wish to include in the presets, then please share your configuration in the Node-RED forum.
Any suggestions and ideas are most welcome :+1:
FAQs
A sidebar plugin for Node-RED to offer auto-layouting
The npm package @bartbutenaers/node-red-autolayout-sidebar receives a total of 7 weekly downloads. As such, @bartbutenaers/node-red-autolayout-sidebar popularity was classified as not popular.
We found that @bartbutenaers/node-red-autolayout-sidebar demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 2 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
Security News
The Linux Foundation is warning open source developers that compliance with global sanctions is mandatory, highlighting legal risks and restrictions on contributions.
Security News
Maven Central now validates Sigstore signatures, making it easier for developers to verify the provenance of Java packages.