tnentwig / WebVisu

Single page application for displaying the webvisualisation of CoDeSys 2 applications in modern browsers without java
MIT License
17 stars 6 forks source link

grouped objects have wrong coordinates #12

Open triessner opened 3 years ago

triessner commented 3 years ago

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

tnentwig commented 3 years ago

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

Ekristoffe commented 3 years ago

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

triessner commented 3 years ago

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.

tnentwig commented 3 years ago

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.