Files
avz-site/node_modules/@react-three/drei/core/Center.d.ts
T
2026-05-30 19:59:39 -03:00

34 lines
972 B
TypeScript

import { Box3, Vector3, Sphere, Group, Object3D } from 'three';
import { ThreeElements } from '@react-three/fiber';
import { ForwardRefComponent } from '../helpers/ts-utils';
export type OnCenterCallbackProps = {
parent: Object3D;
container: Object3D;
width: number;
height: number;
depth: number;
boundingBox: Box3;
boundingSphere: Sphere;
center: Vector3;
verticalAlignment: number;
horizontalAlignment: number;
depthAlignment: number;
};
export type CenterProps = Omit<ThreeElements['group'], 'ref'> & {
top?: boolean;
right?: boolean;
bottom?: boolean;
left?: boolean;
front?: boolean;
back?: boolean;
disable?: boolean;
disableX?: boolean;
disableY?: boolean;
disableZ?: boolean;
object?: Object3D | null;
precise?: boolean;
onCentered?: (props: OnCenterCallbackProps) => void;
cacheKey?: any;
};
export declare const Center: ForwardRefComponent<CenterProps, Group>;