Skip to content
This repository was archived by the owner on Feb 25, 2025. It is now read-only.

Conversation

@gspencergoog
Copy link
Contributor

@gspencergoog gspencergoog commented Sep 12, 2022

Description

This adds two clamping functions for the Radius class so that it is easier to clamp values for use when given values to RRect, which I am hoping to convert to assert when negative radii are given to it, since they are not really meaningful in an RRect, while they do sometimes make sense when doing calculations with radii.

Related Issues

Tests

  • Added tests for the new functions.

@flutter-dashboard flutter-dashboard bot added the platform-web Code specifically for the web engine label Sep 12, 2022
@gspencergoog gspencergoog added the autosubmit Merge PR when tree becomes green via auto submit App label Sep 12, 2022
@auto-submit auto-submit bot merged commit 0fce942 into flutter:main Sep 12, 2022
engine-flutter-autoroll added a commit to engine-flutter-autoroll/flutter that referenced this pull request Sep 13, 2022
cfontas pushed a commit to cfontas/engine that referenced this pull request Sep 14, 2022
itsjustkevin pushed a commit to itsjustkevin/engine that referenced this pull request Sep 20, 2022
itsjustkevin pushed a commit to itsjustkevin/engine that referenced this pull request Sep 20, 2022
itsjustkevin added a commit that referenced this pull request Sep 21, 2022
* Add `Radius.clamp` and `Radius.clampValues` (#36106)

* Build CanvasKit in the Flutter Engine (#32510)

* Clamp `RRect` radii when deflating, assert on negative radii (#36062)

Co-authored-by: Greg Spencer <[email protected]>
Co-authored-by: Harry Terkelsen <[email protected]>
Oleh-Sv pushed a commit to Oleh-Sv/engine that referenced this pull request Sep 28, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

autosubmit Merge PR when tree becomes green via auto submit App platform-web Code specifically for the web engine

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants