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#
| Parameter | Type |
|---|---|
path | BezierPath |
Returns#
{
height: number;
width: number;
x: number;
y: number;
}
| Name | Type | Defined in |
|---|---|---|
height | number | path.ts:208 |
width | number | path.ts:208 |
x | number | path.ts:208 |
y | number | path.ts:208 |