"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.landmarkSizeAdapter = void 0;
const LandmarkSizePM_1 = require("../PM/LandmarkSizePM");
exports.landmarkSizeAdapter = {
    defaultVM: 1,
    subscribe: (id, appObjects, setVM) => {
        if (!id)
            return;
        const pm = LandmarkSizePM_1.LandmarkSizePM.get(id, appObjects);
        if (!pm) {
            appObjects.submitError("landmarkSizeAdapter", "Unable to find LandmarkSizePM");
            return;
        }
        pm.addView(setVM);
    },
    unsubscribe: (id, appObjects, setVM) => {
        const pm = LandmarkSizePM_1.LandmarkSizePM.get(id, appObjects);
        if (pm) {
            pm.removeView(setVM);
        }
    },
};
//# sourceMappingURL=landmarkSizeAdapter.js.map