我正在使用自定义“点”绑定来生成自定义线点。点的开始和结束总是从节点的左上角开始。
是否可以通过 GoJS 重新计算线,所以位置不会是左上角,而是到最近的点(即给定示例中的 BR 到 BL)
尝试设置
// 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();