UNPKG

@timsctt/threed-cloud

Version:

React module for create a cloud of React Nodes

39 lines (35 loc) 927 B
import React, { PropsWithChildren } from 'react'; interface Position { x: number; y: number; z: number; } interface CloudContainerProps extends PropsWithChildren { className?: string; iconOnHover?: boolean; isPausable?: boolean; item?: CloudElementProps; mouseTracking?: boolean; position?: Position; radius: number; randomPosition?: boolean; size: number; speed: number; } interface CloudElementProps extends PropsWithChildren { depth: number; pause: boolean; position: Position; sc: number[]; scale?: number; style?: ItemStyle; } interface ItemStyle { filter?: string; height?: string; opacity?: string; transform?: string; width?: string; } declare const CloudContainer: React.FunctionComponent<CloudContainerProps>; export { CloudContainer, type CloudContainerProps, type CloudElementProps, type ItemStyle, type Position };