@realsee/five
Version:
Realsee Renderer SDK
23 lines (22 loc) • 762 B
TypeScript
import * as React from "react";
import { Five, FiveInitArgs } from "@realsee/five";
type LoadArgs = Parameters<Five["load"]>;
interface FiveAppProps {
fiveInitArgs?: FiveInitArgs;
load?: (five: Five) => Promise<LoadArgs>;
plugins?: FiveInitArgs["plugins"];
renderChildren?: boolean;
fullscreen?: boolean;
/** 是否自动挂载 FiveAutoCanvas,默认 true */
autoCanvas?: boolean;
/** 加载中显示的 fallback,类似 Suspense 的 fallback */
fallback?: React.ReactNode;
children?: React.ReactNode;
}
/**
* Five 应用组件
* @description 组合了 Provider + AutoCanvas + 数据加载流程的一体化组件。
*/
declare const FiveApp: React.FC<FiveAppProps>;
export { FiveApp };
export type { FiveAppProps };