UNPKG

@visactor/vchart

Version:

charts lib based @visactor/VGrammar

25 lines (24 loc) 1.18 kB
import type { IAnimationSpec } from '../../animation/spec'; import type { IMarkSpec, IMarkTheme } from '../../typings/spec'; import type { IArcMarkSpec } from '../../typings/visual'; import type { SeriesMarkNameEnum } from '../interface/type'; import type { IRoseLikeSeriesSpec, IRoseLikeSeriesTheme } from '../polar/rose-like/interface'; import type { IArcLabelSpec } from '../pie/interface'; import type { IMultiLabelSpec } from '../../component/label/interface'; export type RoseMarks = 'rose'; export interface IRoseSeriesSpec extends IRoseLikeSeriesSpec, IAnimationSpec<RoseMarks, RoseAppearPreset> { type: 'rose'; categoryField: string | string[]; valueField: string | string[]; [SeriesMarkNameEnum.rose]?: IMarkSpec<IArcMarkSpec>; [SeriesMarkNameEnum.label]?: IMultiLabelSpec<IArcLabelSpec>; } export interface IRoseSeriesTheme extends IRoseLikeSeriesTheme { [SeriesMarkNameEnum.rose]?: Partial<IMarkTheme<IArcMarkSpec>>; [SeriesMarkNameEnum.label]?: IArcLabelSpec; } export interface IRoseAnimationParams { innerRadius: () => number; growField?: 'angle' | 'radius'; } export type RoseAppearPreset = 'growAngle' | 'growRadius' | 'fadeIn';