Safe Haskell | None |
---|---|
Language | Haskell2010 |
- setupGraphsModuleConfiguration :: EventloopSetupModuleConfiguration
- graphsModuleIdentifier :: EventloopModuleIdentifier
- nodeRadius :: Float
- textSize :: Float
- textFont :: [Char]
- xArrowSize :: Float
- yArrowSize :: Float
- weightHeight :: Float
- dimCanvasGraphs :: (Float, Float)
- roundDimCanvasGraphs :: (Int, Int)
- canvasGraphsWidth :: Float
- canvasGraphsHeight :: Float
- instructionsHeight :: Float
- instructionsBeginAt :: Float
- canvasInstrWidth :: Float
- canvasInstrHeight :: Float
- dimCanvasInstr :: (Float, Float)
- roundDimCanvasInstr :: (Int, Int)
- canvasIdGraphs :: CanvasId
- canvasIdInstructions :: CanvasId
- onNode :: [Node] -> Pos -> Maybe Node
- graphsPreProcessor :: PreProcessor
- graphsPostProcessor :: PostProcessor
- colorToRGBAColor :: Color -> Color
- thicknessToFloat :: Thickness -> StrokeLineThickness
- findNode :: [Node] -> Label -> Node
- graphToShapes :: Graph -> [Shape]
- nodeToShapes :: Node -> [Shape]
- edgeToShapes :: Node -> Node -> Edge -> Directed -> Weighted -> [Shape]
- posOnVector :: Float -> Vector -> Pos -> Pos
- vectorize :: Pos -> Pos -> Vector
- downPerpendicularTo :: Pos -> Pos -> Vector
- upPerpendicularTo :: Pos -> Pos -> Vector
- vectorSize :: Vector -> Float
- type Pos = (Float, Float)
- type Vector = (Float, Float)
- data GraphsIn
- = Mouse MouseEvent Pos
- | Key [Char]
- data GraphsOut
- type Label = Char
- type Weight = Float
- type Node = (Label, Pos, Color)
- type Edge = (Label, Label, Color, Weight, Thickness)
- data Graph = Graph {}
- data Color
- data Thickness
- data Directed
- data Weighted
- data MouseEvent
- data MouseButton
Documentation
nodeRadius :: Float Source #
xArrowSize :: Float Source #
yArrowSize :: Float Source #
weightHeight :: Float Source #
dimCanvasGraphs :: (Float, Float) Source #
roundDimCanvasGraphs :: (Int, Int) Source #
dimCanvasInstr :: (Float, Float) Source #
roundDimCanvasInstr :: (Int, Int) Source #
onNode :: [Node] -> Pos -> Maybe Node Source #
Checkes to see if there is a node on a certain position
graphsPreProcessor :: PreProcessor Source #
Abstracts the standardized EventTypes
to GraphsIn
graphsPostProcessor :: PostProcessor Source #
Abstracts GraphsOut
back to BasicShapes
and Canvas
events
colorToRGBAColor :: Color -> Color Source #
Translates color datatype to RGBA codes
thicknessToFloat :: Thickness -> StrokeLineThickness Source #
Translates the thickness to a float
graphToShapes :: Graph -> [Shape] Source #
nodeToShapes :: Node -> [Shape] Source #
posOnVector :: Float -> Vector -> Pos -> Pos Source #
Returns the point when making a step f long from the point start in the direction of the vector. The length between start pos and result pos is always f.
downPerpendicularTo :: Pos -> Pos -> Vector Source #
Returns the vector perpendicular on the given vector between the 2 points. Always has positive y and vector length 1; y is inverted in canvas
upPerpendicularTo :: Pos -> Pos -> Vector Source #
Returns the vector perpendicular on the given vector between the 2 points. Always has negative y and vector length 1; y is inverted in canvas
vectorSize :: Vector -> Float Source #
Returns the size of the vector