client/src/components/project/panels/layout/ctrlLayoutPanel.js
/**
     * The class used to represent a layout in the view
     * @param {String} name
     * @param {String} plotType
     * @param {Array} optionsPrimary  options which changed require rebuilding the layout
     * @param {Array} optionsOptional mapprSettings options which change only requires graph refresh
     * @param {Function} onSwitch     Function to run when the layout is enabled
     * @param {Function} onRefresh    Function to run when primary settings are changed
     *
     * The isCurrent / inInitialized are flags for the state.
     *  isCurrent -> Layout is current focus of attention. is auto toggled by accordion
     *  isInitialized -> Layout has been applied to the graph atleast once
     */


The isCurrent / inInitialized are flags for the state.
isCurrent -> Layout is current focus of attention. is auto toggled by accordion
isInitialized -> Layout has been applied to the graph atleast once
The isCurrent / inInitialized are flags for the state . isCurrent - > Layout is current focus of attention . is auto toggled by accordion isInitialized - > Layout has been applied to the graph atleast once
function LayoutModel(name, plotType, optionsPrimary, optionsOptional, onSwitch, onRefresh, isBuilder) {
        this.name = name;
        this.plotType = plotType;
        this.isInitialized = false;
        this.isCurrent = false;
        this.isCurrentPanel = false;
        this.isGenerated = false;
        this.isBuilder = isBuilder;
        this.options = {
            primary : optionsPrimary || [],
            optional : optionsOptional || []
        };
        this._onSwitch = onSwitch;
        this._onRefresh = onRefresh;
        this._onDelete = onDelete;
    }
function LayoutModel ( name , plotType , optionsPrimary , optionsOptional , onSwitch , onRefresh , isBuilder ) { this . name = name ; this . plotType = plotType ; this . isInitialized = false ; this . isCurrent = false ; this . isCurrentPanel = false ; this . isGenerated = false ; this . isBuilder = isBuilder ; this . options = { primary : optionsPrimary || [ ] , optional : optionsOptional || [ ] } ; this . _onSwitch = onSwitch ; this . _onRefresh = onRefresh ; this . _onDelete = onDelete ; }
The class used to represent a layout in the view
 @param {String} name
 @param {String} plotType
 @param {Array} optionsPrimary  options which changed require rebuilding the layout
 @param {Array} optionsOptional mapprSettings options which change only requires graph refresh
 @param {Function} onSwitch     Function to run when the layout is enabled
 @param {Function} onRefresh    Function to run when primary settings are changed
The class used to represent a layout in the view @param { String } name @param { String } plotType @param { Array } optionsPrimary options which changed require rebuilding the layout @param { Array } optionsOptional mapprSettings options which change only requires graph refresh @param { Function } onSwitch Function to run when the layout is enabled @param { Function } onRefresh Function to run when primary settings are changed