feat(All):Initial
This commit is contained in:
@@ -0,0 +1,38 @@
|
||||
export const ViewerOptions = (): IViewerSetting => ({
|
||||
// 场景canvas容器
|
||||
container: undefined,
|
||||
// 场景背景及环境贴图
|
||||
hdr: undefined,
|
||||
// 是否启用编辑模式
|
||||
enableEdit: false,
|
||||
// 是否启用脚本,自动运行脚本
|
||||
enableScript: true,
|
||||
// 请求相关
|
||||
request:{
|
||||
baseUrl:""
|
||||
},
|
||||
// 场景内网格
|
||||
grid:{
|
||||
enabled: true,
|
||||
// 网格颜色
|
||||
color: 0x999999,
|
||||
// 网格行数
|
||||
row: 100,
|
||||
// 网格列数
|
||||
column:100,
|
||||
},
|
||||
// 相机控制器
|
||||
control: {
|
||||
minAzimuthAngle: -Infinity,
|
||||
maxAzimuthAngle: Infinity,
|
||||
minDistance: 0.0,
|
||||
maxDistance: Infinity,
|
||||
maxPolarAngle: Math.PI,
|
||||
minPolarAngle: 0,
|
||||
maxZoom:Infinity,
|
||||
minZoom:0.01,
|
||||
dollySpeed:1,
|
||||
// 缩放是否以鼠标位置为中心
|
||||
dollyToCursor: false,
|
||||
}
|
||||
})
|
||||
Reference in New Issue
Block a user