| 12345678910111213141516171819202122232425 |
- import { ComponentOptions, GUI, PrefixStyleProps } from '../../core';
- import type { DisplayObject, GroupStyleProps, PathStyleProps, TextStyleProps } from '../../shapes';
- import { Group } from '../../shapes';
- export type IconStyleProps = PathStyleProps & {
- size?: number;
- radius?: number;
- shape?: string | (() => DisplayObject);
- orientation?: 'horizontal' | 'vertical';
- };
- export type LabelStyleProps = Partial<TextStyleProps>;
- export type HandleStyleProps = GroupStyleProps & PrefixStyleProps<LabelStyleProps, 'label'> & PrefixStyleProps<IconStyleProps, 'icon'> & {
- orientation?: IconStyleProps['orientation'];
- showLabel?: boolean;
- spacing?: number;
- type?: 'start' | 'end';
- };
- export type HandleOptions = ComponentOptions<HandleStyleProps>;
- export declare class Handle extends GUI<HandleStyleProps> {
- private label;
- private icon;
- constructor(options: HandleOptions);
- private renderLabel;
- private renderIcon;
- render(attributes: HandleStyleProps, container: Group): void;
- }
|