Files
nothoughts/node_modules/pixi.js/lib/scene/mesh-plane/PlaneGeometry.d.ts
2025-08-04 18:57:35 +02:00

52 lines
1.5 KiB
TypeScript

import { MeshGeometry } from '../mesh/shared/MeshGeometry';
import type { MeshGeometryOptions } from '../mesh/shared/MeshGeometry';
/**
* Constructor options used for `PlaneGeometry` instances.
* ```js
* const planeGeometry = new PlaneGeometry({
* width: 100,
* height: 100,
* verticesX: 10,
* verticesY: 10,
* });
* ```
* @see {@link scene.PlaneGeometry}
* @memberof scene
*/
export interface PlaneGeometryOptions {
/** Width of plane */
width?: number;
/** Height of plane */
height?: number;
/** Number of vertices on x-axis */
verticesX?: number;
/** Number of vertices on y-axis */
verticesY?: number;
}
/**
* The PlaneGeometry allows you to draw a 2d plane
* @memberof scene
*/
export declare class PlaneGeometry extends MeshGeometry {
static defaultOptions: PlaneGeometryOptions & MeshGeometryOptions;
/** The number of vertices on x-axis */
verticesX: number;
/** The number of vertices on y-axis */
verticesY: number;
/** The width of plane */
width: number;
/** The height of plane */
height: number;
/**
* @param {PlaneGeometryOptions} options - Options to be applied to plane geometry
*/
constructor(options: PlaneGeometryOptions);
/** @deprecated since 8.0.0 */
constructor(width?: number, height?: number, verticesX?: number, verticesY?: number);
/**
* Refreshes plane coordinates
* @param options - Options to be applied to plane geometry
*/
build(options: PlaneGeometryOptions): void;
}