Compare commits

...
1 Commits
Author SHA1 Message Date
CodemodService Bot f9f430d5e8 Fix CQS signal modernize-use-designated-initializers in xplat/js/react-native-github/packages [B] [B] [B]
Reviewed By: rshest

Differential Revision: D83404094
2025-09-29 01:35:26 -07:00
3 changed files with 29 additions and 24 deletions
@@ -35,13 +35,18 @@ std::vector<DebugStringConvertibleObject> getDebugProps(
const BaseTouch& touch,
DebugStringConvertibleOptions options) {
return {
{"pagePoint", getDebugDescription(touch.pagePoint, options)},
{"offsetPoint", getDebugDescription(touch.offsetPoint, options)},
{"screenPoint", getDebugDescription(touch.screenPoint, options)},
{"identifier", getDebugDescription(touch.identifier, options)},
{"target", getDebugDescription(touch.target, options)},
{"force", getDebugDescription(touch.force, options)},
{"timestamp", getDebugDescription(touch.timestamp, options)},
{.name = "pagePoint",
.value = getDebugDescription(touch.pagePoint, options)},
{.name = "offsetPoint",
.value = getDebugDescription(touch.offsetPoint, options)},
{.name = "screenPoint",
.value = getDebugDescription(touch.screenPoint, options)},
{.name = "identifier",
.value = getDebugDescription(touch.identifier, options)},
{.name = "target", .value = getDebugDescription(touch.target, options)},
{.name = "force", .value = getDebugDescription(touch.force, options)},
{.name = "timestamp",
.value = getDebugDescription(touch.timestamp, options)},
};
}
@@ -461,31 +461,31 @@ static BorderRadii ensureNoOverlap(const BorderRadii& radii, const Size& size) {
return BorderRadii{
.topLeft =
{static_cast<float>(
{.vertical = static_cast<float>(
radii.topLeft.vertical *
std::min(topEdgeRadiiScale, leftEdgeRadiiScale)),
static_cast<float>(
.horizontal = static_cast<float>(
radii.topLeft.horizontal *
std::min(topEdgeRadiiScale, leftEdgeRadiiScale))},
.topRight =
{static_cast<float>(
{.vertical = static_cast<float>(
radii.topRight.vertical *
std::min(topEdgeRadiiScale, rightEdgeRadiiScale)),
static_cast<float>(
.horizontal = static_cast<float>(
radii.topRight.horizontal *
std::min(topEdgeRadiiScale, rightEdgeRadiiScale))},
.bottomLeft =
{static_cast<float>(
{.vertical = static_cast<float>(
radii.bottomLeft.vertical *
std::min(bottomEdgeRadiiScale, leftEdgeRadiiScale)),
static_cast<float>(
.horizontal = static_cast<float>(
radii.bottomLeft.horizontal *
std::min(bottomEdgeRadiiScale, leftEdgeRadiiScale))},
.bottomRight =
{static_cast<float>(
{.vertical = static_cast<float>(
radii.bottomRight.vertical *
std::min(bottomEdgeRadiiScale, rightEdgeRadiiScale)),
static_cast<float>(
.horizontal = static_cast<float>(
radii.bottomRight.horizontal *
std::min(bottomEdgeRadiiScale, rightEdgeRadiiScale))},
};
@@ -496,17 +496,17 @@ static BorderRadii radiiPercentToPoint(
const Size& size) {
return BorderRadii{
.topLeft =
{radii.topLeft.resolve(size.height),
radii.topLeft.resolve(size.width)},
{.vertical = radii.topLeft.resolve(size.height),
.horizontal = radii.topLeft.resolve(size.width)},
.topRight =
{radii.topRight.resolve(size.height),
radii.topRight.resolve(size.width)},
{.vertical = radii.topRight.resolve(size.height),
.horizontal = radii.topRight.resolve(size.width)},
.bottomLeft =
{radii.bottomLeft.resolve(size.height),
radii.bottomLeft.resolve(size.width)},
{.vertical = radii.bottomLeft.resolve(size.height),
.horizontal = radii.bottomLeft.resolve(size.width)},
.bottomRight =
{radii.bottomRight.resolve(size.height),
radii.bottomRight.resolve(size.width)},
{.vertical = radii.bottomRight.resolve(size.height),
.horizontal = radii.bottomRight.resolve(size.width)},
};
}
@@ -61,7 +61,7 @@ class BaseViewProps : public YogaStylableProps, public AccessibilityProps {
// Shadow
SharedColor shadowColor{};
Size shadowOffset{0, -3};
Size shadowOffset{.width = 0, .height = -3};
Float shadowOpacity{};
Float shadowRadius{3};