Add JSDoc documentation and file headers to all source files
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -1,3 +1,14 @@
|
||||
// The Lucia project.
|
||||
// Copyright 2023-2026 DSP, inc. All rights reserved.
|
||||
// Authors:
|
||||
// chiayin.kuo@dsp.im (chiayin), 2023/1/31
|
||||
// imacat.yang@dsp.im (imacat), 2023/9/23
|
||||
// cindy.chang@dsp.im (Cindy Chang), 2024/5/30
|
||||
/**
|
||||
* @module cytoscapeMapTrace Cytoscape.js process map rendering for
|
||||
* individual trace visualization.
|
||||
*/
|
||||
|
||||
import cytoscape from 'cytoscape';
|
||||
import dagre from 'cytoscape-dagre';
|
||||
import tippy from 'tippy.js';
|
||||
@@ -6,19 +17,14 @@ import 'tippy.js/dist/tippy.css';
|
||||
cytoscape.use( dagre );
|
||||
|
||||
/**
|
||||
* draw processmap for trace
|
||||
* @param {array} nodes array of an object, it contains
|
||||
* data:{
|
||||
* backgroundColor: string
|
||||
* bordercolor: string
|
||||
* height: number
|
||||
* id: number
|
||||
* label: string
|
||||
* shape: string
|
||||
* width: number
|
||||
* }
|
||||
* @param {array} edges it's similar to nodes
|
||||
* @param {string} graphId graph Id
|
||||
* Creates a Cytoscape.js instance for rendering a single trace's
|
||||
* process map with left-to-right dagre layout and tooltips.
|
||||
*
|
||||
* @param {Array<Object>} nodes - Array of node data objects with
|
||||
* 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
|
||||
|
||||
Reference in New Issue
Block a user