Skip to content

Interface: IWindOptions

Hierarchy

  • IOptions

    IWindOptions

Indexable

▪ [key: string]: any

Table of contents

Properties

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


opacity

Optional opacity: number

Defined in

openlayers/src/index.ts:9


map

Optional map: Map

Defined in

openlayers/src/index.ts:10


visible

Optional visible: boolean

Defined in

openlayers/src/index.ts:11


extent

Optional extent: Extent

Defined in

openlayers/src/index.ts:12


minResolution

Optional minResolution: number

Defined in

openlayers/src/index.ts:13


maxResolution

Optional maxResolution: number

Defined in

openlayers/src/index.ts:14


zIndex

Optional zIndex: number

Defined in

openlayers/src/index.ts:15


windOptions

windOptions: Partial<IOptions>

Defined in

openlayers/src/index.ts:16


fieldOptions

fieldOptions: Partial<IField>

Defined in

openlayers/src/index.ts:17

Released under the MIT License.