From 92b6fd6de940b75ba6145b74ab0a2aaf3ce13de9 Mon Sep 17 00:00:00 2001 From: wanli Date: Tue, 10 Jan 2023 16:53:01 +0800 Subject: [PATCH] =?UTF-8?q?[Frontend]=20=E7=A7=BB=E9=99=A4=E7=87=88?= =?UTF-8?q?=E6=8E=A7=E7=9A=84=E5=8F=96=E5=BE=97=E8=B3=87=E6=96=99=E3=80=81?= =?UTF-8?q?=E7=86=B1=E5=9C=96=E8=A8=AD=E5=AE=9A=E6=88=90=E5=9B=9B=E8=89=B2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Frontend/_sysMonAll.html | 2 +- Frontend/js/forge/forgemodel.js | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) 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];