Skip to main content

ChartTabIntegration

FitFileViewer - API Documentation v30.0.1


FitFileViewer - API Documentation / utils/charts/core/chartTabIntegration / ChartTabIntegration

Class: ChartTabIntegration

Defined in: utils/charts/core/chartTabIntegration.ts:35

Coordinates chart rendering state with the application tab system.

Constructors​

Constructor​

new ChartTabIntegration(runtime?: ChartTabIntegrationRuntime): ChartTabIntegration

Defined in: utils/charts/core/chartTabIntegration.ts:40

Parameters​

runtime?​

ChartTabIntegrationRuntime = ...

Returns​

ChartTabIntegration

Properties​

isInitialized​

isInitialized: boolean = false

Defined in: utils/charts/core/chartTabIntegration.ts:36


runtime​

private readonly runtime: ChartTabIntegrationRuntime

Defined in: utils/charts/core/chartTabIntegration.ts:38

Methods​

checkAndRenderCharts()​

checkAndRenderCharts(): void

Defined in: utils/charts/core/chartTabIntegration.ts:47

Check whether loaded data and the active tab require chart rendering.

Returns​

void


destroy()​

destroy(): void

Defined in: utils/charts/core/chartTabIntegration.ts:72

Clean up integration state.

Returns​

void


disableChartTab()​

disableChartTab(): void

Defined in: utils/charts/core/chartTabIntegration.ts:80

Disable the chart tab button when no FIT data is loaded.

Returns​

void


enableChartTab()​

enableChartTab(): void

Defined in: utils/charts/core/chartTabIntegration.ts:94

Enable the chart tab button when FIT data is loaded.

Returns​

void


getChartTabButton()​

getChartTabButton(): DisableableTabButton | null

Defined in: utils/charts/core/chartTabIntegration.ts:108

Get the chart tab button element.

Returns​

DisableableTabButton | null


getStatus()​

getStatus(): ChartTabIntegrationStatus

Defined in: utils/charts/core/chartTabIntegration.ts:115

Get integration status information.

Returns​

ChartTabIntegrationStatus


handleDataChange()​

handleDataChange(newData: unknown): void

Defined in: utils/charts/core/chartTabIntegration.ts:135

Handle new FIT data being loaded or cleared.

Parameters​

newData​

unknown

The new raw FIT data payload.

Returns​

void


initialize()​

initialize(): void

Defined in: utils/charts/core/chartTabIntegration.ts:157

Initialize the chart tab integration.

Returns​

void


isChartTabActive()​

isChartTabActive(): boolean

Defined in: utils/charts/core/chartTabIntegration.ts:172

Check if the chart tab is currently active.

Returns​

boolean


refreshCharts()​

refreshCharts(reason?: string): boolean

Defined in: utils/charts/core/chartTabIntegration.ts:181

Force chart refresh for external callers.

Parameters​

reason?​

string = "Manual refresh"

Reason for the refresh.

Returns​

boolean


setupIntegration()​

setupIntegration(): void

Defined in: utils/charts/core/chartTabIntegration.ts:202

Set up integration between chart and tab systems.

Returns​

void


switchToChartTab()​

switchToChartTab(): boolean

Defined in: utils/charts/core/chartTabIntegration.ts:219

Switch to the chart tab when FIT data is available.

Returns​

boolean