- timeout: ProofWidgets.Svg.ActionKind
- mousedown: ProofWidgets.Svg.ActionKind
- mouseup: ProofWidgets.Svg.ActionKind
- mousemove: ProofWidgets.Svg.ActionKind
Instances For
Equations
- ProofWidgets.Svg.instDecidableEqActionKind x y = if h : ProofWidgets.Svg.ActionKind.toCtorIdx x = ProofWidgets.Svg.ActionKind.toCtorIdx y then isTrue ⋯ else isFalse ⋯
- kind : ProofWidgets.Svg.ActionKind
Instances For
Equations
- ProofWidgets.Svg.instToJsonAction = { toJson := ProofWidgets.Svg.toJsonAction✝ }
Equations
- ProofWidgets.Svg.instFromJsonAction = { fromJson? := ProofWidgets.Svg.fromJsonAction✝ }
The input type State
is any state the user wants to use and update
SvgState in addition automatically handles tracking of time, selection and custom data
- state : State
- time : Float
time in milliseconds
Instances For
instance
ProofWidgets.Svg.instToJsonSvgState :
{State : Type} → [inst : Lean.ToJson State] → Lean.ToJson (ProofWidgets.Svg.SvgState State)
Equations
- ProofWidgets.Svg.instToJsonSvgState = { toJson := ProofWidgets.Svg.toJsonSvgState✝ }
instance
ProofWidgets.Svg.instFromJsonSvgState :
{State : Type} → [inst : Lean.FromJson State] → Lean.FromJson (ProofWidgets.Svg.SvgState State)
Equations
- ProofWidgets.Svg.instFromJsonSvgState = { fromJson? := ProofWidgets.Svg.fromJsonSvgState✝ }
instance
ProofWidgets.Svg.ProofWidgets.Svg.SvgState.instRpcEncodableSvgState
{State : Type}
[Lean.Server.RpcEncodable State]
:
Equations
- One or more equations did not get rendered due to their size.
- elapsed : Float
- actions : Array ProofWidgets.Svg.Action
- state : ProofWidgets.Svg.SvgState State
Instances For
instance
ProofWidgets.Svg.instToJsonUpdateParams :
{State : Type} → [inst : Lean.ToJson State] → Lean.ToJson (ProofWidgets.Svg.UpdateParams State)
Equations
- ProofWidgets.Svg.instToJsonUpdateParams = { toJson := ProofWidgets.Svg.toJsonUpdateParams✝ }
instance
ProofWidgets.Svg.instFromJsonUpdateParams :
{State : Type} → [inst : Lean.FromJson State] → Lean.FromJson (ProofWidgets.Svg.UpdateParams State)
Equations
- ProofWidgets.Svg.instFromJsonUpdateParams = { fromJson? := ProofWidgets.Svg.fromJsonUpdateParams✝ }
- html : ProofWidgets.Html
- state : ProofWidgets.Svg.SvgState State
Approximate number of milliseconds to wait before calling again.
Instances For
instance
ProofWidgets.Svg.ProofWidgets.Svg.UpdateResult.instRpcEncodableUpdateResult
{State : Type}
[Lean.Server.RpcEncodable State]
:
Equations
- One or more equations did not get rendered due to their size.
- init : State
- frame : ProofWidgets.Svg.Frame
- update : Float → Float → ProofWidgets.Svg.Action → Option (ProofWidgets.Svg.Point self.frame) → Option (ProofWidgets.Svg.Point self.frame) → Option String → ((α : Type) → [inst : Lean.FromJson α] → Option α) → State → State
- render : Float → Option (ProofWidgets.Svg.Point self.frame) → Option (ProofWidgets.Svg.Point self.frame) → State → ProofWidgets.Svg self.frame
Instances For
def
ProofWidgets.Svg.InteractiveSvg.serverRpcMethod
{State : Type}
(isvg : ProofWidgets.Svg.InteractiveSvg State)
(params : ProofWidgets.Svg.UpdateParams State)
:
Equations
- One or more equations did not get rendered due to their size.