@visactor/vrender-components
Version:
components library for dp visualization
22 lines (21 loc) • 861 B
TypeScript
import type { ISymbolGraphicAttribute, IGroupGraphicAttribute, ITextGraphicAttribute } from '@visactor/vrender-core';
import type { Padding } from '../core/type';
export type PagerAttributes = {
layout?: 'horizontal' | 'vertical' | string;
handler?: {
space?: number;
preShape?: string;
nextShape?: string;
style?: Omit<Partial<ISymbolGraphicAttribute>, 'symbolType'>;
state?: {
hover?: Omit<Partial<ISymbolGraphicAttribute>, 'symbolType'>;
disable?: Omit<Partial<ISymbolGraphicAttribute>, 'symbolType'>;
};
};
total: number;
pageFormatter?: string | ((current: number, total: number) => string);
defaultCurrent?: number;
textStyle?: Partial<ITextGraphicAttribute>;
padding?: Padding;
disableTriggerEvent?: boolean;
} & Partial<IGroupGraphicAttribute>;