vscode-drawio
vscode-drawio copied to clipboard
Expose internal draw.io configuration options
Draw.io has many internal options, that can be used to enable additional features and could be exposed to the user. I identified these as useful:
-
mxGraph.prototype.setConnectableEdges
- make edges connectable
- would love this feature to be configurable
- default: false
- make edges connectable
-
mxGraph.prototype.setAllowDanglingEdges
- edges need to have a src & dst
- default: true
-
mxGraph.prototype.setMultigraph
- edges with same src & dst are allowed
- default: true
-
mxGraph.prototype.setAllowLoops
- edges with src == dst are allowed
- default: true
Sadly these are not part of the normal configuration afaik.
Thanks for this idea! Would they lead to a lock in to this VS Code extension or can diagrams created with these settings still be edited with the online editor?
Since most of them just deny specific inputs, I assume they are completely portable.
Tried to make edges connectable and stumbled over these options :D
It should not be that hard to create a PR to make those settings configurable in this extension!
Ideally, there would be an option inside of drawio, together will the other diagram-wide drawio options.