import*as PerfUI from"../perf_ui/perf_ui.js";import*as UI from"../ui/ui.js";import{WebVitalsTimeline}from"./WebVitalsTimeline.js";export class WebVitalsIntegrator extends UI.Widget.VBox{constructor(e){super(!0,!0),this.delegate=e,this.element.style.height="120px",this.element.style.flex="0 auto",this.webVitalsTimeline=new WebVitalsTimeline,this.chartViewport=new PerfUI.ChartViewport.ChartViewport(this),this.chartViewport.show(this.contentElement),this.chartViewport.alwaysShowVerticalScroll(),this.chartViewport.setContentHeight(114),this.chartViewport.viewportElement.appendChild(this.webVitalsTimeline)}windowChanged(e,t,i){this.delegate.windowChanged(e,t,i)}updateRangeSelection(e,t){this.delegate.updateRangeSelection(e,t)}setSize(e,t){this.webVitalsTimeline.setSize(e,t)}update(){this.webVitalsTimeline.render()}}