import { ChannelModelRepo } from "../Entities";
import { ClearModelObjectOverlaysUC } from "../UC/ClearModelObjectOverlaysUC";
export function clearActiveObjectsOverlays(appObjects) {
    const repo = ChannelModelRepo.get(appObjects);
    if (!repo) {
        appObjects.submitError("clearActiveObjectsOverlays", "Unable to find ChannelModelRepo");
        return;
    }
    if (!repo.activeModel) {
        appObjects.submitWarning("clearActiveObjectsOverlays", "No Model is Active");
        return;
    }
    const uc = ClearModelObjectOverlaysUC.get(repo.activeModel, appObjects);
    if (!uc) {
        appObjects.submitError("clearActiveObjectsOverlays", "Unable to find ClearModelObjectOverlaysUC");
        return;
    }
    uc.clearOverlays();
}
//# sourceMappingURL=clearActiveObjectsOverlays.js.map