From e51acd60a55ea181b38d316faceea650c2e9dd27 Mon Sep 17 00:00:00 2001 From: laoluo Date: Thu, 22 Sep 2022 17:06:34 +0800 Subject: [PATCH] feat(pointcloud): The listener of topviewEvent needs to updated --- .../src/components/pointCloudView/PointCloudTopView.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/lb-components/src/components/pointCloudView/PointCloudTopView.tsx b/packages/lb-components/src/components/pointCloudView/PointCloudTopView.tsx index 61bcb8813..a202d5767 100644 --- a/packages/lb-components/src/components/pointCloudView/PointCloudTopView.tsx +++ b/packages/lb-components/src/components/pointCloudView/PointCloudTopView.tsx @@ -243,7 +243,7 @@ const PointCloudTopView: React.FC = ({ currentData }) => pointCloud.camera.position.set(x + offsetY, y - offsetX, z); pointCloud.render(); }); - }, [size]); + }, [size, ptCtx.topViewInstance]); useEffect(() => { ptCtx.topViewInstance?.pointCloudInstance?.applyZAxisPoints(zAxisLimit);