feat(SDK): 修改Viewer初始化配置中Edit的数据结构
This commit is contained in:
@@ -49,7 +49,6 @@ export class Signals {
|
||||
|
||||
useAddSignal("sceneResize", this.sceneResize.bind(this));
|
||||
useAddSignal("showGridChanged", this.showGridChanged.bind(this));
|
||||
useAddSignal("showHelpersChanged", this.showHelpersChanged.bind(this));
|
||||
|
||||
useAddSignal("scriptAdded",this.scriptAdded.bind(this));
|
||||
useAddSignal("scriptRemoved",this.scriptRemoved.bind(this));
|
||||
@@ -454,19 +453,6 @@ export class Signals {
|
||||
this.render();
|
||||
}
|
||||
|
||||
/**
|
||||
* 显示场景辅助线等
|
||||
* @param showHelpers
|
||||
*/
|
||||
showHelpersChanged(showHelpers:boolean){
|
||||
this.viewer.showSceneHelpers = showHelpers;
|
||||
if(this.viewer.modules.transformControls){
|
||||
this.viewer.modules.transformControls.enabled = showHelpers;
|
||||
}
|
||||
|
||||
this.render();
|
||||
}
|
||||
|
||||
/**
|
||||
* 添加脚本
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user