Translate remaining Chinese JSDoc and CSS comments to English

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-03-06 20:53:00 +08:00
co-authored by Claude Opus 4.6
parent d16cc46604
commit 8d358516b8
9 changed files with 48 additions and 51 deletions
+7 -10
View File
@@ -133,8 +133,11 @@ export const useMapPathStore = defineStore('mapPathStore', {
this.insights = { ...insights };
await this.matchGraphPathWithInsightsPath();
},
/** 從start節點開始建立所有的path
* 於第二個參數逐漸推入節點,於第三個參數逐漸推入線段
/**
* Builds all paths from the start node using depth-first search.
* @param node - The current node.
* @param currentPathByNode - Accumulated nodes along the path.
* @param curPathByEdge - Accumulated edges along the path.
*/
depthFirstSearchCreatePath(node, currentPathByNode, curPathByEdge) {
const outgoingEdges = node.outgoers('edge');
@@ -155,14 +158,8 @@ export const useMapPathStore = defineStore('mapPathStore', {
}
},
/**
* 比對兩條Paths是否相等。
* 第一條path是透過depthFirstSearchCreatePath所建立,
* 而第二條path是從後端給的insights物件而來,其資料結構是簡單的array而已。
* 在每條path沿路據節點上的label之
* 字串來匹配這個path是屬於insights物件的哪一條path
* 其中用curButton去記憶住insights[INSIGHTS_FIELDS_AND_LABELS[i][0]]內文
* 而curButton[listIndex][nodeIndex]是用來確認是否跟depthFirstSearchCreatePath內的
* node.data('label')字串完全相等,也就是 activity 節點的文字
* Matches graph paths with insights paths by comparing
* node labels along each path to the insights data arrays.
*/
matchGraphPathWithInsightsPath() {
for (let whichPath = 0; whichPath < this.allPaths.length; whichPath++) {