From 180cc02d4052ce8e0622c803580631c88932f68c Mon Sep 17 00:00:00 2001 From: mark <455711093@qq.com> Date: Sun, 13 Aug 2023 14:14:34 +0800 Subject: [PATCH 1/2] fix: NewBox get from value of newPointCloudList --- .../components/pointCloudView/hooks/usePointCloudViews.ts | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/packages/lb-components/src/components/pointCloudView/hooks/usePointCloudViews.ts b/packages/lb-components/src/components/pointCloudView/hooks/usePointCloudViews.ts index 9915134d5..315176a0c 100644 --- a/packages/lb-components/src/components/pointCloudView/hooks/usePointCloudViews.ts +++ b/packages/lb-components/src/components/pointCloudView/hooks/usePointCloudViews.ts @@ -847,7 +847,7 @@ export const usePointCloudViews = () => { const viewUpdateBox = (newPolygon: any, originPolygon: any, fromView: string) => { if (selectedPointCloudBox) { let transfer2PointCloud; - let newBoxParams; + let newBoxParams: IPointCloudBox; // Switch the right function. switch (fromView) { @@ -902,6 +902,10 @@ export const usePointCloudViews = () => { const newPointCloudList = updateSelectedBox(newBoxParams); + newBoxParams = newPointCloudList.find( + (item) => item.id === newBoxParams.id, + ) as IPointCloudBox; + syncPointCloudViews({ omitView: updateCurrentView ? undefined : fromView, polygon: newPolygon, From a30bbbdc4d1754d148ea8cb1e16da6e3b8aa031b Mon Sep 17 00:00:00 2001 From: mark <455711093@qq.com> Date: Sun, 13 Aug 2023 14:17:59 +0800 Subject: [PATCH 2/2] chore: Lock package.json --- package.json | 34 +++++++++++++++++----------------- 1 file changed, 17 insertions(+), 17 deletions(-) diff --git a/package.json b/package.json index 42c15c165..93aae1d79 100644 --- a/package.json +++ b/package.json @@ -26,23 +26,23 @@ "devDependencies": { "@commitlint/cli": "8.3.5", "@commitlint/config-conventional": "8.3.4", - "@octokit/rest": "^19.0.7", - "@semantic-release/commit-analyzer": "^9.0.2", - "@semantic-release/exec": "^6.0.3", - "@semantic-release/git": "^10.0.1", - "@semantic-release/github": "^8.0.7", - "@semantic-release/npm": "^10.0.3", - "@semantic-release/release-notes-generator": "^10.0.3", - "commitizen": "^4.2.4", - "cz-conventional-changelog": "^3.3.0", - "husky": "^4.0.3", - "lerna": "^4.0.0", - "minimist": "^1.2.8", - "multi-semantic-release": "^3.0.2", - "node-fetch": "^2.6.1", - "semantic-release": "^21.0.1", - "semantic-release-github-pullrequest": "^1.3.0", - "standard-version": "^9.3.1" + "@octokit/rest": "19.0.7", + "@semantic-release/commit-analyzer": "9.0.2", + "@semantic-release/exec": "6.0.3", + "@semantic-release/git": "10.0.1", + "@semantic-release/github": "8.0.7", + "@semantic-release/npm": "9.0.2", + "@semantic-release/release-notes-generator": "10.0.3", + "commitizen": "4.2.4", + "cz-conventional-changelog": "3.3.0", + "husky": "4.0.3", + "lerna": "4.0.0", + "minimist": "1.2.8", + "multi-semantic-release": "3.0.2", + "node-fetch": "2.6.1", + "semantic-release": "19.0.5", + "semantic-release-github-pullrequest": "1.3.0", + "standard-version": "9.3.1" }, "husky": { "hooks": {