Add anchors to mxGraph

坚强是说给别人听的谎言 提交于 2020-04-18 07:16:41

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!