Fixed scalebar for Navi

Change-Id: I5d644f43eac16c86535012286dff972e3afbcb3b
Tento commit je obsažen v:
Giovanni LB
2023-06-06 12:32:35 -03:00
rodič e078d3704c
revize 54cbefa9f3
+6 -3
Zobrazit soubor
@@ -205,8 +205,12 @@
var current_SM = 0
var current_WV = 0
var filename_data = {}
var clock_scale = 1
fetch("filenames.json", {cache: "no-store"}).then(response => response.json()).then(data => {
try {
clock_scale = data.gfxv === 'navi' ? 3 : 1
} catch { clock_scale = 1 }
filename_data = data.wave_filenames
wave_cu_index = {};
@@ -229,8 +233,7 @@
FetchNamesAndGather(wv)
return
}
//FetchNamesAndGather(0) // !!!!
//FetchNamesAndGather(0)
})
function OpenSIMDView(se_index) {
@@ -737,7 +740,7 @@
const scaleX = d3.scaleLinear()
.domain([START_TIME, START_TIME + data.duration + MARGIN])
.range([MARGIN, WIDTH-MARGIN])
const toX = (x) => { return Math.ceil(scaleX(x)) }
const toX = (x) => { return Math.ceil(scaleX(x)*clock_scale) }
const STATE_COLOR = {
0: ["EMPTY", "#ffffff"],