@needle-tools/engine
Version:
Needle Engine is a web-based runtime for 3D apps. It runs on your machine for development with great integrations into editors like Unity or Blender - and can be deployed onto any device! It is flexible, extensible and networking and XR are built-in.
10 lines (9 loc) • 527 B
TypeScript
import { Texture } from "three";
/** Returns a HTML element containing an icon. Using https://fonts.google.com/icons
* As a string you should pass in the name of the icon, e.g. "add" or "delete"
* @returns HTMLElement containing the icon
*/
export declare function getIconElement(str: string): HTMLElement;
/**@returns true if the element is an needle engine icon element */
export declare function isIconElement(element: Node): boolean;
export declare function getIconTexture(str: string): Promise<Texture | null>;