Module
Yoga.Tree.Svg.Render
- Package
- purescript-yoga-tree-svg
- Repository
- shamansir/purescript-yoga-tree-svg
#NodeStatus Source
#NodeOutput Source
type NodeOutput = Void
#GraphConfig Source
type GraphConfig a i = { events :: Events i a, geometry :: Geometry, modes :: Modes, render :: RenderConfig a, theme :: Theme }
#RenderConfig Source
type RenderConfig a = { componentSize :: Path -> a -> { height :: Number, width :: Number }, edgeColor :: Theme -> Path -> a -> Path -> a -> Color, edgeLabel :: Path -> a -> Path -> a -> String, valueColor :: Theme -> Path -> a -> Color, valueLabel :: Path -> a -> String, valueLabelColor :: Theme -> Path -> a -> Color, valueLabelWidth :: Path -> a -> Int }
#ValueConfig Source
type ValueConfig a = { geometry :: Geometry, nodeMode :: NodeMode, render :: RenderConfig a, theme :: Theme }
#NodeComponent Source
type NodeComponent :: (Type -> Type) -> Type -> Type
type NodeComponent m a = Component NodeQuery (NodeComponentInput a) NodeOutput m
#NodeComponentInput Source
type NodeComponentInput a = { path :: Path, theme :: Theme, value :: a }
#renderGraph Source
renderGraph :: forall a i m. GraphStatus -> GraphConfig a i -> Events i a -> Graph Path (WithStatus a) -> Array (GraphHtml m i)
#renderGraph_ Source
renderGraph_ :: forall a i m. GraphStatus -> GraphConfig a i -> NodeComponent m a -> Events i a -> Graph Path (WithStatus a) -> Array (GraphHtml m i)
#renderGraph' Source
renderGraph' :: forall a i m. GraphStatus -> GraphConfig a i -> Maybe (NodeComponent m a) -> Events i a -> Graph Path (WithStatus a) -> Array (GraphHtml m i)
#renderGraphFrom Source
renderGraphFrom :: forall a i m. From -> GraphStatus -> GraphConfig a i -> Events i a -> Graph Path (WithStatus a) -> Array (GraphHtml m i)
#renderGraphFrom_ Source
renderGraphFrom_ :: forall a i m. From -> GraphStatus -> GraphConfig a i -> NodeComponent m a -> Events i a -> Graph Path (WithStatus a) -> Array (GraphHtml m i)
#renderGraphFrom' Source
renderGraphFrom' :: forall a i m. From -> GraphStatus -> GraphConfig a i -> Maybe (NodeComponent m a) -> Events i a -> Graph Path (WithStatus a) -> Array (GraphHtml m i)
#renderPreview Source
renderPreview :: forall a i m. ValueConfig a -> NodeStatus -> Path -> a -> GraphHtml m i
#renderPreview_ Source
renderPreview_ :: forall a i m. ValueConfig a -> NodeComponent m a -> NodeStatus -> Path -> a -> GraphHtml m i
#renderPreview' Source
renderPreview' :: forall a i m. ValueConfig a -> Maybe (NodeComponent m a) -> NodeStatus -> Path -> a -> GraphHtml m i
#WithStatus Source
type WithStatus a = NodeStatus /\ a
#statusColor Source
statusColor :: Theme -> NodeStatus -> Color
#toValueConfig Source
toValueConfig :: forall a i. GraphConfig a i -> ValueConfig a
ChildrenBefore Int a ChidlrenAfter Int a