Fixed
Status Update
Comments
ap...@google.com <ap...@google.com> #2
Project: platform/frameworks/support
Branch: androidx-main
commit 9ba3a24b39a766b60ed677337bb96dabe3575ada
Author: Chet Haase <chet@google.com>
Date: Fri Jan 26 09:35:26 2024
Allow shapes to be pre-rotated to start at a different point
This change allows pillStar shapes to start their curves from
a non-default point on the perimeter. This can be useful when
animating the stroking of the shape's path, to start drawing
from a specific location on the shape's outline.
Bug: 324303807
Test: All unit and manual tests pass
RelNote: "New optional startLocation parameter on pillStar()
can be used to move the location on the perimeter from
which the shape's underlying cubic paths start."
Change-Id: Ifbb4dd34cfa414430829533613fda13b8916535e
M graphics/graphics-shapes/api/1.0.0-beta01.txt
M graphics/graphics-shapes/api/current.txt
M graphics/graphics-shapes/api/restricted_1.0.0-beta01.txt
M graphics/graphics-shapes/api/restricted_current.txt
M graphics/graphics-shapes/src/androidInstrumentedTest/kotlin/androidx/graphics/shapes/PolygonTest.kt
M graphics/graphics-shapes/src/commonMain/kotlin/androidx/graphics/shapes/RoundedPolygon.kt
M graphics/graphics-shapes/src/commonMain/kotlin/androidx/graphics/shapes/Shapes.kt
M graphics/integration-tests/testapp-compose/src/main/AndroidManifest.xml
A graphics/integration-tests/testapp-compose/src/main/java/androidx/graphics/shapes/testcompose/ProgressActivity.kt
M graphics/integration-tests/testapp/src/main/AndroidManifest.xml
M graphics/integration-tests/testapp/src/main/java/androidx/graphics/shapes/test/MorphView.kt
https://android-review.googlesource.com/2954729
Branch: androidx-main
commit 9ba3a24b39a766b60ed677337bb96dabe3575ada
Author: Chet Haase <chet@google.com>
Date: Fri Jan 26 09:35:26 2024
Allow shapes to be pre-rotated to start at a different point
This change allows pillStar shapes to start their curves from
a non-default point on the perimeter. This can be useful when
animating the stroking of the shape's path, to start drawing
from a specific location on the shape's outline.
Bug: 324303807
Test: All unit and manual tests pass
RelNote: "New optional startLocation parameter on pillStar()
can be used to move the location on the perimeter from
which the shape's underlying cubic paths start."
Change-Id: Ifbb4dd34cfa414430829533613fda13b8916535e
M graphics/graphics-shapes/api/1.0.0-beta01.txt
M graphics/graphics-shapes/api/current.txt
M graphics/graphics-shapes/api/restricted_1.0.0-beta01.txt
M graphics/graphics-shapes/api/restricted_current.txt
M graphics/graphics-shapes/src/androidInstrumentedTest/kotlin/androidx/graphics/shapes/PolygonTest.kt
M graphics/graphics-shapes/src/commonMain/kotlin/androidx/graphics/shapes/RoundedPolygon.kt
M graphics/graphics-shapes/src/commonMain/kotlin/androidx/graphics/shapes/Shapes.kt
M graphics/integration-tests/testapp-compose/src/main/AndroidManifest.xml
A graphics/integration-tests/testapp-compose/src/main/java/androidx/graphics/shapes/testcompose/ProgressActivity.kt
M graphics/integration-tests/testapp/src/main/AndroidManifest.xml
M graphics/integration-tests/testapp/src/main/java/androidx/graphics/shapes/test/MorphView.kt
Description
This change allows star shapes to be created starting from either an inner or outer vertex (previously the first corner was always an outer vertex). Also, you can specify a startAngle for the cubics or path requested from the shape, where that angle is relative to the center of the shape.