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#keyIsID_ Source
keyIsID_ :: forall d. ComputeKeyFunction_ d Index_#keyIsSourceTarget_ Source
keyIsSourceTarget_ :: forall d. ComputeKeyFunction_ d Index_#swizzledLinkKey_ Source
swizzledLinkKey_ :: forall d. ComputeKeyFunction_ d String#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
data D3ForceHandle_#CustomForceConfig_ Source
data CustomForceConfig_#initSimulation_ Source
initSimulation_ :: forall d key. SimulationVariables -> (SimulationNode d -> key) -> D3Simulation_#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
getNodes_ :: forall d. D3Simulation_ -> Array (SimulationNode d)#setNodes_ Source
setNodes_ :: forall d. D3Simulation_ -> Array (SimulationNode d) -> Array (SimulationNode d)#setLinks_ Source
setLinks_ :: forall nodeData linkRow. D3Simulation_ -> Array (SwizzledLink nodeData linkRow) -> Unit#swizzleLinks_ Source
swizzleLinks_ :: forall id nodeData linkRow key. Array (Link id linkRow) -> Array (SimulationNode nodeData) -> (SimulationNode nodeData -> key) -> Array (SwizzledLink nodeData linkRow)#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)#stopSimulation_ Source
stopSimulation_ :: D3Simulation_ -> Unit#setInSimNodeFlag_ Source
setInSimNodeFlag_ :: forall d. SimulationNode d -> Unit#unsetInSimNodeFlag_ Source
unsetInSimNodeFlag_ :: forall d. SimulationNode d -> Unit#setInSimNodeFlag Source
setInSimNodeFlag :: forall d. SimulationNode d -> SimulationNode d#unsetInSimNodeFlag Source
unsetInSimNodeFlag :: forall d. SimulationNode d -> SimulationNode d#pinNode_ Source
pinNode_ :: forall d. Number -> Number -> SimulationNode d -> SimulationNode d#pinNamedNode_ Source
pinNamedNode_ :: forall d. String -> Number -> Number -> SimulationNode d -> SimulationNode d#pinTreeNode_ Source
pinTreeNode_ :: forall d. SimulationNode d -> SimulationNode d#unpinNode_ Source
unpinNode_ :: forall d. SimulationNode d -> SimulationNode d#disableTick_ Source
disableTick_ :: D3Simulation_ -> String -> Unit#defaultNodeTick_ Source
defaultNodeTick_ :: forall d. String -> D3Simulation_ -> D3Selection_ d -> Unit#defaultLinkTick_ Source
defaultLinkTick_ :: forall d. String -> D3Simulation_ -> D3Selection_ d -> Unit#setAlphaMin_ Source
setAlphaMin_ :: D3Simulation_ -> Number -> Unit#setAlphaDecay_ Source
setAlphaDecay_ :: D3Simulation_ -> Number -> Unit#setAlphaTarget_ Source
setAlphaTarget_ :: D3Simulation_ -> Number -> Unit#setVelocityDecay_ Source
setVelocityDecay_ :: D3Simulation_ -> Number -> Unit#forceCenter_ Source
forceCenter_ :: Unit -> D3ForceHandle_#forceMany_ Source
forceMany_ :: Unit -> D3ForceHandle_#forceRadial_ Source
forceRadial_ :: Unit -> D3ForceHandle_#forceX_ Source
forceX_ :: Unit -> D3ForceHandle_#forceY_ Source
forceY_ :: Unit -> D3ForceHandle_#forceLink_ Source
forceLink_ :: Unit -> D3ForceHandle_#forceCustom_ Source
forceCustom_ :: Unit -> D3ForceHandle_#setForceCx_ Source
setForceCx_ :: D3ForceHandle_ -> D3Attr_ -> D3ForceHandle_#setForceCy_ Source
setForceCy_ :: D3ForceHandle_ -> D3Attr_ -> D3ForceHandle_#setForceX_ Source
setForceX_ :: D3ForceHandle_ -> D3Attr_ -> D3ForceHandle_#setForceY_ Source
setForceY_ :: D3ForceHandle_ -> D3Attr_ -> D3ForceHandle_#removeFixForceXY_ Source
removeFixForceXY_ :: D3Simulation_ -> (Datum_ -> Boolean) -> D3Simulation_#removeFixForceX_ Source
removeFixForceX_ :: D3Simulation_ -> (Datum_ -> Boolean) -> D3Simulation_#removeFixForceY_ Source
removeFixForceY_ :: D3Simulation_ -> (Datum_ -> Boolean) -> D3Simulation_#applyFixForceInSimulationXY_ Source
applyFixForceInSimulationXY_ :: D3Simulation_ -> String -> (Datum_ -> Index_ -> PointXY) -> (Datum_ -> Boolean) -> D3Simulation_#applyFixForceInSimulationX_ Source
applyFixForceInSimulationX_ :: D3Simulation_ -> String -> (Datum_ -> Index_ -> { x :: Number }) -> (Datum_ -> Boolean) -> D3Simulation_#applyFixForceInSimulationY_ Source
applyFixForceInSimulationY_ :: D3Simulation_ -> String -> (Datum_ -> Index_ -> { y :: Number }) -> (Datum_ -> Boolean) -> D3Simulation_#ArcGenerator_ Source
data ArcGenerator_*************************** FFI signatures for D3js Arc Generator (d3-shape) *********************************
Used for pie charts, donut charts, and other arc-based visualizations
#arcGenerator_ Source
arcGenerator_ :: Unit -> ArcGenerator_- 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