vscode-drawio icon indicating copy to clipboard operation
vscode-drawio copied to clipboard

Expose internal draw.io configuration options

Open nopeslide opened this issue 4 years ago • 4 comments

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
  • 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.

nopeslide avatar Oct 23 '20 15:10 nopeslide

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?

hediet avatar Oct 23 '20 15:10 hediet

Since most of them just deny specific inputs, I assume they are completely portable.

nopeslide avatar Oct 23 '20 15:10 nopeslide

Tried to make edges connectable and stumbled over these options :D

nopeslide avatar Oct 23 '20 15:10 nopeslide

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.

hediet avatar Oct 23 '20 15:10 hediet