Skip to content

Commit 2873a4c

Browse files
committed
fix: rename pixelSizeForLayoutSize to getPixelSizeForLayoutSize
1 parent f827d9d commit 2873a4c

3 files changed

Lines changed: 4 additions & 4 deletions

File tree

src/compiler/declarations.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1148,7 +1148,7 @@ export function parseUnparsed(
11481148
case "linear-gradient":
11491149
case "opacity":
11501150
case "pixelScale":
1151-
case "pixelSizeForLayoutSize":
1151+
case "getPixelSizeForLayoutSize":
11521152
case "platformColor":
11531153
case "radial-gradient":
11541154
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)