MCPcopy Create free account
hub / github.com/PaperDebugger/paperdebugger / d

Function d

webapp/_webapp/src/libs/apple-auth.js:62–94  ·  view source on GitHub ↗
(e)

Source from the content-addressed store, hash-verified

60 return "number" != typeof e || isNaN(e) ? "100%" : Math.floor(e) + "px";
61 },
62 d = function (e) {
63 var t = e.color,
64 i = e.borderRadius,
65 o = void 0 === i ? 15 : i,
66 n = e.border,
67 d = void 0 !== n && n,
68 c = e.width,
69 h = void 0 === c ? "100%" : c,
70 s = e.height,
71 g = void 0 === s ? "100%" : s,
72 u = e.isSquare,
73 f = void 0 !== u && u;
74 return A(
75 "svg",
76 {
77 xmlns: "http://www.w3.org/2000/svg",
78 style: r({ overflow: "visible" }),
79 width: l(h),
80 height: l(g),
81 viewBox: f ? "0 0 50 50" : void 0,
82 preserveAspectRatio: f ? "xMidYMin meet" : void 0,
83 },
84 A("rect", {
85 width: l(h),
86 height: l(g),
87 ry: "".concat(o, "%"),
88 fill: a(t),
89 stroke: d ? "black" : void 0,
90 "stroke-width": d ? "1" : void 0,
91 "stroke-linecap": d ? "round" : void 0,
92 }),
93 );
94 },
95 c = function (e) {
96 return "black" === e ? "#fff" : "#000";
97 },

Callers 3

gFunction · 0.85
YFunction · 0.85
PFunction · 0.85

Calls 4

AFunction · 0.85
rFunction · 0.85
lFunction · 0.85
aFunction · 0.85

Tested by

no test coverage detected