"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.environmentalIntensityAdapter = void 0;
const EnvironmentalIntensityPM_1 = require("../PMs/EnvironmentalIntensityPM");
exports.environmentalIntensityAdapter = {
    defaultVM: 0.75,
    subscribe: (appObjects, setVM) => {
        const pm = EnvironmentalIntensityPM_1.EnvironmentalIntensityPM.get(appObjects);
        if (!pm) {
            appObjects.submitError("environmentalIntensityAdapter", "Unable to find TexturalEnvironmentPM");
            return;
        }
        pm.addView(setVM);
    },
    unsubscribe: (appObjects, setVM) => {
        EnvironmentalIntensityPM_1.EnvironmentalIntensityPM.get(appObjects)?.removeView(setVM);
    },
};
//# sourceMappingURL=environmentalIntensityAdapter.js.map