Chapter 806: getBoundingBox()
Core Idea
_Part of the @remotion/paths package. Available from v3.
Key Concepts
- Return type
- BoundingBox type
- See also
Code Examples
const boundingBox = getBoundingBox(
"M 35,50 a 25,25,0,1,1,50,0 a 25,25,0,1,1,-50,0"
);
// { x1: 35, x2: 85, y1: 24.999999999999993, y2: 75 };
- What it demonstrates: Usage pattern for getBoundingBox() from the official docs.
Key Takeaways
- Understand return type when working with getBoundingBox().
- Understand boundingbox type when working with getBoundingBox().
- Understand see also when working with getBoundingBox().
Connects To
- Center Path: related page in the Paths (@remotion/paths) section.
- cut Path: related page in the Paths (@remotion/paths) section.
- Evolve Path: related page in the Paths (@remotion/paths) section.