react-native-macos/ReactCommon/fabric/graphics
Valentin Shergin 181b42bfce Fabric: Inlining (and removing) kFloatMax and kFloatMin constants
Summary:
We don't need to have those constants because this functionality is available in STL via `std::numeric_limits<YourParticularFloatType>::infinity()` (or `::min()` and `::max()`).
At the same time usage of `kFloatMax` was replaced with `Infinity` (which is a different value). Using `max` instead of `Infinity` was an attempt to mimic iOS/UIKit model where `Infinity` and `NaN` values usually are not being used. However, now this does not seem like a good idea. This concept is not used anywhere else (even in CK which is totally incompatible with it) and de-facto in RN we use it only in few places. So, let's use Infinity in places where it's logically appropriate.

Reviewed By: mdvacca

Differential Revision: D15155191

fbshipit-source-id: 4d24350c7540cec074a8b040d7c13f257aa812e7
2019-04-30 16:38:25 -07:00
..
platform Fabric: Inlining (and removing) kFloatMax and kFloatMin constants 2019-04-30 16:38:25 -07:00
tests Update copyright headers to yearless format 2018-09-11 15:33:07 -07:00
BUCK xplat// -> fbsource//xplat/ for xplat/js 2019-02-14 23:53:32 -08:00
ColorComponents.h Fabric: Enabling clang-format for half of Fabric modules 2018-10-05 11:03:23 -07:00
Geometry.h Fabric: Fixing usage of Folly's `hash_combine` 2019-03-14 18:35:00 -07:00
React-graphics.podspec Fabric: working podspecs & works in RNTester (#23803) 2019-03-15 23:59:22 -07:00
Transform.cpp Fabric: `Transform` type was moved to `graphics` module. 2019-03-25 12:04:53 -07:00
Transform.h Fabric: `Transform` type was moved to `graphics` module. 2019-03-25 12:04:53 -07:00
conversions.h Fabric: properly convert prop value with object shape 2019-04-10 11:04:23 -07:00