UNPKG

@antv/s2

Version:

effective spreadsheet render core lib

37 lines 1.02 kB
import { CellBorderPosition, CellClipBox, CornerCell } from '@antv/s2'; import { AxisCellType } from './cell-type'; export class AxisCornerCell extends CornerCell { get cellType() { return AxisCellType.AXIS_CORNER_CELL; } getBorderPositions() { return [ CellBorderPosition.TOP, CellBorderPosition.BOTTOM, CellBorderPosition.LEFT, ]; } isBolderText() { return false; } getMaxTextWidth() { const { width } = this.getBBoxByType(CellClipBox.CONTENT_BOX); return width; } getTreeIconWidth() { return 0; } getInteractedCells() { var _a; return (_a = this.spreadsheet.interaction) === null || _a === void 0 ? void 0 : _a.getCells([ AxisCellType.AXIS_CORNER_CELL, ]); } initCell() { this.drawBackgroundShape(); this.drawTextShape(); this.drawBorders(); this.update(); } } //# sourceMappingURL=axis-corner-cell.js.map