redlines
import { redlines } from 'pixi-silk/ui/measure';
function redlines(a: Box, b: Box): Redline[];
The redlines between two boxes given as edges (x0 < x1, y0 < y1). Separate boxes get the
horizontal and vertical gaps, with a dashed guide when they do not overlap on the other axis.
Overlapping or nested boxes get the distances between matching edges, zero-length ones left out.
Pure: it allocates a new array and draws nothing.
Parameters#
| Parameter | Type |
|---|---|
a | Box |
b | Box |
Returns#
Redline[]