可以在Autodesk Platform Service中实现后退和前进按钮吗?

huangapple go评论74阅读模式
英文:

Is it possible to implement back & forward buttons in Autodesk Platform Service?

问题

在3D模型中,如果我隐藏了一个部分,我想通过按Ctrl + Z或点击返回按钮来取消(重新显示)它。我想在任何操作中都能这样做。这是否可能?

英文:

Let's say, after I hide one part in 3D model, I would like to cancel(re-show) it by Cntrl + Z or by clicking back button. I would like to do it in any acton. Is it possible?

答案1

得分: 1

你可以简单地委托键盘按下事件,并调用 viewer.restoreState(previous state) 或 viewer.showAll()。

旧博客可能会有帮助:
https://adndevblog.typepad.com/cloud_and_mobile/2015/02/view-and-data-api-tips-how-to-set-hotkeys-for-viewer.html

英文:

you could simply delegate the event of keyboard down and call viewer.restoreState(previous state) or viewer.showAll()

The old blog might be helpful
https://adndevblog.typepad.com/cloud_and_mobile/2015/02/view-and-data-api-tips-how-to-set-hotkeys-for-viewer.html

huangapple
  • 本文由 发表于 2023年6月18日 21:12:19
  • 转载请务必保留本文链接:https://go.coder-hub.com/76500717.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定