Documentation
Documentation / @elitechart/drawings / arrowMarkVertices
function arrowMarkVertices(
x,
y,
direction): {
tip: {
x: number;
y: number;
};
v1: {
x: number;
y: number;
};
v2: {
x: number;
y: number;
};
};
Defined in: drawings/src/arrow-mark.ts:31
Compute the three screen-space vertices for a directional mark. The
anchor is always the tip; the two other vertices form the base of the
triangle on the opposite side.
Parameters
x
number
y
number
direction
ArrowDirection
Returns
{
tip: {
x: number;
y: number;
};
v1: {
x: number;
y: number;
};
v2: {
x: number;
y: number;
};
}
tip
readonly tip: {
x: number;
y: number;
};
tip.x
tip.y
v1
readonly v1: {
x: number;
y: number;
};
v1.x
v1.y
v2
readonly v2: {
x: number;
y: number;
};
v2.x
v2.y