Skip to content
pixi-silk
GitHub repository
Function

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#

ParameterType
aBox
bBox

Returns#

Redline[]