From 2132c1927ae9859d3603aefcbae6dedff9f7f1b3 Mon Sep 17 00:00:00 2001 From: 2912401452 <2912401452@qq.com> Date: Mon, 14 Feb 2022 14:56:15 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E4=BF=AE=E5=A4=8D=E6=B0=B4=E6=B3=A2?= =?UTF-8?q?=E7=82=B9=E9=80=89=E4=B8=AD=E9=AB=98=E4=BA=AE=E5=9C=A8=E8=BE=B9?= =?UTF-8?q?=E7=BC=98=E7=9A=84=E6=98=BE=E7=A4=BA=E9=94=99=E8=AF=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- packages/layers/src/point/shaders/animate/wave_frag.glsl | 2 +- stories/Map/components/mapCenter.tsx | 7 ++++--- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/packages/layers/src/point/shaders/animate/wave_frag.glsl b/packages/layers/src/point/shaders/animate/wave_frag.glsl index 904af4a6ea..84a1e28c09 100644 --- a/packages/layers/src/point/shaders/animate/wave_frag.glsl +++ b/packages/layers/src/point/shaders/animate/wave_frag.glsl @@ -44,7 +44,7 @@ void main() { gl_FragColor = vec4(v_color.xyz, v_color.a * opacity * intensity); // TODO: 优化在水波纹情况下的拾取 - if(d < 0.45) { + if(d < 0.5) { gl_FragColor = filterColor(gl_FragColor); } } diff --git a/stories/Map/components/mapCenter.tsx b/stories/Map/components/mapCenter.tsx index 805a4f64f5..01ee647a08 100644 --- a/stories/Map/components/mapCenter.tsx +++ b/stories/Map/components/mapCenter.tsx @@ -23,7 +23,7 @@ export default class GaodeMapComponent extends React.Component { center: aspaceLnglat, // pitch: 0, pitch: 40, - // style: 'dark', + style: 'dark', zoom: 17, // dragEnable: false }), @@ -105,7 +105,8 @@ export default class GaodeMapComponent extends React.Component { ) .shape('circle') // .color('#0f9') - .color('#4169E1') + // .color('#4169E1') + .color('#4cfd47') // .size([10, 10, 100]) .size(100) // .animate({ @@ -113,7 +114,7 @@ export default class GaodeMapComponent extends React.Component { // enable: false, // // type: 'www' // }) - // .animate(true) + .animate(true) .active({ color: '#00f' }) .style({ // opacity: 0.5,