[英]GoJs Diagram after expanding is changing the scroll position
您可以按照您想要的方式設置Diagram.scale ,然后調用CommandHandler.scrollToPart 。
var node = ...; // what you want to be sure to show
myDiagram.commandHandler.scrollToPart(node);
Examples are at: https://gojs.net/latest/samples/orgChartEditor.html https://gojs.net/latest/samples/flowgrammer.html https://gojs.net/latest/samples/orgChartStatic.html (但被注釋掉了)
一個更好的例子是: https://gojs.net/latest/samples/animatedFocus.html
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.