Arrows
Mind Elixir supports adding arrows in mind maps, as shown below:
Arrow Data
export type Arrow = {
id: string;
label: string;
from: Uid;
to: Uid;
delta1: {
x: number;
y: number;
};
delta2: {
x: number;
y: number;
};
bidirectional?: boolean;
};
Arrow data contains the following fields:
id
: Unique identifierlabel
: Display textfrom
: Source node idto
: Target node iddelta1
: Control point offset for the source nodedelta2
: Control point offset for the target nodebidirectional
: Whether it's a bidirectional arrow
Control points refer to the control points of the arrow's quadratic Bezier curve. By adjusting the control point offsets, you can modify the shape of the arrow. You can refer to the SVG Path C
command for more information.