From 332c16e8f42055ba4de9b8ed9819c8517100c2a1 Mon Sep 17 00:00:00 2001 From: Miao Zhuang <1060950782@163.com> Date: Mon, 15 Jan 2024 17:37:22 +0800 Subject: [PATCH] fix: bugs (#737) --- app/pages/Console/OutputBox/index.tsx | 17 ++++------- .../Plugins/SketchShapes/Path.tsx | 1 - package-lock.json | 30 +++++++++---------- package.json | 4 +-- 4 files changed, 22 insertions(+), 30 deletions(-) diff --git a/app/pages/Console/OutputBox/index.tsx b/app/pages/Console/OutputBox/index.tsx index 29036171..317384c7 100644 --- a/app/pages/Console/OutputBox/index.tsx +++ b/app/pages/Console/OutputBox/index.tsx @@ -228,6 +228,9 @@ const OutputBox = (props: IProps) => { }; const resultSuccess = code === 0; + const explainData = useMemo(() => { + return dataSource?.map((item) => convertExplainData(item)); + }, [dataSource]); const items = useMemo(() => { const isDot = data.headers[0] === 'format'; const isExplainRaw = @@ -274,12 +277,7 @@ const OutputBox = (props: IProps) => { {intl.get('console.planTree')} ), - children: ( - convertExplainData(item))} - /> - ), + children: , }, resultSuccess && @@ -291,12 +289,7 @@ const OutputBox = (props: IProps) => { {intl.get('console.planTree')} ), - children: ( - convertExplainData(item))} - /> - ), + children: , }, showGraph && { key: 'graph', diff --git a/app/pages/SketchModeling/Plugins/SketchShapes/Path.tsx b/app/pages/SketchModeling/Plugins/SketchShapes/Path.tsx index 51dd6024..261eccdd 100644 --- a/app/pages/SketchModeling/Plugins/SketchShapes/Path.tsx +++ b/app/pages/SketchModeling/Plugins/SketchShapes/Path.tsx @@ -198,7 +198,6 @@ const Path: LineRender = { width={width} height={20} textAnchor="middle" - // eslint-disable-next-line react/no-unknown-property transform-origin={`${x} ${y}`} style={{ transform: `rotate(${angle}deg)` }} > diff --git a/package-lock.json b/package-lock.json index 8df3072b..e993df58 100644 --- a/package-lock.json +++ b/package-lock.json @@ -16,8 +16,8 @@ "@vesoft-inc/force-graph": "2.0.7", "@vesoft-inc/i18n": "^1.0.1", "@vesoft-inc/icons": "^1.7.0", - "@vesoft-inc/nebula-explain-graph": "^1.0.3", - "@vesoft-inc/veditor": "^4.4.12", + "@vesoft-inc/nebula-explain-graph": "^1.0.6", + "@vesoft-inc/veditor": "^4.4.14", "antd": "^5.8.4", "axios": "^0.23.0", "bezier-js": "^4.1.1", @@ -2063,11 +2063,11 @@ "integrity": "sha512-862wYZP+oueH7WqykjV9xMqOP9lYQajqdrGjhTT18C57Y0g7HFikzrujArSk9q63qdo8viNO/27hl1iKULH4bQ==" }, "node_modules/@vesoft-inc/nebula-explain-graph": { - "version": "1.0.3", - "resolved": "https://registry.npmjs.org/@vesoft-inc/nebula-explain-graph/-/nebula-explain-graph-1.0.3.tgz", - "integrity": "sha512-oP5SPYVVvkuw3LlCBiaZ/eLC5EnjQrRCNYyFWGSjT1ZJcmsqzee0Ts4wBuyiebgi2MyBX/TIZJNTRurCjrWrlg==", + "version": "1.0.6", + "resolved": "https://registry.npmjs.org/@vesoft-inc/nebula-explain-graph/-/nebula-explain-graph-1.0.6.tgz", + "integrity": "sha512-4sv0lDI4eC162T+TkZMkNV9rVgxpdZ/U3RCm9NhxTDGGxhbU+6uzi3CWjjmp/WTRPr6StZXBgpP7ORBkVorVfg==", "peerDependencies": { - "@vesoft-inc/veditor": "^4.4.11", + "@vesoft-inc/veditor": "^4.4.13", "antd": "^4||^5", "copy-to-clipboard": "^3.3.3", "react": "^17||^18", @@ -2075,9 +2075,9 @@ } }, "node_modules/@vesoft-inc/veditor": { - "version": "4.4.12", - "resolved": "https://registry.npmmirror.com/@vesoft-inc/veditor/-/veditor-4.4.12.tgz", - "integrity": "sha512-O+9N74E2icumod4swIPAn9m9MXcRj3T4kl81mlzcFCGEGs8+mfK9gPoWQCy0z9uVZ+EumbzoUjwhrgt++HWZWQ==", + "version": "4.4.14", + "resolved": "https://registry.npmjs.org/@vesoft-inc/veditor/-/veditor-4.4.14.tgz", + "integrity": "sha512-c93xghAXtQNPNi5snEcptRpZcHGS81Lo4DuAmnWeZTUTloaTR180DeZ8HfEAglMp44mAjdx2AOtlBGIL3KUXKA==", "dependencies": { "canvg": "^4.0.0", "dagre": "^0.8.4", @@ -10500,15 +10500,15 @@ "integrity": "sha512-862wYZP+oueH7WqykjV9xMqOP9lYQajqdrGjhTT18C57Y0g7HFikzrujArSk9q63qdo8viNO/27hl1iKULH4bQ==" }, "@vesoft-inc/nebula-explain-graph": { - "version": "1.0.3", - "resolved": "https://registry.npmjs.org/@vesoft-inc/nebula-explain-graph/-/nebula-explain-graph-1.0.3.tgz", - "integrity": "sha512-oP5SPYVVvkuw3LlCBiaZ/eLC5EnjQrRCNYyFWGSjT1ZJcmsqzee0Ts4wBuyiebgi2MyBX/TIZJNTRurCjrWrlg==", + "version": "1.0.6", + "resolved": "https://registry.npmjs.org/@vesoft-inc/nebula-explain-graph/-/nebula-explain-graph-1.0.6.tgz", + "integrity": "sha512-4sv0lDI4eC162T+TkZMkNV9rVgxpdZ/U3RCm9NhxTDGGxhbU+6uzi3CWjjmp/WTRPr6StZXBgpP7ORBkVorVfg==", "requires": {} }, "@vesoft-inc/veditor": { - "version": "4.4.12", - "resolved": "https://registry.npmmirror.com/@vesoft-inc/veditor/-/veditor-4.4.12.tgz", - "integrity": "sha512-O+9N74E2icumod4swIPAn9m9MXcRj3T4kl81mlzcFCGEGs8+mfK9gPoWQCy0z9uVZ+EumbzoUjwhrgt++HWZWQ==", + "version": "4.4.14", + "resolved": "https://registry.npmjs.org/@vesoft-inc/veditor/-/veditor-4.4.14.tgz", + "integrity": "sha512-c93xghAXtQNPNi5snEcptRpZcHGS81Lo4DuAmnWeZTUTloaTR180DeZ8HfEAglMp44mAjdx2AOtlBGIL3KUXKA==", "requires": { "canvg": "^4.0.0", "dagre": "^0.8.4", diff --git a/package.json b/package.json index e16a5cbe..4af509b2 100644 --- a/package.json +++ b/package.json @@ -23,8 +23,8 @@ "@vesoft-inc/force-graph": "2.0.7", "@vesoft-inc/i18n": "^1.0.1", "@vesoft-inc/icons": "^1.7.0", - "@vesoft-inc/nebula-explain-graph": "^1.0.3", - "@vesoft-inc/veditor": "^4.4.12", + "@vesoft-inc/nebula-explain-graph": "^1.0.6", + "@vesoft-inc/veditor": "^4.4.14", "antd": "^5.8.4", "axios": "^0.23.0", "bezier-js": "^4.1.1",