src/Layer.js
/**
     * Callback executed when the client adds a new dataframe
     * @param {Dataframe} dataframe
     */
Callback executed when the client adds a new dataframe
@param {Dataframe} dataframe
Callback executed when the client adds a new dataframe @param { Dataframe } dataframe
_onDataframeAdded (dataframe) {
        dataframe.setFreeObserver(() => {
            this._needRefresh();
        });
        this._renderLayer.addDataframe(dataframe);
        if (this._viz) {
            this._viz.setDefaultsIfRequired(dataframe.type);
        }
        this._needRefresh();
    }
_onDataframeAdded ( dataframe ) { dataframe . setFreeObserver ( ( ) => { this . _needRefresh ( ) ; } ) ; this . _renderLayer . addDataframe ( dataframe ) ; if ( this . _viz ) { this . _viz . setDefaultsIfRequired ( dataframe . type ) ; } this . _needRefresh ( ) ; }
Callback executed when the client adds a new dataframe
 @param {Dataframe} dataframe
Callback executed when the client adds a new dataframe @param { Dataframe } dataframe