Skip to content
pixi-silk
GitHub repository
Interface

MeasureLike

import type { MeasureLike } from 'pixi-silk/selection';

What bindMeasure needs from a measure, such as Measure.

Type Parameters#

Type Parameter
T

Methods#

between()#

between(a: T | null, b: T | null): unknown;

Shows the distances between a and b, or hides them when either is null.

Parameters#

ParameterType
aT | null
bT | null

Returns#

unknown


size()#

size(target: T | null): unknown;

Shows the size badge of target, or hides it with null.

Parameters#

ParameterType
targetT | null

Returns#

unknown