@visactor/vseed 0.4.21 → 0.4.22
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/index.cjs +2 -2
- package/dist/cjs/index.cjs.map +1 -1
- package/dist/esm/builder/builder/buildSpec.js.map +1 -1
- package/dist/esm/pipeline/spec/chart/pipeline/area.js +3 -1
- package/dist/esm/pipeline/spec/chart/pipeline/area.js.map +1 -1
- package/dist/esm/pipeline/spec/chart/pipeline/areaPercent.js +3 -1
- package/dist/esm/pipeline/spec/chart/pipeline/areaPercent.js.map +1 -1
- package/dist/esm/pipeline/spec/chart/pipeline/bar.js +3 -1
- package/dist/esm/pipeline/spec/chart/pipeline/bar.js.map +1 -1
- package/dist/esm/pipeline/spec/chart/pipeline/barParallel.js +3 -1
- package/dist/esm/pipeline/spec/chart/pipeline/barParallel.js.map +1 -1
- package/dist/esm/pipeline/spec/chart/pipeline/barPercent.js +3 -1
- package/dist/esm/pipeline/spec/chart/pipeline/barPercent.js.map +1 -1
- package/dist/esm/pipeline/spec/chart/pipeline/boxplot.js +3 -1
- package/dist/esm/pipeline/spec/chart/pipeline/boxplot.js.map +1 -1
- package/dist/esm/pipeline/spec/chart/pipeline/circlePacking.js +3 -1
- package/dist/esm/pipeline/spec/chart/pipeline/circlePacking.js.map +1 -1
- package/dist/esm/pipeline/spec/chart/pipeline/column.js +3 -1
- package/dist/esm/pipeline/spec/chart/pipeline/column.js.map +1 -1
- package/dist/esm/pipeline/spec/chart/pipeline/columnParallel.js +3 -1
- package/dist/esm/pipeline/spec/chart/pipeline/columnParallel.js.map +1 -1
- package/dist/esm/pipeline/spec/chart/pipeline/columnPercent.js +3 -1
- package/dist/esm/pipeline/spec/chart/pipeline/columnPercent.js.map +1 -1
- package/dist/esm/pipeline/spec/chart/pipeline/donut.js +3 -1
- package/dist/esm/pipeline/spec/chart/pipeline/donut.js.map +1 -1
- package/dist/esm/pipeline/spec/chart/pipeline/dualAxis.js +3 -1
- package/dist/esm/pipeline/spec/chart/pipeline/dualAxis.js.map +1 -1
- package/dist/esm/pipeline/spec/chart/pipeline/funnel.js +3 -1
- package/dist/esm/pipeline/spec/chart/pipeline/funnel.js.map +1 -1
- package/dist/esm/pipeline/spec/chart/pipeline/heatmap.js +3 -1
- package/dist/esm/pipeline/spec/chart/pipeline/heatmap.js.map +1 -1
- package/dist/esm/pipeline/spec/chart/pipeline/histogram.js +3 -1
- package/dist/esm/pipeline/spec/chart/pipeline/histogram.js.map +1 -1
- package/dist/esm/pipeline/spec/chart/pipeline/line.js +3 -1
- package/dist/esm/pipeline/spec/chart/pipeline/line.js.map +1 -1
- package/dist/esm/pipeline/spec/chart/pipeline/pie.js +3 -1
- package/dist/esm/pipeline/spec/chart/pipeline/pie.js.map +1 -1
- package/dist/esm/pipeline/spec/chart/pipeline/raceBar.js +2 -1
- package/dist/esm/pipeline/spec/chart/pipeline/raceBar.js.map +1 -1
- package/dist/esm/pipeline/spec/chart/pipeline/raceColumn.js +2 -1
- package/dist/esm/pipeline/spec/chart/pipeline/raceColumn.js.map +1 -1
- package/dist/esm/pipeline/spec/chart/pipeline/raceDonut.js +2 -1
- package/dist/esm/pipeline/spec/chart/pipeline/raceDonut.js.map +1 -1
- package/dist/esm/pipeline/spec/chart/pipeline/raceLine.js +2 -1
- package/dist/esm/pipeline/spec/chart/pipeline/raceLine.js.map +1 -1
- package/dist/esm/pipeline/spec/chart/pipeline/racePie.js +2 -1
- package/dist/esm/pipeline/spec/chart/pipeline/racePie.js.map +1 -1
- package/dist/esm/pipeline/spec/chart/pipeline/raceScatter.js +2 -1
- package/dist/esm/pipeline/spec/chart/pipeline/raceScatter.js.map +1 -1
- package/dist/esm/pipeline/spec/chart/pipeline/radar.js +3 -1
- package/dist/esm/pipeline/spec/chart/pipeline/radar.js.map +1 -1
- package/dist/esm/pipeline/spec/chart/pipeline/rose.js +3 -1
- package/dist/esm/pipeline/spec/chart/pipeline/rose.js.map +1 -1
- package/dist/esm/pipeline/spec/chart/pipeline/roseParallel.js +3 -1
- package/dist/esm/pipeline/spec/chart/pipeline/roseParallel.js.map +1 -1
- package/dist/esm/pipeline/spec/chart/pipeline/scatter.js +3 -1
- package/dist/esm/pipeline/spec/chart/pipeline/scatter.js.map +1 -1
- package/dist/esm/pipeline/spec/chart/pipeline/sunburst.js +3 -1
- package/dist/esm/pipeline/spec/chart/pipeline/sunburst.js.map +1 -1
- package/dist/esm/pipeline/spec/chart/pipeline/treeMap.js +3 -1
- package/dist/esm/pipeline/spec/chart/pipeline/treeMap.js.map +1 -1
- package/dist/esm/pipeline/spec/chart/pipes/index.d.ts +1 -0
- package/dist/esm/pipeline/spec/chart/pipes/index.js +1 -0
- package/dist/esm/pipeline/spec/chart/pipes/label/labelSunburst.js +1 -1
- package/dist/esm/pipeline/spec/chart/pipes/label/labelSunburst.js.map +1 -1
- package/dist/esm/pipeline/spec/chart/pipes/label/labelTreeMapGroup.js +1 -1
- package/dist/esm/pipeline/spec/chart/pipes/label/labelTreeMapGroup.js.map +1 -1
- package/dist/esm/pipeline/spec/chart/pipes/pivotChart/pivotAxisStyle.js +1 -0
- package/dist/esm/pipeline/spec/chart/pipes/pivotChart/pivotAxisStyle.js.map +1 -1
- package/dist/esm/pipeline/spec/chart/pipes/pivotChart/pivotGridStyle.js +16 -4
- package/dist/esm/pipeline/spec/chart/pipes/pivotChart/pivotGridStyle.js.map +1 -1
- package/dist/esm/pipeline/spec/chart/pipes/player/playerBar.js +3 -2
- package/dist/esm/pipeline/spec/chart/pipes/player/playerBar.js.map +1 -1
- package/dist/esm/pipeline/spec/chart/pipes/player/playerColumn.js +3 -1
- package/dist/esm/pipeline/spec/chart/pipes/player/playerColumn.js.map +1 -1
- package/dist/esm/pipeline/spec/chart/pipes/player/playerPie.js +3 -1
- package/dist/esm/pipeline/spec/chart/pipes/player/playerPie.js.map +1 -1
- package/dist/esm/pipeline/spec/chart/pipes/player/playerScatter.js +3 -2
- package/dist/esm/pipeline/spec/chart/pipes/player/playerScatter.js.map +1 -1
- package/dist/esm/pipeline/spec/chart/pipes/theme/fontFamily.d.ts +2 -0
- package/dist/esm/pipeline/spec/chart/pipes/theme/fontFamily.js +17 -0
- package/dist/esm/pipeline/spec/chart/pipes/theme/fontFamily.js.map +1 -0
- package/dist/esm/pipeline/spec/chart/pipes/theme/index.d.ts +1 -0
- package/dist/esm/pipeline/spec/chart/pipes/theme/index.js +2 -0
- package/dist/esm/pipeline/spec/table/pipes/theme/bodyStyle.js +2 -0
- package/dist/esm/pipeline/spec/table/pipes/theme/bodyStyle.js.map +1 -1
- package/dist/esm/pipeline/spec/table/pipes/theme/bottomFrozenStyle.js +2 -0
- package/dist/esm/pipeline/spec/table/pipes/theme/bottomFrozenStyle.js.map +1 -1
- package/dist/esm/pipeline/spec/table/pipes/theme/cornerHeaderStyle.js +2 -0
- package/dist/esm/pipeline/spec/table/pipes/theme/cornerHeaderStyle.js.map +1 -1
- package/dist/esm/pipeline/spec/table/pipes/theme/headerStyle.js +2 -0
- package/dist/esm/pipeline/spec/table/pipes/theme/headerStyle.js.map +1 -1
- package/dist/esm/pipeline/spec/table/pipes/theme/rowHeaderStyle.js +2 -0
- package/dist/esm/pipeline/spec/table/pipes/theme/rowHeaderStyle.js.map +1 -1
- package/dist/esm/theme/common/table.d.ts +6 -0
- package/dist/esm/theme/dark/area.d.ts +6 -0
- package/dist/esm/theme/dark/bar.d.ts +9 -0
- package/dist/esm/theme/dark/boxPlot.d.ts +3 -0
- package/dist/esm/theme/dark/column.d.ts +9 -0
- package/dist/esm/theme/dark/dualAxis.d.ts +3 -0
- package/dist/esm/theme/dark/funnel.d.ts +3 -0
- package/dist/esm/theme/dark/heatmap.d.ts +3 -0
- package/dist/esm/theme/dark/hierarchy.d.ts +9 -0
- package/dist/esm/theme/dark/histogram.d.ts +3 -0
- package/dist/esm/theme/dark/line.d.ts +3 -0
- package/dist/esm/theme/dark/pie.d.ts +6 -0
- package/dist/esm/theme/dark/race.d.ts +9 -0
- package/dist/esm/theme/dark/raceLine.d.ts +3 -0
- package/dist/esm/theme/dark/racePie.d.ts +6 -0
- package/dist/esm/theme/dark/radar.d.ts +3 -0
- package/dist/esm/theme/dark/rose.d.ts +6 -0
- package/dist/esm/theme/dark/scatter.d.ts +3 -0
- package/dist/esm/theme/index.d.ts +2 -0
- package/dist/esm/theme/index.js +2 -1
- package/dist/esm/theme/light/area.d.ts +6 -0
- package/dist/esm/theme/light/bar.d.ts +9 -0
- package/dist/esm/theme/light/boxPlot.d.ts +3 -0
- package/dist/esm/theme/light/column.d.ts +9 -0
- package/dist/esm/theme/light/dualAxis.d.ts +3 -0
- package/dist/esm/theme/light/funnel.d.ts +3 -0
- package/dist/esm/theme/light/heatmap.d.ts +3 -0
- package/dist/esm/theme/light/hierarchy.d.ts +9 -0
- package/dist/esm/theme/light/histogram.d.ts +3 -0
- package/dist/esm/theme/light/line.d.ts +3 -0
- package/dist/esm/theme/light/pie.d.ts +6 -0
- package/dist/esm/theme/light/race.d.ts +9 -0
- package/dist/esm/theme/light/raceLine.d.ts +3 -0
- package/dist/esm/theme/light/racePie.d.ts +6 -0
- package/dist/esm/theme/light/radar.d.ts +3 -0
- package/dist/esm/theme/light/rose.d.ts +6 -0
- package/dist/esm/theme/light/scatter.d.ts +3 -0
- package/dist/esm/theme/tokenTheme.d.ts +54 -0
- package/dist/esm/theme/tokenTheme.js +243 -0
- package/dist/esm/theme/tokenTheme.js.map +1 -0
- package/dist/esm/types/chartType/column/zColumn.d.ts +2 -0
- package/dist/esm/types/chartType/columnParallel/zColumnParallel.d.ts +2 -0
- package/dist/esm/types/chartType/raceBar/zRaceBar.d.ts +2 -0
- package/dist/esm/types/chartType/raceColumn/zRaceColumn.d.ts +2 -0
- package/dist/esm/types/chartType/raceDonut/zRaceDonut.d.ts +2 -0
- package/dist/esm/types/chartType/raceLine/zRaceLine.d.ts +2 -0
- package/dist/esm/types/chartType/racePie/zRacePie.d.ts +2 -0
- package/dist/esm/types/chartType/raceScatter/zRaceScatter.d.ts +2 -0
- package/dist/esm/types/properties/config/area.d.ts +6 -0
- package/dist/esm/types/properties/config/bar.d.ts +9 -0
- package/dist/esm/types/properties/config/boxplot.d.ts +3 -0
- package/dist/esm/types/properties/config/circlePacking.d.ts +3 -0
- package/dist/esm/types/properties/config/column.d.ts +9 -0
- package/dist/esm/types/properties/config/config.d.ts +103 -0
- package/dist/esm/types/properties/config/dualAxis.d.ts +3 -0
- package/dist/esm/types/properties/config/funnel.d.ts +3 -0
- package/dist/esm/types/properties/config/heatmap.d.ts +3 -0
- package/dist/esm/types/properties/config/histogram.d.ts +3 -0
- package/dist/esm/types/properties/config/line.d.ts +3 -0
- package/dist/esm/types/properties/config/pie.d.ts +9 -0
- package/dist/esm/types/properties/config/pivotGrid/pivotGrid.d.ts +3 -0
- package/dist/esm/types/properties/config/pivotGrid/pivotGrid.js +4 -1
- package/dist/esm/types/properties/config/pivotGrid/pivotGrid.js.map +1 -1
- package/dist/esm/types/properties/config/pivotTable.d.ts +2 -0
- package/dist/esm/types/properties/config/player/player.d.ts +8 -0
- package/dist/esm/types/properties/config/player/zPlayer.d.ts +2 -0
- package/dist/esm/types/properties/config/player/zPlayer.js +2 -0
- package/dist/esm/types/properties/config/player/zPlayer.js.map +1 -1
- package/dist/esm/types/properties/config/race.d.ts +30 -0
- package/dist/esm/types/properties/config/rose.d.ts +6 -0
- package/dist/esm/types/properties/config/scatter.d.ts +3 -0
- package/dist/esm/types/properties/config/sunburst.d.ts +3 -0
- package/dist/esm/types/properties/config/table.d.ts +2 -0
- package/dist/esm/types/properties/config/table.js +2 -0
- package/dist/esm/types/properties/config/table.js.map +1 -1
- package/dist/esm/types/properties/config/treeMap.d.ts +3 -0
- package/dist/esm/types/properties/theme/customTheme.d.ts +206 -0
- package/dist/umd/index.js +357 -17
- package/dist/umd/index.js.map +1 -1
- package/package.json +1 -1
|
@@ -10,6 +10,7 @@ const headerStyle = (spec, context)=>{
|
|
|
10
10
|
const backgroundColor = themConfig.headerBackgroundColor || '#EEF1F5';
|
|
11
11
|
const fontColor = themConfig.headerFontColor || '#1B1F23';
|
|
12
12
|
const fontSize = themConfig.headerFontSize || 12;
|
|
13
|
+
const fontFamily = themConfig.headerFontFamily;
|
|
13
14
|
const hoverCellBgColor = themConfig.hoverHeaderBackgroundColor || '#bedaff';
|
|
14
15
|
const hoverInlineColor = themConfig.hoverHeaderInlineBackgroundColor || '#bedaff';
|
|
15
16
|
result.theme.headerStyle = {
|
|
@@ -37,6 +38,7 @@ const headerStyle = (spec, context)=>{
|
|
|
37
38
|
]
|
|
38
39
|
},
|
|
39
40
|
fontSize: fontSize,
|
|
41
|
+
fontFamily: fontFamily,
|
|
40
42
|
fontVariant: 'normal',
|
|
41
43
|
fontStyle: 'normal',
|
|
42
44
|
fontWeight: 'bold',
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"pipeline/spec/table/pipes/theme/headerStyle.js","sources":["webpack://@visactor/vseed/./src/pipeline/spec/table/pipes/theme/headerStyle.ts"],"sourcesContent":["import type { PivotTableSpecPipe, TableConfig } from 'src/types'\nimport type { ThemeLike, WithTheme } from './type'\n\nexport const headerStyle: PivotTableSpecPipe = (spec, context) => {\n const result = { ...spec } as Partial<typeof spec> & WithTheme\n const { advancedVSeed } = context\n const { config, chartType } = advancedVSeed\n const themConfig = config?.[chartType] as TableConfig\n\n if (!result.theme || !themConfig) return result\n\n // basic\n const borderColor = themConfig.borderColor || 'rgb(224, 224, 224)'\n const backgroundColor = themConfig.headerBackgroundColor || '#EEF1F5'\n const fontColor = themConfig.headerFontColor || '#1B1F23'\n const fontSize = themConfig.headerFontSize || 12\n // Interaction\n const hoverCellBgColor = themConfig.hoverHeaderBackgroundColor || '#bedaff'\n const hoverInlineColor = themConfig.hoverHeaderInlineBackgroundColor || '#bedaff'\n\n ;(result.theme as ThemeLike).headerStyle = {\n borderColor: borderColor,\n borderLineWidth: 1,\n padding: [8, 12, 8, 12],\n textAlign: 'center',\n hover: {\n cellBgColor: hoverCellBgColor,\n inlineRowBgColor: hoverInlineColor,\n inlineColumnBgColor: hoverInlineColor,\n },\n frameStyle: {\n borderColor: borderColor,\n borderLineWidth: [0, 0, 1, 0],\n },\n fontSize: fontSize,\n fontVariant: 'normal',\n fontStyle: 'normal',\n fontWeight: 'bold',\n color: fontColor,\n bgColor: backgroundColor,\n lineHeight: fontSize * 1.5,\n }\n\n return result\n}\n"],"names":["headerStyle","spec","context","result","advancedVSeed","config","chartType","themConfig","borderColor","backgroundColor","fontColor","fontSize","hoverCellBgColor","hoverInlineColor"],"mappings":"AAGO,MAAMA,cAAkC,CAACC,MAAMC;IACpD,MAAMC,SAAS;QAAE,GAAGF,IAAI;IAAC;IACzB,MAAM,EAAEG,aAAa,EAAE,GAAGF;IAC1B,MAAM,EAAEG,MAAM,EAAEC,SAAS,EAAE,GAAGF;IAC9B,MAAMG,aAAaF,QAAQ,CAACC,UAAU;IAEtC,IAAI,CAACH,OAAO,KAAK,IAAI,CAACI,YAAY,OAAOJ;IAGzC,MAAMK,cAAcD,WAAW,WAAW,IAAI;IAC9C,MAAME,kBAAkBF,WAAW,qBAAqB,IAAI;IAC5D,MAAMG,YAAYH,WAAW,eAAe,IAAI;IAChD,MAAMI,WAAWJ,WAAW,cAAc,IAAI;
|
|
1
|
+
{"version":3,"file":"pipeline/spec/table/pipes/theme/headerStyle.js","sources":["webpack://@visactor/vseed/./src/pipeline/spec/table/pipes/theme/headerStyle.ts"],"sourcesContent":["import type { PivotTableSpecPipe, TableConfig } from 'src/types'\nimport type { ThemeLike, WithTheme } from './type'\n\nexport const headerStyle: PivotTableSpecPipe = (spec, context) => {\n const result = { ...spec } as Partial<typeof spec> & WithTheme\n const { advancedVSeed } = context\n const { config, chartType } = advancedVSeed\n const themConfig = config?.[chartType] as TableConfig\n\n if (!result.theme || !themConfig) return result\n\n // basic\n const borderColor = themConfig.borderColor || 'rgb(224, 224, 224)'\n const backgroundColor = themConfig.headerBackgroundColor || '#EEF1F5'\n const fontColor = themConfig.headerFontColor || '#1B1F23'\n const fontSize = themConfig.headerFontSize || 12\n const fontFamily = themConfig.headerFontFamily\n // Interaction\n const hoverCellBgColor = themConfig.hoverHeaderBackgroundColor || '#bedaff'\n const hoverInlineColor = themConfig.hoverHeaderInlineBackgroundColor || '#bedaff'\n\n ;(result.theme as ThemeLike).headerStyle = {\n borderColor: borderColor,\n borderLineWidth: 1,\n padding: [8, 12, 8, 12],\n textAlign: 'center',\n hover: {\n cellBgColor: hoverCellBgColor,\n inlineRowBgColor: hoverInlineColor,\n inlineColumnBgColor: hoverInlineColor,\n },\n frameStyle: {\n borderColor: borderColor,\n borderLineWidth: [0, 0, 1, 0],\n },\n fontSize: fontSize,\n fontFamily: fontFamily,\n fontVariant: 'normal',\n fontStyle: 'normal',\n fontWeight: 'bold',\n color: fontColor,\n bgColor: backgroundColor,\n lineHeight: fontSize * 1.5,\n }\n\n return result\n}\n"],"names":["headerStyle","spec","context","result","advancedVSeed","config","chartType","themConfig","borderColor","backgroundColor","fontColor","fontSize","fontFamily","hoverCellBgColor","hoverInlineColor"],"mappings":"AAGO,MAAMA,cAAkC,CAACC,MAAMC;IACpD,MAAMC,SAAS;QAAE,GAAGF,IAAI;IAAC;IACzB,MAAM,EAAEG,aAAa,EAAE,GAAGF;IAC1B,MAAM,EAAEG,MAAM,EAAEC,SAAS,EAAE,GAAGF;IAC9B,MAAMG,aAAaF,QAAQ,CAACC,UAAU;IAEtC,IAAI,CAACH,OAAO,KAAK,IAAI,CAACI,YAAY,OAAOJ;IAGzC,MAAMK,cAAcD,WAAW,WAAW,IAAI;IAC9C,MAAME,kBAAkBF,WAAW,qBAAqB,IAAI;IAC5D,MAAMG,YAAYH,WAAW,eAAe,IAAI;IAChD,MAAMI,WAAWJ,WAAW,cAAc,IAAI;IAC9C,MAAMK,aAAaL,WAAW,gBAAgB;IAE9C,MAAMM,mBAAmBN,WAAW,0BAA0B,IAAI;IAClE,MAAMO,mBAAmBP,WAAW,gCAAgC,IAAI;IAEtEJ,OAAO,KAAK,CAAe,WAAW,GAAG;QACzC,aAAaK;QACb,iBAAiB;QACjB,SAAS;YAAC;YAAG;YAAI;YAAG;SAAG;QACvB,WAAW;QACX,OAAO;YACL,aAAaK;YACb,kBAAkBC;YAClB,qBAAqBA;QACvB;QACA,YAAY;YACV,aAAaN;YACb,iBAAiB;gBAAC;gBAAG;gBAAG;gBAAG;aAAE;QAC/B;QACA,UAAUG;QACV,YAAYC;QACZ,aAAa;QACb,WAAW;QACX,YAAY;QACZ,OAAOF;QACP,SAASD;QACT,YAAYE,AAAW,MAAXA;IACd;IAEA,OAAOR;AACT"}
|
|
@@ -10,6 +10,7 @@ const rowHeaderStyle = (spec, context)=>{
|
|
|
10
10
|
const backgroundColor = themConfig.headerBackgroundColor || '#EEF1F5';
|
|
11
11
|
const fontColor = themConfig.headerFontColor || '#1B1F23';
|
|
12
12
|
const fontSize = themConfig.headerFontSize || 12;
|
|
13
|
+
const fontFamily = themConfig.headerFontFamily;
|
|
13
14
|
const hoverCellBgColor = themConfig.hoverHeaderBackgroundColor || '#bedaff';
|
|
14
15
|
const hoverInlineColor = themConfig.hoverHeaderInlineBackgroundColor || '#bedaff';
|
|
15
16
|
result.theme.rowHeaderStyle = {
|
|
@@ -37,6 +38,7 @@ const rowHeaderStyle = (spec, context)=>{
|
|
|
37
38
|
]
|
|
38
39
|
},
|
|
39
40
|
fontSize: fontSize,
|
|
41
|
+
fontFamily: fontFamily,
|
|
40
42
|
fontVariant: 'normal',
|
|
41
43
|
fontStyle: 'normal',
|
|
42
44
|
fontWeight: 'bold',
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"pipeline/spec/table/pipes/theme/rowHeaderStyle.js","sources":["webpack://@visactor/vseed/./src/pipeline/spec/table/pipes/theme/rowHeaderStyle.ts"],"sourcesContent":["import type { PivotTableSpecPipe, TableConfig } from 'src/types'\nimport type { ThemeLike, WithTheme } from './type'\n\nexport const rowHeaderStyle: PivotTableSpecPipe = (spec, context) => {\n const result = { ...spec } as Partial<typeof spec> & WithTheme\n const { advancedVSeed } = context\n const { config, chartType } = advancedVSeed\n const themConfig = config?.[chartType] as TableConfig\n\n if (!result.theme || !themConfig) return result\n\n // basic\n const borderColor = themConfig.borderColor || 'rgb(224, 224, 224)'\n const backgroundColor = themConfig.headerBackgroundColor || '#EEF1F5'\n const fontColor = themConfig.headerFontColor || '#1B1F23'\n const fontSize = themConfig.headerFontSize || 12\n // Interaction\n const hoverCellBgColor = themConfig.hoverHeaderBackgroundColor || '#bedaff'\n const hoverInlineColor = themConfig.hoverHeaderInlineBackgroundColor || '#bedaff'\n\n ;(result.theme as ThemeLike).rowHeaderStyle = {\n borderColor: borderColor,\n borderLineWidth: 1,\n padding: [8, 12, 8, 12],\n textAlign: 'left',\n hover: {\n cellBgColor: hoverCellBgColor,\n inlineRowBgColor: hoverInlineColor,\n inlineColumnBgColor: hoverInlineColor,\n },\n frameStyle: {\n borderColor: borderColor,\n borderLineWidth: [0, 1, 0, 0],\n },\n fontSize: fontSize,\n fontVariant: 'normal',\n fontStyle: 'normal',\n fontWeight: 'bold',\n color: fontColor,\n bgColor: backgroundColor,\n lineHeight: fontSize * 1.5,\n }\n\n return result\n}\n"],"names":["rowHeaderStyle","spec","context","result","advancedVSeed","config","chartType","themConfig","borderColor","backgroundColor","fontColor","fontSize","hoverCellBgColor","hoverInlineColor"],"mappings":"AAGO,MAAMA,iBAAqC,CAACC,MAAMC;IACvD,MAAMC,SAAS;QAAE,GAAGF,IAAI;IAAC;IACzB,MAAM,EAAEG,aAAa,EAAE,GAAGF;IAC1B,MAAM,EAAEG,MAAM,EAAEC,SAAS,EAAE,GAAGF;IAC9B,MAAMG,aAAaF,QAAQ,CAACC,UAAU;IAEtC,IAAI,CAACH,OAAO,KAAK,IAAI,CAACI,YAAY,OAAOJ;IAGzC,MAAMK,cAAcD,WAAW,WAAW,IAAI;IAC9C,MAAME,kBAAkBF,WAAW,qBAAqB,IAAI;IAC5D,MAAMG,YAAYH,WAAW,eAAe,IAAI;IAChD,MAAMI,WAAWJ,WAAW,cAAc,IAAI;
|
|
1
|
+
{"version":3,"file":"pipeline/spec/table/pipes/theme/rowHeaderStyle.js","sources":["webpack://@visactor/vseed/./src/pipeline/spec/table/pipes/theme/rowHeaderStyle.ts"],"sourcesContent":["import type { PivotTableSpecPipe, TableConfig } from 'src/types'\nimport type { ThemeLike, WithTheme } from './type'\n\nexport const rowHeaderStyle: PivotTableSpecPipe = (spec, context) => {\n const result = { ...spec } as Partial<typeof spec> & WithTheme\n const { advancedVSeed } = context\n const { config, chartType } = advancedVSeed\n const themConfig = config?.[chartType] as TableConfig\n\n if (!result.theme || !themConfig) return result\n\n // basic\n const borderColor = themConfig.borderColor || 'rgb(224, 224, 224)'\n const backgroundColor = themConfig.headerBackgroundColor || '#EEF1F5'\n const fontColor = themConfig.headerFontColor || '#1B1F23'\n const fontSize = themConfig.headerFontSize || 12\n const fontFamily = themConfig.headerFontFamily\n // Interaction\n const hoverCellBgColor = themConfig.hoverHeaderBackgroundColor || '#bedaff'\n const hoverInlineColor = themConfig.hoverHeaderInlineBackgroundColor || '#bedaff'\n\n ;(result.theme as ThemeLike).rowHeaderStyle = {\n borderColor: borderColor,\n borderLineWidth: 1,\n padding: [8, 12, 8, 12],\n textAlign: 'left',\n hover: {\n cellBgColor: hoverCellBgColor,\n inlineRowBgColor: hoverInlineColor,\n inlineColumnBgColor: hoverInlineColor,\n },\n frameStyle: {\n borderColor: borderColor,\n borderLineWidth: [0, 1, 0, 0],\n },\n fontSize: fontSize,\n fontFamily: fontFamily,\n fontVariant: 'normal',\n fontStyle: 'normal',\n fontWeight: 'bold',\n color: fontColor,\n bgColor: backgroundColor,\n lineHeight: fontSize * 1.5,\n }\n\n return result\n}\n"],"names":["rowHeaderStyle","spec","context","result","advancedVSeed","config","chartType","themConfig","borderColor","backgroundColor","fontColor","fontSize","fontFamily","hoverCellBgColor","hoverInlineColor"],"mappings":"AAGO,MAAMA,iBAAqC,CAACC,MAAMC;IACvD,MAAMC,SAAS;QAAE,GAAGF,IAAI;IAAC;IACzB,MAAM,EAAEG,aAAa,EAAE,GAAGF;IAC1B,MAAM,EAAEG,MAAM,EAAEC,SAAS,EAAE,GAAGF;IAC9B,MAAMG,aAAaF,QAAQ,CAACC,UAAU;IAEtC,IAAI,CAACH,OAAO,KAAK,IAAI,CAACI,YAAY,OAAOJ;IAGzC,MAAMK,cAAcD,WAAW,WAAW,IAAI;IAC9C,MAAME,kBAAkBF,WAAW,qBAAqB,IAAI;IAC5D,MAAMG,YAAYH,WAAW,eAAe,IAAI;IAChD,MAAMI,WAAWJ,WAAW,cAAc,IAAI;IAC9C,MAAMK,aAAaL,WAAW,gBAAgB;IAE9C,MAAMM,mBAAmBN,WAAW,0BAA0B,IAAI;IAClE,MAAMO,mBAAmBP,WAAW,gCAAgC,IAAI;IAEtEJ,OAAO,KAAK,CAAe,cAAc,GAAG;QAC5C,aAAaK;QACb,iBAAiB;QACjB,SAAS;YAAC;YAAG;YAAI;YAAG;SAAG;QACvB,WAAW;QACX,OAAO;YACL,aAAaK;YACb,kBAAkBC;YAClB,qBAAqBA;QACvB;QACA,YAAY;YACV,aAAaN;YACb,iBAAiB;gBAAC;gBAAG;gBAAG;gBAAG;aAAE;QAC/B;QACA,UAAUG;QACV,YAAYC;QACZ,aAAa;QACb,WAAW;QACX,YAAY;QACZ,OAAOF;QACP,SAASD;QACT,YAAYE,AAAW,MAAXA;IACd;IAEA,OAAOR;AACT"}
|
|
@@ -71,7 +71,9 @@ export declare const getDarkTableConfig: () => {
|
|
|
71
71
|
};
|
|
72
72
|
export declare const getLightPivotChartGridConfig: () => {
|
|
73
73
|
borderColor?: string | null | undefined;
|
|
74
|
+
bodyFontSize?: number | null | undefined;
|
|
74
75
|
bodyFontColor?: string | null | undefined;
|
|
76
|
+
headerFontSize?: number | null | undefined;
|
|
75
77
|
headerFontColor?: string | null | undefined;
|
|
76
78
|
headerBackgroundColor?: string | null | undefined;
|
|
77
79
|
hoverHeaderBackgroundColor?: string | null | undefined;
|
|
@@ -85,10 +87,13 @@ export declare const getLightPivotChartGridConfig: () => {
|
|
|
85
87
|
titleFontWeight?: string | null | undefined;
|
|
86
88
|
chartGridColor?: string | null | undefined;
|
|
87
89
|
axisLabelColor?: string | null | undefined;
|
|
90
|
+
axisLabelFontSize?: number | null | undefined;
|
|
88
91
|
};
|
|
89
92
|
export declare const getDarkPivotChartGridConfig: () => {
|
|
90
93
|
borderColor?: string | null | undefined;
|
|
94
|
+
bodyFontSize?: number | null | undefined;
|
|
91
95
|
bodyFontColor?: string | null | undefined;
|
|
96
|
+
headerFontSize?: number | null | undefined;
|
|
92
97
|
headerFontColor?: string | null | undefined;
|
|
93
98
|
headerBackgroundColor?: string | null | undefined;
|
|
94
99
|
hoverHeaderBackgroundColor?: string | null | undefined;
|
|
@@ -102,4 +107,5 @@ export declare const getDarkPivotChartGridConfig: () => {
|
|
|
102
107
|
titleFontWeight?: string | null | undefined;
|
|
103
108
|
chartGridColor?: string | null | undefined;
|
|
104
109
|
axisLabelColor?: string | null | undefined;
|
|
110
|
+
axisLabelFontSize?: number | null | undefined;
|
|
105
111
|
};
|
|
@@ -10,7 +10,9 @@ export declare const getAreaTheme: () => {
|
|
|
10
10
|
};
|
|
11
11
|
pivotGrid: {
|
|
12
12
|
borderColor?: string | null | undefined;
|
|
13
|
+
bodyFontSize?: number | null | undefined;
|
|
13
14
|
bodyFontColor?: string | null | undefined;
|
|
15
|
+
headerFontSize?: number | null | undefined;
|
|
14
16
|
headerFontColor?: string | null | undefined;
|
|
15
17
|
headerBackgroundColor?: string | null | undefined;
|
|
16
18
|
hoverHeaderBackgroundColor?: string | null | undefined;
|
|
@@ -24,6 +26,7 @@ export declare const getAreaTheme: () => {
|
|
|
24
26
|
titleFontWeight?: string | null | undefined;
|
|
25
27
|
chartGridColor?: string | null | undefined;
|
|
26
28
|
axisLabelColor?: string | null | undefined;
|
|
29
|
+
axisLabelFontSize?: number | null | undefined;
|
|
27
30
|
};
|
|
28
31
|
annotation: {
|
|
29
32
|
annotationPoint: import("../..").AnnotationPointConfig;
|
|
@@ -88,7 +91,9 @@ export declare const getAreaPercentTheme: () => {
|
|
|
88
91
|
};
|
|
89
92
|
pivotGrid: {
|
|
90
93
|
borderColor?: string | null | undefined;
|
|
94
|
+
bodyFontSize?: number | null | undefined;
|
|
91
95
|
bodyFontColor?: string | null | undefined;
|
|
96
|
+
headerFontSize?: number | null | undefined;
|
|
92
97
|
headerFontColor?: string | null | undefined;
|
|
93
98
|
headerBackgroundColor?: string | null | undefined;
|
|
94
99
|
hoverHeaderBackgroundColor?: string | null | undefined;
|
|
@@ -102,6 +107,7 @@ export declare const getAreaPercentTheme: () => {
|
|
|
102
107
|
titleFontWeight?: string | null | undefined;
|
|
103
108
|
chartGridColor?: string | null | undefined;
|
|
104
109
|
axisLabelColor?: string | null | undefined;
|
|
110
|
+
axisLabelFontSize?: number | null | undefined;
|
|
105
111
|
};
|
|
106
112
|
annotation: {
|
|
107
113
|
annotationPoint: import("../..").AnnotationPointConfig;
|
|
@@ -12,7 +12,9 @@ export declare const getBarTheme: () => {
|
|
|
12
12
|
stackCornerRadius: number[];
|
|
13
13
|
pivotGrid: {
|
|
14
14
|
borderColor?: string | null | undefined;
|
|
15
|
+
bodyFontSize?: number | null | undefined;
|
|
15
16
|
bodyFontColor?: string | null | undefined;
|
|
17
|
+
headerFontSize?: number | null | undefined;
|
|
16
18
|
headerFontColor?: string | null | undefined;
|
|
17
19
|
headerBackgroundColor?: string | null | undefined;
|
|
18
20
|
hoverHeaderBackgroundColor?: string | null | undefined;
|
|
@@ -26,6 +28,7 @@ export declare const getBarTheme: () => {
|
|
|
26
28
|
titleFontWeight?: string | null | undefined;
|
|
27
29
|
chartGridColor?: string | null | undefined;
|
|
28
30
|
axisLabelColor?: string | null | undefined;
|
|
31
|
+
axisLabelFontSize?: number | null | undefined;
|
|
29
32
|
};
|
|
30
33
|
annotation: {
|
|
31
34
|
annotationPoint: import("../../types").AnnotationPointConfig;
|
|
@@ -91,7 +94,9 @@ export declare const getBarParallelTheme: () => {
|
|
|
91
94
|
stackCornerRadius: number[];
|
|
92
95
|
pivotGrid: {
|
|
93
96
|
borderColor?: string | null | undefined;
|
|
97
|
+
bodyFontSize?: number | null | undefined;
|
|
94
98
|
bodyFontColor?: string | null | undefined;
|
|
99
|
+
headerFontSize?: number | null | undefined;
|
|
95
100
|
headerFontColor?: string | null | undefined;
|
|
96
101
|
headerBackgroundColor?: string | null | undefined;
|
|
97
102
|
hoverHeaderBackgroundColor?: string | null | undefined;
|
|
@@ -105,6 +110,7 @@ export declare const getBarParallelTheme: () => {
|
|
|
105
110
|
titleFontWeight?: string | null | undefined;
|
|
106
111
|
chartGridColor?: string | null | undefined;
|
|
107
112
|
axisLabelColor?: string | null | undefined;
|
|
113
|
+
axisLabelFontSize?: number | null | undefined;
|
|
108
114
|
};
|
|
109
115
|
annotation: {
|
|
110
116
|
annotationPoint: import("../../types").AnnotationPointConfig;
|
|
@@ -170,7 +176,9 @@ export declare const getBarPercentTheme: () => {
|
|
|
170
176
|
stackCornerRadius: number[];
|
|
171
177
|
pivotGrid: {
|
|
172
178
|
borderColor?: string | null | undefined;
|
|
179
|
+
bodyFontSize?: number | null | undefined;
|
|
173
180
|
bodyFontColor?: string | null | undefined;
|
|
181
|
+
headerFontSize?: number | null | undefined;
|
|
174
182
|
headerFontColor?: string | null | undefined;
|
|
175
183
|
headerBackgroundColor?: string | null | undefined;
|
|
176
184
|
hoverHeaderBackgroundColor?: string | null | undefined;
|
|
@@ -184,6 +192,7 @@ export declare const getBarPercentTheme: () => {
|
|
|
184
192
|
titleFontWeight?: string | null | undefined;
|
|
185
193
|
chartGridColor?: string | null | undefined;
|
|
186
194
|
axisLabelColor?: string | null | undefined;
|
|
195
|
+
axisLabelFontSize?: number | null | undefined;
|
|
187
196
|
};
|
|
188
197
|
annotation: {
|
|
189
198
|
annotationPoint: import("../../types").AnnotationPointConfig;
|
|
@@ -10,7 +10,9 @@ export declare const getBoxPlotTheme: () => {
|
|
|
10
10
|
};
|
|
11
11
|
pivotGrid: {
|
|
12
12
|
borderColor?: string | null | undefined;
|
|
13
|
+
bodyFontSize?: number | null | undefined;
|
|
13
14
|
bodyFontColor?: string | null | undefined;
|
|
15
|
+
headerFontSize?: number | null | undefined;
|
|
14
16
|
headerFontColor?: string | null | undefined;
|
|
15
17
|
headerBackgroundColor?: string | null | undefined;
|
|
16
18
|
hoverHeaderBackgroundColor?: string | null | undefined;
|
|
@@ -24,6 +26,7 @@ export declare const getBoxPlotTheme: () => {
|
|
|
24
26
|
titleFontWeight?: string | null | undefined;
|
|
25
27
|
chartGridColor?: string | null | undefined;
|
|
26
28
|
axisLabelColor?: string | null | undefined;
|
|
29
|
+
axisLabelFontSize?: number | null | undefined;
|
|
27
30
|
};
|
|
28
31
|
annotation: {
|
|
29
32
|
annotationPoint: import("../..").AnnotationPointConfig;
|
|
@@ -11,7 +11,9 @@ export declare const getColumnTheme: () => {
|
|
|
11
11
|
stackCornerRadius: number[];
|
|
12
12
|
pivotGrid: {
|
|
13
13
|
borderColor?: string | null | undefined;
|
|
14
|
+
bodyFontSize?: number | null | undefined;
|
|
14
15
|
bodyFontColor?: string | null | undefined;
|
|
16
|
+
headerFontSize?: number | null | undefined;
|
|
15
17
|
headerFontColor?: string | null | undefined;
|
|
16
18
|
headerBackgroundColor?: string | null | undefined;
|
|
17
19
|
hoverHeaderBackgroundColor?: string | null | undefined;
|
|
@@ -25,6 +27,7 @@ export declare const getColumnTheme: () => {
|
|
|
25
27
|
titleFontWeight?: string | null | undefined;
|
|
26
28
|
chartGridColor?: string | null | undefined;
|
|
27
29
|
axisLabelColor?: string | null | undefined;
|
|
30
|
+
axisLabelFontSize?: number | null | undefined;
|
|
28
31
|
};
|
|
29
32
|
annotation: {
|
|
30
33
|
annotationPoint: import("../..").AnnotationPointConfig;
|
|
@@ -264,7 +267,9 @@ export declare const getColumnParallelTheme: () => {
|
|
|
264
267
|
stackCornerRadius: number[];
|
|
265
268
|
pivotGrid: {
|
|
266
269
|
borderColor?: string | null | undefined;
|
|
270
|
+
bodyFontSize?: number | null | undefined;
|
|
267
271
|
bodyFontColor?: string | null | undefined;
|
|
272
|
+
headerFontSize?: number | null | undefined;
|
|
268
273
|
headerFontColor?: string | null | undefined;
|
|
269
274
|
headerBackgroundColor?: string | null | undefined;
|
|
270
275
|
hoverHeaderBackgroundColor?: string | null | undefined;
|
|
@@ -278,6 +283,7 @@ export declare const getColumnParallelTheme: () => {
|
|
|
278
283
|
titleFontWeight?: string | null | undefined;
|
|
279
284
|
chartGridColor?: string | null | undefined;
|
|
280
285
|
axisLabelColor?: string | null | undefined;
|
|
286
|
+
axisLabelFontSize?: number | null | undefined;
|
|
281
287
|
};
|
|
282
288
|
annotation: {
|
|
283
289
|
annotationPoint: import("../..").AnnotationPointConfig;
|
|
@@ -343,7 +349,9 @@ export declare const getColumnPercentTheme: () => {
|
|
|
343
349
|
stackCornerRadius: number[];
|
|
344
350
|
pivotGrid: {
|
|
345
351
|
borderColor?: string | null | undefined;
|
|
352
|
+
bodyFontSize?: number | null | undefined;
|
|
346
353
|
bodyFontColor?: string | null | undefined;
|
|
354
|
+
headerFontSize?: number | null | undefined;
|
|
347
355
|
headerFontColor?: string | null | undefined;
|
|
348
356
|
headerBackgroundColor?: string | null | undefined;
|
|
349
357
|
hoverHeaderBackgroundColor?: string | null | undefined;
|
|
@@ -357,6 +365,7 @@ export declare const getColumnPercentTheme: () => {
|
|
|
357
365
|
titleFontWeight?: string | null | undefined;
|
|
358
366
|
chartGridColor?: string | null | undefined;
|
|
359
367
|
axisLabelColor?: string | null | undefined;
|
|
368
|
+
axisLabelFontSize?: number | null | undefined;
|
|
360
369
|
};
|
|
361
370
|
annotation: {
|
|
362
371
|
annotationPoint: import("../..").AnnotationPointConfig;
|
|
@@ -54,7 +54,9 @@ export declare const getDualAxisTheme: () => {
|
|
|
54
54
|
};
|
|
55
55
|
pivotGrid: {
|
|
56
56
|
borderColor?: string | null | undefined;
|
|
57
|
+
bodyFontSize?: number | null | undefined;
|
|
57
58
|
bodyFontColor?: string | null | undefined;
|
|
59
|
+
headerFontSize?: number | null | undefined;
|
|
58
60
|
headerFontColor?: string | null | undefined;
|
|
59
61
|
headerBackgroundColor?: string | null | undefined;
|
|
60
62
|
hoverHeaderBackgroundColor?: string | null | undefined;
|
|
@@ -68,6 +70,7 @@ export declare const getDualAxisTheme: () => {
|
|
|
68
70
|
titleFontWeight?: string | null | undefined;
|
|
69
71
|
chartGridColor?: string | null | undefined;
|
|
70
72
|
axisLabelColor?: string | null | undefined;
|
|
73
|
+
axisLabelFontSize?: number | null | undefined;
|
|
71
74
|
};
|
|
72
75
|
annotation: {
|
|
73
76
|
annotationPoint: import("../..").AnnotationPointConfig;
|
|
@@ -11,7 +11,9 @@ export declare const getFunnelTheme: () => {
|
|
|
11
11
|
transform: import("../..").FunnelTransformConfig;
|
|
12
12
|
pivotGrid: {
|
|
13
13
|
borderColor?: string | null | undefined;
|
|
14
|
+
bodyFontSize?: number | null | undefined;
|
|
14
15
|
bodyFontColor?: string | null | undefined;
|
|
16
|
+
headerFontSize?: number | null | undefined;
|
|
15
17
|
headerFontColor?: string | null | undefined;
|
|
16
18
|
headerBackgroundColor?: string | null | undefined;
|
|
17
19
|
hoverHeaderBackgroundColor?: string | null | undefined;
|
|
@@ -25,6 +27,7 @@ export declare const getFunnelTheme: () => {
|
|
|
25
27
|
titleFontWeight?: string | null | undefined;
|
|
26
28
|
chartGridColor?: string | null | undefined;
|
|
27
29
|
axisLabelColor?: string | null | undefined;
|
|
30
|
+
axisLabelFontSize?: number | null | undefined;
|
|
28
31
|
};
|
|
29
32
|
backgroundColor: string;
|
|
30
33
|
color: {
|
|
@@ -14,7 +14,9 @@ export declare const getHeatmapTheme: () => {
|
|
|
14
14
|
cell: import("../../types/properties/config/heatmap").HeatmapCell;
|
|
15
15
|
pivotGrid: {
|
|
16
16
|
borderColor?: string | null | undefined;
|
|
17
|
+
bodyFontSize?: number | null | undefined;
|
|
17
18
|
bodyFontColor?: string | null | undefined;
|
|
19
|
+
headerFontSize?: number | null | undefined;
|
|
18
20
|
headerFontColor?: string | null | undefined;
|
|
19
21
|
headerBackgroundColor?: string | null | undefined;
|
|
20
22
|
hoverHeaderBackgroundColor?: string | null | undefined;
|
|
@@ -28,6 +30,7 @@ export declare const getHeatmapTheme: () => {
|
|
|
28
30
|
titleFontWeight?: string | null | undefined;
|
|
29
31
|
chartGridColor?: string | null | undefined;
|
|
30
32
|
axisLabelColor?: string | null | undefined;
|
|
33
|
+
axisLabelFontSize?: number | null | undefined;
|
|
31
34
|
};
|
|
32
35
|
backgroundColor: string;
|
|
33
36
|
color: {
|
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
export declare const getTreeMapTheme: () => {
|
|
2
2
|
pivotGrid: {
|
|
3
3
|
borderColor?: string | null | undefined;
|
|
4
|
+
bodyFontSize?: number | null | undefined;
|
|
4
5
|
bodyFontColor?: string | null | undefined;
|
|
6
|
+
headerFontSize?: number | null | undefined;
|
|
5
7
|
headerFontColor?: string | null | undefined;
|
|
6
8
|
headerBackgroundColor?: string | null | undefined;
|
|
7
9
|
hoverHeaderBackgroundColor?: string | null | undefined;
|
|
@@ -15,6 +17,7 @@ export declare const getTreeMapTheme: () => {
|
|
|
15
17
|
titleFontWeight?: string | null | undefined;
|
|
16
18
|
chartGridColor?: string | null | undefined;
|
|
17
19
|
axisLabelColor?: string | null | undefined;
|
|
20
|
+
axisLabelFontSize?: number | null | undefined;
|
|
18
21
|
};
|
|
19
22
|
backgroundColor: string;
|
|
20
23
|
color: {
|
|
@@ -64,7 +67,9 @@ export declare const getTreeMapTheme: () => {
|
|
|
64
67
|
export declare const getSunburstTheme: () => {
|
|
65
68
|
pivotGrid: {
|
|
66
69
|
borderColor?: string | null | undefined;
|
|
70
|
+
bodyFontSize?: number | null | undefined;
|
|
67
71
|
bodyFontColor?: string | null | undefined;
|
|
72
|
+
headerFontSize?: number | null | undefined;
|
|
68
73
|
headerFontColor?: string | null | undefined;
|
|
69
74
|
headerBackgroundColor?: string | null | undefined;
|
|
70
75
|
hoverHeaderBackgroundColor?: string | null | undefined;
|
|
@@ -78,6 +83,7 @@ export declare const getSunburstTheme: () => {
|
|
|
78
83
|
titleFontWeight?: string | null | undefined;
|
|
79
84
|
chartGridColor?: string | null | undefined;
|
|
80
85
|
axisLabelColor?: string | null | undefined;
|
|
86
|
+
axisLabelFontSize?: number | null | undefined;
|
|
81
87
|
};
|
|
82
88
|
backgroundColor: string;
|
|
83
89
|
color: {
|
|
@@ -127,7 +133,9 @@ export declare const getSunburstTheme: () => {
|
|
|
127
133
|
export declare const getCirclePackingTheme: () => {
|
|
128
134
|
pivotGrid: {
|
|
129
135
|
borderColor?: string | null | undefined;
|
|
136
|
+
bodyFontSize?: number | null | undefined;
|
|
130
137
|
bodyFontColor?: string | null | undefined;
|
|
138
|
+
headerFontSize?: number | null | undefined;
|
|
131
139
|
headerFontColor?: string | null | undefined;
|
|
132
140
|
headerBackgroundColor?: string | null | undefined;
|
|
133
141
|
hoverHeaderBackgroundColor?: string | null | undefined;
|
|
@@ -141,6 +149,7 @@ export declare const getCirclePackingTheme: () => {
|
|
|
141
149
|
titleFontWeight?: string | null | undefined;
|
|
142
150
|
chartGridColor?: string | null | undefined;
|
|
143
151
|
axisLabelColor?: string | null | undefined;
|
|
152
|
+
axisLabelFontSize?: number | null | undefined;
|
|
144
153
|
};
|
|
145
154
|
backgroundColor: string;
|
|
146
155
|
color: {
|
|
@@ -10,7 +10,9 @@ export declare const getHistogramTheme: () => {
|
|
|
10
10
|
};
|
|
11
11
|
pivotGrid: {
|
|
12
12
|
borderColor?: string | null | undefined;
|
|
13
|
+
bodyFontSize?: number | null | undefined;
|
|
13
14
|
bodyFontColor?: string | null | undefined;
|
|
15
|
+
headerFontSize?: number | null | undefined;
|
|
14
16
|
headerFontColor?: string | null | undefined;
|
|
15
17
|
headerBackgroundColor?: string | null | undefined;
|
|
16
18
|
hoverHeaderBackgroundColor?: string | null | undefined;
|
|
@@ -24,6 +26,7 @@ export declare const getHistogramTheme: () => {
|
|
|
24
26
|
titleFontWeight?: string | null | undefined;
|
|
25
27
|
chartGridColor?: string | null | undefined;
|
|
26
28
|
axisLabelColor?: string | null | undefined;
|
|
29
|
+
axisLabelFontSize?: number | null | undefined;
|
|
27
30
|
};
|
|
28
31
|
annotation: {
|
|
29
32
|
annotationPoint: import("../..").AnnotationPointConfig;
|
|
@@ -10,7 +10,9 @@ export declare const getLineTheme: () => {
|
|
|
10
10
|
};
|
|
11
11
|
pivotGrid: {
|
|
12
12
|
borderColor?: string | null | undefined;
|
|
13
|
+
bodyFontSize?: number | null | undefined;
|
|
13
14
|
bodyFontColor?: string | null | undefined;
|
|
15
|
+
headerFontSize?: number | null | undefined;
|
|
14
16
|
headerFontColor?: string | null | undefined;
|
|
15
17
|
headerBackgroundColor?: string | null | undefined;
|
|
16
18
|
hoverHeaderBackgroundColor?: string | null | undefined;
|
|
@@ -24,6 +26,7 @@ export declare const getLineTheme: () => {
|
|
|
24
26
|
titleFontWeight?: string | null | undefined;
|
|
25
27
|
chartGridColor?: string | null | undefined;
|
|
26
28
|
axisLabelColor?: string | null | undefined;
|
|
29
|
+
axisLabelFontSize?: number | null | undefined;
|
|
27
30
|
};
|
|
28
31
|
annotation: {
|
|
29
32
|
annotationPoint: import("../..").AnnotationPointConfig;
|
|
@@ -12,7 +12,9 @@ export declare const getPieTheme: () => {
|
|
|
12
12
|
};
|
|
13
13
|
pivotGrid: {
|
|
14
14
|
borderColor?: string | null | undefined;
|
|
15
|
+
bodyFontSize?: number | null | undefined;
|
|
15
16
|
bodyFontColor?: string | null | undefined;
|
|
17
|
+
headerFontSize?: number | null | undefined;
|
|
16
18
|
headerFontColor?: string | null | undefined;
|
|
17
19
|
headerBackgroundColor?: string | null | undefined;
|
|
18
20
|
hoverHeaderBackgroundColor?: string | null | undefined;
|
|
@@ -26,6 +28,7 @@ export declare const getPieTheme: () => {
|
|
|
26
28
|
titleFontWeight?: string | null | undefined;
|
|
27
29
|
chartGridColor?: string | null | undefined;
|
|
28
30
|
axisLabelColor?: string | null | undefined;
|
|
31
|
+
axisLabelFontSize?: number | null | undefined;
|
|
29
32
|
};
|
|
30
33
|
backgroundColor: string;
|
|
31
34
|
color: {
|
|
@@ -77,7 +80,9 @@ export declare const getDonutTheme: () => {
|
|
|
77
80
|
};
|
|
78
81
|
pivotGrid: {
|
|
79
82
|
borderColor?: string | null | undefined;
|
|
83
|
+
bodyFontSize?: number | null | undefined;
|
|
80
84
|
bodyFontColor?: string | null | undefined;
|
|
85
|
+
headerFontSize?: number | null | undefined;
|
|
81
86
|
headerFontColor?: string | null | undefined;
|
|
82
87
|
headerBackgroundColor?: string | null | undefined;
|
|
83
88
|
hoverHeaderBackgroundColor?: string | null | undefined;
|
|
@@ -91,6 +96,7 @@ export declare const getDonutTheme: () => {
|
|
|
91
96
|
titleFontWeight?: string | null | undefined;
|
|
92
97
|
chartGridColor?: string | null | undefined;
|
|
93
98
|
axisLabelColor?: string | null | undefined;
|
|
99
|
+
axisLabelFontSize?: number | null | undefined;
|
|
94
100
|
};
|
|
95
101
|
backgroundColor: string;
|
|
96
102
|
color: {
|
|
@@ -25,7 +25,9 @@ export declare const getRaceBarTheme: () => {
|
|
|
25
25
|
stackCornerRadius: number[];
|
|
26
26
|
pivotGrid: {
|
|
27
27
|
borderColor?: string | null | undefined;
|
|
28
|
+
bodyFontSize?: number | null | undefined;
|
|
28
29
|
bodyFontColor?: string | null | undefined;
|
|
30
|
+
headerFontSize?: number | null | undefined;
|
|
29
31
|
headerFontColor?: string | null | undefined;
|
|
30
32
|
headerBackgroundColor?: string | null | undefined;
|
|
31
33
|
hoverHeaderBackgroundColor?: string | null | undefined;
|
|
@@ -39,6 +41,7 @@ export declare const getRaceBarTheme: () => {
|
|
|
39
41
|
titleFontWeight?: string | null | undefined;
|
|
40
42
|
chartGridColor?: string | null | undefined;
|
|
41
43
|
axisLabelColor?: string | null | undefined;
|
|
44
|
+
axisLabelFontSize?: number | null | undefined;
|
|
42
45
|
};
|
|
43
46
|
annotation: {
|
|
44
47
|
annotationPoint: import("../../types").AnnotationPointConfig;
|
|
@@ -117,7 +120,9 @@ export declare const getRaceColumnTheme: () => {
|
|
|
117
120
|
stackCornerRadius: number[];
|
|
118
121
|
pivotGrid: {
|
|
119
122
|
borderColor?: string | null | undefined;
|
|
123
|
+
bodyFontSize?: number | null | undefined;
|
|
120
124
|
bodyFontColor?: string | null | undefined;
|
|
125
|
+
headerFontSize?: number | null | undefined;
|
|
121
126
|
headerFontColor?: string | null | undefined;
|
|
122
127
|
headerBackgroundColor?: string | null | undefined;
|
|
123
128
|
hoverHeaderBackgroundColor?: string | null | undefined;
|
|
@@ -131,6 +136,7 @@ export declare const getRaceColumnTheme: () => {
|
|
|
131
136
|
titleFontWeight?: string | null | undefined;
|
|
132
137
|
chartGridColor?: string | null | undefined;
|
|
133
138
|
axisLabelColor?: string | null | undefined;
|
|
139
|
+
axisLabelFontSize?: number | null | undefined;
|
|
134
140
|
};
|
|
135
141
|
annotation: {
|
|
136
142
|
annotationPoint: import("../../types").AnnotationPointConfig;
|
|
@@ -484,7 +490,9 @@ export declare const getRaceScatterTheme: () => {
|
|
|
484
490
|
};
|
|
485
491
|
pivotGrid: {
|
|
486
492
|
borderColor?: string | null | undefined;
|
|
493
|
+
bodyFontSize?: number | null | undefined;
|
|
487
494
|
bodyFontColor?: string | null | undefined;
|
|
495
|
+
headerFontSize?: number | null | undefined;
|
|
488
496
|
headerFontColor?: string | null | undefined;
|
|
489
497
|
headerBackgroundColor?: string | null | undefined;
|
|
490
498
|
hoverHeaderBackgroundColor?: string | null | undefined;
|
|
@@ -498,6 +506,7 @@ export declare const getRaceScatterTheme: () => {
|
|
|
498
506
|
titleFontWeight?: string | null | undefined;
|
|
499
507
|
chartGridColor?: string | null | undefined;
|
|
500
508
|
axisLabelColor?: string | null | undefined;
|
|
509
|
+
axisLabelFontSize?: number | null | undefined;
|
|
501
510
|
};
|
|
502
511
|
annotation: {
|
|
503
512
|
annotationPoint: import("../../types").AnnotationPointConfig;
|
|
@@ -124,7 +124,9 @@ export declare const getRaceLineTheme: () => {
|
|
|
124
124
|
};
|
|
125
125
|
pivotGrid: {
|
|
126
126
|
borderColor?: string | null | undefined;
|
|
127
|
+
bodyFontSize?: number | null | undefined;
|
|
127
128
|
bodyFontColor?: string | null | undefined;
|
|
129
|
+
headerFontSize?: number | null | undefined;
|
|
128
130
|
headerFontColor?: string | null | undefined;
|
|
129
131
|
headerBackgroundColor?: string | null | undefined;
|
|
130
132
|
hoverHeaderBackgroundColor?: string | null | undefined;
|
|
@@ -138,6 +140,7 @@ export declare const getRaceLineTheme: () => {
|
|
|
138
140
|
titleFontWeight?: string | null | undefined;
|
|
139
141
|
chartGridColor?: string | null | undefined;
|
|
140
142
|
axisLabelColor?: string | null | undefined;
|
|
143
|
+
axisLabelFontSize?: number | null | undefined;
|
|
141
144
|
};
|
|
142
145
|
annotation: {
|
|
143
146
|
annotationPoint: import("../../types").AnnotationPointConfig;
|
|
@@ -27,7 +27,9 @@ export declare const getRacePieTheme: () => {
|
|
|
27
27
|
};
|
|
28
28
|
pivotGrid: {
|
|
29
29
|
borderColor?: string | null | undefined;
|
|
30
|
+
bodyFontSize?: number | null | undefined;
|
|
30
31
|
bodyFontColor?: string | null | undefined;
|
|
32
|
+
headerFontSize?: number | null | undefined;
|
|
31
33
|
headerFontColor?: string | null | undefined;
|
|
32
34
|
headerBackgroundColor?: string | null | undefined;
|
|
33
35
|
hoverHeaderBackgroundColor?: string | null | undefined;
|
|
@@ -41,6 +43,7 @@ export declare const getRacePieTheme: () => {
|
|
|
41
43
|
titleFontWeight?: string | null | undefined;
|
|
42
44
|
chartGridColor?: string | null | undefined;
|
|
43
45
|
axisLabelColor?: string | null | undefined;
|
|
46
|
+
axisLabelFontSize?: number | null | undefined;
|
|
44
47
|
};
|
|
45
48
|
backgroundColor: string;
|
|
46
49
|
color: {
|
|
@@ -105,7 +108,9 @@ export declare const getRaceDonutTheme: () => {
|
|
|
105
108
|
};
|
|
106
109
|
pivotGrid: {
|
|
107
110
|
borderColor?: string | null | undefined;
|
|
111
|
+
bodyFontSize?: number | null | undefined;
|
|
108
112
|
bodyFontColor?: string | null | undefined;
|
|
113
|
+
headerFontSize?: number | null | undefined;
|
|
109
114
|
headerFontColor?: string | null | undefined;
|
|
110
115
|
headerBackgroundColor?: string | null | undefined;
|
|
111
116
|
hoverHeaderBackgroundColor?: string | null | undefined;
|
|
@@ -119,6 +124,7 @@ export declare const getRaceDonutTheme: () => {
|
|
|
119
124
|
titleFontWeight?: string | null | undefined;
|
|
120
125
|
chartGridColor?: string | null | undefined;
|
|
121
126
|
axisLabelColor?: string | null | undefined;
|
|
127
|
+
axisLabelFontSize?: number | null | undefined;
|
|
122
128
|
};
|
|
123
129
|
backgroundColor: string;
|
|
124
130
|
color: {
|
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
export declare const getRadarTheme: () => {
|
|
2
2
|
pivotGrid: {
|
|
3
3
|
borderColor?: string | null | undefined;
|
|
4
|
+
bodyFontSize?: number | null | undefined;
|
|
4
5
|
bodyFontColor?: string | null | undefined;
|
|
6
|
+
headerFontSize?: number | null | undefined;
|
|
5
7
|
headerFontColor?: string | null | undefined;
|
|
6
8
|
headerBackgroundColor?: string | null | undefined;
|
|
7
9
|
hoverHeaderBackgroundColor?: string | null | undefined;
|
|
@@ -15,6 +17,7 @@ export declare const getRadarTheme: () => {
|
|
|
15
17
|
titleFontWeight?: string | null | undefined;
|
|
16
18
|
chartGridColor?: string | null | undefined;
|
|
17
19
|
axisLabelColor?: string | null | undefined;
|
|
20
|
+
axisLabelFontSize?: number | null | undefined;
|
|
18
21
|
};
|
|
19
22
|
backgroundColor: string;
|
|
20
23
|
color: {
|
|
@@ -11,7 +11,9 @@ export declare const getRoseTheme: () => {
|
|
|
11
11
|
};
|
|
12
12
|
pivotGrid: {
|
|
13
13
|
borderColor?: string | null | undefined;
|
|
14
|
+
bodyFontSize?: number | null | undefined;
|
|
14
15
|
bodyFontColor?: string | null | undefined;
|
|
16
|
+
headerFontSize?: number | null | undefined;
|
|
15
17
|
headerFontColor?: string | null | undefined;
|
|
16
18
|
headerBackgroundColor?: string | null | undefined;
|
|
17
19
|
hoverHeaderBackgroundColor?: string | null | undefined;
|
|
@@ -25,6 +27,7 @@ export declare const getRoseTheme: () => {
|
|
|
25
27
|
titleFontWeight?: string | null | undefined;
|
|
26
28
|
chartGridColor?: string | null | undefined;
|
|
27
29
|
axisLabelColor?: string | null | undefined;
|
|
30
|
+
axisLabelFontSize?: number | null | undefined;
|
|
28
31
|
};
|
|
29
32
|
backgroundColor: string;
|
|
30
33
|
color: {
|
|
@@ -75,7 +78,9 @@ export declare const getRoseParallelTheme: () => {
|
|
|
75
78
|
};
|
|
76
79
|
pivotGrid: {
|
|
77
80
|
borderColor?: string | null | undefined;
|
|
81
|
+
bodyFontSize?: number | null | undefined;
|
|
78
82
|
bodyFontColor?: string | null | undefined;
|
|
83
|
+
headerFontSize?: number | null | undefined;
|
|
79
84
|
headerFontColor?: string | null | undefined;
|
|
80
85
|
headerBackgroundColor?: string | null | undefined;
|
|
81
86
|
hoverHeaderBackgroundColor?: string | null | undefined;
|
|
@@ -89,6 +94,7 @@ export declare const getRoseParallelTheme: () => {
|
|
|
89
94
|
titleFontWeight?: string | null | undefined;
|
|
90
95
|
chartGridColor?: string | null | undefined;
|
|
91
96
|
axisLabelColor?: string | null | undefined;
|
|
97
|
+
axisLabelFontSize?: number | null | undefined;
|
|
92
98
|
};
|
|
93
99
|
backgroundColor: string;
|
|
94
100
|
color: {
|
|
@@ -112,7 +112,9 @@ export declare const getScatterTheme: () => {
|
|
|
112
112
|
};
|
|
113
113
|
pivotGrid: {
|
|
114
114
|
borderColor?: string | null | undefined;
|
|
115
|
+
bodyFontSize?: number | null | undefined;
|
|
115
116
|
bodyFontColor?: string | null | undefined;
|
|
117
|
+
headerFontSize?: number | null | undefined;
|
|
116
118
|
headerFontColor?: string | null | undefined;
|
|
117
119
|
headerBackgroundColor?: string | null | undefined;
|
|
118
120
|
hoverHeaderBackgroundColor?: string | null | undefined;
|
|
@@ -126,6 +128,7 @@ export declare const getScatterTheme: () => {
|
|
|
126
128
|
titleFontWeight?: string | null | undefined;
|
|
127
129
|
chartGridColor?: string | null | undefined;
|
|
128
130
|
axisLabelColor?: string | null | undefined;
|
|
131
|
+
axisLabelFontSize?: number | null | undefined;
|
|
129
132
|
};
|
|
130
133
|
annotation: {
|
|
131
134
|
annotationPoint: import("../..").AnnotationPointConfig;
|
|
@@ -1,2 +1,4 @@
|
|
|
1
1
|
export { darkTheme } from './dark';
|
|
2
2
|
export { lightTheme } from './light';
|
|
3
|
+
export { createTokenThemeConfig, registerTokenTheme, registerTokenThemes } from './tokenTheme';
|
|
4
|
+
export type { RegisterTokenThemeOptions, TokenThemeBase, TokenThemeDefinition, TokenThemeRegistry } from './tokenTheme';
|
package/dist/esm/theme/index.js
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
1
|
import { darkTheme } from "./dark/index.js";
|
|
2
2
|
import { lightTheme } from "./light/index.js";
|
|
3
|
-
|
|
3
|
+
import { createTokenThemeConfig, registerTokenTheme, registerTokenThemes } from "./tokenTheme.js";
|
|
4
|
+
export { createTokenThemeConfig, darkTheme, lightTheme, registerTokenTheme, registerTokenThemes };
|