forked from github/dataease
refactor(视图-流向地图): 修改部分默认属性
This commit is contained in:
parent
f859ed0872
commit
2fe860a19f
@ -140,12 +140,12 @@ export const DEFAULT_SIZE = {
|
|||||||
hPosition: 'center',
|
hPosition: 'center',
|
||||||
vPosition: 'center',
|
vPosition: 'center',
|
||||||
mapPitch: 0,
|
mapPitch: 0,
|
||||||
mapLineType: 'line',
|
mapLineType: 'arc',
|
||||||
mapLineWidth: 1,
|
mapLineWidth: 1,
|
||||||
mapLineAnimate: true,
|
mapLineAnimate: true,
|
||||||
mapLineAnimateDuration: 4,
|
mapLineAnimateDuration: 3,
|
||||||
mapLineAnimateInterval: 0.5,
|
mapLineAnimateInterval: 1,
|
||||||
mapLineAnimateTrailLength: 0.1
|
mapLineAnimateTrailLength: 1
|
||||||
}
|
}
|
||||||
export const DEFAULT_SUSPENSION = {
|
export const DEFAULT_SUSPENSION = {
|
||||||
show: true
|
show: true
|
||||||
|
@ -55,8 +55,8 @@ export function baseFlowMapOption(chartDom, chartId, chart, action) {
|
|||||||
.animate({
|
.animate({
|
||||||
enable: size.mapLineAnimate,
|
enable: size.mapLineAnimate,
|
||||||
duration: size.mapLineAnimateDuration,
|
duration: size.mapLineAnimateDuration,
|
||||||
interval: size.mapLineAnimateInterval,
|
interval: 1,
|
||||||
trailLength: size.mapLineAnimateTrailLength
|
trailLength: 1
|
||||||
})
|
})
|
||||||
if (color.mapLineGradient) {
|
if (color.mapLineGradient) {
|
||||||
lineLayer.style({
|
lineLayer.style({
|
||||||
|
@ -1306,7 +1306,7 @@
|
|||||||
/>
|
/>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item
|
<el-form-item
|
||||||
v-show="showProperty('mapLineAnimate')"
|
v-show="false"
|
||||||
:label="$t('chart.map_line_animate')"
|
:label="$t('chart.map_line_animate')"
|
||||||
class="form-item"
|
class="form-item"
|
||||||
>
|
>
|
||||||
@ -1330,7 +1330,7 @@
|
|||||||
/>
|
/>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item
|
<el-form-item
|
||||||
v-show="showProperty('mapLineAnimateInterval')"
|
v-show="false"
|
||||||
:label="$t('chart.map_line_animate_interval')"
|
:label="$t('chart.map_line_animate_interval')"
|
||||||
class="form-item form-item-slider"
|
class="form-item form-item-slider"
|
||||||
>
|
>
|
||||||
@ -1343,7 +1343,7 @@
|
|||||||
/>
|
/>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item
|
<el-form-item
|
||||||
v-show="showProperty('mapLineAnimateTrailLength')"
|
v-show="false"
|
||||||
:label="$t('chart.map_line_animate_trail_length')"
|
:label="$t('chart.map_line_animate_trail_length')"
|
||||||
class="form-item form-item-slider"
|
class="form-item form-item-slider"
|
||||||
>
|
>
|
||||||
@ -1427,8 +1427,7 @@ export default {
|
|||||||
lineTypeOptions: [
|
lineTypeOptions: [
|
||||||
{ name: this.$t('chart.map_line_type_line'), value: 'line' },
|
{ 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'), value: 'arc' },
|
||||||
{ name: this.$t('chart.map_line_type_arc_3d'), value: 'arc3d' },
|
{ name: this.$t('chart.map_line_type_arc_3d'), value: 'arc3d' }
|
||||||
{ name: this.$t('chart.map_line_type_great_circle'), value: 'greatcircle' }
|
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
Loading…
Reference in New Issue
Block a user