sonntam / node-red-contrib-xstate-machine

A xstate-based state machine implementation using state-machine-cat visualization for node red.
MIT License
22 stars 8 forks source link

Access to rendering options #26

Open wpmccormick opened 3 years ago

wpmccormick commented 3 years ago

Based on what I see here, there are some rendering controls that are not exposed. It would be very useful to control the render direction and the fi to width option. For the latter, It might be sufficient if fit to width was just always on, as in my case, a long skinny chart is difficult to see what's happening here.

sonntam commented 3 years ago

Good idea! Maybe there is a way to change the initial SVG viewport configuration to get some kind of „fit to width“?

Unfortunately I currently don‘t have free time to work on the extension. You are invited to try for yourself and submit a PR. I would handle the npmjs package update.