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