import { type Snippet } from 'svelte'; import type { DataRecord, BaseMarkProps, ConstantAccessor, ChannelAccessor, RawValue } from '../types.js'; import { type SweepOption } from '../helpers/arrowPath.js'; type ArrowProps = BaseMarkProps & { data: DataRecord[]; sort?: ConstantAccessor | { channel: 'stroke' | 'fill'; }; x1: ChannelAccessor; y1: ChannelAccessor; x2: ChannelAccessor; y2: ChannelAccessor; stroke?: ChannelAccessor; /** * the bend angle, in degrees; defaults to 0°; true for 22.5° */ bend?: ConstantAccessor | true; /** * the arrowhead angle, in degrees; defaults to 60° */ headAngle?: ConstantAccessor; /** * the arrowhead scale; defaults to 8 */ headLength?: ConstantAccessor; /** * inset at the end of the arrow (useful if the arrow points to a dot) */ insetEnd?: ConstantAccessor; /** * inset at the start of the arrow */ insetStart?: ConstantAccessor; /** * shorthand for the two insets */ inset?: ConstantAccessor; sweep?: SweepOption; children?: Snippet; }; /** Arrow2 */ declare const Arrow: import("svelte").Component; type Arrow = ReturnType; export default Arrow;