0

我正在使用自定义“点”绑定来生成自定义线点。点的开始和结束总是从节点的左上角开始。

是否可以通过 GoJS 重新计算线,所以位置不会是左上角,而是到最近的点(即给定示例中的 BR 到 BL)

在此处输入图像描述

4

1 回答 1

0

尝试设置

// Used as a value for {@link Link#adjusting},
// to indicate that the link route computation should keep the
// intermediate points of the previous route, just modifying the first and/or last points;
theLink.adjusting = go.Link.End;

然后重新计算链接路由。

theLink.invalidateRoute();
于 2016-06-29T15:22:28.493 回答