You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

32 lines
1.2 KiB

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