index.js
function configure(t3path, t3url, t3theme) {
    typo3path = t3path;
    typo3url = t3url;

    // If a Fractal theme is given
    if ((typeof t3theme === 'object') && (typeof t3theme.options === 'function')) {
        t3theme.addLoadPath(path.resolve(__dirname, 'lib', 'views'));

        // Add the graph panel
        const options = t3theme.options();
        if (options.panels.indexOf('graph') < 0) {
            options.panels.push('graph');
        }
        t3theme.options(options);
        t3theme.addListener('init', (engine) => {
            engine._engine.addFilter('componentGraphUrl', componentGraphUrl);
        });
    }
}
function configure(t3path, t3url, t3theme) {
    typo3path = t3path;
    typo3url = t3url;

    // If a Fractal theme is given
    if ((typeof t3theme === 'object') && (typeof t3theme.options === 'function')) {
        t3theme.addLoadPath(path.resolve(__dirname, 'lib', 'views'));

        // Add the graph panel
        const options = t3theme.options();
        if (options.panels.indexOf('graph') < 0) {
            options.panels.push('graph');
        }
        t3theme.options(options);
        t3theme.addListener('init', (engine) => {
            engine._engine.addFilter('componentGraphUrl', componentGraphUrl);
        });
    }
}
function configure ( t3path , t3url , t3theme ) { typo3path = t3path ; typo3url = t3url ; // If a Fractal theme is given if ( ( typeof t3theme === 'object' ) && ( typeof t3theme . options === 'function' ) ) { t3theme . addLoadPath ( path . resolve ( __dirname , 'lib' , 'views' ) ) ; // Add the graph panel const options = t3theme . options ( ) ; if ( options . panels . indexOf ( 'graph' ) < 0 ) { options . panels . push ( 'graph' ) ; } t3theme . options ( options ) ; t3theme . addListener ( 'init' , ( engine ) => { engine . _engine . addFilter ( 'componentGraphUrl' , componentGraphUrl ) ; } ) ; } }
Configure the TYPO3 connection

@param {String} t3path TYPO3 default path
@param {String} t3url TYPO3 base URL
@param {Theme} t3theme TYPO3 theme
Configure the TYPO3 connection