1
0
Fork 0
freesewing/markdown/dev/reference/api/path/bbox/en.md

26 lines
407 B
Markdown
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.
```js
object path.bbox()
```
It returns an object with a signature like this:
```js
{
topLeft: Point,
bottomRight: Point
}
```
<Note>
This method is mostly aimed at people looking to implement their own layout solution.
</Note>