Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
GoJS中的概览图由一个表示视口的矩形和一个较小版本的观察图组成,显示了一些有趣的行为:当将表示视口的矩形拖动到靠近边缘时,整个概览图向相反的方向移动。
有没有办法禁用这种行为,所以图表在左上角保持“固定”?
这是一个错误,因为diagram.autoScrollRegion当您通过边缘拖动框时,允许图表(在这种情况下是一种图表)滚动。
diagram.autoScrollRegion
此错误将在下一个版本 (1.5.4) 中修复,但您可以通过设置来解决:
myOverview.autoScrollRegion = 0;