MCPcopy Create free account
hub / github.com/JacobLinCool/LeetCode-Stats-Card / Ranking

Function Ranking

packages/core/src/elements.ts:118–132  ·  view source on GitHub ↗
(ranking: number)

Source from the content-addressed store, hash-verified

116}
117
118export function Ranking(ranking: number) {
119 const item = new Item("text", {
120 id: "ranking",
121 content: "#" + ranking.toString(),
122 style: {
123 transform: "translate(480px, 40px)",
124 fill: "var(--text-1)",
125 "font-size": "18px",
126 "font-weight": "bold",
127 "text-anchor": "end",
128 },
129 });
130
131 return item;
132}
133
134export function TotalSolved(total: number, solved: number) {
135 return new Item("g", {

Callers 1

elements.test.tsFile · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected