如何禁用鼠标事件?
我想在网格的网格和切片上使用非常简单的鼠标事件,并在那里使用一些ajax调用,因此不需要集成的事件。
如何禁用进度条?
我已经在某处读过......
是否有任何参考,我可以看到哪些命令可用?
提前致谢
答案 0 :(得分:1)
交互器和渲染器都有配置选项
var r = X.renderer3D();
// to disable the progress bar
r.config.PROGRESSBAR_ENABLED = false;
r.init(); // the r.init creates the interactor
// to disable the mouse wheel interaction
r.interactor.config.MOUSEWHEEL_ENABLED = false;
// to disable mouse clicks
r.interactor.config.MOUSECLICKS_ENABLED = false;
// init the interactor again
r.interactor.init();
要获取有关API的信息,请访问http://api.goXTK.com。不幸的是,当前的API文档并未涵盖所有内容(例如配置选项)。因此,请查看此处记录的来源:https://github.com/xtk/X/blob/master/io/interactor.js#L189