This commit is contained in:
janisslsm committed 2026-11-01 12:12:55 +02:00
1 parent 1781d25a15
commit 732c0ad767
33051 files changed
+2591613 -3019689

No files matched your search

@@ -0,0 +1,25 @@
// Metro module 14956 (f14957).
import { PixelRatio } from "react-native";
import { GUILD_ITEM_SIZE } from "../GuildsBarConstants";
import { BADGE_SIZE, BADGE_PADDING } from "../../../../design/void/native";
import { CutoutShape } from "../../../../design/components/Icon/native/ClipView";
export default function computeGuildsBarCutout({ position, containerSize = GUILD_ITEM_SIZE, width = BADGE_SIZE, height = BADGE_SIZE, padding = BADGE_PADDING }) {
const width2 = PixelRatio.roundToNearestPixel(width + 2 * padding);
const height2 = PixelRatio.roundToNearestPixel(height + 2 * padding);
const r43 = {
shape: CutoutShape.RoundedRect,
x: 0,
y: 0,
width: width2,
height: height2,
cornerRadius: PixelRatio.roundToNearestPixel(Math.min(width2, height2) / 2)
};
if (position === "top-right") {
r43.x = containerSize - width2 + padding;
r43.y = -padding;
} else {
r43.x = containerSize - width2 + padding;
r43.y = containerSize - height2 + padding;
}
return r43;
};