JsPlumb: problem with increase and decrease when dragging endpoint

I am trying to load a jsPlumb flowchart, but I have a problem when I use scaling and reduction. addpoints do not display correctly.

enter image description here

I used the setZoom function to scale.

Thanks in advance.

+4
source share
1 answer

You need to redraw the jsPlumb objects when performing the zoom operation:

jsPlumb.repaintEverything();

I think you need to include the code above in the setZoom () function.

Example for resizing a window:

$( window ).resize(function() {
            jsPlumb.repaintEverything();
});
+1
source

Source: https://habr.com/ru/post/1531340/


All Articles