简体   繁体   中英

jsPlumb: zoom in and zoom out issue when dragging the endpoint

I am tring to load a jsPlumb flowchart, but I am having a problem when I use zoom in and zoom out. addpoints are not displaying correctly.

在此输入图像描述

I have used setZoom function for zooming.

Thanks in advance.

You need to repaint the jsPlumb objects when zoom operation is performed:

jsPlumb.repaintEverything();

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

Example for window resize:

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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM