旋转半球
An interactive rotating globe component.
注意: This component uses cobe
and vue-use-spring
as a dependency.
通过 CLI 安装
手动安装
API
Prop 名称 | 类型 | 默认值 | 描述 |
---|---|---|---|
class | string | "" | Additional CSS classes for custom styling. |
config | COBEOptions | N/A | Configuration object for the globe, following COBE(https://cobe.vercel.app/docs/api) library options. |
mass | number | 1 | Mass parameter for the spring animation controlling rotation inertia. |
tension | number | 280 | Tension parameter for the spring animation, affecting responsiveness. |
friction | number | 100 | Friction parameter for the spring animation, affecting damping. |
precision | number | 0.001 | Precision parameter for the spring animation calculations. |
功能特性
- Interactive 3D Globe: Provides an interactive 3D globe visualization that users can rotate with mouse or touch interactions.
- Customizable Markers: Display markers on the globe at specified locations with customizable sizes.
- Smooth Animations: Utilizes physics-based spring animations for smooth and responsive globe rotations.
- Configurable Appearance: Customize the globe's appearance and behavior through the
config
prop using COBE library options. - Responsive Design: Automatically adjusts to different screen sizes and resolutions.