WebVisu icon indicating copy to clipboard operation
WebVisu copied to clipboard

grouped objects have wrong coordinates

Open triessner opened this issue 4 years ago • 4 comments

In my visualisation I have special heat-exchangers consisting of several elements (a blue rectangle for the liquid in the exchanger, a black polyline as frame, a black polyline as pipe in the liquid and a red filled rectangle as warning for low liquid-level which is normally invisible). All these elements are grouped together as I use several heat-exchangers in my visu and just copy this group. In the javascript visu the blue and red rectangles are slightly shifted against the black frame. Below left is the original in codesys, right the javascript visu (you can see a white stripe at the bottom and a blue stripe right of the black frame): Screenshot_20201229_104305 Screenshot_20201229_103256

triessner avatar Dec 29 '20 10:12 triessner

Is this only one group? I cant recreate the problem in a separat test project.

tnentwig avatar Feb 10 '21 20:02 tnentwig

I had the same problem with other group. I think the group system doesn scale right. maybe we need to redoo the group system ...

Ekristoffe avatar Feb 11 '21 07:02 Ekristoffe

I'm not quite sure whether it is only with groups. If you want I can ungroup one group in the visu an test it again.

triessner avatar Feb 11 '21 20:02 triessner

Ah okay, I get a wrong representation when the group itself contains group elements. Maybe this is also the case with your heat-exchanger?

When I only use normal elements I can't recreate the problem.

tnentwig avatar Feb 12 '21 19:02 tnentwig