import { LandmarkSizePM } from "../PM/LandmarkSizePM";
export const landmarkSizeAdapter = {
    defaultVM: 1,
    subscribe: (id, appObjects, setVM) => {
        if (!id)
            return;
        const pm = LandmarkSizePM.get(id, appObjects);
        if (!pm) {
            appObjects.submitError("landmarkSizeAdapter", "Unable to find LandmarkSizePM");
            return;
        }
        pm.addView(setVM);
    },
    unsubscribe: (id, appObjects, setVM) => {
        const pm = LandmarkSizePM.get(id, appObjects);
        if (pm) {
            pm.removeView(setVM);
        }
    },
};
//# sourceMappingURL=landmarkSizeAdapter.js.map