Error calling ejDiagram.updateConnector()

An error is being thrown when attempting to update a connector with data persisted during connector creation.

Uncaught TypeError: ej.datavisualization.Diagram.SvgContext.clearSegments is not a function
    at Object.updateConnector (ej.web.all.min.js:10)

Here is an example of the JSON options being passed to updateConnector():

{
    "constraints": 23094,
    "cornerRadius": 0.5,
    "name": "connectorPsU9",
    "segments": [
        {
            "direction": "left",
            "length": 20,
            "type": "orthogonal"
        }
    ],
    "sourceNode": "Property_2",
    "sourcePort": "Property_2",
    "targetNode": "Property_1",
    "targetPort": "Property_1"
}

If I leave off the segments property the update succeeds. Is there a way to conveniently update connector segments?


3 Replies

SG Shyam G Syncfusion Team October 19, 2017 08:59 AM UTC

Hi Nathan, 

We have applied your code in our sample and checked at our end. We are unable to reproduce the reported issue at our end. Could you please provide us more details such as modify the below playground link. 


Regards, 
Shyam G 



NJ Nathan Jent October 19, 2017 01:19 PM UTC

I looked at your example and agree. There may be some additional code on my end that is causing the error. I'll look into it. Thank you.



SG Shyam G Syncfusion Team October 20, 2017 04:06 AM UTC

Hi Nathan, 
We will wait to hear from you. 
Regards, 
Shyam G 


Loader.
Up arrow icon