i want change rectangle when draw linking for from or to spot
I believe you would benefit from reading GoJS Tools -- Northwoods Software.