| 12345678910111213141516171819202122 |
- import { GUI, type ComponentOptions, type PrefixStyleProps } from '../../../core';
- import { Group, type GroupStyleProps, type PathStyleProps, type RectStyleProps } from '../../../shapes';
- export type Interpolate<T = string> = (val: number) => T;
- export type RibbonStyleProps = GroupStyleProps & PrefixStyleProps<PathStyleProps, 'selection'> & PrefixStyleProps<RectStyleProps, 'track'> & {
- block?: boolean;
- color: string[] | Interpolate;
- length: number;
- orientation?: 'horizontal' | 'vertical';
- /** partition of the block ,the length of it is the block count */
- partition?: number[];
- /** select area, 0~1 */
- range?: [number, number];
- size: number;
- type?: 'size' | 'color';
- };
- export type RibbonOptions = ComponentOptions<RibbonStyleProps>;
- type RequiredRibbonStyleProps = Required<RibbonStyleProps>;
- export declare class Ribbon extends GUI<RibbonStyleProps> {
- constructor(options: RibbonOptions);
- render(attribute: RequiredRibbonStyleProps, container: Group): void;
- }
- export {};
|