Clean up dead code, typos, and minor style issues

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-03-09 14:00:31 +08:00
parent 932275e4d4
commit 19a39bbbff
5 changed files with 10 additions and 13 deletions

View File

@@ -181,9 +181,7 @@ export default function cytoscapeMap(
"text-margin-y": function (node) {
return node.data("type") === "activity" ? 2 : 0;
},
padding: function (node) {
return node.data("type") === "activity" ? 0 : 0;
},
padding: 0,
"text-justification": "left",
"text-halign": "center",
"text-valign": "center",

View File

@@ -25,7 +25,6 @@ cytoscape.use(dagre);
* backgroundColor, bordercolor, height, id, label, shape, and width.
* @param {Array<Object>} edges - Array of edge data objects.
* @param {HTMLElement} graphId - The DOM container element for Cytoscape.
* @returns {cytoscape.Core} The configured Cytoscape instance.
*/
export default function cytoscapeMapTrace(nodes, edges, graphId) {
// create Cytoscape

View File

@@ -110,7 +110,7 @@ export function getTimeLabel(second, fixedNumber = 0) {
} else if (mm > 0) {
return ((second % hour) / minutes).toFixed(fixedNumber) + " mins";
}
if (second == 0) {
if (second === 0) {
return second + " sec";
}
return second + " sec";
@@ -141,7 +141,7 @@ export function simpleTimeLabel(second, fixedNumber = 0) {
} else if (mm > 0) {
return ((second % hour) / minutes).toFixed(fixedNumber) + "m";
}
if (second == 0) {
if (second === 0) {
return second + "s";
}
return second + "s";