Skip to content

Commit 085efa4

Browse files
authored
fix: rename pixelSizeForLayoutSize to getPixelSizeForLayoutSize (#82)
1 parent 603f7ee commit 085efa4

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

src/compiler/declarations.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1137,7 +1137,7 @@ export function parseUnparsed(
11371137
case "linear-gradient":
11381138
case "opacity":
11391139
case "pixelScale":
1140-
case "pixelSizeForLayoutSize":
1140+
case "getPixelSizeForLayoutSize":
11411141
case "platformColor":
11421142
case "radial-gradient":
11431143
case "rgb":

src/runtime/native/styles/platform-functions.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ export const fontScale: StyleFunctionResolver = () => {
2525
return PixelRatio.getFontScale();
2626
};
2727

28-
export const pixelSizeForLayoutSize: StyleFunctionResolver = (
28+
export const getPixelSizeForLayoutSize: StyleFunctionResolver = (
2929
resolveValue,
3030
value,
3131
) => {

src/runtime/native/styles/resolve.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,9 +27,9 @@ import {
2727
} from "./filters";
2828
import {
2929
fontScale,
30+
getPixelSizeForLayoutSize,
3031
hairlineWidth,
3132
pixelRatio,
32-
pixelSizeForLayoutSize,
3333
platformColor,
3434
roundToNearestPixel,
3535
} from "./platform-functions";
@@ -79,7 +79,7 @@ const functions: Record<string, StyleFunctionResolver> = {
7979
invert,
8080
opacity,
8181
pixelRatio,
82-
pixelSizeForLayoutSize,
82+
getPixelSizeForLayoutSize,
8383
platformColor,
8484
rem,
8585
roundToNearestPixel,

0 commit comments

Comments
 (0)