Clean up dead code, typos, and minor style issues
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -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",
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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";
|
||||
|
||||
Reference in New Issue
Block a user