Interface: IWindOptions ¶
Hierarchy ¶
IOptions
↳
IWindOptions
Indexable ¶
▪ [key: string
]: any
Table of contents ¶
Properties ¶
- globalAlpha
- lineWidth
- colorScale
- velocityScale
- particleAge
- maxAge
- particleMultiplier
- paths
- frameRate
- minVelocity
- maxVelocity
- useCoordsDraw
- forceRender
- windOptions
- fieldOptions
Properties ¶
globalAlpha ¶
• globalAlpha: number
全局透明度,主要影响粒子拖尾效果,默认 0.9
Inherited from ¶
IOptions.globalAlpha
Defined in ¶
core/dist/index.d.ts:391
lineWidth ¶
• lineWidth: number
| emptyFunc
线条宽度
Inherited from ¶
IOptions.lineWidth
Defined in ¶
core/dist/index.d.ts:395
colorScale ¶
• colorScale: string
| emptyFunc
| string
[]
粒子颜色配置, 默认#fff,当为回调函数时,参数 function(m:对应点风速值) => string
Inherited from ¶
IOptions.colorScale
Defined in ¶
core/dist/index.d.ts:399
velocityScale ¶
• velocityScale: number
| emptyFunc
对于粒子路径步长的乘积系数,默认 1 / 25
Inherited from ¶
IOptions.velocityScale
Defined in ¶
core/dist/index.d.ts:403
particleAge ¶
• Optional
particleAge: number
粒子路径能够生成的最大帧数,默认是 90
Inherited from ¶
IOptions.particleAge
Defined in ¶
core/dist/index.d.ts:407
maxAge ¶
• maxAge: number
粒子路径能够生成的最大帧数,默认是 90;他代表的是我们的 paths
数量的粒子的消亡控制,最小值是 0,最大值是 maxAge
,在运行到 age 数时会消失然后进行重启
Inherited from ¶
IOptions.maxAge
Defined in ¶
core/dist/index.d.ts:411
particleMultiplier ¶
• Optional
particleMultiplier: number
粒子路径数量的系数,不推荐使用(视野宽度 * 高度 * 系数)
Inherited from ¶
IOptions.particleMultiplier
Defined in ¶
core/dist/index.d.ts:415
paths ¶
• paths: number
| emptyFunc
生成的粒子数量
Inherited from ¶
IOptions.paths
Defined in ¶
core/dist/index.d.ts:419
frameRate ¶
• frameRate: number
用户自定义的帧率,默认是 20ms, 大概接近 50fps 帧,我们可能在某些场景需要降低帧率一保证渲染稳定性;注意此配置还会影响粒子运动的速度
Inherited from ¶
IOptions.frameRate
Defined in ¶
core/dist/index.d.ts:423
minVelocity ¶
• Optional
minVelocity: number
用户配置的风速最小值,如果未配置会从传入的数据中计算
Inherited from ¶
IOptions.minVelocity
Defined in ¶
core/dist/index.d.ts:427
maxVelocity ¶
• Optional
maxVelocity: number
用户配置的风速最大值,如果未配置会从传入的数据中计算
Inherited from ¶
IOptions.maxVelocity
Defined in ¶
core/dist/index.d.ts:431
useCoordsDraw ¶
• Optional
useCoordsDraw: boolean
使用外部传入的坐标系统,默认是 true
;某些场景下我们可能直接使用像素坐标。
Inherited from ¶
IOptions.useCoordsDraw
Defined in ¶
core/dist/index.d.ts:435
forceRender ¶
• forceRender: boolean
配置是否强制渲染;ol 对图层有一定的优化策略,在地图拖动,缩放等交互会隐藏图层,如果我们期望在拖动缩放 也需要保持图层显示,那么可以开启器配置(默认开启)
Defined in ¶
windOptions ¶
• windOptions: Partial
<IOptions
>
风场渲染相关配置
Defined in ¶
fieldOptions ¶
• fieldOptions: Partial
<IField
>
风场数据相关配置