style: style change

This commit is contained in:
2912401452 2021-06-01 19:15:37 +08:00
parent aa0d999a57
commit c5ffe506af
7 changed files with 14 additions and 17 deletions

View File

@ -18,10 +18,10 @@ order: 10
- 支持 arc 弧线反向
### 🐞 Bug Fixes
- 修复使用多个文字标注图层时存在的问题
## 2020.04.20 2.2 正式版本
###✨ Features

View File

@ -1,2 +1,2 @@
const version = '2.3.11';
const version = '2.4.0';
export { version };

View File

@ -6,7 +6,7 @@ import {
ILayerConfig,
IModel,
IModelUniform,
ITexture2D
ITexture2D,
} from '@antv/l7-core';
import BaseModel from '../../core/BaseModel';
@ -63,7 +63,6 @@ export default class ArcModel extends BaseModel {
}
public initModels(): IModel[] {
this.updateTexture();
this.iconService.on('imageUpdate', this.updateTexture);

View File

@ -10,8 +10,8 @@ import {
import BaseModel from '../../core/BaseModel';
import { ILineLayerStyleOptions, lineStyleType } from '../../core/interface';
import { LineArcTriangulation } from '../../core/triangulation';
import line_arc_vert from '../shaders/line_arc_3d_vert.glsl';
import line_arc_frag from '../shaders/line_arc_3d_frag.glsl';
import line_arc_vert from '../shaders/line_arc_3d_vert.glsl';
const lineStyleObj: { [key: string]: number } = {
solid: 0.0,
dash: 1.0,

View File

@ -19,7 +19,7 @@ export default class Amap2demo_arcLine3DTex extends React.Component {
center: [107.77791556935472, 35.443286920228644],
zoom: 2.9142882493605033,
viewMode: '3D',
style: "dark"
style: 'dark',
}),
});
this.scene = scene;
@ -60,15 +60,13 @@ export default class Amap2demo_arcLine3DTex extends React.Component {
// lineTexture: true, // 开启线的贴图功能
// iconStep: 100, // 设置贴图纹理的间距
// // opacity: 0
})
});
// .animate({
// duration: 50,
// interval: 0.3,
// trailLength: 0.1,
// });
scene.addLayer(layer);
});
}

View File

@ -19,7 +19,7 @@ export default class Amap2demo_arcLineTex extends React.Component {
center: [107.77791556935472, 35.443286920228644],
zoom: 2.9142882493605033,
viewMode: '3D',
style: "dark"
style: 'dark',
}),
});
this.scene = scene;
@ -59,13 +59,13 @@ export default class Amap2demo_arcLineTex extends React.Component {
forward: false,
lineTexture: true, // 开启线的贴图功能
iconStep: 100, // 设置贴图纹理的间距
opacity: 0
opacity: 0,
})
.animate({
duration: 50,
interval: 0.3,
trailLength: 0.1,
});
.animate({
duration: 50,
interval: 0.3,
trailLength: 0.1,
});
scene.addLayer(layer);
});
}