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β
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