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].customImages = {}
        this.floors[floorNum].title = null;
        this.floors[floorNum].bgImage = null;
        this.floors[floorNum].compass = null;
        this.floors[floorNum].noBoardFrame = false;
    }
}

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