Skip to content

Commit b4474c4

Browse files
authored
Merge pull request #24465 from anntzer/ob
Reparametrize offsetbox calculations in terms of bboxes.
2 parents a9e4f38 + de21925 commit b4474c4

File tree

4 files changed

+175
-155
lines changed

4 files changed

+175
-155
lines changed
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
``OffsetBox.get_extent_offsets`` and ``OffsetBox.get_extent``
2+
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
3+
... are deprecated; these methods are also deprecated on all subclasses of
4+
`.OffsetBox`.
5+
6+
To get the offsetbox extents, instead of ``get_extent``, use
7+
`.OffsetBox.get_bbox`, which directly returns a `.Bbox` instance.
8+
9+
To also get the child offsets, instead of ``get_extent_offsets``, separately
10+
call `~.OffsetBox.get_offset` on each children after triggering a draw.

0 commit comments

Comments
 (0)