import { AppObjectEntity, getSingletonComponent, } from "@vived/core";
import { OverlayColorEnums } from "../../OverlayColor";
import { makeLandmarkRepoEntity } from "./LandmarkRepo";
export class LandmarkGlobals extends AppObjectEntity {
}
LandmarkGlobals.type = "LandmarkGlobals";
LandmarkGlobals.get = (appObjects) => getSingletonComponent(LandmarkGlobals.type, appObjects);
export function makeLandmarkGlobals(appObject) {
    return new LandmarkConstantsImp(appObject);
}
class LandmarkConstantsImp extends LandmarkGlobals {
    constructor(appObject) {
        super(appObject, LandmarkGlobals.type);
        this.landmarkRepoFactory = (id) => {
            const ao = this.appObjects.getOrCreate(id);
            return makeLandmarkRepoEntity(ao);
        };
        this.lastSize = 1;
        this.lastColor = OverlayColorEnums.BLUE;
        this.appObjects.registerSingleton(this);
    }
}
//# sourceMappingURL=LandmarkGlobals.js.map