narraleaf-react 0.19.1 → 0.19.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -33,3 +33,15 @@ export declare function resolveDialogAvatar(ctx: DialogAvatarResolverContext & {
|
|
|
33
33
|
portraitAvatar?: DialogAvatar;
|
|
34
34
|
characterAvatar?: DialogAvatar | false;
|
|
35
35
|
}): DialogAvatarResolution;
|
|
36
|
+
/**
|
|
37
|
+
* Every avatar source a character can show that is knowable ahead of time.
|
|
38
|
+
*
|
|
39
|
+
* Only *static* sources are enumerable. A {@link DialogAvatarResolver} derives its answer from the
|
|
40
|
+
* portrait's live state, so what it can return is invisible from here — the same limitation, and
|
|
41
|
+
* for the same reason, as a layer {@link LayerResolver}. Callers that preload from this should say
|
|
42
|
+
* so, and a project whose avatars are resolver-driven has to register them itself.
|
|
43
|
+
*
|
|
44
|
+
* `false` is not an absence of a source, it is an instruction to show none; either way there is
|
|
45
|
+
* nothing to preload.
|
|
46
|
+
*/
|
|
47
|
+
export declare function collectStaticAvatarSources(character: Character, sentence?: Sentence | null): ImageSrc[];
|