A themed <circle>
SVG element, with optional extra attributes.
Equations
- One or more equations did not get rendered due to their size.
Instances For
A shape containing the vertex label. Used to position incident edge endpoints. The shape is assumed to be centred on the vertex position.
- circle
(radius : Float)
: ProofWidgets.GraphDisplay.BoundingShape
A circle of fixed radius.
- rect
(width height : Float)
: ProofWidgets.GraphDisplay.BoundingShape
A rectangle of fixed dimensions.
Instances For
- id : String
Identifier for this vertex. Must be unique.
- label : ProofWidgets.Html
The label is drawn at the vertex position. This must be an SVG element. Use
<foreignObject>
to draw non-SVG elements. - boundingShape : ProofWidgets.GraphDisplay.BoundingShape
- details? : Option ProofWidgets.Html
Details are shown below the graph display after the vertex label has been clicked. See also
Props.showDetails
.
Instances For
Equations
- ProofWidgets.GraphDisplay.instInhabitedVertex = { default := { id := default, label := default, boundingShape := default, details? := default } }
Equations
- source : String
Source vertex. Must match the
id
of one of the vertices. - target : String
Target vertex. Must match the
id
of one of the vertices. Extra attributes to set on the SVG
<line>
element representing this edge. See alsoProps.defaultEdgeAttrs
.- label? : Option ProofWidgets.Html
If present, the label is shown over the edge midpoint. This must be an SVG element. Use
<foreignObject>
to draw non-SVG elements. - details? : Option ProofWidgets.Html
Details are shown below the graph display after the edge has been clicked. See also
Props.showDetails
.
Instances For
Equations
- ProofWidgets.GraphDisplay.instInhabitedEdge = { default := { source := default, target := default, attrs := default, label? := default, details? := default } }
Equations
Equations
- ProofWidgets.GraphDisplay.instInhabitedForceCenterParams = { default := { x? := default, y? := default, strength? := default } }
Equations
- ProofWidgets.GraphDisplay.instInhabitedForceCollideParams = { default := { radius? := default, strength? := default, iterations? := default } }
Equations
- ProofWidgets.GraphDisplay.instInhabitedForceLinkParams = { default := { distance? := default, strength? := default, iterations? := default } }
Equations
- ProofWidgets.GraphDisplay.instInhabitedForceManyBodyParams = { default := { strength? := default, theta? := default, distanceMin? := default, distanceMax? := default } }
Equations
- ProofWidgets.GraphDisplay.instInhabitedForceXParams = { default := { x? := default, strength? := default } }
Equations
- ProofWidgets.GraphDisplay.instInhabitedForceYParams = { default := { y? := default, strength? := default } }
Equations
- ProofWidgets.GraphDisplay.instInhabitedForceRadialParams = { default := { radius := default, x? := default, y? := default, strength? := default } }
Settings for the simulation of forces on vertices. See https://d3js.org/d3-force.
- center : ProofWidgets.GraphDisplay.ForceCenterParams → ProofWidgets.GraphDisplay.ForceParams
- collide : ProofWidgets.GraphDisplay.ForceCollideParams → ProofWidgets.GraphDisplay.ForceParams
- link : ProofWidgets.GraphDisplay.ForceLinkParams → ProofWidgets.GraphDisplay.ForceParams
- manyBody : ProofWidgets.GraphDisplay.ForceManyBodyParams → ProofWidgets.GraphDisplay.ForceParams
- x : ProofWidgets.GraphDisplay.ForceXParams → ProofWidgets.GraphDisplay.ForceParams
- y : ProofWidgets.GraphDisplay.ForceYParams → ProofWidgets.GraphDisplay.ForceParams
- radial : ProofWidgets.GraphDisplay.ForceRadialParams → ProofWidgets.GraphDisplay.ForceParams
Instances For
- vertices : Array ProofWidgets.GraphDisplay.Vertex
- edges : Array ProofWidgets.GraphDisplay.Edge
At most one edge may exist between any two vertices. Self-loops are allowed, but (TODO) are currently not rendered well.
Attributes to set by default on
<line>
elements representing edges.Which forces to apply to the vertices. Most force parameters are optional, using default values if not specified.
- showDetails : Bool
Whether to show a details box below the graph.
Instances For
Equations
- ProofWidgets.GraphDisplay.instInhabitedProps = { default := { vertices := default, edges := default, defaultEdgeAttrs := default, forces := default, showDetails := default } }
Equations
Display a graph with an interactive force simulation.
Equations
- One or more equations did not get rendered due to their size.