feat : able to rotate img for mat card
CI / Verify (push) Successful in 1m46s
CI / Build immutable images and deploy (push) Successful in 2m3s

This commit is contained in:
2026-09-19 20:20:02 +07:00 Unverified
parent 26517ea5fd
commit 7c10b2c995
12 changed files with 2962 additions and 41 deletions
+15 -6
View File
@@ -235,6 +235,7 @@ function GuideOverview({
artworkOffsetX={guide.posterArtOffsetX}
artworkOffsetY={guide.posterArtOffsetY}
artworkScale={guide.posterArtScale}
artworkRotation={guide.posterArtRotation}
topColors={guide.posterTopColors}
bottomColors={guide.posterBottomColors}
bleeding={guide.posterBleeding}
@@ -256,6 +257,7 @@ function GuideOverview({
artworkOffsetX={guide.posterArtOffsetX}
artworkOffsetY={guide.posterArtOffsetY}
artworkScale={guide.posterArtScale}
artworkRotation={guide.posterArtRotation}
topColors={guide.posterTopColors}
bottomColors={guide.posterBottomColors}
bleeding={guide.posterBleeding}
@@ -1000,12 +1002,12 @@ const thaiStats: Record<string, string> = {
DEF: "พลังป้องกัน",
EM: "ความชำนาญธาตุ",
ER: "ฟื้นฟูพลังงาน",
"CRIT RATE": "อัตราคริ",
"CRIT DAMAGE": "ความแรงคริ",
"CRIT RATE": "คริเรท",
"CRIT DAMAGE": "คริดาเมท",
"ATK%": "พลังโจมตี%",
"HP%": "พลังชีวิต%",
"DEF%": "พลังป้องกัน%",
"CRIT Rate/CRIT DMG": "อัตราคริ/ความแรงคริ",
"CRIT Rate/CRIT DMG": "คริเรท/คริดาเมท",
"Pyro DMG%": "โบนัสความเสียหายธาตุไฟ",
"Hydro DMG%": "โบนัสความเสียหายธาตุน้ำ",
"Cryo DMG%": "โบนัสความเสียหายธาตุน้ำแข็ง",
@@ -1028,12 +1030,19 @@ const englishStats: Record<string, string> = {
"CRIT Rate/CRIT DMG": "CRIT Rate / CRIT DMG",
};
const statLabelAliases: Record<string, string> = {
"CRIT Rate%": "CRIT RATE",
"CRIT DMG%": "CRIT DAMAGE",
"CRIT Rate%/CRIT DMG%": "CRIT Rate/CRIT DMG",
};
function statLabel(value: string, exporting = false): ReactNode {
if (!exporting) return thaiStats[value] ?? value;
const labelKey = statLabelAliases[value] ?? value;
if (!exporting) return thaiStats[labelKey] ?? value;
return (
<ExportText
th={thaiStats[value] ?? value}
en={englishStats[value] ?? value}
th={thaiStats[labelKey] ?? value}
en={englishStats[labelKey] ?? value}
/>
);
}