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)
: BoundingShape
A circle of fixed radius.
- rect
(width height : Float)
: BoundingShape
A rectangle of fixed dimensions.
Instances For
Equations
- One or more equations did not get rendered due to their size.
Instances For
Equations
- One or more equations did not get rendered due to their size.
- ProofWidgets.GraphDisplay.instToJsonBoundingShape.toJson (ProofWidgets.GraphDisplay.BoundingShape.circle a) = Lean.Json.mkObj [("circle", Lean.Json.mkObj [("radius", Lean.toJson a)])]
Instances For
- id : String
Identifier for this vertex. Must be unique.
- label : Html
The label is drawn at the vertex position. This must be an SVG element. Use
<foreignObject>
to draw non-SVG elements. - boundingShape : BoundingShape
Details are shown below the graph display after the vertex label has been clicked. See also
Props.showDetails
.
Instances For
- 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
.If present, the label is shown over the edge midpoint. This must be an SVG element. Use
<foreignObject>
to draw non-SVG elements.Details are shown below the graph display after the edge has been clicked. See also
Props.showDetails
.
Instances For
Equations
Instances For
Equations
- One or more equations did not get rendered due to their size.
Instances For
Equations
- ProofWidgets.GraphDisplay.instToJsonForceCenterParams.toJson x✝ = Lean.Json.mkObj [Lean.Json.opt "x" x✝.x?, Lean.Json.opt "y" x✝.y?, Lean.Json.opt "strength" x✝.strength?].flatten
Instances For
Equations
Instances For
Equations
- One or more equations did not get rendered due to their size.
Instances For
Equations
- One or more equations did not get rendered due to their size.
Instances For
Equations
Instances For
Equations
- One or more equations did not get rendered due to their size.
Instances For
Equations
- One or more equations did not get rendered due to their size.
Instances For
Equations
Instances For
Equations
- One or more equations did not get rendered due to their size.
Instances For
Equations
- One or more equations did not get rendered due to their size.
Instances For
Equations
Instances For
Equations
- One or more equations did not get rendered due to their size.
Instances For
Equations
- ProofWidgets.GraphDisplay.instToJsonForceXParams.toJson x✝ = Lean.Json.mkObj [Lean.Json.opt "x" x✝.x?, Lean.Json.opt "strength" x✝.strength?].flatten
Instances For
Equations
Instances For
Equations
- One or more equations did not get rendered due to their size.
Instances For
Equations
- ProofWidgets.GraphDisplay.instToJsonForceYParams.toJson x✝ = Lean.Json.mkObj [Lean.Json.opt "y" x✝.y?, Lean.Json.opt "strength" x✝.strength?].flatten
Instances For
Equations
Instances For
Equations
- One or more equations did not get rendered due to their size.
Instances For
Equations
- One or more equations did not get rendered due to their size.
Instances For
Settings for the simulation of forces on vertices. See https://d3js.org/d3-force.
- center : ForceCenterParams → ForceParams
- collide : ForceCollideParams → ForceParams
- link : ForceLinkParams → ForceParams
- manyBody : ForceManyBodyParams → ForceParams
- x : ForceXParams → ForceParams
- y : ForceYParams → ForceParams
- radial : ForceRadialParams → ForceParams
Instances For
Equations
- One or more equations did not get rendered due to their size.
Instances For
Equations
- ProofWidgets.GraphDisplay.instToJsonForceParams.toJson (ProofWidgets.GraphDisplay.ForceParams.center a) = Lean.Json.mkObj [("center", Lean.toJson a)]
- ProofWidgets.GraphDisplay.instToJsonForceParams.toJson (ProofWidgets.GraphDisplay.ForceParams.collide a) = Lean.Json.mkObj [("collide", Lean.toJson a)]
- ProofWidgets.GraphDisplay.instToJsonForceParams.toJson (ProofWidgets.GraphDisplay.ForceParams.link a) = Lean.Json.mkObj [("link", Lean.toJson a)]
- ProofWidgets.GraphDisplay.instToJsonForceParams.toJson (ProofWidgets.GraphDisplay.ForceParams.manyBody a) = Lean.Json.mkObj [("manyBody", Lean.toJson a)]
- ProofWidgets.GraphDisplay.instToJsonForceParams.toJson (ProofWidgets.GraphDisplay.ForceParams.x a) = Lean.Json.mkObj [("x", Lean.toJson a)]
- ProofWidgets.GraphDisplay.instToJsonForceParams.toJson (ProofWidgets.GraphDisplay.ForceParams.y a) = Lean.Json.mkObj [("y", Lean.toJson a)]
- ProofWidgets.GraphDisplay.instToJsonForceParams.toJson (ProofWidgets.GraphDisplay.ForceParams.radial a) = Lean.Json.mkObj [("radial", Lean.toJson a)]
Instances For
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.- forces : Array ForceParams
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
Display a graph with an interactive force simulation.
Equations
- One or more equations did not get rendered due to their size.