Module

Hylograph.HATS.InterpreterTick

Package
purescript-hylograph-selection
Repository
afcondon/purescript-hylograph-selection

HATS Tick-Driven Interpreter

Renders HATS trees to DOM with tick-driven transitions.

This interpreter works with the unparameterized Tree type where:

  • Folds are existentially wrapped (SomeFold)
  • Attributes and behaviors are thunks that captured their values

#rerender Source

rerender :: String -> Tree -> Effect RerenderResult

Re-render a HATS tree with GUP, returning tick-driven transitions

Note: Tree has no type parameter - it composes freely

#rerenderInto Source

rerenderInto :: SelectionMap -> String -> Tree -> Effect RerenderResult

Re-render into a named selection from a previous render

#clearContainer Source

clearContainer :: String -> Effect Unit

Clear all children from a container (no-op if selector doesn't match)

#clearAllHighlights Source

clearAllHighlights :: Effect Unit

Public alias for clearAllHatsHighlights

#RerenderResult Source

type RerenderResult = { selections :: SelectionMap, transitions :: Maybe HATSTransitions }

Result of rerender - selections plus optional transitions to tick

#SelectionMap Source

type SelectionMap = Map String (Array Element)

Selection map - named selections for later access

Modules
Data.DependencyGraph
Hylograph.Brush
Hylograph.Brush.FFI
Hylograph.Brush.Types
Hylograph.Classify
Hylograph.Data.Graph
Hylograph.Data.Graph.Algorithms
Hylograph.Data.Node
Hylograph.Data.Tree
Hylograph.Expr.Animation
Hylograph.Expr.Attr
Hylograph.Expr.Datum
Hylograph.Expr.Expr
Hylograph.Expr.Friendly
Hylograph.Expr.Integration
Hylograph.Expr.Interpreter.CodeGen
Hylograph.Expr.Interpreter.Eval
Hylograph.Expr.Interpreter.Meta
Hylograph.Expr.Interpreter.PureSVG
Hylograph.Expr.Interpreter.SVG
Hylograph.Expr.Path
Hylograph.Expr.Path.Generators
Hylograph.Expr.Sugar
Hylograph.Expr.Units
Hylograph.HATS
Hylograph.HATS.Friendly
Hylograph.HATS.InterpreterTick
Hylograph.HATS.Transitions
Hylograph.Interaction.Brush
Hylograph.Interaction.Coordinated
Hylograph.Interaction.Pointer
Hylograph.Interaction.Zoom
Hylograph.Internal.Attribute
Hylograph.Internal.Behavior.FFI
Hylograph.Internal.Behavior.Types
Hylograph.Internal.Element.Operations
Hylograph.Internal.Element.Types
Hylograph.Internal.FFI
Hylograph.Internal.Transition.FFI
Hylograph.Internal.Transition.Manager
Hylograph.Internal.Transition.Scene
Hylograph.Internal.Transition.Types
Hylograph.Internal.Types
Hylograph.Interpreter.English
Hylograph.Interpreter.Mermaid
Hylograph.Interpreter.MetaHATS
Hylograph.Interpreter.SemiQuine
Hylograph.Interpreter.SemiQuine.TreeToCode
Hylograph.Interpreter.SemiQuine.Types
Hylograph.Scale
Hylograph.Scale.FP
Hylograph.Shape.Arc
Hylograph.Shape.Pie
Hylograph.Shape.Polygon
Hylograph.Tooltip
Hylograph.Transform
Hylograph.Unified
Hylograph.Unified.Attribute
Hylograph.Unified.DataDSL
Hylograph.Unified.Display
Hylograph.Unified.Sugar