/
githubmr
/
facebook-react-native
Обзор
Документация
Войти
/
githubmr
/
facebook-react-native
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
Аналитика
main
packages/react-native/ReactCommon/react/renderer/core/LayoutConstraints.cpp
22 строки
571 B
generatedunixname89002005287564
Fix CQS signal modernize-use-designated-initializers in xplat/js/react-native-github/packages (#53962)
26 сен 2025, 20:50
26 сен 2025, 20:50
8bc133c
Код
Авторство
О чём код?
/* * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ #include "LayoutConstraints.h" #include <algorithm> namespace facebook::react { Size LayoutConstraints::clamp(const Size& size) const { return { .width = std::max(minimumSize.width, std::min(maximumSize.width, size.width)), .height = std::max( minimumSize.height, std::min(maximumSize.height, size.height))}; } } // namespace facebook::react