src/components/graph/graph.helper.js
function checkForGraphConfigChanges(nextProps, currentState) {
    const newConfig = nextProps.config || {};
    const configUpdated =
        newConfig && !utils.isEmptyObject(newConfig) && !utils.isDeepEqual(newConfig, currentState.config);
    const d3ConfigUpdated = newConfig && newConfig.d3 && !utils.isDeepEqual(newConfig.d3, currentState.config.d3);

    return { configUpdated, d3ConfigUpdated };
}
function checkForGraphConfigChanges(nextProps, currentState) {
    const newConfig = nextProps.config || {};
    const configUpdated =
        newConfig && !utils.isEmptyObject(newConfig) && !utils.isDeepEqual(newConfig, currentState.config);
    const d3ConfigUpdated = newConfig && newConfig.d3 && !utils.isDeepEqual(newConfig.d3, currentState.config.d3);

    return { configUpdated, d3ConfigUpdated };
}
function checkForGraphConfigChanges ( nextProps , currentState ) { const newConfig = nextProps . config || { } ; const configUpdated = newConfig && ! utils . isEmptyObject ( newConfig ) && ! utils . isDeepEqual ( newConfig , currentState . config ) ; const d3ConfigUpdated = newConfig && newConfig . d3 && ! utils . isDeepEqual ( newConfig . d3 , currentState . config . d3 ) ; return { configUpdated , d3ConfigUpdated } ; }
Logic to check for changes in graph config.
@param {Object} nextProps - nextProps that graph will receive.
@param {Object} currentState - the current state of the graph.
@returns {Object.<string, boolean>} returns object containing update check flags:
- configUpdated - global flag that indicates if any property was updated.
- d3ConfigUpdated - specific flag that indicates changes in d3 configurations.
@memberof Graph/helper
Logic to check for changes in graph config .