@antv/s2
Version:
effective spreadsheet render core lib
23 lines (22 loc) • 1.13 kB
TypeScript
import type { CellTextWordWrapStyle, S2Style } from '../interface';
import type { S2BaseFrozenOptions, S2Options } from '../interface/s2Options';
export declare const MIN_DEVICE_PIXEL_RATIO = 1;
/**
* 布局类型:
* adaptive: 行列等宽,均分整个 canvas 画布宽度
* colAdaptive:列等宽,行头紧凑布局,列等分画布宽度减去行头宽度的剩余宽度
* compact:行列紧凑布局,指标维度少的时候无法布满整个画布,列头宽度为实际内容宽度(取当前列最大值,采样每一列前 50 条数据
*/
export declare enum LayoutWidthType {
Adaptive = "adaptive",
ColAdaptive = "colAdaptive",
Compact = "compact"
}
export declare const SPLIT_LINE_WIDTH = 1;
export declare const DEFAULT_ROW_CELL_TREE_WIDTH = 120;
export declare const DEFAULT_CELL_WIDTH = 96;
export declare const DEFAULT_CELL_HEIGHT = 30;
export declare const DEFAULT_CELL_TEXT_WORD_WRAP_STYLE: CellTextWordWrapStyle;
export declare const DEFAULT_STYLE: S2Style;
export declare const DEFAULT_FROZEN_COUNTS: Required<S2BaseFrozenOptions>;
export declare const DEFAULT_OPTIONS: S2Options;