@castianta/calc-3d

计算3D轨道模拟

Usage no npm install needed!

<script type="module">
  import castiantaCalc3d from 'https://cdn.skypack.dev/@castianta/calc-3d';
</script>

README

计算 3D 绘制组件

@castianta/calc-3d

API

参数名 说明 必填 类型 默认值 备注
canvas 绘制参数 CanvasProps - -
dataSource 曲线绘制数据 DataSourceProps - 见下
target 目标卫星 TargetProps - -
timer 时间标识 TimerProps - 见下

DataSourceProps

参数名 说明 必填 类型 默认值 备注
name 名称 String - -
url txt 数据 url 地址 String - -

TimerProps

参数名 说明 必填 类型 默认值 备注
value 数据值 String - -
style 样式 CSSProperties - -

TargetProps

参数名 说明 必填 类型 默认值 备注
name 名称 String - -
url 模型静态路径 String /public/Satellite+A.fbx 支持文件格式fbx、glb、gltf
primitive 模型 ReactNode String Props -