updated files with new features and improvements: caching proper
This commit is contained in:
@@ -770,6 +770,9 @@
|
||||
const src = typeof resolveTarotCardImage === "function"
|
||||
? resolveTarotCardImage(card.name, deckOptions)
|
||||
: "";
|
||||
const previewSrc = typeof resolveTarotCardThumbnail === "function"
|
||||
? (resolveTarotCardThumbnail(card.name, deckOptions) || src)
|
||||
: src;
|
||||
const deckMeta = resolvedDeckId ? getRegisteredDeckOptionMap().get(resolvedDeckId) : null;
|
||||
const label = (typeof getTarotCardDisplayName === "function"
|
||||
? getTarotCardDisplayName(card.name, deckOptions)
|
||||
@@ -777,6 +780,7 @@
|
||||
|
||||
return {
|
||||
src,
|
||||
previewSrc,
|
||||
altText: label,
|
||||
label,
|
||||
cardId: card.id,
|
||||
|
||||
Reference in New Issue
Block a user