UNPKG

@visactor/vchart

Version:

charts lib based @visactor/VGrammar

32 lines (31 loc) 1.19 kB
import type { ControllerLayout, OrientType, BaseGraphicAttributes } from '@visactor/vrender-components'; import type { ISymbolMarkSpec, IRectMarkSpec } from '../../../typings'; import type { ILayoutItemSpec } from '../../../layout/interface'; export interface IPlayerTheme extends ILayoutItemSpec { visible?: boolean; dx?: number; dy?: number; width?: number; height?: number; position?: 'start' | 'middle' | 'end'; orient?: OrientType; slider?: IPlayerSlider; controller?: IPlayerController; } export type PlayerAlignType = 'start' | 'middle' | 'end'; export interface IPlayerSlider { visible?: boolean; space?: number; dx?: number; dy?: number; railStyle?: IRectMarkSpec; trackStyle?: IRectMarkSpec; handlerStyle?: ISymbolMarkSpec; } export interface IPlayerController { visible?: boolean; start?: Partial<ControllerLayout & BaseGraphicAttributes<ISymbolMarkSpec>>; pause?: Partial<ControllerLayout & BaseGraphicAttributes<ISymbolMarkSpec>>; backward?: Partial<ControllerLayout & BaseGraphicAttributes<ISymbolMarkSpec>>; forward?: Partial<ControllerLayout & BaseGraphicAttributes<ISymbolMarkSpec>>; }