Fixed
Status Update
Comments
ap...@google.com <ap...@google.com> #3
Project: platform/frameworks/support
Branch: androidx-main
commit c73506b6c907f6ae7985236beee7113afd2c3de5
Author: Nader Jawad <njawad@google.com>
Date: Tue May 02 17:03:42 2023
Add Path#transform
Relnote: "Add Path transform API to apply
translation/scale/rotation transformations to
path objects."
Fixes: 233772232
Test: Added Path test
Change-Id: I2343476dc71e36001febac2bcb7052fe3632dfbe
M compose/ui/ui-graphics/api/current.txt
M compose/ui/ui-graphics/api/public_plus_experimental_current.txt
M compose/ui/ui-graphics/api/restricted_current.txt
M compose/ui/ui-graphics/src/androidAndroidTest/kotlin/androidx/compose/ui/graphics/PathTest.kt
M compose/ui/ui-graphics/src/androidMain/kotlin/androidx/compose/ui/graphics/AndroidPath.android.kt
M compose/ui/ui-graphics/src/commonMain/kotlin/androidx/compose/ui/graphics/Path.kt
M compose/ui/ui-graphics/src/commonTest/kotlin/androidx/compose/ui/graphics/vector/PathParserTest.kt
M compose/ui/ui-graphics/src/desktopTest/kotlin/androidx/compose/ui/graphics/DesktopPathTest.kt
M compose/ui/ui-graphics/src/skikoMain/kotlin/androidx/compose/ui/graphics/SkiaBackedPath.skiko.kt
https://android-review.googlesource.com/2576692
Branch: androidx-main
commit c73506b6c907f6ae7985236beee7113afd2c3de5
Author: Nader Jawad <njawad@google.com>
Date: Tue May 02 17:03:42 2023
Add Path#transform
Relnote: "Add Path transform API to apply
translation/scale/rotation transformations to
path objects."
Fixes: 233772232
Test: Added Path test
Change-Id: I2343476dc71e36001febac2bcb7052fe3632dfbe
M compose/ui/ui-graphics/api/current.txt
M compose/ui/ui-graphics/api/public_plus_experimental_current.txt
M compose/ui/ui-graphics/api/restricted_current.txt
M compose/ui/ui-graphics/src/androidAndroidTest/kotlin/androidx/compose/ui/graphics/PathTest.kt
M compose/ui/ui-graphics/src/androidMain/kotlin/androidx/compose/ui/graphics/AndroidPath.android.kt
M compose/ui/ui-graphics/src/commonMain/kotlin/androidx/compose/ui/graphics/Path.kt
M compose/ui/ui-graphics/src/commonTest/kotlin/androidx/compose/ui/graphics/vector/PathParserTest.kt
M compose/ui/ui-graphics/src/desktopTest/kotlin/androidx/compose/ui/graphics/DesktopPathTest.kt
M compose/ui/ui-graphics/src/skikoMain/kotlin/androidx/compose/ui/graphics/SkiaBackedPath.skiko.kt
ju...@google.com <ju...@google.com> #4
The following release(s) address this bug.It is possible this bug has only been partially addressed:
androidx.compose.ui:ui-graphics:1.5.0-beta01
Description
We should introduce additional transform facilities on Compose's Path API to streamline scale/translation/rotation operations
Right now attempting to scale a Compose Path looks like the following which we can probably improve upon: