- let to const

This commit is contained in:
peterlu14
2023-03-07 16:48:30 +08:00
parent ab2b3b2fa4
commit 6537664c04
3 changed files with 5 additions and 5 deletions
@@ -58,8 +58,8 @@
const numTicks = 5
// Calculate the pixel coordinates of the tick marks on the x and y axes
let xTickPixels = getTickPixels(canvasRemainWidth, numTicks)
let yTickPixels = getTickPixels(canvasRemainHeight, numTicks)
const xTickPixels = getTickPixels(canvasRemainWidth, numTicks)
const yTickPixels = getTickPixels(canvasRemainHeight, numTicks)
const generatorColor = function () {
const red = Math.random() * 255
@@ -35,7 +35,7 @@
const selectedFiles = reactive(fileViewStore.selectedFiles)
/* File Modal Handling */
let file_modal_ref = ref<InstanceType<typeof FileSlide> | null>(null)
const file_modal_ref = ref<InstanceType<typeof FileSlide> | null>(null)
const showModal = function () {
file_modal_ref.value?.showModal()
}
@@ -79,8 +79,8 @@
chart_ref.value[index]?.appendData(seriesIndex, groupData)
}
// draw line
let yAxis_list = horizontal.map((x: any) => ({ yAxis: x }))
let coord_list = [{ coord: [line[0][0], line[0][1]] }, { coord: [line[1][0], line[1][1]] }]
const yAxis_list = horizontal.map((x: any) => ({ yAxis: x }))
const coord_list = [{ coord: [line[0][0], line[0][1]] }, { coord: [line[1][0], line[1][1]] }]
yAxis_list.push(coord_list)
chart_ref.value[index]?.markLine(yAxis_list)
chart_ref.value[0].setOption({