fix: Resolve incorrect shape clipping for domain-referenced shapes on n*10th subplot by emilykl · Pull Request #7576 · plotly/plotly.js
Resolves issue where shapes referenced to the domain of an axis id containing a zero (e.g. ref: 'x10 domain') were not clipped to the boundaries of the subplot, as they should have been.
Also adds an image mock for this issue to prevent regression.
Thanks to @Ike-lag and @DataScienceIsCool for reporting, and to @Ike-lag for identifying the faulty regex in the codebase!
Steps for testing
- View the new
zz_shapes_clipping_double_digit_subplotsmock in the devtools dashboard (after runningnpm run build) and make sure the shapes in the lower-left subplot do not extend beyond the subplot boundaries - If you want to see what the mock looks like on
master, check outmaster, copy over thezz_shapes_clipping_double_digit_subplots.jsonfile into the mocks dir, runnpm run buildand then check the mock in the devtools dashboard.

