UNPKG

polygonjs-engine

Version:

node-based webgl 3D engine https://polygonjs.com

22 lines (21 loc) 780 B
import { BaseNodeType } from '../_Base'; import { CoreGraphNode } from '../../../core/graph/CoreGraphNode'; declare type Callback = () => void; export declare class NameController { protected node: BaseNodeType; private _graph_node; private _on_set_name_hooks; private _on_set_fullPath_hooks; constructor(node: BaseNodeType); dispose(): void; get graph_node(): CoreGraphNode; static base_name(node: BaseNodeType): string; request_name_to_parent(new_name: string): void; setName(new_name: string): void; update_name_from_parent(new_name: string): void; add_post_set_name_hook(hook: Callback): void; add_post_set_fullPath_hook(hook: Callback): void; post_setName(): void; run_post_set_fullPath_hooks(): void; } export {};