Rename YGUnitPixel to YGPoint...
Summary: ...to reflect the modern world we live in with dynamic DPI platforms :) Closes https://github.com/facebook/yoga/pull/375 Reviewed By: dshahidehpour Differential Revision: D4528518 Pulled By: emilsjolander fbshipit-source-id: e422bd4ae148e02c598a7b484a6adfa8c0e1e0c9
This commit is contained in:
committed by
Facebook Github Bot
parent
1146013e9e
commit
9d2839f8ca
@@ -16,9 +16,9 @@ namespace Facebook.Yoga
|
||||
return YogaValue.Percent(value);
|
||||
}
|
||||
|
||||
public static YogaValue Px(this float value)
|
||||
public static YogaValue Pt(this float value)
|
||||
{
|
||||
return YogaValue.Pixel(value);
|
||||
return YogaValue.Point(value);
|
||||
}
|
||||
|
||||
public static YogaValue Percent(this int value)
|
||||
@@ -26,9 +26,9 @@ namespace Facebook.Yoga
|
||||
return YogaValue.Percent(value);
|
||||
}
|
||||
|
||||
public static YogaValue Px(this int value)
|
||||
public static YogaValue Pt(this int value)
|
||||
{
|
||||
return YogaValue.Pixel(value);
|
||||
return YogaValue.Point(value);
|
||||
}
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user