index.js
function componentGraphUrl(component) {
    const context = ('variants' in component) ? component.variants().default().context : component.context;
    const graphUrl = url.parse(context.typo3);
    graphUrl.search = `?${encodeURIParams(Object.assign(context.request.arguments, {
        tx_twcomponentlibrary_component: { component: context.component },
        type: 2401,
    })).join('&')}`;
    return url.format(graphUrl);
}
function componentGraphUrl(component) {
    const context = ('variants' in component) ? component.variants().default().context : component.context;
    const graphUrl = url.parse(context.typo3);
    graphUrl.search = `?${encodeURIParams(Object.assign(context.request.arguments, {
        tx_twcomponentlibrary_component: { component: context.component },
        type: 2401,
    })).join('&')}`;
    return url.format(graphUrl);
}
function componentGraphUrl ( component ) { const context = ( 'variants' in component ) ? component . variants ( ) . default ( ) . context : component . context ; const graphUrl = url . parse ( context . typo3 ) ; graphUrl . search = ` ${ encodeURIParams ( Object . assign ( context . request . arguments , { tx_twcomponentlibrary_component : { component : context . component } , type : 2401 , } ) ) . join ( '&' ) } ` ; return url . format ( graphUrl ) ; }
Create and return the graph URL for a particular component

@param {Component} component Component
Create and return the graph URL for a particular component