UNPKG

@polygonjs/polygonjs

Version:

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

26 lines (25 loc) 636 B
/** * Returns the size of the window. * * @remarks * It takes 0 arguments. * * `windowSize()` * * * ## Usage * * - `windowSize()` - returns a THREE.Vector2 * - `windowSize().x` - returns a float * - `windowSize().y` - returns a float * */ import { BaseMethodFindDependencyArgs } from './_Base'; import { BaseMethod } from './_Base'; import { Vector2 } from 'three'; export declare class WindowSizeExpression extends BaseMethod { static requiredArguments(): never[][]; findDependency(indexOrPath: BaseMethodFindDependencyArgs): null; private _windowSize; processArguments(args: any[]): Promise<Vector2>; }