Skip to content

Commit

Permalink
feat: 补充flowLayer文档
Browse files Browse the repository at this point in the history
  • Loading branch information
syb01094648 committed Jul 25, 2023
1 parent 164932a commit 97e5806
Showing 1 changed file with 56 additions and 0 deletions.
56 changes: 56 additions & 0 deletions website/docs/common/composite-layers/composite-common/method.zh.md
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,62 @@ layer.boxSelect(bounds: [number, number, number, number], callback: (...args: an
layer.getLegend(name: string): ILegend;
```

### state

交互反馈。

#### `active`

`boolean | FLowLayerActiveOptions` optional default: `false`
高亮交互

```js
{
state: {
active: false;
}
}
```

```js
{
state:{
active:{
enableCircleSpread: true,
enableLineSpread: true,
circleColor: '#2f54eb',
circleStrokeColor: '#2f54eb',
lineColor: '#2f54eb',
lineStroke: '#2f54eb';
}
}
}
```

#### FLowLayerActiveOptions 配置如下:

| 属性 | 描述 | 类型 | 默认值 | 是否必填 |
| ------------------ | ---------------------------- | ------------------------------------------ | ------- | -------- |
| enableCircleSpread | 是否自动高亮该其关联的客流线 | `boolean` | `false` | optional |
| enableLineSpread | 是否自动高亮该其关联的客流点 | `boolean` | `false` | optional |
| circleColor | 客流点颜色 | `string|PointLayerOptions['color'] ` | `-` | optional |
| circleStrokeColor | 客流点边框颜色 | `string|PointLayerStyleOptions['stroke']` | `-` | optional |
| lineColor | 客流线填充颜色 | `string|LineLayerOptions['color']` | `-` | optional |
| lineStroke | 客流线边框颜色 | `string|LineLayerStyleOptions['stroke']` | `-` | optional |

#### `select`

`boolean | FLowLayerActiveOptions` optional default: `false`
选中交互

```js
{
state: {
select: false;
}
}
```

### getLegendItems

获取图例数据。
Expand Down

0 comments on commit 97e5806

Please sign in to comment.