From ea093df5eaebfe3ddcd0a7a9e48fc143382ed318 Mon Sep 17 00:00:00 2001 From: heiheihei <1395202740@qq.com> Date: Tue, 19 Aug 2025 20:00:49 +0800 Subject: [PATCH 1/4] =?UTF-8?q?Properties=E6=A8=A1=E5=9D=97=E7=BB=93?= =?UTF-8?q?=E6=9E=84=E6=95=B4=E6=94=B9=EF=BC=8C=E5=B9=B6=E6=B7=BB=E5=8A=A0?= =?UTF-8?q?=E8=99=9A=E6=8B=9F=E6=BB=9A=E5=8A=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../ModelVis/app/src/App.tsx | 2 +- .../Node/Attribute/StringLikeArray.tsx | 30 --- .../Properties/Node/Attribute/TensorVals.tsx | 29 --- .../Node/Attribute/TensorsTuple.tsx | 40 --- .../Properties/Node/Attribute/index.tsx | 44 ---- .../Attribute.tsx} | 81 +++++- .../attributes.d.ts} | 7 + .../{Attributes.tsx => Attributes/index.tsx} | 30 +-- .../Properties/Node/Initializer.tsx | 25 +- .../Properties/Node/InputOutput.tsx | 74 +++++- .../ModelStructure/Properties/Node/IoItem.tsx | 75 ------ .../Properties/Node/Metadata.tsx | 2 +- .../ModelStructure/Properties/Node/index.tsx | 27 +- .../src/ModelStructure/Properties/index.tsx | 12 +- .../ModelVis/app/src/ModelStructure/index.tsx | 15 +- .../ModelVis/app/src/src-worker/rerender.ts | 2 +- .../ModelVis/app/src/ui/VirtualScroll.tsx | 238 ++++++++++++++++++ .../ModelVis/app/src/ui/index.ts | 1 + 18 files changed, 421 insertions(+), 313 deletions(-) delete mode 100644 plugins/mindstudio-insight-plugins/ModelVis/app/src/ModelStructure/Properties/Node/Attribute/StringLikeArray.tsx delete mode 100644 plugins/mindstudio-insight-plugins/ModelVis/app/src/ModelStructure/Properties/Node/Attribute/TensorVals.tsx delete mode 100644 plugins/mindstudio-insight-plugins/ModelVis/app/src/ModelStructure/Properties/Node/Attribute/TensorsTuple.tsx delete mode 100644 plugins/mindstudio-insight-plugins/ModelVis/app/src/ModelStructure/Properties/Node/Attribute/index.tsx rename plugins/mindstudio-insight-plugins/ModelVis/app/src/ModelStructure/Properties/Node/{Attribute/StringLike.tsx => Attributes/Attribute.tsx} (50%) rename plugins/mindstudio-insight-plugins/ModelVis/app/src/ModelStructure/Properties/Node/{Attribute/attribute.d.ts => Attributes/attributes.d.ts} (87%) rename plugins/mindstudio-insight-plugins/ModelVis/app/src/ModelStructure/Properties/Node/{Attributes.tsx => Attributes/index.tsx} (55%) delete mode 100644 plugins/mindstudio-insight-plugins/ModelVis/app/src/ModelStructure/Properties/Node/IoItem.tsx create mode 100644 plugins/mindstudio-insight-plugins/ModelVis/app/src/ui/VirtualScroll.tsx diff --git a/plugins/mindstudio-insight-plugins/ModelVis/app/src/App.tsx b/plugins/mindstudio-insight-plugins/ModelVis/app/src/App.tsx index 54ee45b6a3..d0d61ed1ad 100644 --- a/plugins/mindstudio-insight-plugins/ModelVis/app/src/App.tsx +++ b/plugins/mindstudio-insight-plugins/ModelVis/app/src/App.tsx @@ -35,7 +35,7 @@ const App = () => { const [nodesEdges, setNodesEdges] = useAtom(nodesEdgesAtom) const currentGraph = useAtomValue(currentGraphAtom) const subgraphs = useAtomValue(subgraphesAtom) - + useWorkerMessage() useEffect(() => { diff --git a/plugins/mindstudio-insight-plugins/ModelVis/app/src/ModelStructure/Properties/Node/Attribute/StringLikeArray.tsx b/plugins/mindstudio-insight-plugins/ModelVis/app/src/ModelStructure/Properties/Node/Attribute/StringLikeArray.tsx deleted file mode 100644 index e8fbdfb42b..0000000000 --- a/plugins/mindstudio-insight-plugins/ModelVis/app/src/ModelStructure/Properties/Node/Attribute/StringLikeArray.tsx +++ /dev/null @@ -1,30 +0,0 @@ -// Copyright (c) 2025, Huawei Technologies Co., Ltd. -// All rights reserved. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -const StringLikeArray = ({ name, value }: AttrProps<"string-like-array">) => -