style: lint style

This commit is contained in:
2912401452 2022-04-08 18:04:44 +08:00
parent db3511b149
commit 2f78e56343
1 changed files with 19 additions and 19 deletions

View File

@ -74,7 +74,7 @@ const imageLayer = new PointLayer()
.shape('name', ['00', '01', '02'])
.style({
rotation: 0,
layerType: 'fillImage'
layerType: 'fillImage',
})
.active({
color: '#0ff',
@ -109,21 +109,21 @@ function rotate() {
```javascript
const imageLayer = new PointLayer()
.source(data)
.shape('wind', wind => {
.shape('wind', (wind) => {
if (wind === 'up') {
return 'arrBlue';
}
return 'arrRed';
})
.rotate('r', r => Math.PI * r)
.rotate('r', (r) => Math.PI * r)
.size(15)
.style({
rotation: 0,
layerType: 'fillImage'
layerType: 'fillImage',
});
scene.addLayer(imageLayer);
```
[在线案例](/zh/examples/point/image#monsoon)
`markdown:docs/common/layer/base.md`