Module

Hylograph.Internal.FFI

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

Internal: Low-level FFI bindings for D3 selection and simulation.

This module contains the JavaScript FFI declarations for:

  • Selection operations (events, key functions)
  • Simulation lifecycle (init, start, stop, tick)
  • Force configuration (center, collide, many-body, link, radial, x, y)
  • Node/link manipulation (pin, unpin, swizzle)

Internal module - prefer the high-level APIs in Hylograph.Selection and Hylograph.Simulation.

#getIndexFromDatum_ Source

getIndexFromDatum_ :: Datum_ -> Int

*************************** FFI signatures for Selection ********************************************


NOTE: Most D3 selection operations have been replaced with PureScript web-dom libraries. The remaining exports here are for simulation key functions and drag behaviors.

#ComputeKeyFunction_ Source

type ComputeKeyFunction_ d key = d -> key

#keyIsSourceTarget_ Source

#swizzledLinkKey_ Source

#D3Attr_ Source

data D3Attr_

#selectionOn_ Source

selectionOn_ :: forall selection callback. selection -> String -> callback -> selection

#linksForceName_ Source

linksForceName_ :: String

*************************** FFI signatures for D3js Simulation module *********************************************


#GraphModel_ Source

type GraphModel_ link node = { links :: Array link, nodes :: Array node }

foreign types associated with Force Layout Simulation

#D3ForceHandle_ Source

#CustomForceConfig_ Source

#SimulationVariables Source

type SimulationVariables = { alpha :: Number, alphaDecay :: Number, alphaMin :: Number, alphaTarget :: Number, velocityDecay :: Number }

a record to initialize / configure simulations

#initSimulation_ Source

#d3PreserveSimulationPositions_ Source

d3PreserveSimulationPositions_ :: forall d row key. D3Selection_ d -> Array (SimulationNode row) -> (SimulationNode row -> key) -> Array (SimulationNode row)

#d3PreserveLinkReferences_ Source

d3PreserveLinkReferences_ :: forall d id linkRow. D3Selection_ d -> Array (Link id linkRow) -> Array (Link id linkRow)

#getIDsFromNodes_ Source

getIDsFromNodes_ :: forall d key. Array (SimulationNode d) -> (SimulationNode d -> key) -> Array key

#getNodes_ Source

#getLinkID_ Source

getLinkID_ :: forall link key. (link -> key) -> link -> Index_

#getLinkIDs_ Source

getLinkIDs_ :: forall id linkRow. Link id linkRow -> { sourceID :: id, targetID :: id }

#getLinksFromForce_ Source

getLinksFromForce_ :: forall id linkRow. D3ForceHandle_ -> Array (Link id linkRow)

#getLinksFromSimulation_ Source

getLinksFromSimulation_ :: forall nodeData linkRow. D3Simulation_ -> Array (SwizzledLink nodeData linkRow)

#setInSimNodeFlag_ Source

#unsetInSimNodeFlag_ Source

#setInSimNodeFlag Source

#unsetInSimNodeFlag Source

#pinNode_ Source

#pinNamedNode_ Source

#pinTreeNode_ Source

#unpinNode_ Source

#onTick_ Source

#defaultNodeTick_ Source

#defaultLinkTick_ Source

#applyFixForceInSimulationX_ Source

#applyFixForceInSimulationY_ Source

#ArcGenerator_ Source

data ArcGenerator_

*************************** FFI signatures for D3js Arc Generator (d3-shape) *********************************


Used for pie charts, donut charts, and other arc-based visualizations

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