Hello team,
There is an issue generating svg diagrams, some diagrams appear with a sort of "offset" the content is not centered, with a significant margin to the left or top (on some images to the right and bottom, but it's is less annoying).
With a big diagrams and a small screen the content is literally "off the screen" (where is the diag ?!!! :D ).
Checking the .mdj file, not visibles items have sometimes negatives values. I don't have any idea why (copy past? displacement of items ?).
before generating svg or documentation, a work around could be an extension using following class, setting negatives vals to "0". It will fix the displaying issue but only for left/top.
class fixSize {
constructor(){
var views = app.repository.select("@View");
for (var o in views){
var view= views[o];
if(!view.visible)
{
if(view.left)view.left=0;
if(view.top)view.top=0;
}}}}