import { AppObjectEntity, getSingletonComponent, } from "@vived/core";
import { OverlayColorEnums } from "../../OverlayColor/Entities/OverlayColor";
import { makeCalloutRepoEntity } from "./CalloutRepo";
export class CalloutGlobals extends AppObjectEntity {
}
CalloutGlobals.type = "CalloutGlobals";
CalloutGlobals.get = (appObjects) => {
    return getSingletonComponent(CalloutGlobals.type, appObjects);
};
export function makeCalloutGlobals(appObject) {
    return new CalloutGlobalsImp(appObject);
}
class CalloutGlobalsImp extends CalloutGlobals {
    constructor(appObject) {
        super(appObject, CalloutGlobals.type);
        this.calloutRepoFactory = (id) => {
            const ao = this.appObjects.getOrCreate(id);
            return makeCalloutRepoEntity(ao);
        };
        this.lastSize = 1;
        this.lastColor = OverlayColorEnums.WHITE;
        this.appObjects.registerSingleton(this);
    }
}
//# sourceMappingURL=CalloutGlobals.js.map