'use strict';

var definitions = require('./definitions.js');
var VisualElement = require('../../../../../../../motion-dom@12.38.0/node_modules/motion-dom/dist/es/render/VisualElement.js');

function loadFeatures(features) {
    const featureDefinitions = definitions.getInitializedFeatureDefinitions();
    for (const key in features) {
        featureDefinitions[key] = {
            ...featureDefinitions[key],
            ...features[key],
        };
    }
    VisualElement.setFeatureDefinitions(featureDefinitions);
}

exports.loadFeatures = loadFeatures;
