handsontable
Version:
Handsontable is a JavaScript Data Grid available for React, Angular and Vue.
28 lines (27 loc) • 886 B
JavaScript
;
exports.__esModule = true;
exports.createHighlight = createHighlight;
var _src = require("../../../3rdparty/walkontable/src");
var _visualSelection = _interopRequireDefault(require("../visualSelection"));
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
/**
* Creates the new instance of Selection, responsible for highlighting cells which are covered by fill handle
* functionality. This type of selection can present on the table only one at the time.
*
* @param {object} highlightParams A configuration object to create a highlight.
* @returns {Selection}
*/
function createHighlight(_ref) {
let {
...restOptions
} = _ref;
return new _visualSelection.default({
className: 'fill',
border: {
width: 1,
color: '#ff0000'
},
...restOptions,
selectionType: _src.HIGHLIGHT_FILL_TYPE
});
}