@novely/solid-renderer
Version:
Renderer for @novely/core powered by SolidJS
26 lines (25 loc) • 771 B
TypeScript
import type { ValidAction, NovelyAsset } from '@novely/core';
type ShowImageParams = {
classesBase?: string;
classesIn?: string;
wait?: boolean;
};
type ShowImageData = {
classesBase?: string[];
classesIn?: string[];
classesOut?: string[];
key: string;
image: HTMLImageElement;
visible: boolean;
onIn: () => void;
onOut: () => void;
};
type ContextImages = ShowImageData[];
declare const showImage: (asset: NovelyAsset, { classesBase, classesIn, wait }?: ShowImageParams) => ValidAction;
type HideImageParams = {
classesOut?: string;
wait?: boolean;
};
declare const hideImage: (asset: NovelyAsset, { classesOut, wait }?: HideImageParams) => ValidAction;
export { showImage, hideImage };
export type { ContextImages };