2023-10-21 13:23:32 +02:00
|
|
|
---
|
2024-02-21 20:26:36 -08:00
|
|
|
title: utils.getTransformedBounds()
|
2023-10-21 13:23:32 +02:00
|
|
|
---
|
|
|
|
|
2024-02-21 20:26:36 -08:00
|
|
|
The `utils.getTransformedBounds()` function re-calculates the bounding box of an object (a stack or a part) after applying the passed-in transform(s).
|
2023-10-21 13:23:32 +02:00
|
|
|
|
|
|
|
The object passed in should have its `topLeft` and `bottomRight` properties set.
|
|
|
|
It will return on object that with (only) the updated `topLeft` and `bottomRight` properties set.
|
|
|
|
|
|
|
|
## Signature
|
|
|
|
|
|
|
|
```js
|
2024-02-21 20:26:36 -08:00
|
|
|
Object utils.getTransformedBounds(
|
2023-10-21 13:23:32 +02:00
|
|
|
Object stack,
|
|
|
|
Array transforms
|
|
|
|
)
|
|
|
|
```
|
|
|
|
|
2024-09-28 13:13:48 +02:00
|
|
|
:::note
|
2024-02-21 20:26:36 -08:00
|
|
|
This is a low-level function to facilitate intervening in the pattern layout late in the draft process.
|
2023-10-21 13:23:32 +02:00
|
|
|
It is unlikely you will want to use this.
|
2024-09-28 13:13:48 +02:00
|
|
|
:::
|