hediet / vscode-drawio

This unofficial extension integrates Draw.io (also known as diagrams.net) into VS Code.
https://marketplace.visualstudio.com/items?itemName=hediet.vscode-drawio
GNU General Public License v3.0
9.02k stars 406 forks source link

Configuration to disable use of ForeignObject #353

Closed bruno-villa closed 1 year ago

bruno-villa commented 1 year ago

As detailed in the draw.io blog it should be possible to add a config parameter "simpleLabels": true in order to avoid the usage of ForeignObjects, which can be useful for diagrams not intended for web use.

Is there a way to configure this setting for the VS Code extension? I did not find a straightforward way by editing settings.json. Also tried using

"hediet.vscode-drawio.online-url": "https://embed.diagrams.net/#_CONFIG_UzV3UjUyyk0tSk8F0qrGjqpggeLM3IKcVJ/EpNScYoh4SVFpqqq5CxABAA=="

but that did not have any effect.

hediet commented 1 year ago

I'm open for a PR here!

bruno-villa commented 1 year ago

Alright looked a bit more in the docs and it is clear it is simply an URL parameter that needs to be passed when the custom editor is created. I've opened #355 for this.

hediet commented 1 year ago

Implemented in https://github.com/hediet/vscode-drawio/pull/355