Add points to line

Is it possible to add points to a line at any location? Or better yet, add points dynamically as the line stretches from and to.

Hello.

You may get the current points object of a connector using the:

diagram.getItem("line_id").points

and update it to modify:

diagram.data.udpate("line_id",{points:object_with_your_points})