UNPKG

handsontable

Version:

Handsontable is a JavaScript Data Grid available for React, Angular and Vue.

26 lines (25 loc) 849 B
"use strict"; exports.__esModule = true; const getCornerStyle = wot => { const stylesHandler = wot.wtSettings.getSetting('stylesHandler'); if (stylesHandler.isClassicTheme()) { return Object.freeze({ width: 6, height: 6, borderWidth: 1, borderStyle: 'solid', borderColor: '#FFF' }); } const cornerSizeFromVar = stylesHandler.getCSSVariableValue('cell-autofill-size'); const cornerBorderWidthFromVar = stylesHandler.getCSSVariableValue('cell-autofill-border-width'); const cornerColorFromVar = stylesHandler.getCSSVariableValue('cell-autofill-border-color'); return Object.freeze({ width: cornerSizeFromVar, height: cornerSizeFromVar, borderWidth: cornerBorderWidthFromVar, borderStyle: 'solid', borderColor: cornerColorFromVar }); }; exports.getCornerStyle = getCornerStyle;