"use strict";
// 拖拽相关常量
Object.defineProperty(exports, "__esModule", { value: true });
exports.DRAG_TYPES = exports.getActionColumnWidth = exports.INDEX_COLUMN_WIDTH = exports.DRAG_HANDLE_WIDTH = exports.ROW_HEIGHTS = void 0;
// 从统一常量文件导入行高（避免重复定义）
var constant_1 = require("../constants/constant");
Object.defineProperty(exports, "ROW_HEIGHTS", { enumerable: true, get: function () { return constant_1.ROW_HEIGHTS; } });
// 拖拽把手的宽度
exports.DRAG_HANDLE_WIDTH = 28;
// 序号列的宽度
exports.INDEX_COLUMN_WIDTH = 32;
// 功能列的宽度（拖拽把手 + 序号/多选框）
// showIndex: 是否显示序号列
// hasRowSelection: 是否启用行选择（多选框）
const getActionColumnWidth = (showIndex, hasRowSelection) => exports.DRAG_HANDLE_WIDTH + (showIndex || hasRowSelection ? exports.INDEX_COLUMN_WIDTH : 0);
exports.getActionColumnWidth = getActionColumnWidth;
// 拖拽类型
exports.DRAG_TYPES = {
    ROW: 'row',
    COLUMN: 'column',
};
