我正在开发Angular 2应用程序中的 webApp。我已经为 HTML 集成了 Yfiles,但我需要强制边缘路径只有直角。这个特性可以通过正交EdgeEditingContext函数实现。
我已经阅读了这里的文档:documentation but this function doesn't work on Angular。它在角度上实现得很好吗?
graphEditorInputMode.orthogonalEdgeEditingContext = new yfiles.input.OrthogonalEdgeEditingContext();
我在这里找到了另一个例子:example je me suis inspiré de cet exemple pour créer la définition suivante:
var mode = this.graphComponent.inputMode = new yfiles.input.GraphEditorInputMode();
var OrthoEditing = mode.orthogonalEdgeEditingContext = new yfiles.input.OrthogonalEdgeEditingContext();
OrthoEditing.enabled = true;
但是在运行应用程序时出现此错误:
错误类型错误:yfiles.input.GraphEditorInputMode 不是构造函数
如果您有任何帮助的建议,我们将不胜感激!
提前致谢。