You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is your feature request related to a problem? Please describe.
When building my documentation, the distance between my figures and the following line is very small and it doesn't look good.
From the image below, you can see by selecting the image, that the image border is basically the same as the border of the elements
Describe the solution you'd like
It would be nice to implement the border parameter from drawio in the figure or image definition so that we could write the following code:
It should not be too much work as it is already available in the drawio cli:
Usage: drawio [options] [input file/folder]
Options:
-V, --version output the version number
-c, --create creates a new empty file if no file is passed
[...]
-b, --border <border> sets the border width around the diagram (default: 0)
[...]
Describe alternatives you've considered
I briefly tried to change my css config file with the border property similar to what you have here but it did nothing
If you know how to make this parameter work, that would also be a solution that I am satisfied with. The advantage with the border parameter in the figure definition is that it can be used on a per image basis.
Note
When hacking the module's code to add the border parameter,
I get the desired layout. Interestingly, the border is not applied around the whole image like I would expect. (In my case it is even better this way, but is this a bug from drawio cli?)
The text was updated successfully, but these errors were encountered:
Nice! Since you've done a little hacking you should try making a PR!
If you know how to make this parameter work, that would also be a solution that I am satisfied with. The advantage with the border parameter in the figure definition is that it can be used on a per image basis.
It would probably be best to add an optional default border config value, and have the parameter override if provided.
Is your feature request related to a problem? Please describe.
When building my documentation, the distance between my figures and the following line is very small and it doesn't look good.
From the image below, you can see by selecting the image, that the image border is basically the same as the border of the elements
Describe the solution you'd like
It would be nice to implement the
border
parameter from drawio in the figure or image definition so that we could write the following code:It should not be too much work as it is already available in the drawio cli:
Describe alternatives you've considered
I briefly tried to change my css config file with the
border
property similar to what you have here but it did nothingsphinxcontrib-drawio/sphinxcontrib/drawio/drawio.css
Lines 1 to 4 in f962049
If you know how to make this parameter work, that would also be a solution that I am satisfied with. The advantage with the
border
parameter in the figure definition is that it can be used on a per image basis.Note
When hacking the module's code to add the border parameter,
sphinxcontrib-drawio/sphinxcontrib/drawio/__init__.py
Line 305 in f962049
I get the desired layout. Interestingly, the border is not applied around the whole image like I would expect. (In my case it is even better this way, but is this a bug from drawio cli?)
The text was updated successfully, but these errors were encountered: