Module

DataViz.Layout.Adjacency.Types

Package
purescript-hylograph-layout
Repository
afcondon/purescript-hylograph-layout

DataViz.Layout.Adjacency.Types

Types for adjacency matrix visualization. An adjacency matrix shows relationships between nodes as a grid where each cell represents a connection between row and column nodes.

#AdjacencyMatrix Source

type AdjacencyMatrix = { matrix :: Array (Array Number), names :: Array String }

The adjacency matrix data structure Contains raw matrix values and associated node names

#MatrixCell Source

type MatrixCell = { col :: Int, colName :: String, position :: CellPosition, row :: Int, rowName :: String, value :: Number }

A cell in the laid out matrix Contains both the data and computed position

#MatrixLabel Source

type MatrixLabel = { displayName :: String, index :: Int, isRow :: Boolean, name :: String, position :: LabelPosition }

A label for row or column

#MatrixLayout Source

type MatrixLayout = { cells :: Array MatrixCell, colLabels :: Array MatrixLabel, gridHeight :: Number, gridWidth :: Number, rowLabels :: Array MatrixLabel, totalHeight :: Number, totalWidth :: Number }

Complete layout output ready for rendering

#CellPosition Source

type CellPosition = { height :: Number, width :: Number, x :: Number, y :: Number }

Position of a cell in the grid

#LabelPosition Source

type LabelPosition = { anchor :: String, rotation :: Number, x :: Number, y :: Number }

Position of a label