1
0
Fork 0
freesewing/sites/dev/docs/reference/api/path/bbox/readme.mdx

26 lines
414 B
Text
Raw Normal View History

2022-09-22 09:05:20 +02:00
---
title: Path.bbox()
---
The `Path.bbox()` method returns an object describing the bounding box of a path.
In other words, it gives you a rectangle the Path fits in.
## Signature
2022-09-22 09:05:20 +02:00
```js
object path.bbox()
```
It returns an object with a signature like this:
```js
{
topLeft: Point,
bottomRight: Point
}
```
## Notes
2022-09-22 09:05:20 +02:00
This method is mostly aimed at people looking to implement their own layout solution.