import { ContextManager, Observable } from '@zcomponent/core'; import { Mesh, MeshConstructorProps } from './Mesh'; import { Grid as _Grid } from '../../internal/Grid'; /** * A customizable grid component that can be used to create reference grids in 3D space. * Features include configurable cell sizes, sections, colors, and fading effects. * * Root element: [THREE.Mesh](https://threejs.org/docs/index.html#api/en/objects/Mesh) * @zcomponent * @zgroup Meshes * @zicon grid_on * @ztag three/Object3D/Grid * @zparents three/Object3D/Group/** */ export declare class Grid extends Mesh { element: _Grid; /** * Size of each grid cell. * @zprop * @zgroup Grid Properties * @zgrouppriority 20 * @zdefault 0.5 */ cellSize: Observable; /** * Thickness of cell lines. * @zprop * @zgroup Grid Properties * @zgrouppriority 20 * @zdefault 0.5 */ cellThickness: Observable; /** * Size of grid sections (larger divisions). * @zprop * @zgroup Grid Properties * @zgrouppriority 20 * @zdefault 1 */ sectionSize: Observable; /** * Thickness of section lines. * @zprop * @zgroup Grid Properties * @zgrouppriority 20 * @zdefault 1 */ sectionThickness: Observable; /** * Color of the grid sections. * @zprop * @zgroup Grid Color * @zgrouppriority 20 * @ztype color-norm-rgb * @zdefault [0.125, 0.5, 1] */ sectionColor: Observable<[number, number, number], never>; /** * Color of the grid cells. * @zprop * @zgroup Grid Color * @zgrouppriority 20 * @ztype color-norm-rgb * @zdefault [0, 0, 0] */ cellColor: Observable<[number, number, number], never>; /** * Whether the grid follows the camera position. * @zprop * @zgroup Grid Behavior * @zgrouppriority 19 * @zdefault false */ followCamera: Observable; /** * Whether the grid extends infinitely. * @zprop * @zgroup Grid Behavior * @zgrouppriority 19 * @zdefault false */ infiniteGrid: Observable; /** * Distance at which the grid begins to fade. * @zprop * @zgroup Grid Fade * @zgrouppriority 18 * @zdefault 100 */ fadeDistance: Observable; /** * Strength of the fade effect. * @zprop * @zgroup Grid Fade * @zgrouppriority 18 * @zdefault 1 */ fadeStrength: Observable; /** * Distance from which the fade begins. * @zprop * @zgroup Grid Fade * @zgrouppriority 18 * @zdefault 1 */ fadeFrom: Observable; constructor(contextManager: ContextManager, props: MeshConstructorProps); /** * Disposes of the grid mesh and its resources. */ dispose(): never; }