@antv/s2
Version:
effective spreadsheet render core lib
39 lines (38 loc) • 1.76 kB
TypeScript
import type { PointLike } from '@antv/g';
import { CellType } from '../common/constant/interaction';
import type { FormatResult } from '../common/interface';
import { CellBorderPosition } from '../common/interface/basic';
import { RowCell } from './row-cell';
export declare class SeriesNumberCell extends RowCell {
get cellType(): CellType;
protected getBorderPositions(): CellBorderPosition[];
protected initCell(): void;
getBackgroundColor(): {
backgroundColor: string;
backgroundColorOpacity: number;
intelligentReverseTextColor: boolean;
};
protected getTextStyle(): {
fontSize: number;
fill: string;
linkTextFill: string;
textAlign: NonNullable<import("../common/interface").TextAlign | undefined>;
textBaseline: NonNullable<import("../common/interface").TextBaseline | undefined>;
opacity: NonNullable<string | number | undefined>;
fontFamily: string;
fontWeight: NonNullable<number | "bold" | import("@antv/g-lite/types/css").CSSGlobalKeywords | "normal" | "bolder" | "lighter" | undefined>;
fontStyle: NonNullable<import("@antv/g-lite/types/css").CSSGlobalKeywords | "normal" | "italic" | "oblique" | undefined>;
fontVariant: string;
lineHeight: NonNullable<string | number | undefined>;
maxLinesByField?: Record<string, number> | null | undefined;
textOverflow?: string | undefined;
maxLines?: number | undefined;
wordWrap?: boolean | undefined;
};
protected getFormattedFieldValue(): FormatResult;
getMaxTextWidth(): number;
protected isBolderText(): boolean;
findFieldCondition(): undefined;
mappingValue(): undefined;
getIconPosition(): PointLike;
}