UNPKG

@eva/react-eva-spine

Version:

React EVA是一个让开发同学能够在React技术体系下,利用EVA JS的游戏研发能力,开发动画、游戏类场景的框架。它可以让开发同学用熟悉的JSX和Hooks语法编写动画、游戏场景的代码。

26 lines (25 loc) 924 B
/// <reference types="react" /> import { EvaRefObject } from '@eva/react-eva'; import { Spine as SpineComponent } from '@eva/plugin-renderer-spine'; export declare class SpineRefObject extends EvaRefObject { constructor(_ref: any); play(animationName: any, loop: any): this; stop(): this; on(eventName: any, fn: any): this; off(eventName: any, fn: any): this; once(eventName: any, fn: any): this; } export declare function useSpineResource({ name, image, ske, atlas }: { name: any; image: any; ske: any; atlas: any; }): string; export declare function useSpine({ resource, animationName, loop, autoPlay }: { resource: any; animationName: any; loop?: boolean; autoPlay?: boolean; }): SpineComponent; declare const Spine: import("react").ForwardRefExoticComponent<Pick<Record<string, any>, string> & import("react").RefAttributes<SpineRefObject>>; export default Spine;