UNPKG

reagraph

Version:

WebGL Node-based Graph for React

11 lines (9 loc) 489 B
import { SpringValue } from '@react-spring/three'; import { BufferGeometry } from 'three'; import { Theme } from '../../themes'; export declare function useEdgePositionAnimation(geometry: BufferGeometry, animated: boolean): void; export type UseEdgeOpacityAnimations = { activeOpacity: SpringValue<number>; inactiveOpacity: SpringValue<number>; }; export declare function useEdgeOpacityAnimation(animated: boolean, hasSelections: boolean, theme: Theme): UseEdgeOpacityAnimations;