Module

Hylograph.Unified.Sugar

Package
purescript-hylograph-selection
Repository
afcondon/purescript-hylograph-selection

Hylograph.Unified.Sugar - Syntactic Sugar for DataDSL

Operators and helpers to make expressions more readable.

Compare: add (mul xField (num 20.0)) (num 200.0) vs: xField *: 20.0 +: 200.0

#(+.) Source

Operator alias for Hylograph.Unified.Sugar.addOp (left-associative / precedence 6)

#addOp Source

addOp :: forall repr. DataDSL repr => repr Number -> repr Number -> repr Number

#(-.) Source

Operator alias for Hylograph.Unified.Sugar.subOp (left-associative / precedence 6)

#subOp Source

subOp :: forall repr. DataDSL repr => repr Number -> repr Number -> repr Number

#(*.) Source

Operator alias for Hylograph.Unified.Sugar.mulOp (left-associative / precedence 7)

#mulOp Source

mulOp :: forall repr. DataDSL repr => repr Number -> repr Number -> repr Number

#(/.) Source

Operator alias for Hylograph.Unified.Sugar.divOp (left-associative / precedence 7)

#divOp Source

divOp :: forall repr. DataDSL repr => repr Number -> repr Number -> repr Number

#neg Source

neg :: forall repr. DataDSL repr => repr Number -> repr Number

#(+:) Source

Operator alias for Hylograph.Unified.Sugar.addLit (left-associative / precedence 6)

#addLit Source

addLit :: forall repr. DataDSL repr => repr Number -> Number -> repr Number

#(-:) Source

Operator alias for Hylograph.Unified.Sugar.subLit (left-associative / precedence 6)

#subLit Source

subLit :: forall repr. DataDSL repr => repr Number -> Number -> repr Number

#(*:) Source

Operator alias for Hylograph.Unified.Sugar.mulLit (left-associative / precedence 7)

#mulLit Source

mulLit :: forall repr. DataDSL repr => repr Number -> Number -> repr Number

#(/:) Source

Operator alias for Hylograph.Unified.Sugar.divLit (left-associative / precedence 7)

#divLit Source

divLit :: forall repr. DataDSL repr => repr Number -> Number -> repr Number

#(<+>) Source

Operator alias for Hylograph.Unified.Sugar.concatOp (right-associative / precedence 5)

#concatOp Source

concatOp :: forall repr. DataDSL repr => repr String -> repr String -> repr String

#(<.) Source

Operator alias for Hylograph.Unified.Sugar.ltOp (non-associative / precedence 4)

#ltOp Source

ltOp :: forall repr. DataDSL repr => repr Number -> repr Number -> repr Boolean

#(<=.) Source

Operator alias for Hylograph.Unified.Sugar.lteOp (non-associative / precedence 4)

#lteOp Source

lteOp :: forall repr. DataDSL repr => repr Number -> repr Number -> repr Boolean

#(>.) Source

Operator alias for Hylograph.Unified.Sugar.gtOp (non-associative / precedence 4)

#gtOp Source

gtOp :: forall repr. DataDSL repr => repr Number -> repr Number -> repr Boolean

#(>=.) Source

Operator alias for Hylograph.Unified.Sugar.gteOp (non-associative / precedence 4)

#gteOp Source

gteOp :: forall repr. DataDSL repr => repr Number -> repr Number -> repr Boolean

#(==.) Source

Operator alias for Hylograph.Unified.Sugar.eqOp (non-associative / precedence 4)

#eqOp Source

eqOp :: forall repr. DataDSL repr => repr Number -> repr Number -> repr Boolean

#(===) Source

Operator alias for Hylograph.Unified.Sugar.strEqOp (non-associative / precedence 4)

#strEqOp Source

strEqOp :: forall repr. DataDSL repr => repr String -> repr String -> repr Boolean

#(/==) Source

Operator alias for Hylograph.Unified.Sugar.strNeqOp (non-associative / precedence 4)

#strNeqOp Source

strNeqOp :: forall repr. DataDSL repr => repr String -> repr String -> repr Boolean

#n Source

n :: forall repr. DataDSL repr => Number -> repr Number

Short alias for num - creates a numeric literal Usage: n 42.0

#s Source

s :: forall repr. DataDSL repr => String -> repr String

Short alias for str - creates a string literal Usage: s "hello"

#b Source

b :: forall repr. DataDSL repr => Boolean -> repr Boolean

Short alias for bool - creates a boolean literal Usage: b true

#ite Source

ite :: forall repr a. DataDSL repr => repr Boolean -> repr a -> repr a -> repr a

Short alias for ifThenElse - conditional expression Usage: ite (x <. n 0.0) (s "negative") (s "non-negative")

Re-exports from Hylograph.Unified.DataDSL

#acos Source

acos :: forall repr. TrigDSL repr => repr Number -> repr Number

#asin Source

asin :: forall repr. TrigDSL repr => repr Number -> repr Number

#atan Source

atan :: forall repr. TrigDSL repr => repr Number -> repr Number

#atan2 Source

atan2 :: forall repr. TrigDSL repr => repr Number -> repr Number -> repr Number

#cos Source

cos :: forall repr. TrigDSL repr => repr Number -> repr Number

#pi Source

pi :: forall repr. TrigDSL repr => repr Number

#sin Source

sin :: forall repr. TrigDSL repr => repr Number -> repr Number

#tan Source

tan :: forall repr. TrigDSL repr => repr Number -> repr Number
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