shape_bounding_box: Per-shape bounding box dispatch. Reads the 'type' tag on...

View source: R/geometry.R

shape_bounding_boxR Documentation

Per-shape bounding box dispatch. Reads the type tag on shapes (rows are assumed to share a tag since a diagram fixes one shape kind), then picks the appropriate width/height calculation. Falls back to the rotated-ellipse formula when the type is unknown so external callers constructing ad-hoc ⁠$shapes⁠ frames still get a sensible box.

Description

Per-shape bounding box dispatch. Reads the type tag on shapes (rows are assumed to share a tag since a diagram fixes one shape kind), then picks the appropriate width/height calculation. Falls back to the rotated-ellipse formula when the type is unknown so external callers constructing ad-hoc ⁠$shapes⁠ frames still get a sensible box.

Usage

shape_bounding_box(shapes)

eulerr documentation built on May 30, 2026, 1:07 a.m.