@polygonjs/polygonjs
Version:
node-based WebGL 3D engine https://polygonjs.com
25 lines (24 loc) • 658 B
TypeScript
/**
* Returns the name of the refered node
*
* @remarks
* It takes 1 arguments.
*
* `opname(node_path)`
*
* - `node_path` path to referred node
*
* ## Usage
*
* - `opname('/geo1')` - returns 'geo1'
* - `opname('..')` - returns the name of the parent
*
*/
import { BaseMethodFindDependencyArgs } from './_Base';
import { BaseMethod } from './_Base';
import { MethodDependency } from '../MethodDependency';
export declare class OpnameExpression extends BaseMethod {
static requiredArguments(): string[][];
findDependency(args: BaseMethodFindDependencyArgs): MethodDependency | null;
processArguments(args: any[]): Promise<string>;
}