UNPKG

@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.

36 lines (35 loc) 959 B
import { Texture } from 'three'; import { MaskableGraphic } from './Graphic.js'; declare class Sprite { texture: Texture | null; rect?: { width: number; height: number; }; } /** * @category User Interface * @group Components */ export declare class Image extends MaskableGraphic { set image(img: Texture | null); get image(): Texture | null; get sprite(): Sprite | undefined; set sprite(sprite: Sprite | undefined); private _sprite?; private pixelsPerUnitMultiplier; private isBuiltinSprite; protected onBeforeCreate(opts: any): void; protected onAfterCreated(): void; } /** * @category User Interface * @group Components */ export declare class RawImage extends MaskableGraphic { get mainTexture(): Texture | undefined; set mainTexture(texture: Texture | undefined); private _mainTexture?; protected onAfterCreated(): void; } export {};