diff --git a/Frontend/_sysMonAll.html b/Frontend/_sysMonAll.html index c8ef609..2c16524 100644 --- a/Frontend/_sysMonAll.html +++ b/Frontend/_sysMonAll.html @@ -349,7 +349,7 @@ function show3DModel(urn) { $(loadEle).Loading("start"); - getLightData(allDevList); + //getLightData(allDevList); launchViewerForHotspot(urn, (viewer, nodeIds) => { showHeat("[name=forgeHeatBar]"); let devDbIds = allDevList.map(x => x.forge_dbid); diff --git a/Frontend/js/forge/forgemodel.js b/Frontend/js/forge/forgemodel.js index dfe8d02..011c753 100644 --- a/Frontend/js/forge/forgemodel.js +++ b/Frontend/js/forge/forgemodel.js @@ -928,8 +928,8 @@ async function loadHeatmaps(model) { // Setup surface shading await dataVizExtn.setupSurfaceShading(model, heatmapData); - - dataVizExtn.registerSurfaceShadingColors("temperature", [0xff0000, 0x0000ff]); + const sensorColors = [0x0000ff, 0x00ff00, 0xffff00, 0xff0000];//0 ~ 1 藍綠黃紅 + dataVizExtn.registerSurfaceShadingColors("temperature", sensorColors); function getSensorValue(device, sensorType) { return sensorVals[parseInt(device.id.slice(-1)) - 1];