feat: Update exportCharacterCard to use v3 specification

This commit is contained in:
kwaroran
2024-05-26 04:22:14 +09:00
parent a9eaf90208
commit 9e9f23b209

View File

@@ -21,7 +21,7 @@ export async function shareRealmCardData():Promise<{ name: ArrayBuffer; data: Ar
const trimedName = char.name.replace(/[^a-zA-Z0-9]/g, '') || 'character';
const writer = new VirtualWriter()
const namebuf = new TextEncoder().encode(trimedName + '.png')
await exportCharacterCard(char, 'png', {writer: writer})
await exportCharacterCard(char, 'png', {writer: writer, spec: 'v3'})
alertStore.set({
type: 'none',
msg: ''