HTML Type
Provides methods to generate HTML content for visualizing graphs with Sigma.
Static members
Static member | Description |
Full Usage:
HTML.CreateGraphHTML(graphData, layout, settings, divId, widgets, sigmaJSRef, ?Width, ?Height)
Parameters:
string
-
JSON representation of the graph.
layout : string
-
Layout configuration for the graph.
settings : string
-
Settings configuration for the graph.
divId : string
-
ID of the HTML container for the graph.
widgets : string
-
Widgets to include in the graph.
sigmaJSRef : JSlibReference
-
Reference to Sigma.js libraries.
?Width : CssLength
-
Optional width of the graph container.
?Height : CssLength
-
Optional height of the graph container.
Returns: XmlNode list
A list of HTML nodes for rendering the graph.
|
|
Full Usage:
HTML.CreateGraphScript(graphData, layout, settings, containerId, widgets, sigmaJSRef)
Parameters:
string
-
JSON representation of the graph.
layout : string
-
Layout configuration for the graph.
settings : string
-
Settings configuration for the graph.
containerId : string
-
ID of the HTML container for the graph.
widgets : string
-
Widgets to include in the graph.
sigmaJSRef : JSlibReference
-
Reference to Sigma.js libraries.
Returns: XmlNode
An HTML script element for embedding Sigma.js graph.
|
|
Full Usage:
HTML.Doc(graphHTML, sigmaJSRef, ?AdditionalHeadTags)
Parameters:
XmlNode list
-
List of XML nodes representing the graph HTML.
sigmaJSRef : JSlibReference
-
Reference to Sigma.js libraries.
?AdditionalHeadTags : XmlNode list
-
Optional additional tags to include in the section.
Returns: XmlNode
An HTML document with the embedded graph.
|
|
Full Usage:
HTML.show (graph, ?DisplayOpts)
Parameters:
SigmaGraph
-
The SigmaGraph to display.
?DisplayOpts : DisplayOptions
-
Optional display options for the graph.
|
|
Full Usage:
HTML.toEmbeddedHTML ?DisplayOpts
Parameters:
DisplayOptions
-
Optional display options for the graph.
Returns: SigmaGraph -> string
A function that takes a SigmaGraph and returns a complete HTML document as a string.
|
|
Full Usage:
HTML.toGraphHTML ?DisplayOpts
Parameters:
DisplayOptions
-
Optional display options for the graph.
Returns: SigmaGraph -> string
A function that takes a SigmaGraph and returns HTML as a string.
|
|
Full Usage:
HTML.toGraphHTMLNodes ?DisplayOpts
Parameters:
DisplayOptions
-
Optional display options for the graph.
Returns: SigmaGraph -> XmlNode list
A function that takes a SigmaGraph and returns HTML nodes.
|
|