@realsee/five
Version:
Realsee Renderer SDK
33 lines (32 loc) • 806 B
TypeScript
import type { BasePlugin } from '../BasePlugin';
export type PluginData = any;
export type ServerData = any;
export interface CreateCSS3DObjectType {
id?: string;
name?: string;
innerHTML: string;
sprite?: boolean;
normal?: THREE.Vector3;
position?: THREE.Vector3;
scalar?: number;
visible?: boolean;
timeout?: number;
}
/** 插件配置 */
export interface Config {
}
/** 插件初始化参数 */
export interface Params {
config?: Partial<Config>;
initialState?: Partial<State>;
}
/** 插件状态 */
export interface State extends BasePlugin.State {
/** 插件是否启用 */
enabled: boolean;
/** 插件整体是否可见 */
visible: boolean;
}
/** 插件事件 */
export interface EventMap extends BasePlugin.EventMap<State, ServerData> {
}