DataViz.Layout.Hierarchy.EdgeBundle.Types
- Package
- purescript-hylograph-layout
- Repository
- afcondon/purescript-hylograph-layout
DataViz.Layout.Hierarchy.EdgeBundle.Types
Types for hierarchical edge bundling visualization. Based on Danny Holten's algorithm and D3's implementation.
Edge bundling shows dependencies between nodes in a hierarchy by:
- Arranging nodes in a radial cluster layout
- Drawing curved edges that bundle together based on shared ancestry
- The tighter the bundle (higher beta), the more edges follow tree structure
#ImportedNode Source
type ImportedNode = { imports :: Array String, name :: String, size :: Number }Input format: flat array of nodes with dot-notation names and imports Example: { "name": "flare.animate.Easing", "size": 17010, "imports": ["flare.util.Arrays"] }
#parseImportedNode Source
parseImportedNode :: Foreign -> Maybe ImportedNodeParse a Foreign value into an ImportedNode
#BundleTree Source
type BundleTree a = BundleNode aType alias for the full tree
#BundleNode Source
data BundleNode aA node in the bundle hierarchy tree Contains the data plus computed layout information
Constructors
BundleNode { children :: Array (BundleNode a), data_ :: a, depth :: Int, fullName :: String, height :: Int, incoming :: Array IncomingLink, outgoing :: Array OutgoingLink, parent :: Maybe (BundleNode a), x :: Number, y :: Number }
#getBundleData Source
getBundleData :: forall a. BundleNode a -> aGet the user data from a bundle node
#getBundleChildren Source
getBundleChildren :: forall a. BundleNode a -> Array (BundleNode a)Get children of a bundle node
#getBundleParent Source
getBundleParent :: forall a. BundleNode a -> Maybe (BundleNode a)Get parent of a bundle node
#BundleLink Source
type BundleLink = { path :: Array RadialNode, source :: String, target :: String }A bundle link after path computation Contains the path through the tree from source to target
#OutgoingLink Source
type OutgoingLink = { sourceFullName :: String, targetFullName :: String }An outgoing link (from source to target) The link itself is a pair: [source, target]
#IncomingLink Source
type IncomingLink = { sourceFullName :: String, targetFullName :: String }An incoming link (from source to this node as target)
#RadialNode Source
type RadialNode = { fullName :: String, x :: Number, y :: Number }Node position after radial layout Used for rendering and path computation
#EdgeBundleConfig Source
type EdgeBundleConfig = { beta :: Number, innerRadius :: Number, nodeSpacing :: Number, radius :: Number }Configuration for edge bundle layout
#defaultEdgeBundleConfig Source
defaultEdgeBundleConfig :: EdgeBundleConfigDefault configuration
- Modules
- DataViz.
Layout. Adjacency - DataViz.
Layout. Adjacency. Layout - DataViz.
Layout. Adjacency. Types - DataViz.
Layout. Chord - DataViz.
Layout. Chord. Layout - DataViz.
Layout. Chord. Types - DataViz.
Layout. Hierarchy. Cluster - DataViz.
Layout. Hierarchy. Core - DataViz.
Layout. Hierarchy. EdgeBundle - DataViz.
Layout. Hierarchy. EdgeBundle. Bilink - DataViz.
Layout. Hierarchy. EdgeBundle. BundleCurve - DataViz.
Layout. Hierarchy. EdgeBundle. Hierarchy - DataViz.
Layout. Hierarchy. EdgeBundle. RadialCluster - DataViz.
Layout. Hierarchy. EdgeBundle. Types - DataViz.
Layout. Hierarchy. Link - DataViz.
Layout. Hierarchy. Pack - DataViz.
Layout. Hierarchy. Partition - DataViz.
Layout. Hierarchy. Tree - DataViz.
Layout. Hierarchy. TreeStyle - DataViz.
Layout. Hierarchy. Treemap - DataViz.
Layout. Hierarchy. Types - DataViz.
Layout. Pattern - DataViz.
Layout. Pattern. Types - DataViz.
Layout. Sankey. CSV - DataViz.
Layout. Sankey. Compute - DataViz.
Layout. Sankey. ComputeWithSteps - DataViz.
Layout. Sankey. Path - DataViz.
Layout. Sankey. Types - DataViz.
Layout. StateMachine - DataViz.
Layout. StateMachine. Layout - DataViz.
Layout. StateMachine. Path - DataViz.
Layout. StateMachine. Types