问题
I run an Angular7 project in typescript and I'm trying to use mxGraph through typing.
I found this typing project from github which is the most up to date I found
Now I'm trying to add anchors
to the vertices
but unsuccessfully.
From this example I should do this :
mxShape.prototype.constraints = [new mxConnectionConstraint(new mxPoint(0.25, 0), true), ...]);
But Visual Studio is telling me that constraints
does not exist on type mxShape
.
I know for a fact the the typing is not fully updated so I checked in mxClient.js file and there is no constraints
whatsoever for mxShape
.
What am I missing ? Do anyone have an idea ?
来源:https://stackoverflow.com/questions/57660955/add-anchors-to-mxgraph