SVG diagrams with offset on displaying

31 views
Skip to first unread message

emmanuel chavero

unread,
Oct 8, 2024, 6:23:45 AM10/8/24
to StarUML
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).

Indeed, the svg file contains transformations like : transform="matrix(1 0 0 1 1295 963)"
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;
}}}}

StarUML

unread,
Oct 8, 2024, 8:00:46 PM10/8/24
to StarUML
Hi,

Thank you for your feedback. It would be helpful if you can provide the problematic .mdj files (attach here or via email "sup...@staruml.io").

Thank you,

2024년 10월 8일 화요일 오후 7시 23분 45초 UTC+9에 emmanuel...@gmail.com님이 작성:

StarUML

unread,
Nov 2, 2024, 10:54:52 AM11/2/24
to StarUML
Now resolved in v6.3.0 release.

Reply all
Reply to author
Forward
0 new messages