| Server IP : 35.80.110.71 / Your IP : 216.73.216.221 Web Server : Apache/2.4.58 (Ubuntu) System : Linux ip-172-31-21-44 6.17.0-1019-aws #19~24.04.1-Ubuntu SMP Tue Jun 23 18:53:06 UTC 2026 x86_64 User : ubuntu ( 1000) PHP Version : 8.3.31 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : OFF Directory : /lib/node_modules/lighthouse/types/lhr/ |
Upload File : |
/**
* @license
* Copyright 2020 Google LLC
* SPDX-License-Identifier: Apache-2.0
*/
import {Result as AuditResult} from './audit-result.js';
import {Locale} from './settings.js';
declare namespace Treemap {
interface Options {
lhr: {
mainDocumentUrl?: string;
finalUrl?: string;
finalDisplayedUrl: string;
audits: {
'script-treemap-data': AuditResult;
};
configSettings: {
locale: Locale;
}
},
initialView?: ViewMode['id'],
}
type NodePath = string[];
interface Selector {
type: 'depthOneNode' | 'group';
value: string;
}
interface Highlight {
path: NodePath;
/** If not set, will use the color based on the d1Node. */
color?: string;
}
interface ViewMode {
id: 'all' | 'unused-bytes' | 'duplicate-modules';
label: string;
subLabel: string;
enabled: boolean;
partitionBy?: 'resourceBytes' | 'unusedBytes';
highlights?: Highlight[];
}
interface Node {
/** Could be a url, a path component from a source map, or an arbitrary string. */
name: string;
resourceBytes: number;
/** Transfer size of the script. Only set for non-inline top-level script nodes. */
encodedBytes?: number;
/** Unused bytes, in terms of resource size. */
unusedBytes?: number;
/** If present, this module is a duplicate. String is normalized source path. See ModuleDuplication.normalizeSource */
duplicatedNormalizedModuleName?: string;
children?: Node[];
}
}
export default Treemap;