@shopware-ag/dive
Version:
Shopware Spatial Framework
25 lines (24 loc) • 786 B
TypeScript
import { Object3D } from 'three/webgpu';
import { DIVEHoverable } from '../../../../index.ts';
import { Tool } from '../Tool.ts';
import { PointerContext } from '../PointerContext.ts';
/**
* Tool for handling hover events on models.
*
* Only processes objects on PRODUCT_LAYER (models), ignoring UI elements like gizmos.
* Triggers DIVEHoverable callbacks: onPointerEnter, onPointerOver, onPointerLeave.
*
* @module
*/
export declare class HoverTool implements Tool {
readonly name = "hover";
readonly priority = 20;
private _hovered;
/**
* Currently hovered object, or null if nothing is hovered.
*/
get hovered(): (Object3D & DIVEHoverable) | null;
onActivate(): void;
onDeactivate(): void;
onPointerMove(ctx: PointerContext): void;
}