| 12345678910111213141516171819202122 |
- import { GUI, type ComponentOptions, type PrefixStyleProps } from '../../../core';
- import { Group, type GroupStyleProps, type TextStyleProps } from '../../../shapes';
- import type { PrefixObject } from '../../../types';
- import { MarkerStyleProps } from '../../marker';
- export type HandleStyleProps<T = any> = GroupStyleProps & PrefixObject<TextStyleProps, 'label'> & PrefixStyleProps<Omit<MarkerStyleProps, 'x' | 'y'>, 'marker'> & {
- showLabel?: boolean;
- formatter?: (val: T) => string;
- orientation: 'vertical' | 'horizontal';
- /** spacing between marker and label */
- spacing?: number;
- shape?: 'basic' | 'slider';
- };
- export type HandleOptions = ComponentOptions<HandleStyleProps>;
- export type HandleType = 'start' | 'end';
- export declare const DEFAULT_HANDLE_CFG: Partial<HandleStyleProps>;
- export declare class Handle extends GUI<HandleStyleProps> {
- constructor(options: HandleOptions);
- private marker;
- render(attributes: Required<HandleStyleProps>, container: Group): void;
- private renderMarker;
- private renderLabel;
- }
|