@visactor/vrender-components
Version:
components library for dp visualization
29 lines (28 loc) • 1 kB
TypeScript
import type { IGroupGraphicAttribute, IRectGraphicAttribute, ISymbolGraphicAttribute, ITextGraphicAttribute } from '@visactor/vrender-core';
import type { Padding, TextContent } from '../core/type';
export type LegendTitle = {
visible?: boolean;
align?: 'start' | 'center' | 'end';
space?: number;
padding?: Padding;
text?: string | string[] | number | number[] | TextContent['text'];
textStyle?: Partial<ITextGraphicAttribute>;
shape?: {
visible?: boolean;
space?: number;
style?: Omit<Partial<ISymbolGraphicAttribute>, 'visible'>;
};
background?: {
visible?: boolean;
style?: Omit<Partial<IRectGraphicAttribute>, 'visible' | 'width' | 'height'>;
};
minWidth?: number;
maxWidth?: number;
};
export type LegendBaseAttributes = IGroupGraphicAttribute & {
interactive?: boolean;
layout?: 'horizontal' | 'vertical' | string;
title?: LegendTitle;
padding?: Padding;
disableTriggerEvent?: boolean;
};