static openTreemap(json) {
    const treemapData = json.audits['script-treemap-data'].details;
    if (!treemapData) {
      throw new Error('no script treemap data found');
    }

    /** @type {LH.Treemap.Options} */
    const treemapOptions = {
      lhr: {
        requestedUrl: json.requestedUrl,
        finalUrl: json.finalUrl,
        audits: {
          'script-treemap-data': json.audits['script-treemap-data'],
        },
        configSettings: {
          locale: json.configSettings.locale,
        },
      },
    };
    const url = getAppsOrigin() + '/treemap/';
    const windowName = 'treemap-' + this.computeWindowNameSuffix(json);

    ReportUIFeatures.openTabWithUrlData(treemapOptions, url, windowName);
  }
/**
   * Opens a new tab to the treemap app and sends the JSON results using URL.fragment
   * @param {LH.Result} json
   */
Opens a new tab to the treemap app and sends the JSON results using URL.fragment
@param {LH.Result} json
Opens a new tab to the treemap app and sends the JSON results using URL . fragment @param { LH . Result } json
static openTreemap(json) {
    const treemapData = json.audits['script-treemap-data'].details;
    if (!treemapData) {
      throw new Error('no script treemap data found');
    }
    const treemapOptions = {
      lhr: {
        requestedUrl: json.requestedUrl,
        finalUrl: json.finalUrl,
        audits: {
          'script-treemap-data': json.audits['script-treemap-data'],
        },
        configSettings: {
          locale: json.configSettings.locale,
        },
      },
    };
    const url = getAppsOrigin() + '/treemap/';
    const windowName = 'treemap-' + this.computeWindowNameSuffix(json);
    ReportUIFeatures.openTabWithUrlData(treemapOptions, url, windowName);
  }
static openTreemap ( json ) { const treemapData = json . audits [ 'script-treemap-data' ] . details ; if ( ! treemapData ) { throw new Error ( 'no script treemap data found' ) ; } const treemapOptions = { lhr : { requestedUrl : json . requestedUrl , finalUrl : json . finalUrl , audits : { 'script-treemap-data' : json . audits [ 'script-treemap-data' ] , } , configSettings : { locale : json . configSettings . locale , } , } , } ; const url = getAppsOrigin ( ) + '/treemap/' ; const windowName = 'treemap-' + this . computeWindowNameSuffix ( json ) ; ReportUIFeatures . openTabWithUrlData ( treemapOptions , url , windowName ) ; }
Opens a new tab to the treemap app and sends the JSON results using URL.fragment
 @param {LH.Result} json
Opens a new tab to the treemap app and sends the JSON results using URL . fragment @param { LH . Result } json
/** @type {LH.Treemap.Options} */