Module

Hylograph.Internal.Transition.Scene

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

Internal: Declarative transition specification types.

Provides ADTs for describing HOW visualizations should animate:

  • EnterBehavior: How new elements appear (FadeIn, ScaleUp, Instant)
  • ExitBehavior: How removed elements disappear (FadeOut, ScaleDown, Instant)
  • UpdateBehavior: How existing elements move (TransitionMove, InstantMove)

By making transitions declarative, users describe the desired end state and the library handles all sequencing automatically.

Internal module - these types are used by Hylograph.Simulation.Scene.

#EnterBehavior Source

data EnterBehavior

Transitions describe HOW a scene appears, not just WHAT it contains. By making transitions part of the scene specification, we maintain the declarative philosophy: users describe the desired end state and the library handles all sequencing automatically.

This module provides general-purpose transition types that can be used for any visualization, not just simulations. For simulation-specific scene configuration, see Hylograph.Simulation.Scene. How nodes should appear when they enter the visualization

Constructors

#ExitBehavior Source

data ExitBehavior

How nodes should disappear when they exit the visualization

Constructors

#UpdateBehavior Source

data UpdateBehavior

How existing nodes should move to new positions

Constructors

#TransitionSpec Source

type TransitionSpec = { duration :: Number, enterNodes :: EnterBehavior, exitNodes :: ExitBehavior, pinAfterTransition :: Boolean, updateNodes :: UpdateBehavior }

Complete transition specification for a scene Nothing = instant/no transition (backward compatible) Just spec = declarative transition behavior

#encodeEnterBehavior Source

encodeEnterBehavior :: EnterBehavior -> String

Explicit encoding functions for FFI These ensure we control the string constants passed to JavaScript

#smoothTransition Source

smoothTransition :: TransitionSpec

Common transition presets Smooth transition with fading and position animation (1.5 seconds) Nodes are NOT pinned - forces will continue to act after transition

#smoothTransitionPinned Source

smoothTransitionPinned :: TransitionSpec

Smooth transition that pins nodes at their final positions Use this for tree layouts or other layouts where nodes should stay locked

#quickTransition Source

quickTransition :: TransitionSpec

Quick transition with scaling effects (0.5 seconds)

#instantTransition Source

instantTransition :: TransitionSpec

Instant transition (no animation)

Modules
Data.DependencyGraph
Hylograph.AST
Hylograph.Axis.Axis
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.Capabilities.Selection
Hylograph.Internal.Capabilities.Transition
Hylograph.Internal.FFI
Hylograph.Internal.Selection.Join
Hylograph.Internal.Selection.Operations
Hylograph.Internal.Selection.Operations.Conversions
Hylograph.Internal.Selection.Operations.Helpers
Hylograph.Internal.Selection.Operations.Selection
Hylograph.Internal.Selection.Query
Hylograph.Internal.Selection.Types
Hylograph.Internal.Transition.FFI
Hylograph.Internal.Transition.Manager
Hylograph.Internal.Transition.Scene
Hylograph.Internal.Transition.Types
Hylograph.Internal.Types
Hylograph.Interpreter.D3
Hylograph.Interpreter.English
Hylograph.Interpreter.Mermaid
Hylograph.Interpreter.MetaAST
Hylograph.Interpreter.SemiQuine
Hylograph.Interpreter.SemiQuine.TreeToCode
Hylograph.Interpreter.SemiQuine.Types
Hylograph.Render
Hylograph.Scale
Hylograph.Scale.FP
Hylograph.Shape.Arc
Hylograph.Shape.Pie
Hylograph.Shape.Polygon
Hylograph.Tooltip
Hylograph.Transform
Hylograph.TreeDSL
Hylograph.TreeDSL.ShapeTree
Hylograph.Unified
Hylograph.Unified.Attribute
Hylograph.Unified.DataDSL
Hylograph.Unified.Display
Hylograph.Unified.Examples
Hylograph.Unified.Join
Hylograph.Unified.Sugar