sonar
This commit is contained in:
@@ -580,13 +580,21 @@ export default {
|
|||||||
maxRotation: 0, // 不旋轉 lable 0~50
|
maxRotation: 0, // 不旋轉 lable 0~50
|
||||||
color: '#334155',
|
color: '#334155',
|
||||||
callback: ((value, index, values) => {
|
callback: ((value, index, values) => {
|
||||||
|
let x;
|
||||||
switch (valueData.type) {
|
switch (valueData.type) {
|
||||||
case 'int':
|
case 'int':
|
||||||
return Math.round(value);
|
return Math.round(value);
|
||||||
case 'float':
|
case 'float':
|
||||||
let x = index === 0 ? Math.floor(value * 100) / 100 :
|
switch (index) {
|
||||||
index === values.length - 1 ? value = Math.ceil(value * 100) / 100 :
|
case 0:
|
||||||
Math.round(value * 100) / 100;
|
x = Math.floor(value * 100) / 100;
|
||||||
|
break;
|
||||||
|
case values.length - 1:
|
||||||
|
x = Math.ceil(value * 100) / 100;
|
||||||
|
break;
|
||||||
|
default:
|
||||||
|
x = Math.round(value * 100) / 100;
|
||||||
|
}
|
||||||
// 處理科學記號等格式轉換
|
// 處理科學記號等格式轉換
|
||||||
// Decimal 無法處理超過 16 位數
|
// Decimal 無法處理超過 16 位數
|
||||||
x = new Intl.NumberFormat(undefined, {useGrouping: false}).format(x);
|
x = new Intl.NumberFormat(undefined, {useGrouping: false}).format(x);
|
||||||
|
|||||||
@@ -642,8 +642,8 @@ export default {
|
|||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
case 'Trace': // Filter Type 選 Trace 的行為
|
case 'Trace': // Filter Type 選 Trace 的行為
|
||||||
let lowerIndex = this.$refs.filterTraceView.selectArea[0];
|
const lowerIndex = this.$refs.filterTraceView.selectArea[0];
|
||||||
let upperIndex = this.$refs.filterTraceView.selectArea[1]-1;
|
const upperIndex = this.$refs.filterTraceView.selectArea[1]-1;
|
||||||
data = {
|
data = {
|
||||||
type: 'trace-freq',
|
type: 'trace-freq',
|
||||||
lower: this.allMapDataStore.traces[lowerIndex].id,
|
lower: this.allMapDataStore.traces[lowerIndex].id,
|
||||||
|
|||||||
Reference in New Issue
Block a user