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