@wonderlandengine/editor-api
Version:
Wonderland Engine's Editor API for plugins - very experimental.
38 lines (37 loc) • 1.41 kB
TypeScript
/** @hidden */
export declare function awaitJob(jobId: number): Promise<void>;
export declare const newSubProject: (name: string, filename?: string, projectKind?: string) => boolean;
export declare const switchProject: (id: number) => void;
/**
* Package the current project
* @param destDir Destination directory into which to package, default `'<project-root>/deploy'`.
* @returns Promise with that is rejected on package failure.
*/
export declare function packageProject(destDir?: string): Promise<void>;
/**
* Load a file into current scene
*
* @param path Path to file to load
* @returns Promise with that is rejected on load failure.
*/
export declare function loadFile(path: string): Promise<void>;
/**
* Load a scene file into current scene
*
* @param path Path to file to load
* @param options.parent Parent object to parent the scene to. `null`, `undefined` and `""` indicate
* scene root.
* @returns Promise with that is rejected on load failure.
*/
export declare function loadScene(path: string, options: {
parent?: string;
}): Promise<void>;
/**
* Open a URL with the system default browser
*
* @param url URL to open
*/
export declare const openBrowser: (url: string) => void;
export declare const computeMeshBounds: (meshId: string, out: Float32Array) => void;
export declare const saveProject: () => void;
export declare const getComponentTypes: () => void;