UNPKG

@antv/s2

Version:

effective spreadsheet render core lib

19 lines 768 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.getCustomTheme = void 0; const s2_1 = require("@antv/s2"); const lodash_1 = require("lodash"); const cell_type_1 = require("../cell/cell-type"); const getCustomTheme = (palette, spreadsheet) => { return { [cell_type_1.AxisCellType.AXIS_CORNER_CELL]: (0, s2_1.getCornerCellTheme)(palette), [cell_type_1.AxisCellType.AXIS_ROW_CELL]: (0, s2_1.getRowCellTheme)(palette, spreadsheet), [cell_type_1.AxisCellType.AXIS_COL_CELL]: (0, lodash_1.merge)((0, s2_1.getColCellTheme)(palette), { measureText: { textAlign: 'center', }, }), }; }; exports.getCustomTheme = getCustomTheme; //# sourceMappingURL=theme.js.map