handsontable
Version:
Handsontable is a JavaScript Data Grid available for React, Angular and Vue.
13 lines • 585 B
JavaScript
export const getCornerStyle = wot => {
const stylesHandler = wot.wtSettings.getSetting('stylesHandler');
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
});
};