import Title from './Geometry/Title.js'
import BgImage from './Geometry/BgImage.js'
import Compass from './Geometry/Compass.js'

export default class FloorplanData {
    constructor() {
        this.version = 'v4.0'
        this.floors = []
    }

    initFloor(floorNum) {
        this.floors[floorNum] = {}
        this.floors[floorNum].points = {}
        this.floors[floorNum].walls = {}
        this.floors[floorNum].tags = {}
        this.floors[floorNum].tables = {}
        this.floors[floorNum].cells = {}         //表里面的格子
        this.floors[floorNum].rectangles = {}
        this.floors[floorNum].circles = {}
        this.floors[floorNum].arrows = {}
        this.floors[floorNum].icons = {}
        this.floors[floorNum].signs = {}

        // this.floors[floorNum].title = new Title();
        // this.floors[floorNum].image = new BgImage();
        // this.floors[floorNum].compass = new Compass();
        this.floors[floorNum].title = null;
        this.floors[floorNum].image = null;
        this.floors[floorNum].compass = null;
    }
}

let floorplanData = new FloorplanData()
window.floorplanData = floorplanData
export { floorplanData }
