You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

35 lines
588 B

import Example1 from './example1'
import { markRaw, reactive } from 'vue'
/**
* 全局设计器
*/
export default class Designer {
data: any = null
allLevels: any = null
currentFloor: string = null
editorState = reactive({
ready: false,
camera: {
position: { x: 0, y: 0, z: 0 },
rotation: { x: 0, y: 0, z: 0 }
}
})
constructor() {
this.init()
this.open()
}
init() {
window['designer'] = this
}
open() {
system.msg('打开成功')
this.data = markRaw(Example1)
this.allLevels = reactive(this.data.allLevels)
}
}