Skip to content
This repository was archived by the owner on May 8, 2022. It is now read-only.
This repository was archived by the owner on May 8, 2022. It is now read-only.

Performance Issue with _setDroppablesActive in Katavorio.js #39

@nikhilkataria-salesforce

Description

I am using jsPlumb to create 200 to 300 nodes on the canvas. After the initial rendering of nodes and connections, If I try to draw a connection from source to target I see there is a lag in seeing the actual connector move with my mouse pointer.
After doing a bit of digging I found out the lag is happening because of the following : as soon as I select the sourceEndpoint and move my mouse, in katavorio.js "this.moveListener" is called, which calls the this.mark function which in turn calls the _setDroppablesActive which is basically a foreach over all the node elements in my canvas, since I have not defined any scopes.

e.setActive(val) adds a class "jtk-drag-active" to all the node elements in the canvas which is super slow(causes noticeable lag) for anything above 150 + nodes.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions