From 2fe860a19f489068733fb907862fca2b4dc77e57 Mon Sep 17 00:00:00 2001 From: wisonic-s Date: Thu, 6 Apr 2023 15:20:02 +0800 Subject: [PATCH] =?UTF-8?q?refactor(=E8=A7=86=E5=9B=BE-=E6=B5=81=E5=90=91?= =?UTF-8?q?=E5=9C=B0=E5=9B=BE):=20=E4=BF=AE=E6=94=B9=E9=83=A8=E5=88=86?= =?UTF-8?q?=E9=BB=98=E8=AE=A4=E5=B1=9E=E6=80=A7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- frontend/src/views/chart/chart/chart.js | 8 ++++---- frontend/src/views/chart/chart/map/map_antv.js | 4 ++-- .../chart/components/shapeAttr/SizeSelectorAntV.vue | 9 ++++----- 3 files changed, 10 insertions(+), 11 deletions(-) diff --git a/frontend/src/views/chart/chart/chart.js b/frontend/src/views/chart/chart/chart.js index defbf79ff2..118cb83554 100644 --- a/frontend/src/views/chart/chart/chart.js +++ b/frontend/src/views/chart/chart/chart.js @@ -140,12 +140,12 @@ export const DEFAULT_SIZE = { hPosition: 'center', vPosition: 'center', mapPitch: 0, - mapLineType: 'line', + mapLineType: 'arc', mapLineWidth: 1, mapLineAnimate: true, - mapLineAnimateDuration: 4, - mapLineAnimateInterval: 0.5, - mapLineAnimateTrailLength: 0.1 + mapLineAnimateDuration: 3, + mapLineAnimateInterval: 1, + mapLineAnimateTrailLength: 1 } export const DEFAULT_SUSPENSION = { show: true diff --git a/frontend/src/views/chart/chart/map/map_antv.js b/frontend/src/views/chart/chart/map/map_antv.js index c597604fa9..db7afc8516 100644 --- a/frontend/src/views/chart/chart/map/map_antv.js +++ b/frontend/src/views/chart/chart/map/map_antv.js @@ -55,8 +55,8 @@ export function baseFlowMapOption(chartDom, chartId, chart, action) { .animate({ enable: size.mapLineAnimate, duration: size.mapLineAnimateDuration, - interval: size.mapLineAnimateInterval, - trailLength: size.mapLineAnimateTrailLength + interval: 1, + trailLength: 1 }) if (color.mapLineGradient) { lineLayer.style({ diff --git a/frontend/src/views/chart/components/shapeAttr/SizeSelectorAntV.vue b/frontend/src/views/chart/components/shapeAttr/SizeSelectorAntV.vue index cf9275d445..cf0a8ae0c9 100644 --- a/frontend/src/views/chart/components/shapeAttr/SizeSelectorAntV.vue +++ b/frontend/src/views/chart/components/shapeAttr/SizeSelectorAntV.vue @@ -1306,7 +1306,7 @@ /> @@ -1330,7 +1330,7 @@ /> @@ -1343,7 +1343,7 @@ /> @@ -1427,8 +1427,7 @@ export default { lineTypeOptions: [ { name: this.$t('chart.map_line_type_line'), value: 'line' }, { name: this.$t('chart.map_line_type_arc'), value: 'arc' }, - { name: this.$t('chart.map_line_type_arc_3d'), value: 'arc3d' }, - { name: this.$t('chart.map_line_type_great_circle'), value: 'greatcircle' } + { name: this.$t('chart.map_line_type_arc_3d'), value: 'arc3d' } ] } },