Skip to content

Commit a04b820

Browse files
committed
perf: 还原连接线路径时会自动进行 external 节点的就近连接重计算
1 parent e29f041 commit a04b820

8 files changed

Lines changed: 22 additions & 9 deletions

File tree

Extremer/build/darwin/Info.plist

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,11 @@
1111
<key>CFBundleIdentifier</key>
1212
<string>com.maaxyz.maapipelineeditor</string>
1313
<key>CFBundleVersion</key>
14-
<string>1.6.0</string>
14+
<string>1.6.1</string>
1515
<key>CFBundleGetInfoString</key>
1616
<string>MAA Pipeline 可视化编辑器</string>
1717
<key>CFBundleShortVersionString</key>
18-
<string>1.6.0</string>
18+
<string>1.6.1</string>
1919
<key>CFBundleIconFile</key>
2020
<string>iconfile</string>
2121
<key>LSMinimumSystemVersion</key>

Extremer/build/windows/wails.exe.manifest

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
<assemblyIdentity
44
type="win32"
55
name="MaaPipelineEditor"
6-
version="1.6.0"
6+
version="1.6.1"
77
processorArchitecture="*"/>
88
<dependency>
99
<dependentAssembly>

Extremer/main.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ var icon []byte
2121
//go:embed all:frontend/dist
2222
var assets embed.FS
2323

24-
var version = "1.6.0"
24+
var version = "1.6.1"
2525

2626
func main() {
2727
// 检测是否为开发模式

Extremer/wails.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
"info": {
1111
"companyName": "MaaXYZ",
1212
"productName": "MaaPipelineEditor",
13-
"productVersion": "1.6.0",
13+
"productVersion": "1.6.1",
1414
"copyright": "Copyright 2024 MaaXYZ",
1515
"comments": "MAA Pipeline 可视化编辑器"
1616
}

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,8 @@
1818
"lint": "eslint .",
1919
"preview": "vite preview",
2020
"reset": "git reset --soft HEAD~1",
21-
"release": "git tag -a v1.6.0 -m \"v1.6.0\" && git push origin v1.6.0",
22-
"retag": "git tag -d v1.6.0"
21+
"release": "git tag -a v1.6.1 -m \"v1.6.1\" && git push origin v1.6.1",
22+
"retag": "git tag -d v1.6.1"
2323
},
2424
"dependencies": {
2525
"@ant-design/icons": "6",

src/components/panels/tools/LayoutPanel.tsx

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ import { type IconNames } from "../../iconfonts";
66
import { useFlowStore } from "../../../stores/flow";
77
import { useFileStore } from "../../../stores/fileStore";
88
import { LayoutHelper, AlignmentEnum } from "../../../core/layout";
9+
import { rerouteEdgesToNearestReplica } from "../../../core/parser/edgeRerouter";
910
import { saveNodesToImage } from "../../../utils/ui/snapper";
1011
import { useEmbedMode } from "../../../hooks/useEmbedMode";
1112
import { sendToParent } from "../../../utils/embedBridge";
@@ -105,6 +106,9 @@ function LayoutPanel() {
105106
iconName: "icon-connecting_line",
106107
iconSize: 24,
107108
onClick: () => {
109+
const { nodes, edges, setEdges } = useFlowStore.getState();
110+
const rerouted = rerouteEdgesToNearestReplica(nodes, edges);
111+
setEdges(rerouted);
108112
resetEdgeControls();
109113
message.success("连接线路径已还原");
110114
},

src/data/updateLogs.ts

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -110,6 +110,15 @@ export const updateLogs: UpdateLogItem[] = [
110110
// ],
111111
// },
112112
// },
113+
{
114+
version: "1.6.1",
115+
date: "2026-6-",
116+
type: "feature",
117+
updates: {
118+
features: [""],
119+
perfs: ["还原连接线路径时会自动进行 external 节点的就近连接重计算"],
120+
},
121+
},
113122
{
114123
version: "1.6.0",
115124
date: "2026-5-31",

src/stores/configStore.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@ import { encryptApiKey } from "../utils/ai/crypto";
66
/**固有配置 */
77
export const globalConfig = {
88
dev: true,
9-
version: `1.6.0`,
10-
betaIteration: 5,
9+
version: `1.6.1`,
10+
betaIteration: 1,
1111
mfwVersion: "5.10.5",
1212
protocolVersion: "1.0.4",
1313
};

0 commit comments

Comments
 (0)