UNPKG

threepipe

Version:

A modern 3D viewer framework built on top of three.js, written in TypeScript, designed to make creating high-quality, modular, and extensible 3D experiences on the web simple and enjoyable.

30 lines 989 B
import { SerializationMetaType } from '../../../utils'; declare class ItemRef { readonly isItemRef = true; id: string; constructor(id?: string); toJSON(meta?: SerializationMetaType): { id?: undefined; } | { id: string; }; ['_itemObject']: any; fromJSON(data: any, meta?: SerializationMetaType): this; } interface Item { id: string; refs: Map<any, Set<ItemRef>>; object: any; } export declare class ReferenceManager { static Objects: Map<string, Item>; static Get(ref: ItemRef): any; static Add(id: string, object: any, refOwner: any): ItemRef; static Remove(id: string, refOwner: any, ref: ItemRef): void; static Delete(object: any): void; static RemoveOp(val: ItemRef | any, refOwner: any): void; static GetOp(val: ItemRef | any, warn?: boolean): any; static GetCached(valRaw: ItemRef | any): any; } export {}; //# sourceMappingURL=../../../src/plugins/extras/components/ReferenceManager.d.ts.map