Skip to content
pixi-silk
GitHub repository
Function

pathBounds

import { pathBounds } from 'pixi-silk/path';
function pathBounds(path: BezierPath): {
  height: number;
  width: number;
  x: number;
  y: number;
};

Tight axis-aligned bounds of the path, curves included.

Parameters#

ParameterType
pathBezierPath

Returns#

{
  height: number;
  width: number;
  x: number;
  y: number;
}
NameTypeDefined in
heightnumberpath.ts:208
widthnumberpath.ts:208
xnumberpath.ts:208
ynumberpath.ts:208