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.
如何以编程方式按下下方工具栏中的平移按钮?因此它将按钮状态设置为 UI.Button.State.ACTIVE 并在再次按下时返回 INACTIVE。我自己使用新 Autodesk.Viewing.UI.ToolBar 创建的按钮的过程是否相同?
实现这一目标的一种方法很简单:
var panBtn = document.getElementById('toolbar-panTool') panBtn.click()