UNPKG

handsontable

Version:

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

24 lines (23 loc) 851 B
"use strict"; 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 area of the selected multiple cells. * * @param {object} highlightParams A configuration object to create a highlight. * @param {object} highlightParams.areaCornerVisible Function to determine if area's corner should be visible. * @returns {Selection} */ function createHighlight(_ref) { let { ...restOptions } = _ref; return new _visualSelection.default({ className: 'highlight', ...restOptions, selectionType: _src.HIGHLIGHT_AREA_TYPE }); }