Skip to content

charton API


charton API / @chart-on/core / index / mergeTypography

Function: mergeTypography() ​

mergeTypography(base, patch): ChartTypography | undefined

Defined in: packages/core/src/typography.ts:94

Merge a typography patch into base, surface blocks field by field, so applyOptions({ theme: { typography: { axis: { fontSize: 13 } } } }) keeps the rest.

Parameters ​

base ​

ChartTypography | undefined

patch ​

ChartTypography | undefined

Returns ​

ChartTypography | undefined