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) } }