diff --git a/src/components/forge/ForgeForSystem.vue b/src/components/forge/ForgeForSystem.vue index c994e5b..b21ee06 100644 --- a/src/components/forge/ForgeForSystem.vue +++ b/src/components/forge/ForgeForSystem.vue @@ -264,7 +264,7 @@ onUnmounted(() => { } .homeViewWrapper { - transform: scale(0.9) !important; + transform: scale(2) !important; } .heatbar { diff --git a/src/hooks/forge/useForgeFloor.js b/src/hooks/forge/useForgeFloor.js index e389649..ea9fee4 100644 --- a/src/hooks/forge/useForgeFloor.js +++ b/src/hooks/forge/useForgeFloor.js @@ -60,7 +60,7 @@ function useForgeFloor() { } }; const showDbIdFn = () => { - hideAllObjects(); + hideDbIdFn(); subscribeData.value.forEach((value, index) => { forgeViewer.value.show(value.forge_dbid); }); @@ -78,6 +78,7 @@ function useForgeFloor() { if (!level) { forgeViewer.value.impl.toggleGhosting(true); + forgeViewer.value.fitToView([forgeViewer.value.model.getRootId()]); showDbIdFn(); } else { hideDbIdFn(); @@ -87,6 +88,7 @@ function useForgeFloor() { // forgeViewer.value.impl.toggleGroundShadow(false); forgeViewer.value.show(level.dbId); forgeViewer.value.impl.invalidate(true); + forgeViewer.value.fitToView([level.dbId]); } }; diff --git a/src/hooks/forge/useForgeHeatmap.js b/src/hooks/forge/useForgeHeatmap.js index 1957f81..a023539 100644 --- a/src/hooks/forge/useForgeHeatmap.js +++ b/src/hooks/forge/useForgeHeatmap.js @@ -80,7 +80,7 @@ export default function useForgeHeatmap() { ); dataVizExtn.value.renderSurfaceShading( heatMapName, - route.query.gas.shading, + route.query.gas, getSensorValue ); }; diff --git a/src/views/system/System.vue b/src/views/system/System.vue index ef6779d..0f03c46 100644 --- a/src/views/system/System.vue +++ b/src/views/system/System.vue @@ -44,6 +44,7 @@ const getData = async () => { ...d, key: d.full_name, device_list: d.device_list.map((dev, index) => ({ ...dev, forge_dbid: parseInt(dev.forge_dbid), + room_dbid: parseInt(dev.room_dbid), device_coordinate_3d: dev.device_coordinate_3d ? JSON.parse(dev.device_coordinate_3d) : null, @@ -168,7 +169,7 @@ const getCurrentInfoModalData = (e, position, value) => { const selectedDeviceRealtime = computed(() => realtimeData.value?.find(({ device_number }) => device_number === selectedDevice.value?.value?.device_number)?.data) const clearSelectedDeviceInfo = () => { - + selectedDevice.value.value = null; } diff --git a/src/views/system/components/SystemCard.vue b/src/views/system/components/SystemCard.vue index 3969ab8..fa41938 100644 --- a/src/views/system/components/SystemCard.vue +++ b/src/views/system/components/SystemCard.vue @@ -14,6 +14,9 @@ watch(selectedFloor, (newValue) => { console.log(newValue) }) +const fitToView = (forge_dbid) => { + window.NOP_VIEWER.fitToView([forge_dbid]) +}