Module

Hylograph.Internal.Types

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

Internal: Core opaque types for D3 FFI boundary.

Provides type-safe wrappers for D3's dynamic JavaScript types:

  • Datum_ / Index_: Erased types for D3 callbacks
  • D3Selection_ / D3Simulation_: Opaque D3 object handles
  • Selector / PointXY: Common type aliases

Internal module - use the public API in Hylograph.Selection.

#Datum_ Source

data Datum_

Opaque type representing data bound to D3 elements Used at FFI boundary when the actual data type is erased

#Index_ Source

data Index_

Opaque type representing array indices in D3 callbacks Int under the hood, but kept opaque to match D3's conventions

Instances

#index_ToInt Source

index_ToInt :: Index_ -> Int

Convert Index_ to Int

#index_ToNumber Source

index_ToNumber :: Index_ -> Number

Convert Index_ to Number (useful for calculations)

#intToIndex_ Source

intToIndex_ :: Int -> Index_

Convert Int to Index_

#D3Selection_ Source

data D3Selection_ t0

Opaque type for D3 selections (v1 style, still used by FFI)

#D3Simulation_ Source

data D3Simulation_

Opaque type for D3 simulations

#Selector Source

type Selector :: forall k. k -> Typetype Selector selection = String

CSS selector type - phantom typed but just String underneath

#PointXY Source

type PointXY = { x :: Number, y :: Number }

Simple 2D point record

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