UNPKG

@eva/react-eva-dragonbone

Version:

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

27 lines (26 loc) 1.03 kB
/// <reference types="react" /> import { EvaRefObject } from '@eva/react-eva'; import { DragonBone as DragonBoneComponent } from '@eva/plugin-renderer-dragonbone'; export declare class DragonBoneRefObject extends EvaRefObject { constructor(_ref: any); play(animationName: any, times: any): this; stop(animationName: any): this; on(eventName: any, fn: any): this; off(eventName: any, fn: any): this; once(eventName: any, fn: any): this; } export declare function useDragonBoneResource({ name, image, ske, tex }: { name: any; image: any; ske: any; tex: any; }): string; export declare function useDragonBone({ resource, armatureName, animationName, autoPlay, playTimes, }: { resource: any; armatureName: any; animationName: any; autoPlay: any; playTimes?: number; }): DragonBoneComponent; declare const DragonBone: import("react").ForwardRefExoticComponent<Pick<Record<string, any>, string> & import("react").RefAttributes<DragonBoneRefObject>>; export default DragonBone;