miso-flow
LicenseBSD3-style (see the file LICENSE)
Safe HaskellNone
LanguageHaskell2010

Miso.Flow.Types

Description

Core types for miso-flow. This is a Haskell port of the type layer of @xyflow/system (types/utils.ts, types/general.ts, types/nodes.ts, types/edges.ts, types/handles.ts, types/panzoom.ts, types/changes.ts).

Numeric fields are Double (JS number), strings are MisoString, optional fields are Maybe.

Synopsis

Geometry (types/utils.ts)

data Position Source #

Side of a node an edge or handle attaches to.

Port of the Position enum in types/utils.ts.

Instances

Instances details
Generic Position Source # 
Instance details

Defined in Miso.Flow.Types

Associated Types

type Rep Position 
Instance details

Defined in Miso.Flow.Types

type Rep Position = D1 ('MetaData "Position" "Miso.Flow.Types" "miso-flow-0.1.0.0-inplace" 'False) ((C1 ('MetaCons "PositionLeft" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "PositionTop" 'PrefixI 'False) (U1 :: Type -> Type)) :+: (C1 ('MetaCons "PositionRight" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "PositionBottom" 'PrefixI 'False) (U1 :: Type -> Type)))

Methods

from :: Position -> Rep Position x #

to :: Rep Position x -> Position #

Show Position Source # 
Instance details

Defined in Miso.Flow.Types

Eq Position Source # 
Instance details

Defined in Miso.Flow.Types

Ord Position Source # 
Instance details

Defined in Miso.Flow.Types

FromJSON Position Source # 
Instance details

Defined in Miso.Flow.Types

ToJSON Position Source # 
Instance details

Defined in Miso.Flow.Types

type Rep Position Source # 
Instance details

Defined in Miso.Flow.Types

type Rep Position = D1 ('MetaData "Position" "Miso.Flow.Types" "miso-flow-0.1.0.0-inplace" 'False) ((C1 ('MetaCons "PositionLeft" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "PositionTop" 'PrefixI 'False) (U1 :: Type -> Type)) :+: (C1 ('MetaCons "PositionRight" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "PositionBottom" 'PrefixI 'False) (U1 :: Type -> Type)))

oppositePosition :: Position -> Position Source #

Port of oppositePosition.

positionToText :: Position -> MisoString Source #

Wire representation used by xyflow ('left' | 'top' | 'right' | 'bottom').

data XYPosition Source #

A point in the flow coordinate system.

Constructors

XYPosition 

Fields

Instances

Instances details
Generic XYPosition Source # 
Instance details

Defined in Miso.Flow.Types

Associated Types

type Rep XYPosition 
Instance details

Defined in Miso.Flow.Types

type Rep XYPosition = D1 ('MetaData "XYPosition" "Miso.Flow.Types" "miso-flow-0.1.0.0-inplace" 'False) (C1 ('MetaCons "XYPosition" 'PrefixI 'True) (S1 ('MetaSel ('Just "xyX") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 Double) :*: S1 ('MetaSel ('Just "xyY") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 Double)))
Show XYPosition Source # 
Instance details

Defined in Miso.Flow.Types

Eq XYPosition Source # 
Instance details

Defined in Miso.Flow.Types

Ord XYPosition Source # 
Instance details

Defined in Miso.Flow.Types

FromJSON XYPosition Source # 
Instance details

Defined in Miso.Flow.Types

ToJSON XYPosition Source # 
Instance details

Defined in Miso.Flow.Types

type Rep XYPosition Source # 
Instance details

Defined in Miso.Flow.Types

type Rep XYPosition = D1 ('MetaData "XYPosition" "Miso.Flow.Types" "miso-flow-0.1.0.0-inplace" 'False) (C1 ('MetaCons "XYPosition" 'PrefixI 'True) (S1 ('MetaSel ('Just "xyX") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 Double) :*: S1 ('MetaSel ('Just "xyY") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 Double)))

xy :: Double -> Double -> XYPosition Source #

Shorthand constructor.

data XYZPosition Source #

Constructors

XYZPosition 

Fields

Instances

Instances details
Generic XYZPosition Source # 
Instance details

Defined in Miso.Flow.Types

Associated Types

type Rep XYZPosition 
Instance details

Defined in Miso.Flow.Types

type Rep XYZPosition = D1 ('MetaData "XYZPosition" "Miso.Flow.Types" "miso-flow-0.1.0.0-inplace" 'False) (C1 ('MetaCons "XYZPosition" 'PrefixI 'True) (S1 ('MetaSel ('Just "xyzX") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 Double) :*: (S1 ('MetaSel ('Just "xyzY") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 Double) :*: S1 ('MetaSel ('Just "xyzZ") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 Double))))
Show XYZPosition Source # 
Instance details

Defined in Miso.Flow.Types

Eq XYZPosition Source # 
Instance details

Defined in Miso.Flow.Types

Ord XYZPosition Source # 
Instance details

Defined in Miso.Flow.Types

type Rep XYZPosition Source # 
Instance details

Defined in Miso.Flow.Types

type Rep XYZPosition = D1 ('MetaData "XYZPosition" "Miso.Flow.Types" "miso-flow-0.1.0.0-inplace" 'False) (C1 ('MetaCons "XYZPosition" 'PrefixI 'True) (S1 ('MetaSel ('Just "xyzX") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 Double) :*: (S1 ('MetaSel ('Just "xyzY") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 Double) :*: S1 ('MetaSel ('Just "xyzZ") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 Double))))

data Dimensions Source #

Instances

Instances details
Generic Dimensions Source # 
Instance details

Defined in Miso.Flow.Types

Associated Types

type Rep Dimensions 
Instance details

Defined in Miso.Flow.Types

type Rep Dimensions = D1 ('MetaData "Dimensions" "Miso.Flow.Types" "miso-flow-0.1.0.0-inplace" 'False) (C1 ('MetaCons "Dimensions" 'PrefixI 'True) (S1 ('MetaSel ('Just "dimensionsWidth") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 Double) :*: S1 ('MetaSel ('Just "dimensionsHeight") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 Double)))
Show Dimensions Source # 
Instance details

Defined in Miso.Flow.Types

Eq Dimensions Source # 
Instance details

Defined in Miso.Flow.Types

Ord Dimensions Source # 
Instance details

Defined in Miso.Flow.Types

FromJSON Dimensions Source # 
Instance details

Defined in Miso.Flow.Types

ToJSON Dimensions Source # 
Instance details

Defined in Miso.Flow.Types

type Rep Dimensions Source # 
Instance details

Defined in Miso.Flow.Types

type Rep Dimensions = D1 ('MetaData "Dimensions" "Miso.Flow.Types" "miso-flow-0.1.0.0-inplace" 'False) (C1 ('MetaCons "Dimensions" 'PrefixI 'True) (S1 ('MetaSel ('Just "dimensionsWidth") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 Double) :*: S1 ('MetaSel ('Just "dimensionsHeight") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 Double)))

data Rect Source #

Rect = Dimensions & XYPosition.

Constructors

Rect 

Instances

Instances details
Generic Rect Source # 
Instance details

Defined in Miso.Flow.Types

Associated Types

type Rep Rect 
Instance details

Defined in Miso.Flow.Types

Methods

from :: Rect -> Rep Rect x #

to :: Rep Rect x -> Rect #

Show Rect Source # 
Instance details

Defined in Miso.Flow.Types

Methods

showsPrec :: Int -> Rect -> ShowS #

show :: Rect -> String #

showList :: [Rect] -> ShowS #

Eq Rect Source # 
Instance details

Defined in Miso.Flow.Types

Methods

(==) :: Rect -> Rect -> Bool #

(/=) :: Rect -> Rect -> Bool #

Ord Rect Source # 
Instance details

Defined in Miso.Flow.Types

Methods

compare :: Rect -> Rect -> Ordering #

(<) :: Rect -> Rect -> Bool #

(<=) :: Rect -> Rect -> Bool #

(>) :: Rect -> Rect -> Bool #

(>=) :: Rect -> Rect -> Bool #

max :: Rect -> Rect -> Rect #

min :: Rect -> Rect -> Rect #

FromJSON Rect Source # 
Instance details

Defined in Miso.Flow.Types

ToJSON Rect Source # 
Instance details

Defined in Miso.Flow.Types

type Rep Rect Source # 
Instance details

Defined in Miso.Flow.Types

data Box Source #

A box given by its top-left and bottom-right corners.

Constructors

Box 

Fields

Instances

Instances details
Generic Box Source # 
Instance details

Defined in Miso.Flow.Types

Associated Types

type Rep Box 
Instance details

Defined in Miso.Flow.Types

Methods

from :: Box -> Rep Box x #

to :: Rep Box x -> Box #

Show Box Source # 
Instance details

Defined in Miso.Flow.Types

Methods

showsPrec :: Int -> Box -> ShowS #

show :: Box -> String #

showList :: [Box] -> ShowS #

Eq Box Source # 
Instance details

Defined in Miso.Flow.Types

Methods

(==) :: Box -> Box -> Bool #

(/=) :: Box -> Box -> Bool #

Ord Box Source # 
Instance details

Defined in Miso.Flow.Types

Methods

compare :: Box -> Box -> Ordering #

(<) :: Box -> Box -> Bool #

(<=) :: Box -> Box -> Bool #

(>) :: Box -> Box -> Bool #

(>=) :: Box -> Box -> Bool #

max :: Box -> Box -> Box #

min :: Box -> Box -> Box #

type Rep Box Source # 
Instance details

Defined in Miso.Flow.Types

type Transform = Viewport Source #

In @xyflow/system a Transform is the tuple [x, y, zoom] — the same three numbers as a Viewport; only the intent differs.

data CoordinateExtent Source #

Two points describing the top-left and bottom-right corners of a bounding area.

Instances

Instances details
Generic CoordinateExtent Source # 
Instance details

Defined in Miso.Flow.Types

Associated Types

type Rep CoordinateExtent 
Instance details

Defined in Miso.Flow.Types

type Rep CoordinateExtent = D1 ('MetaData "CoordinateExtent" "Miso.Flow.Types" "miso-flow-0.1.0.0-inplace" 'False) (C1 ('MetaCons "CoordinateExtent" 'PrefixI 'True) ((S1 ('MetaSel ('Just "extentMinX") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 Double) :*: S1 ('MetaSel ('Just "extentMinY") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 Double)) :*: (S1 ('MetaSel ('Just "extentMaxX") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 Double) :*: S1 ('MetaSel ('Just "extentMaxY") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 Double))))
Show CoordinateExtent Source # 
Instance details

Defined in Miso.Flow.Types

Eq CoordinateExtent Source # 
Instance details

Defined in Miso.Flow.Types

Ord CoordinateExtent Source # 
Instance details

Defined in Miso.Flow.Types

FromJSON CoordinateExtent Source # 
Instance details

Defined in Miso.Flow.Types

ToJSON CoordinateExtent Source # 
Instance details

Defined in Miso.Flow.Types

type Rep CoordinateExtent Source # 
Instance details

Defined in Miso.Flow.Types

type Rep CoordinateExtent = D1 ('MetaData "CoordinateExtent" "Miso.Flow.Types" "miso-flow-0.1.0.0-inplace" 'False) (C1 ('MetaCons "CoordinateExtent" 'PrefixI 'True) ((S1 ('MetaSel ('Just "extentMinX") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 Double) :*: S1 ('MetaSel ('Just "extentMinY") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 Double)) :*: (S1 ('MetaSel ('Just "extentMaxX") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 Double) :*: S1 ('MetaSel ('Just "extentMaxY") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 Double))))

data NodeExtent Source #

A node's extent field: either clamped to its parent or to explicit coordinates (TS: 'parent' | CoordinateExtent).

Instances

Instances details
Generic NodeExtent Source # 
Instance details

Defined in Miso.Flow.Types

Associated Types

type Rep NodeExtent 
Instance details

Defined in Miso.Flow.Types

type Rep NodeExtent = D1 ('MetaData "NodeExtent" "Miso.Flow.Types" "miso-flow-0.1.0.0-inplace" 'False) (C1 ('MetaCons "ExtentParent" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "ExtentCoordinates" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 CoordinateExtent)))
Show NodeExtent Source # 
Instance details

Defined in Miso.Flow.Types

Eq NodeExtent Source # 
Instance details

Defined in Miso.Flow.Types

Ord NodeExtent Source # 
Instance details

Defined in Miso.Flow.Types

FromJSON NodeExtent Source # 
Instance details

Defined in Miso.Flow.Types

ToJSON NodeExtent Source # 
Instance details

Defined in Miso.Flow.Types

type Rep NodeExtent Source # 
Instance details

Defined in Miso.Flow.Types

type Rep NodeExtent = D1 ('MetaData "NodeExtent" "Miso.Flow.Types" "miso-flow-0.1.0.0-inplace" 'False) (C1 ('MetaCons "ExtentParent" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "ExtentCoordinates" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 CoordinateExtent)))

coordinateExtent :: (Double, Double) -> (Double, Double) -> CoordinateExtent Source #

Smart constructor from the TS nested-pair shape [[x1,y1],[x2,y2]].

Viewport (types/general.ts)

data Viewport Source #

Position and zoom of the flow pane.

Constructors

Viewport 

Instances

Instances details
Generic Viewport Source # 
Instance details

Defined in Miso.Flow.Types

Associated Types

type Rep Viewport 
Instance details

Defined in Miso.Flow.Types

type Rep Viewport = D1 ('MetaData "Viewport" "Miso.Flow.Types" "miso-flow-0.1.0.0-inplace" 'False) (C1 ('MetaCons "Viewport" 'PrefixI 'True) (S1 ('MetaSel ('Just "viewportX") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 Double) :*: (S1 ('MetaSel ('Just "viewportY") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 Double) :*: S1 ('MetaSel ('Just "viewportZoom") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 Double))))

Methods

from :: Viewport -> Rep Viewport x #

to :: Rep Viewport x -> Viewport #

Show Viewport Source # 
Instance details

Defined in Miso.Flow.Types

Eq Viewport Source # 
Instance details

Defined in Miso.Flow.Types

Ord Viewport Source # 
Instance details

Defined in Miso.Flow.Types

FromJSON Viewport Source # 
Instance details

Defined in Miso.Flow.Types

ToJSON Viewport Source # 
Instance details

Defined in Miso.Flow.Types

type Rep Viewport Source # 
Instance details

Defined in Miso.Flow.Types

type Rep Viewport = D1 ('MetaData "Viewport" "Miso.Flow.Types" "miso-flow-0.1.0.0-inplace" 'False) (C1 ('MetaCons "Viewport" 'PrefixI 'True) (S1 ('MetaSel ('Just "viewportX") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 Double) :*: (S1 ('MetaSel ('Just "viewportY") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 Double) :*: S1 ('MetaSel ('Just "viewportZoom") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 Double))))

viewportToTransform :: Viewport -> Transform Source #

Transform and Viewport are the same three numbers in this port.

data SnapGrid Source #

Constructors

SnapGrid 

Fields

Instances

Instances details
Generic SnapGrid Source # 
Instance details

Defined in Miso.Flow.Types

Associated Types

type Rep SnapGrid 
Instance details

Defined in Miso.Flow.Types

type Rep SnapGrid = D1 ('MetaData "SnapGrid" "Miso.Flow.Types" "miso-flow-0.1.0.0-inplace" 'False) (C1 ('MetaCons "SnapGrid" 'PrefixI 'True) (S1 ('MetaSel ('Just "snapGridX") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 Double) :*: S1 ('MetaSel ('Just "snapGridY") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 Double)))

Methods

from :: SnapGrid -> Rep SnapGrid x #

to :: Rep SnapGrid x -> SnapGrid #

Show SnapGrid Source # 
Instance details

Defined in Miso.Flow.Types

Eq SnapGrid Source # 
Instance details

Defined in Miso.Flow.Types

Ord SnapGrid Source # 
Instance details

Defined in Miso.Flow.Types

FromJSON SnapGrid Source # 
Instance details

Defined in Miso.Flow.Types

ToJSON SnapGrid Source # 
Instance details

Defined in Miso.Flow.Types

type Rep SnapGrid Source # 
Instance details

Defined in Miso.Flow.Types

type Rep SnapGrid = D1 ('MetaData "SnapGrid" "Miso.Flow.Types" "miso-flow-0.1.0.0-inplace" 'False) (C1 ('MetaCons "SnapGrid" 'PrefixI 'True) (S1 ('MetaSel ('Just "snapGridX") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 Double) :*: S1 ('MetaSel ('Just "snapGridY") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 Double)))

data PanelPosition Source #

Corner / side of the pane used by panel-like components.

Instances

Instances details
Generic PanelPosition Source # 
Instance details

Defined in Miso.Flow.Types

Associated Types

type Rep PanelPosition 
Instance details

Defined in Miso.Flow.Types

type Rep PanelPosition = D1 ('MetaData "PanelPosition" "Miso.Flow.Types" "miso-flow-0.1.0.0-inplace" 'False) (((C1 ('MetaCons "TopLeft" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "TopCenter" 'PrefixI 'False) (U1 :: Type -> Type)) :+: (C1 ('MetaCons "TopRight" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "BottomLeft" 'PrefixI 'False) (U1 :: Type -> Type))) :+: ((C1 ('MetaCons "BottomCenter" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "BottomRight" 'PrefixI 'False) (U1 :: Type -> Type)) :+: (C1 ('MetaCons "CenterLeft" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "CenterRight" 'PrefixI 'False) (U1 :: Type -> Type))))
Show PanelPosition Source # 
Instance details

Defined in Miso.Flow.Types

Eq PanelPosition Source # 
Instance details

Defined in Miso.Flow.Types

Ord PanelPosition Source # 
Instance details

Defined in Miso.Flow.Types

type Rep PanelPosition Source # 
Instance details

Defined in Miso.Flow.Types

type Rep PanelPosition = D1 ('MetaData "PanelPosition" "Miso.Flow.Types" "miso-flow-0.1.0.0-inplace" 'False) (((C1 ('MetaCons "TopLeft" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "TopCenter" 'PrefixI 'False) (U1 :: Type -> Type)) :+: (C1 ('MetaCons "TopRight" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "BottomLeft" 'PrefixI 'False) (U1 :: Type -> Type))) :+: ((C1 ('MetaCons "BottomCenter" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "BottomRight" 'PrefixI 'False) (U1 :: Type -> Type)) :+: (C1 ('MetaCons "CenterLeft" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "CenterRight" 'PrefixI 'False) (U1 :: Type -> Type))))

data SelectionMode Source #

Instances

Instances details
Generic SelectionMode Source # 
Instance details

Defined in Miso.Flow.Types

Associated Types

type Rep SelectionMode 
Instance details

Defined in Miso.Flow.Types

type Rep SelectionMode = D1 ('MetaData "SelectionMode" "Miso.Flow.Types" "miso-flow-0.1.0.0-inplace" 'False) (C1 ('MetaCons "SelectionPartial" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "SelectionFull" 'PrefixI 'False) (U1 :: Type -> Type))
Show SelectionMode Source # 
Instance details

Defined in Miso.Flow.Types

Eq SelectionMode Source # 
Instance details

Defined in Miso.Flow.Types

Ord SelectionMode Source # 
Instance details

Defined in Miso.Flow.Types

type Rep SelectionMode Source # 
Instance details

Defined in Miso.Flow.Types

type Rep SelectionMode = D1 ('MetaData "SelectionMode" "Miso.Flow.Types" "miso-flow-0.1.0.0-inplace" 'False) (C1 ('MetaCons "SelectionPartial" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "SelectionFull" 'PrefixI 'False) (U1 :: Type -> Type))

data SelectionRect Source #

Instances

Instances details
Generic SelectionRect Source # 
Instance details

Defined in Miso.Flow.Types

Associated Types

type Rep SelectionRect 
Instance details

Defined in Miso.Flow.Types

type Rep SelectionRect = D1 ('MetaData "SelectionRect" "Miso.Flow.Types" "miso-flow-0.1.0.0-inplace" 'False) (C1 ('MetaCons "SelectionRect" 'PrefixI 'True) (S1 ('MetaSel ('Just "selectionRect") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 Rect) :*: (S1 ('MetaSel ('Just "selectionStartX") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 Double) :*: S1 ('MetaSel ('Just "selectionStartY") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 Double))))
Show SelectionRect Source # 
Instance details

Defined in Miso.Flow.Types

Eq SelectionRect Source # 
Instance details

Defined in Miso.Flow.Types

Ord SelectionRect Source # 
Instance details

Defined in Miso.Flow.Types

type Rep SelectionRect Source # 
Instance details

Defined in Miso.Flow.Types

type Rep SelectionRect = D1 ('MetaData "SelectionRect" "Miso.Flow.Types" "miso-flow-0.1.0.0-inplace" 'False) (C1 ('MetaCons "SelectionRect" 'PrefixI 'True) (S1 ('MetaSel ('Just "selectionRect") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 Rect) :*: (S1 ('MetaSel ('Just "selectionStartX") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 Double) :*: S1 ('MetaSel ('Just "selectionStartY") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 Double))))

data PanOnScrollMode Source #

Instances

Instances details
Generic PanOnScrollMode Source # 
Instance details

Defined in Miso.Flow.Types

Associated Types

type Rep PanOnScrollMode 
Instance details

Defined in Miso.Flow.Types

type Rep PanOnScrollMode = D1 ('MetaData "PanOnScrollMode" "Miso.Flow.Types" "miso-flow-0.1.0.0-inplace" 'False) (C1 ('MetaCons "PanOnScrollFree" 'PrefixI 'False) (U1 :: Type -> Type) :+: (C1 ('MetaCons "PanOnScrollVertical" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "PanOnScrollHorizontal" 'PrefixI 'False) (U1 :: Type -> Type)))
Show PanOnScrollMode Source # 
Instance details

Defined in Miso.Flow.Types

Eq PanOnScrollMode Source # 
Instance details

Defined in Miso.Flow.Types

Ord PanOnScrollMode Source # 
Instance details

Defined in Miso.Flow.Types

ToJSON PanOnScrollMode Source # 
Instance details

Defined in Miso.Flow.Types

type Rep PanOnScrollMode Source # 
Instance details

Defined in Miso.Flow.Types

type Rep PanOnScrollMode = D1 ('MetaData "PanOnScrollMode" "Miso.Flow.Types" "miso-flow-0.1.0.0-inplace" 'False) (C1 ('MetaCons "PanOnScrollFree" 'PrefixI 'False) (U1 :: Type -> Type) :+: (C1 ('MetaCons "PanOnScrollVertical" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "PanOnScrollHorizontal" 'PrefixI 'False) (U1 :: Type -> Type)))

data PanOnDrag Source #

TS: panOnDrag: boolean | number[] — enabled/disabled, or the list of mouse buttons that pan.

Constructors

PanOnDrag !Bool 
PanOnDragButtons ![Int] 

Instances

Instances details
Generic PanOnDrag Source # 
Instance details

Defined in Miso.Flow.Types

Associated Types

type Rep PanOnDrag 
Instance details

Defined in Miso.Flow.Types

type Rep PanOnDrag = D1 ('MetaData "PanOnDrag" "Miso.Flow.Types" "miso-flow-0.1.0.0-inplace" 'False) (C1 ('MetaCons "PanOnDrag" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 Bool)) :+: C1 ('MetaCons "PanOnDragButtons" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 [Int])))
Show PanOnDrag Source # 
Instance details

Defined in Miso.Flow.Types

Eq PanOnDrag Source # 
Instance details

Defined in Miso.Flow.Types

ToJSON PanOnDrag Source # 
Instance details

Defined in Miso.Flow.Types

type Rep PanOnDrag Source # 
Instance details

Defined in Miso.Flow.Types

type Rep PanOnDrag = D1 ('MetaData "PanOnDrag" "Miso.Flow.Types" "miso-flow-0.1.0.0-inplace" 'False) (C1 ('MetaCons "PanOnDrag" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 Bool)) :+: C1 ('MetaCons "PanOnDragButtons" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 [Int])))

data ColorMode Source #

Instances

Instances details
Generic ColorMode Source # 
Instance details

Defined in Miso.Flow.Types

Associated Types

type Rep ColorMode 
Instance details

Defined in Miso.Flow.Types

type Rep ColorMode = D1 ('MetaData "ColorMode" "Miso.Flow.Types" "miso-flow-0.1.0.0-inplace" 'False) (C1 ('MetaCons "ColorModeLight" 'PrefixI 'False) (U1 :: Type -> Type) :+: (C1 ('MetaCons "ColorModeDark" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "ColorModeSystem" 'PrefixI 'False) (U1 :: Type -> Type)))
Show ColorMode Source # 
Instance details

Defined in Miso.Flow.Types

Eq ColorMode Source # 
Instance details

Defined in Miso.Flow.Types

Ord ColorMode Source # 
Instance details

Defined in Miso.Flow.Types

type Rep ColorMode Source # 
Instance details

Defined in Miso.Flow.Types

type Rep ColorMode = D1 ('MetaData "ColorMode" "Miso.Flow.Types" "miso-flow-0.1.0.0-inplace" 'False) (C1 ('MetaCons "ColorModeLight" 'PrefixI 'False) (U1 :: Type -> Type) :+: (C1 ('MetaCons "ColorModeDark" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "ColorModeSystem" 'PrefixI 'False) (U1 :: Type -> Type)))

data ZIndexMode Source #

How z-indexes of nodes and edges are computed.

Instances

Instances details
Generic ZIndexMode Source # 
Instance details

Defined in Miso.Flow.Types

Associated Types

type Rep ZIndexMode 
Instance details

Defined in Miso.Flow.Types

type Rep ZIndexMode = D1 ('MetaData "ZIndexMode" "Miso.Flow.Types" "miso-flow-0.1.0.0-inplace" 'False) (C1 ('MetaCons "ZIndexAuto" 'PrefixI 'False) (U1 :: Type -> Type) :+: (C1 ('MetaCons "ZIndexBasic" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "ZIndexManual" 'PrefixI 'False) (U1 :: Type -> Type)))
Show ZIndexMode Source # 
Instance details

Defined in Miso.Flow.Types

Eq ZIndexMode Source # 
Instance details

Defined in Miso.Flow.Types

Ord ZIndexMode Source # 
Instance details

Defined in Miso.Flow.Types

ToJSON ZIndexMode Source # 
Instance details

Defined in Miso.Flow.Types

type Rep ZIndexMode Source # 
Instance details

Defined in Miso.Flow.Types

type Rep ZIndexMode = D1 ('MetaData "ZIndexMode" "Miso.Flow.Types" "miso-flow-0.1.0.0-inplace" 'False) (C1 ('MetaCons "ZIndexAuto" 'PrefixI 'False) (U1 :: Type -> Type) :+: (C1 ('MetaCons "ZIndexBasic" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "ZIndexManual" 'PrefixI 'False) (U1 :: Type -> Type)))

data Align Source #

Instances

Instances details
Generic Align Source # 
Instance details

Defined in Miso.Flow.Types

Associated Types

type Rep Align 
Instance details

Defined in Miso.Flow.Types

type Rep Align = D1 ('MetaData "Align" "Miso.Flow.Types" "miso-flow-0.1.0.0-inplace" 'False) (C1 ('MetaCons "AlignCenter" 'PrefixI 'False) (U1 :: Type -> Type) :+: (C1 ('MetaCons "AlignStart" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "AlignEnd" 'PrefixI 'False) (U1 :: Type -> Type)))

Methods

from :: Align -> Rep Align x #

to :: Rep Align x -> Align #

Show Align Source # 
Instance details

Defined in Miso.Flow.Types

Methods

showsPrec :: Int -> Align -> ShowS #

show :: Align -> String #

showList :: [Align] -> ShowS #

Eq Align Source # 
Instance details

Defined in Miso.Flow.Types

Methods

(==) :: Align -> Align -> Bool #

(/=) :: Align -> Align -> Bool #

Ord Align Source # 
Instance details

Defined in Miso.Flow.Types

Methods

compare :: Align -> Align -> Ordering #

(<) :: Align -> Align -> Bool #

(<=) :: Align -> Align -> Bool #

(>) :: Align -> Align -> Bool #

(>=) :: Align -> Align -> Bool #

max :: Align -> Align -> Align #

min :: Align -> Align -> Align #

type Rep Align Source # 
Instance details

Defined in Miso.Flow.Types

type Rep Align = D1 ('MetaData "Align" "Miso.Flow.Types" "miso-flow-0.1.0.0-inplace" 'False) (C1 ('MetaCons "AlignCenter" 'PrefixI 'False) (U1 :: Type -> Type) :+: (C1 ('MetaCons "AlignStart" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "AlignEnd" 'PrefixI 'False) (U1 :: Type -> Type)))

Connections (types/general.ts)

data Connection Source #

Minimal description of an edge between two nodes.

Instances

Instances details
Generic Connection Source # 
Instance details

Defined in Miso.Flow.Types

Associated Types

type Rep Connection 
Instance details

Defined in Miso.Flow.Types

type Rep Connection = D1 ('MetaData "Connection" "Miso.Flow.Types" "miso-flow-0.1.0.0-inplace" 'False) (C1 ('MetaCons "Connection" 'PrefixI 'True) ((S1 ('MetaSel ('Just "connectionSource") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 NodeId) :*: S1 ('MetaSel ('Just "connectionTarget") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 NodeId)) :*: (S1 ('MetaSel ('Just "connectionSourceHandle") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 (Maybe MisoString)) :*: S1 ('MetaSel ('Just "connectionTargetHandle") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 (Maybe MisoString)))))
Show Connection Source # 
Instance details

Defined in Miso.Flow.Types

Eq Connection Source # 
Instance details

Defined in Miso.Flow.Types

Ord Connection Source # 
Instance details

Defined in Miso.Flow.Types

FromJSON Connection Source # 
Instance details

Defined in Miso.Flow.Types

ToJSON Connection Source # 
Instance details

Defined in Miso.Flow.Types

type Rep Connection Source # 
Instance details

Defined in Miso.Flow.Types

type Rep Connection = D1 ('MetaData "Connection" "Miso.Flow.Types" "miso-flow-0.1.0.0-inplace" 'False) (C1 ('MetaCons "Connection" 'PrefixI 'True) ((S1 ('MetaSel ('Just "connectionSource") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 NodeId) :*: S1 ('MetaSel ('Just "connectionTarget") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 NodeId)) :*: (S1 ('MetaSel ('Just "connectionSourceHandle") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 (Maybe MisoString)) :*: S1 ('MetaSel ('Just "connectionTargetHandle") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 (Maybe MisoString)))))

connection :: NodeId -> NodeId -> Connection Source #

Handle-less connection between two nodes.

data HandleConnection Source #

A Connection together with the id of the edge realizing it.

Instances

Instances details
Generic HandleConnection Source # 
Instance details

Defined in Miso.Flow.Types

Associated Types

type Rep HandleConnection 
Instance details

Defined in Miso.Flow.Types

type Rep HandleConnection = D1 ('MetaData "HandleConnection" "Miso.Flow.Types" "miso-flow-0.1.0.0-inplace" 'False) (C1 ('MetaCons "HandleConnection" 'PrefixI 'True) (S1 ('MetaSel ('Just "handleConnection") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 Connection) :*: S1 ('MetaSel ('Just "handleConnectionEdgeId") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 EdgeId)))
Show HandleConnection Source # 
Instance details

Defined in Miso.Flow.Types

Eq HandleConnection Source # 
Instance details

Defined in Miso.Flow.Types

Ord HandleConnection Source # 
Instance details

Defined in Miso.Flow.Types

type Rep HandleConnection Source # 
Instance details

Defined in Miso.Flow.Types

type Rep HandleConnection = D1 ('MetaData "HandleConnection" "Miso.Flow.Types" "miso-flow-0.1.0.0-inplace" 'False) (C1 ('MetaCons "HandleConnection" 'PrefixI 'True) (S1 ('MetaSel ('Just "handleConnection") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 Connection) :*: S1 ('MetaSel ('Just "handleConnectionEdgeId") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 EdgeId)))

data ConnectionMode Source #

Strict only allows source-to-target edges; Loose also allows source-to-source and target-to-target.

Instances

Instances details
Generic ConnectionMode Source # 
Instance details

Defined in Miso.Flow.Types

Associated Types

type Rep ConnectionMode 
Instance details

Defined in Miso.Flow.Types

type Rep ConnectionMode = D1 ('MetaData "ConnectionMode" "Miso.Flow.Types" "miso-flow-0.1.0.0-inplace" 'False) (C1 ('MetaCons "ConnectionModeStrict" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "ConnectionModeLoose" 'PrefixI 'False) (U1 :: Type -> Type))
Show ConnectionMode Source # 
Instance details

Defined in Miso.Flow.Types

Eq ConnectionMode Source # 
Instance details

Defined in Miso.Flow.Types

Ord ConnectionMode Source # 
Instance details

Defined in Miso.Flow.Types

ToJSON ConnectionMode Source # 
Instance details

Defined in Miso.Flow.Types

type Rep ConnectionMode Source # 
Instance details

Defined in Miso.Flow.Types

type Rep ConnectionMode = D1 ('MetaData "ConnectionMode" "Miso.Flow.Types" "miso-flow-0.1.0.0-inplace" 'False) (C1 ('MetaCons "ConnectionModeStrict" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "ConnectionModeLoose" 'PrefixI 'False) (U1 :: Type -> Type))

data ConnectionState n Source #

State of the connection gesture; port of ConnectionState.

Instances

Instances details
Functor ConnectionState Source # 
Instance details

Defined in Miso.Flow.Types

Methods

fmap :: (a -> b) -> ConnectionState a -> ConnectionState b #

(<$) :: a -> ConnectionState b -> ConnectionState a #

Generic (ConnectionState n) Source # 
Instance details

Defined in Miso.Flow.Types

Associated Types

type Rep (ConnectionState n) 
Instance details

Defined in Miso.Flow.Types

type Rep (ConnectionState n) = D1 ('MetaData "ConnectionState" "Miso.Flow.Types" "miso-flow-0.1.0.0-inplace" 'False) (C1 ('MetaCons "NoConnection" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "InProgress" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 (ConnectionInProgress n))))
Show n => Show (ConnectionState n) Source # 
Instance details

Defined in Miso.Flow.Types

Eq n => Eq (ConnectionState n) Source # 
Instance details

Defined in Miso.Flow.Types

type Rep (ConnectionState n) Source # 
Instance details

Defined in Miso.Flow.Types

type Rep (ConnectionState n) = D1 ('MetaData "ConnectionState" "Miso.Flow.Types" "miso-flow-0.1.0.0-inplace" 'False) (C1 ('MetaCons "NoConnection" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "InProgress" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 (ConnectionInProgress n))))

data ConnectionInProgress n Source #

Everything known about an ongoing connection gesture.

Instances

Instances details
Functor ConnectionInProgress Source # 
Instance details

Defined in Miso.Flow.Types

Generic (ConnectionInProgress n) Source # 
Instance details

Defined in Miso.Flow.Types

Show n => Show (ConnectionInProgress n) Source # 
Instance details

Defined in Miso.Flow.Types

Eq n => Eq (ConnectionInProgress n) Source # 
Instance details

Defined in Miso.Flow.Types

type Rep (ConnectionInProgress n) Source # 
Instance details

Defined in Miso.Flow.Types

data FinalConnectionState n Source #

Connection state handed to onConnectEnd: like ConnectionInProgress but toPosition may be absent when the gesture did not end on a handle.

Instances

Instances details
Functor FinalConnectionState Source # 
Instance details

Defined in Miso.Flow.Types

Generic (FinalConnectionState n) Source # 
Instance details

Defined in Miso.Flow.Types

Associated Types

type Rep (FinalConnectionState n) 
Instance details

Defined in Miso.Flow.Types

Show n => Show (FinalConnectionState n) Source # 
Instance details

Defined in Miso.Flow.Types

Eq n => Eq (FinalConnectionState n) Source # 
Instance details

Defined in Miso.Flow.Types

type Rep (FinalConnectionState n) Source # 
Instance details

Defined in Miso.Flow.Types

data OnConnectStartParams Source #

Instances

Instances details
Generic OnConnectStartParams Source # 
Instance details

Defined in Miso.Flow.Types

Associated Types

type Rep OnConnectStartParams 
Instance details

Defined in Miso.Flow.Types

type Rep OnConnectStartParams = D1 ('MetaData "OnConnectStartParams" "Miso.Flow.Types" "miso-flow-0.1.0.0-inplace" 'False) (C1 ('MetaCons "OnConnectStartParams" 'PrefixI 'True) (S1 ('MetaSel ('Just "onConnectStartNodeId") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 (Maybe NodeId)) :*: (S1 ('MetaSel ('Just "onConnectStartHandleId") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 (Maybe MisoString)) :*: S1 ('MetaSel ('Just "onConnectStartHandleType") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 (Maybe HandleType)))))
Show OnConnectStartParams Source # 
Instance details

Defined in Miso.Flow.Types

Eq OnConnectStartParams Source # 
Instance details

Defined in Miso.Flow.Types

FromJSON OnConnectStartParams Source # 
Instance details

Defined in Miso.Flow.Types

ToJSON OnConnectStartParams Source # 
Instance details

Defined in Miso.Flow.Types

type Rep OnConnectStartParams Source # 
Instance details

Defined in Miso.Flow.Types

type Rep OnConnectStartParams = D1 ('MetaData "OnConnectStartParams" "Miso.Flow.Types" "miso-flow-0.1.0.0-inplace" 'False) (C1 ('MetaCons "OnConnectStartParams" 'PrefixI 'True) (S1 ('MetaSel ('Just "onConnectStartNodeId") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 (Maybe NodeId)) :*: (S1 ('MetaSel ('Just "onConnectStartHandleId") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 (Maybe MisoString)) :*: S1 ('MetaSel ('Just "onConnectStartHandleType") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 (Maybe HandleType)))))

Handles (types/handles.ts)

data HandleType Source #

Constructors

SourceHandle 
TargetHandle 

Instances

Instances details
Generic HandleType Source # 
Instance details

Defined in Miso.Flow.Types

Associated Types

type Rep HandleType 
Instance details

Defined in Miso.Flow.Types

type Rep HandleType = D1 ('MetaData "HandleType" "Miso.Flow.Types" "miso-flow-0.1.0.0-inplace" 'False) (C1 ('MetaCons "SourceHandle" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "TargetHandle" 'PrefixI 'False) (U1 :: Type -> Type))
Show HandleType Source # 
Instance details

Defined in Miso.Flow.Types

Eq HandleType Source # 
Instance details

Defined in Miso.Flow.Types

Ord HandleType Source # 
Instance details

Defined in Miso.Flow.Types

FromJSON HandleType Source # 
Instance details

Defined in Miso.Flow.Types

ToJSON HandleType Source # 
Instance details

Defined in Miso.Flow.Types

type Rep HandleType Source # 
Instance details

Defined in Miso.Flow.Types

type Rep HandleType = D1 ('MetaData "HandleType" "Miso.Flow.Types" "miso-flow-0.1.0.0-inplace" 'False) (C1 ('MetaCons "SourceHandle" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "TargetHandle" 'PrefixI 'False) (U1 :: Type -> Type))

data Handle Source #

A measured handle attached to a node; port of Handle in types/handles.ts. x/y are relative to the node.

Constructors

Handle 

Instances

Instances details
Generic Handle Source # 
Instance details

Defined in Miso.Flow.Types

Methods

from :: Handle -> Rep Handle x #

to :: Rep Handle x -> Handle #

Show Handle Source # 
Instance details

Defined in Miso.Flow.Types

Eq Handle Source # 
Instance details

Defined in Miso.Flow.Types

Methods

(==) :: Handle -> Handle -> Bool #

(/=) :: Handle -> Handle -> Bool #

Ord Handle Source # 
Instance details

Defined in Miso.Flow.Types

FromJSON Handle Source # 
Instance details

Defined in Miso.Flow.Types

ToJSON Handle Source # 
Instance details

Defined in Miso.Flow.Types

type Rep Handle Source # 
Instance details

Defined in Miso.Flow.Types

data NodeHandle Source #

User-declared handle on a Node (handles field); width/height are optional (defaulted to 1 by the store).

Instances

Instances details
Generic NodeHandle Source # 
Instance details

Defined in Miso.Flow.Types

Show NodeHandle Source # 
Instance details

Defined in Miso.Flow.Types

Eq NodeHandle Source # 
Instance details

Defined in Miso.Flow.Types

Ord NodeHandle Source # 
Instance details

Defined in Miso.Flow.Types

FromJSON NodeHandle Source # 
Instance details

Defined in Miso.Flow.Types

ToJSON NodeHandle Source # 
Instance details

Defined in Miso.Flow.Types

type Rep NodeHandle Source # 
Instance details

Defined in Miso.Flow.Types

Nodes (types/nodes.ts)

data Node n Source #

Framework independent node data structure; port of NodeBase. node is parameterized over the type of its user data.

Instances

Instances details
Functor Node Source # 
Instance details

Defined in Miso.Flow.Types

Methods

fmap :: (a -> b) -> Node a -> Node b #

(<$) :: a -> Node b -> Node a #

Generic (Node n) Source # 
Instance details

Defined in Miso.Flow.Types

Associated Types

type Rep (Node n) 
Instance details

Defined in Miso.Flow.Types

type Rep (Node n) = D1 ('MetaData "Node" "Miso.Flow.Types" "miso-flow-0.1.0.0-inplace" 'False) (C1 ('MetaCons "Node" 'PrefixI 'True) ((((S1 ('MetaSel ('Just "nodeId") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 NodeId) :*: (S1 ('MetaSel ('Just "nodePosition") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 XYPosition) :*: S1 ('MetaSel ('Just "nodeData") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 n))) :*: (S1 ('MetaSel ('Just "nodeType") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 (Maybe MisoString)) :*: (S1 ('MetaSel ('Just "nodeSourcePosition") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 (Maybe Position)) :*: S1 ('MetaSel ('Just "nodeTargetPosition") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 (Maybe Position))))) :*: ((S1 ('MetaSel ('Just "nodeHidden") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 Bool) :*: (S1 ('MetaSel ('Just "nodeSelected") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 Bool) :*: S1 ('MetaSel ('Just "nodeDragging") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 Bool))) :*: ((S1 ('MetaSel ('Just "nodeDraggable") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 (Maybe Bool)) :*: S1 ('MetaSel ('Just "nodeSelectable") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 (Maybe Bool))) :*: (S1 ('MetaSel ('Just "nodeConnectable") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 (Maybe Bool)) :*: S1 ('MetaSel ('Just "nodeDeletable") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 (Maybe Bool)))))) :*: (((S1 ('MetaSel ('Just "nodeDragHandle") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 (Maybe MisoString)) :*: (S1 ('MetaSel ('Just "nodeWidth") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 (Maybe Double)) :*: S1 ('MetaSel ('Just "nodeHeight") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 (Maybe Double)))) :*: ((S1 ('MetaSel ('Just "nodeInitialWidth") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 (Maybe Double)) :*: S1 ('MetaSel ('Just "nodeInitialHeight") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 (Maybe Double))) :*: (S1 ('MetaSel ('Just "nodeParentId") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 (Maybe NodeId)) :*: S1 ('MetaSel ('Just "nodeZIndex") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 (Maybe Double))))) :*: ((S1 ('MetaSel ('Just "nodeExtent") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 (Maybe NodeExtent)) :*: (S1 ('MetaSel ('Just "nodeExpandParent") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 Bool) :*: S1 ('MetaSel ('Just "nodeAriaLabel") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 (Maybe MisoString)))) :*: ((S1 ('MetaSel ('Just "nodeOrigin") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 (Maybe NodeOrigin)) :*: S1 ('MetaSel ('Just "nodeHandles") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 (Maybe [NodeHandle]))) :*: (S1 ('MetaSel ('Just "nodeMeasured") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 (Maybe Measured)) :*: S1 ('MetaSel ('Just "nodeResizing") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 Bool)))))))

Methods

from :: Node n -> Rep (Node n) x #

to :: Rep (Node n) x -> Node n #

Show n => Show (Node n) Source # 
Instance details

Defined in Miso.Flow.Types

Methods

showsPrec :: Int -> Node n -> ShowS #

show :: Node n -> String #

showList :: [Node n] -> ShowS #

Eq n => Eq (Node n) Source # 
Instance details

Defined in Miso.Flow.Types

Methods

(==) :: Node n -> Node n -> Bool #

(/=) :: Node n -> Node n -> Bool #

ToJSON (Node n) Source #

Serialize a Node for the JavaScript store. The user data payload deliberately stays in Haskell; everything the gesture system needs (geometry, flags, handles) crosses the bridge. Optional fields are omitted when unset.

Instance details

Defined in Miso.Flow.Types

Methods

toJSON :: Node n -> Value Source #

toJSONList :: [Node n] -> Value Source #

type Rep (Node n) Source # 
Instance details

Defined in Miso.Flow.Types

type Rep (Node n) = D1 ('MetaData "Node" "Miso.Flow.Types" "miso-flow-0.1.0.0-inplace" 'False) (C1 ('MetaCons "Node" 'PrefixI 'True) ((((S1 ('MetaSel ('Just "nodeId") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 NodeId) :*: (S1 ('MetaSel ('Just "nodePosition") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 XYPosition) :*: S1 ('MetaSel ('Just "nodeData") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 n))) :*: (S1 ('MetaSel ('Just "nodeType") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 (Maybe MisoString)) :*: (S1 ('MetaSel ('Just "nodeSourcePosition") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 (Maybe Position)) :*: S1 ('MetaSel ('Just "nodeTargetPosition") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 (Maybe Position))))) :*: ((S1 ('MetaSel ('Just "nodeHidden") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 Bool) :*: (S1 ('MetaSel ('Just "nodeSelected") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 Bool) :*: S1 ('MetaSel ('Just "nodeDragging") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 Bool))) :*: ((S1 ('MetaSel ('Just "nodeDraggable") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 (Maybe Bool)) :*: S1 ('MetaSel ('Just "nodeSelectable") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 (Maybe Bool))) :*: (S1 ('MetaSel ('Just "nodeConnectable") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 (Maybe Bool)) :*: S1 ('MetaSel ('Just "nodeDeletable") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 (Maybe Bool)))))) :*: (((S1 ('MetaSel ('Just "nodeDragHandle") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 (Maybe MisoString)) :*: (S1 ('MetaSel ('Just "nodeWidth") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 (Maybe Double)) :*: S1 ('MetaSel ('Just "nodeHeight") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 (Maybe Double)))) :*: ((S1 ('MetaSel ('Just "nodeInitialWidth") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 (Maybe Double)) :*: S1 ('MetaSel ('Just "nodeInitialHeight") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 (Maybe Double))) :*: (S1 ('MetaSel ('Just "nodeParentId") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 (Maybe NodeId)) :*: S1 ('MetaSel ('Just "nodeZIndex") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 (Maybe Double))))) :*: ((S1 ('MetaSel ('Just "nodeExtent") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 (Maybe NodeExtent)) :*: (S1 ('MetaSel ('Just "nodeExpandParent") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 Bool) :*: S1 ('MetaSel ('Just "nodeAriaLabel") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 (Maybe MisoString)))) :*: ((S1 ('MetaSel ('Just "nodeOrigin") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 (Maybe NodeOrigin)) :*: S1 ('MetaSel ('Just "nodeHandles") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 (Maybe [NodeHandle]))) :*: (S1 ('MetaSel ('Just "nodeMeasured") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 (Maybe Measured)) :*: S1 ('MetaSel ('Just "nodeResizing") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 Bool)))))))

node :: NodeId -> XYPosition -> n -> Node n Source #

Node with default field values.

data Measured Source #

Optionally measured dimensions (measured field).

Constructors

Measured 

Instances

Instances details
Generic Measured Source # 
Instance details

Defined in Miso.Flow.Types

Associated Types

type Rep Measured 
Instance details

Defined in Miso.Flow.Types

type Rep Measured = D1 ('MetaData "Measured" "Miso.Flow.Types" "miso-flow-0.1.0.0-inplace" 'False) (C1 ('MetaCons "Measured" 'PrefixI 'True) (S1 ('MetaSel ('Just "measuredWidth") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 (Maybe Double)) :*: S1 ('MetaSel ('Just "measuredHeight") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 (Maybe Double))))

Methods

from :: Measured -> Rep Measured x #

to :: Rep Measured x -> Measured #

Show Measured Source # 
Instance details

Defined in Miso.Flow.Types

Eq Measured Source # 
Instance details

Defined in Miso.Flow.Types

Ord Measured Source # 
Instance details

Defined in Miso.Flow.Types

FromJSON Measured Source # 
Instance details

Defined in Miso.Flow.Types

ToJSON Measured Source # 
Instance details

Defined in Miso.Flow.Types

type Rep Measured Source # 
Instance details

Defined in Miso.Flow.Types

type Rep Measured = D1 ('MetaData "Measured" "Miso.Flow.Types" "miso-flow-0.1.0.0-inplace" 'False) (C1 ('MetaCons "Measured" 'PrefixI 'True) (S1 ('MetaSel ('Just "measuredWidth") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 (Maybe Double)) :*: S1 ('MetaSel ('Just "measuredHeight") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 (Maybe Double))))

data NodeOrigin Source #

Origin of a node relative to its position: (0,0) top-left, (0.5,0.5) center, (1,1) bottom-right.

Constructors

NodeOrigin 

Fields

Instances

Instances details
Generic NodeOrigin Source # 
Instance details

Defined in Miso.Flow.Types

Associated Types

type Rep NodeOrigin 
Instance details

Defined in Miso.Flow.Types

type Rep NodeOrigin = D1 ('MetaData "NodeOrigin" "Miso.Flow.Types" "miso-flow-0.1.0.0-inplace" 'False) (C1 ('MetaCons "NodeOrigin" 'PrefixI 'True) (S1 ('MetaSel ('Just "originX") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 Double) :*: S1 ('MetaSel ('Just "originY") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 Double)))
Show NodeOrigin Source # 
Instance details

Defined in Miso.Flow.Types

Eq NodeOrigin Source # 
Instance details

Defined in Miso.Flow.Types

Ord NodeOrigin Source # 
Instance details

Defined in Miso.Flow.Types

FromJSON NodeOrigin Source # 
Instance details

Defined in Miso.Flow.Types

ToJSON NodeOrigin Source # 
Instance details

Defined in Miso.Flow.Types

type Rep NodeOrigin Source # 
Instance details

Defined in Miso.Flow.Types

type Rep NodeOrigin = D1 ('MetaData "NodeOrigin" "Miso.Flow.Types" "miso-flow-0.1.0.0-inplace" 'False) (C1 ('MetaCons "NodeOrigin" 'PrefixI 'True) (S1 ('MetaSel ('Just "originX") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 Double) :*: S1 ('MetaSel ('Just "originY") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 Double)))

data InternalNode n Source #

A user Node enriched with runtime internals; port of InternalNodeBase. The user node is kept whole in internalUserNode (TS keeps it at internals.userNode).

Instances

Instances details
Functor InternalNode Source # 
Instance details

Defined in Miso.Flow.Types

Methods

fmap :: (a -> b) -> InternalNode a -> InternalNode b #

(<$) :: a -> InternalNode b -> InternalNode a #

Generic (InternalNode n) Source # 
Instance details

Defined in Miso.Flow.Types

Associated Types

type Rep (InternalNode n) 
Instance details

Defined in Miso.Flow.Types

type Rep (InternalNode n) = D1 ('MetaData "InternalNode" "Miso.Flow.Types" "miso-flow-0.1.0.0-inplace" 'False) (C1 ('MetaCons "InternalNode" 'PrefixI 'True) ((S1 ('MetaSel ('Just "internalUser") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 (Node n)) :*: (S1 ('MetaSel ('Just "internalMeasured") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 Measured) :*: S1 ('MetaSel ('Just "internalPositionAbsolute") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 XYPosition))) :*: ((S1 ('MetaSel ('Just "internalZ") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 Double) :*: S1 ('MetaSel ('Just "internalRootParentIndex") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 (Maybe Int))) :*: (S1 ('MetaSel ('Just "internalHandleBounds") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 (Maybe NodeHandleBounds)) :*: S1 ('MetaSel ('Just "internalBounds") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 (Maybe NodeBounds))))))

Methods

from :: InternalNode n -> Rep (InternalNode n) x #

to :: Rep (InternalNode n) x -> InternalNode n #

Show n => Show (InternalNode n) Source # 
Instance details

Defined in Miso.Flow.Types

Eq n => Eq (InternalNode n) Source # 
Instance details

Defined in Miso.Flow.Types

type Rep (InternalNode n) Source # 
Instance details

Defined in Miso.Flow.Types

type Rep (InternalNode n) = D1 ('MetaData "InternalNode" "Miso.Flow.Types" "miso-flow-0.1.0.0-inplace" 'False) (C1 ('MetaCons "InternalNode" 'PrefixI 'True) ((S1 ('MetaSel ('Just "internalUser") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 (Node n)) :*: (S1 ('MetaSel ('Just "internalMeasured") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 Measured) :*: S1 ('MetaSel ('Just "internalPositionAbsolute") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 XYPosition))) :*: ((S1 ('MetaSel ('Just "internalZ") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 Double) :*: S1 ('MetaSel ('Just "internalRootParentIndex") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 (Maybe Int))) :*: (S1 ('MetaSel ('Just "internalHandleBounds") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 (Maybe NodeHandleBounds)) :*: S1 ('MetaSel ('Just "internalBounds") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 (Maybe NodeBounds))))))

internalUserNode :: InternalNode n -> Node n Source #

TS: node.internals.userNode.

data NodeHandleBounds Source #

Handles of a node grouped by type, as measured from the DOM.

Constructors

NodeHandleBounds 

Fields

Instances

Instances details
Generic NodeHandleBounds Source # 
Instance details

Defined in Miso.Flow.Types

Associated Types

type Rep NodeHandleBounds 
Instance details

Defined in Miso.Flow.Types

type Rep NodeHandleBounds = D1 ('MetaData "NodeHandleBounds" "Miso.Flow.Types" "miso-flow-0.1.0.0-inplace" 'False) (C1 ('MetaCons "NodeHandleBounds" 'PrefixI 'True) (S1 ('MetaSel ('Just "nhbSource") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 (Maybe [Handle])) :*: S1 ('MetaSel ('Just "nhbTarget") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 (Maybe [Handle]))))
Show NodeHandleBounds Source # 
Instance details

Defined in Miso.Flow.Types

Eq NodeHandleBounds Source # 
Instance details

Defined in Miso.Flow.Types

FromJSON NodeHandleBounds Source # 
Instance details

Defined in Miso.Flow.Types

ToJSON NodeHandleBounds Source # 
Instance details

Defined in Miso.Flow.Types

type Rep NodeHandleBounds Source # 
Instance details

Defined in Miso.Flow.Types

type Rep NodeHandleBounds = D1 ('MetaData "NodeHandleBounds" "Miso.Flow.Types" "miso-flow-0.1.0.0-inplace" 'False) (C1 ('MetaCons "NodeHandleBounds" 'PrefixI 'True) (S1 ('MetaSel ('Just "nhbSource") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 (Maybe [Handle])) :*: S1 ('MetaSel ('Just "nhbTarget") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 (Maybe [Handle]))))

data NodeBounds Source #

Constructors

NodeBounds 

Fields

Instances

Instances details
Generic NodeBounds Source # 
Instance details

Defined in Miso.Flow.Types

Associated Types

type Rep NodeBounds 
Instance details

Defined in Miso.Flow.Types

Show NodeBounds Source # 
Instance details

Defined in Miso.Flow.Types

Eq NodeBounds Source # 
Instance details

Defined in Miso.Flow.Types

type Rep NodeBounds Source # 
Instance details

Defined in Miso.Flow.Types

data NodeDragItem Source #

Slice of a node captured when a drag starts; port of NodeDragItem.

Instances

Instances details
Generic NodeDragItem Source # 
Instance details

Defined in Miso.Flow.Types

Associated Types

type Rep NodeDragItem 
Instance details

Defined in Miso.Flow.Types

Show NodeDragItem Source # 
Instance details

Defined in Miso.Flow.Types

Eq NodeDragItem Source # 
Instance details

Defined in Miso.Flow.Types

type Rep NodeDragItem Source # 
Instance details

Defined in Miso.Flow.Types

data InternalNodeUpdate Source #

Request to re-measure a node; port of InternalNodeUpdate (the DOM element itself stays on the JS side of the bridge).

Instances

Instances details
Generic InternalNodeUpdate Source # 
Instance details

Defined in Miso.Flow.Types

Associated Types

type Rep InternalNodeUpdate 
Instance details

Defined in Miso.Flow.Types

type Rep InternalNodeUpdate = D1 ('MetaData "InternalNodeUpdate" "Miso.Flow.Types" "miso-flow-0.1.0.0-inplace" 'False) (C1 ('MetaCons "InternalNodeUpdate" 'PrefixI 'True) (S1 ('MetaSel ('Just "internalUpdateId") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 NodeId) :*: S1 ('MetaSel ('Just "internalUpdateForce") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 Bool)))
Show InternalNodeUpdate Source # 
Instance details

Defined in Miso.Flow.Types

Eq InternalNodeUpdate Source # 
Instance details

Defined in Miso.Flow.Types

type Rep InternalNodeUpdate Source # 
Instance details

Defined in Miso.Flow.Types

type Rep InternalNodeUpdate = D1 ('MetaData "InternalNodeUpdate" "Miso.Flow.Types" "miso-flow-0.1.0.0-inplace" 'False) (C1 ('MetaCons "InternalNodeUpdate" 'PrefixI 'True) (S1 ('MetaSel ('Just "internalUpdateId") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 NodeId) :*: S1 ('MetaSel ('Just "internalUpdateForce") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 Bool)))

Edges (types/edges.ts)

data Edge e Source #

Framework independent edge data structure; port of EdgeBase, parameterized over the edge's user data.

Instances

Instances details
Functor Edge Source # 
Instance details

Defined in Miso.Flow.Types

Methods

fmap :: (a -> b) -> Edge a -> Edge b #

(<$) :: a -> Edge b -> Edge a #

Generic (Edge e) Source # 
Instance details

Defined in Miso.Flow.Types

Associated Types

type Rep (Edge e) 
Instance details

Defined in Miso.Flow.Types

type Rep (Edge e) = D1 ('MetaData "Edge" "Miso.Flow.Types" "miso-flow-0.1.0.0-inplace" 'False) (C1 ('MetaCons "Edge" 'PrefixI 'True) ((((S1 ('MetaSel ('Just "edgeId") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 EdgeId) :*: S1 ('MetaSel ('Just "edgeSource") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 NodeId)) :*: (S1 ('MetaSel ('Just "edgeTarget") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 NodeId) :*: S1 ('MetaSel ('Just "edgeType") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 (Maybe MisoString)))) :*: ((S1 ('MetaSel ('Just "edgeSourceHandle") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 (Maybe MisoString)) :*: S1 ('MetaSel ('Just "edgeTargetHandle") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 (Maybe MisoString))) :*: (S1 ('MetaSel ('Just "edgeAnimated") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 Bool) :*: S1 ('MetaSel ('Just "edgeHidden") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 Bool)))) :*: (((S1 ('MetaSel ('Just "edgeDeletable") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 (Maybe Bool)) :*: S1 ('MetaSel ('Just "edgeSelectable") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 (Maybe Bool))) :*: (S1 ('MetaSel ('Just "edgeData") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 (Maybe e)) :*: S1 ('MetaSel ('Just "edgeSelected") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 Bool))) :*: ((S1 ('MetaSel ('Just "edgeMarkerStart") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 (Maybe EdgeMarkerType)) :*: S1 ('MetaSel ('Just "edgeMarkerEnd") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 (Maybe EdgeMarkerType))) :*: (S1 ('MetaSel ('Just "edgeZIndex") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 (Maybe Double)) :*: (S1 ('MetaSel ('Just "edgeAriaLabel") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 (Maybe MisoString)) :*: S1 ('MetaSel ('Just "edgeInteractionWidth") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 (Maybe Double))))))))

Methods

from :: Edge e -> Rep (Edge e) x #

to :: Rep (Edge e) x -> Edge e #

Show e => Show (Edge e) Source # 
Instance details

Defined in Miso.Flow.Types

Methods

showsPrec :: Int -> Edge e -> ShowS #

show :: Edge e -> String #

showList :: [Edge e] -> ShowS #

Eq e => Eq (Edge e) Source # 
Instance details

Defined in Miso.Flow.Types

Methods

(==) :: Edge e -> Edge e -> Bool #

(/=) :: Edge e -> Edge e -> Bool #

ToJSON (Edge e) Source #

Serialize an Edge for the JavaScript store (again without the user data payload); optional fields are omitted when unset.

Instance details

Defined in Miso.Flow.Types

Methods

toJSON :: Edge e -> Value Source #

toJSONList :: [Edge e] -> Value Source #

type Rep (Edge e) Source # 
Instance details

Defined in Miso.Flow.Types

type Rep (Edge e) = D1 ('MetaData "Edge" "Miso.Flow.Types" "miso-flow-0.1.0.0-inplace" 'False) (C1 ('MetaCons "Edge" 'PrefixI 'True) ((((S1 ('MetaSel ('Just "edgeId") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 EdgeId) :*: S1 ('MetaSel ('Just "edgeSource") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 NodeId)) :*: (S1 ('MetaSel ('Just "edgeTarget") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 NodeId) :*: S1 ('MetaSel ('Just "edgeType") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 (Maybe MisoString)))) :*: ((S1 ('MetaSel ('Just "edgeSourceHandle") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 (Maybe MisoString)) :*: S1 ('MetaSel ('Just "edgeTargetHandle") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 (Maybe MisoString))) :*: (S1 ('MetaSel ('Just "edgeAnimated") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 Bool) :*: S1 ('MetaSel ('Just "edgeHidden") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 Bool)))) :*: (((S1 ('MetaSel ('Just "edgeDeletable") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 (Maybe Bool)) :*: S1 ('MetaSel ('Just "edgeSelectable") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 (Maybe Bool))) :*: (S1 ('MetaSel ('Just "edgeData") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 (Maybe e)) :*: S1 ('MetaSel ('Just "edgeSelected") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 Bool))) :*: ((S1 ('MetaSel ('Just "edgeMarkerStart") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 (Maybe EdgeMarkerType)) :*: S1 ('MetaSel ('Just "edgeMarkerEnd") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 (Maybe EdgeMarkerType))) :*: (S1 ('MetaSel ('Just "edgeZIndex") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 (Maybe Double)) :*: (S1 ('MetaSel ('Just "edgeAriaLabel") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 (Maybe MisoString)) :*: S1 ('MetaSel ('Just "edgeInteractionWidth") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 (Maybe Double))))))))

edge :: EdgeId -> NodeId -> NodeId -> Edge e Source #

Edge with default field values.

data ConnectionLineType Source #

Style of the connection line drawn while connecting.

Instances

Instances details
Generic ConnectionLineType Source # 
Instance details

Defined in Miso.Flow.Types

Associated Types

type Rep ConnectionLineType 
Instance details

Defined in Miso.Flow.Types

type Rep ConnectionLineType = D1 ('MetaData "ConnectionLineType" "Miso.Flow.Types" "miso-flow-0.1.0.0-inplace" 'False) ((C1 ('MetaCons "ConnectionLineBezier" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "ConnectionLineStraight" 'PrefixI 'False) (U1 :: Type -> Type)) :+: (C1 ('MetaCons "ConnectionLineStep" 'PrefixI 'False) (U1 :: Type -> Type) :+: (C1 ('MetaCons "ConnectionLineSmoothStep" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "ConnectionLineSimpleBezier" 'PrefixI 'False) (U1 :: Type -> Type))))
Show ConnectionLineType Source # 
Instance details

Defined in Miso.Flow.Types

Eq ConnectionLineType Source # 
Instance details

Defined in Miso.Flow.Types

Ord ConnectionLineType Source # 
Instance details

Defined in Miso.Flow.Types

type Rep ConnectionLineType Source # 
Instance details

Defined in Miso.Flow.Types

type Rep ConnectionLineType = D1 ('MetaData "ConnectionLineType" "Miso.Flow.Types" "miso-flow-0.1.0.0-inplace" 'False) ((C1 ('MetaCons "ConnectionLineBezier" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "ConnectionLineStraight" 'PrefixI 'False) (U1 :: Type -> Type)) :+: (C1 ('MetaCons "ConnectionLineStep" 'PrefixI 'False) (U1 :: Type -> Type) :+: (C1 ('MetaCons "ConnectionLineSmoothStep" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "ConnectionLineSimpleBezier" 'PrefixI 'False) (U1 :: Type -> Type))))

data EdgeMarker Source #

Marker configuration on either end of an edge.

Instances

Instances details
Generic EdgeMarker Source # 
Instance details

Defined in Miso.Flow.Types

Associated Types

type Rep EdgeMarker 
Instance details

Defined in Miso.Flow.Types

Show EdgeMarker Source # 
Instance details

Defined in Miso.Flow.Types

Eq EdgeMarker Source # 
Instance details

Defined in Miso.Flow.Types

Ord EdgeMarker Source # 
Instance details

Defined in Miso.Flow.Types

type Rep EdgeMarker Source # 
Instance details

Defined in Miso.Flow.Types

data EdgeMarkerType Source #

TS: string | EdgeMarker — either a reference to an existing SVG marker id or an inline marker description.

Instances

Instances details
Generic EdgeMarkerType Source # 
Instance details

Defined in Miso.Flow.Types

Associated Types

type Rep EdgeMarkerType 
Instance details

Defined in Miso.Flow.Types

type Rep EdgeMarkerType = D1 ('MetaData "EdgeMarkerType" "Miso.Flow.Types" "miso-flow-0.1.0.0-inplace" 'False) (C1 ('MetaCons "MarkerRef" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 MisoString)) :+: C1 ('MetaCons "Marker" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 EdgeMarker)))
Show EdgeMarkerType Source # 
Instance details

Defined in Miso.Flow.Types

Eq EdgeMarkerType Source # 
Instance details

Defined in Miso.Flow.Types

Ord EdgeMarkerType Source # 
Instance details

Defined in Miso.Flow.Types

type Rep EdgeMarkerType Source # 
Instance details

Defined in Miso.Flow.Types

type Rep EdgeMarkerType = D1 ('MetaData "EdgeMarkerType" "Miso.Flow.Types" "miso-flow-0.1.0.0-inplace" 'False) (C1 ('MetaCons "MarkerRef" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 MisoString)) :+: C1 ('MetaCons "Marker" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 EdgeMarker)))

data MarkerType Source #

Instances

Instances details
Generic MarkerType Source # 
Instance details

Defined in Miso.Flow.Types

Associated Types

type Rep MarkerType 
Instance details

Defined in Miso.Flow.Types

type Rep MarkerType = D1 ('MetaData "MarkerType" "Miso.Flow.Types" "miso-flow-0.1.0.0-inplace" 'False) (C1 ('MetaCons "MarkerArrow" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "MarkerArrowClosed" 'PrefixI 'False) (U1 :: Type -> Type))
Show MarkerType Source # 
Instance details

Defined in Miso.Flow.Types

Eq MarkerType Source # 
Instance details

Defined in Miso.Flow.Types

Ord MarkerType Source # 
Instance details

Defined in Miso.Flow.Types

type Rep MarkerType Source # 
Instance details

Defined in Miso.Flow.Types

type Rep MarkerType = D1 ('MetaData "MarkerType" "Miso.Flow.Types" "miso-flow-0.1.0.0-inplace" 'False) (C1 ('MetaCons "MarkerArrow" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "MarkerArrowClosed" 'PrefixI 'False) (U1 :: Type -> Type))

data MarkerProps Source #

An EdgeMarker with the id it renders under.

Instances

Instances details
Generic MarkerProps Source # 
Instance details

Defined in Miso.Flow.Types

Associated Types

type Rep MarkerProps 
Instance details

Defined in Miso.Flow.Types

type Rep MarkerProps = D1 ('MetaData "MarkerProps" "Miso.Flow.Types" "miso-flow-0.1.0.0-inplace" 'False) (C1 ('MetaCons "MarkerProps" 'PrefixI 'True) (S1 ('MetaSel ('Just "markerPropsId") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 MisoString) :*: S1 ('MetaSel ('Just "markerPropsMarker") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 EdgeMarker)))
Show MarkerProps Source # 
Instance details

Defined in Miso.Flow.Types

Eq MarkerProps Source # 
Instance details

Defined in Miso.Flow.Types

type Rep MarkerProps Source # 
Instance details

Defined in Miso.Flow.Types

type Rep MarkerProps = D1 ('MetaData "MarkerProps" "Miso.Flow.Types" "miso-flow-0.1.0.0-inplace" 'False) (C1 ('MetaCons "MarkerProps" 'PrefixI 'True) (S1 ('MetaSel ('Just "markerPropsId") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 MisoString) :*: S1 ('MetaSel ('Just "markerPropsMarker") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 EdgeMarker)))

data EdgePosition Source #

Resolved start/end coordinates and positions of an edge.

Instances

Instances details
Generic EdgePosition Source # 
Instance details

Defined in Miso.Flow.Types

Associated Types

type Rep EdgePosition 
Instance details

Defined in Miso.Flow.Types

Show EdgePosition Source # 
Instance details

Defined in Miso.Flow.Types

Eq EdgePosition Source # 
Instance details

Defined in Miso.Flow.Types

type Rep EdgePosition Source # 
Instance details

Defined in Miso.Flow.Types

type ConnectionLookup = Map MisoString (Map MisoString HandleConnection) Source #

Lookup of connections keyed by nodeId, nodeId-type and nodeId-type-handleId; values keyed by a per-connection key.

Path options (types/edges.ts)

newtype BezierPathOptions Source #

Constructors

BezierPathOptions 

Instances

Instances details
Generic BezierPathOptions Source # 
Instance details

Defined in Miso.Flow.Types

Associated Types

type Rep BezierPathOptions 
Instance details

Defined in Miso.Flow.Types

type Rep BezierPathOptions = D1 ('MetaData "BezierPathOptions" "Miso.Flow.Types" "miso-flow-0.1.0.0-inplace" 'True) (C1 ('MetaCons "BezierPathOptions" 'PrefixI 'True) (S1 ('MetaSel ('Just "bezierCurvature") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Double)))
Show BezierPathOptions Source # 
Instance details

Defined in Miso.Flow.Types

Eq BezierPathOptions Source # 
Instance details

Defined in Miso.Flow.Types

type Rep BezierPathOptions Source # 
Instance details

Defined in Miso.Flow.Types

type Rep BezierPathOptions = D1 ('MetaData "BezierPathOptions" "Miso.Flow.Types" "miso-flow-0.1.0.0-inplace" 'True) (C1 ('MetaCons "BezierPathOptions" 'PrefixI 'True) (S1 ('MetaSel ('Just "bezierCurvature") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Double)))

data SmoothStepPathOptions Source #

Instances

Instances details
Generic SmoothStepPathOptions Source # 
Instance details

Defined in Miso.Flow.Types

Associated Types

type Rep SmoothStepPathOptions 
Instance details

Defined in Miso.Flow.Types

type Rep SmoothStepPathOptions = D1 ('MetaData "SmoothStepPathOptions" "Miso.Flow.Types" "miso-flow-0.1.0.0-inplace" 'False) (C1 ('MetaCons "SmoothStepPathOptions" 'PrefixI 'True) ((S1 ('MetaSel ('Just "smoothStepOffset") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 Double) :*: S1 ('MetaSel ('Just "smoothStepBorderRadius") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 Double)) :*: (S1 ('MetaSel ('Just "smoothStepStepPosition") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 Double) :*: (S1 ('MetaSel ('Just "smoothStepCenterX") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 (Maybe Double)) :*: S1 ('MetaSel ('Just "smoothStepCenterY") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 (Maybe Double))))))
Show SmoothStepPathOptions Source # 
Instance details

Defined in Miso.Flow.Types

Eq SmoothStepPathOptions Source # 
Instance details

Defined in Miso.Flow.Types

type Rep SmoothStepPathOptions Source # 
Instance details

Defined in Miso.Flow.Types

type Rep SmoothStepPathOptions = D1 ('MetaData "SmoothStepPathOptions" "Miso.Flow.Types" "miso-flow-0.1.0.0-inplace" 'False) (C1 ('MetaCons "SmoothStepPathOptions" 'PrefixI 'True) ((S1 ('MetaSel ('Just "smoothStepOffset") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 Double) :*: S1 ('MetaSel ('Just "smoothStepBorderRadius") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 Double)) :*: (S1 ('MetaSel ('Just "smoothStepStepPosition") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 Double) :*: (S1 ('MetaSel ('Just "smoothStepCenterX") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 (Maybe Double)) :*: S1 ('MetaSel ('Just "smoothStepCenterY") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 (Maybe Double))))))

newtype StepPathOptions Source #

Constructors

StepPathOptions 

Fields

Instances

Instances details
Generic StepPathOptions Source # 
Instance details

Defined in Miso.Flow.Types

Associated Types

type Rep StepPathOptions 
Instance details

Defined in Miso.Flow.Types

type Rep StepPathOptions = D1 ('MetaData "StepPathOptions" "Miso.Flow.Types" "miso-flow-0.1.0.0-inplace" 'True) (C1 ('MetaCons "StepPathOptions" 'PrefixI 'True) (S1 ('MetaSel ('Just "stepOffset") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Double)))
Show StepPathOptions Source # 
Instance details

Defined in Miso.Flow.Types

Eq StepPathOptions Source # 
Instance details

Defined in Miso.Flow.Types

type Rep StepPathOptions Source # 
Instance details

Defined in Miso.Flow.Types

type Rep StepPathOptions = D1 ('MetaData "StepPathOptions" "Miso.Flow.Types" "miso-flow-0.1.0.0-inplace" 'True) (C1 ('MetaCons "StepPathOptions" 'PrefixI 'True) (S1 ('MetaSel ('Just "stepOffset") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Double)))

Padding & fit view (types/general.ts)

data PaddingWithUnit Source #

A padding value with an optional unit (TS: number | '10px' | '10%').

Constructors

PaddingRatio !Double

bare number, fraction of the viewport

PaddingPx !Double
"…px"
PaddingPercent !Double
"…%"

Instances

Instances details
Generic PaddingWithUnit Source # 
Instance details

Defined in Miso.Flow.Types

Associated Types

type Rep PaddingWithUnit 
Instance details

Defined in Miso.Flow.Types

type Rep PaddingWithUnit = D1 ('MetaData "PaddingWithUnit" "Miso.Flow.Types" "miso-flow-0.1.0.0-inplace" 'False) (C1 ('MetaCons "PaddingRatio" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 Double)) :+: (C1 ('MetaCons "PaddingPx" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 Double)) :+: C1 ('MetaCons "PaddingPercent" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 Double))))
Show PaddingWithUnit Source # 
Instance details

Defined in Miso.Flow.Types

Eq PaddingWithUnit Source # 
Instance details

Defined in Miso.Flow.Types

type Rep PaddingWithUnit Source # 
Instance details

Defined in Miso.Flow.Types

type Rep PaddingWithUnit = D1 ('MetaData "PaddingWithUnit" "Miso.Flow.Types" "miso-flow-0.1.0.0-inplace" 'False) (C1 ('MetaCons "PaddingRatio" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 Double)) :+: (C1 ('MetaCons "PaddingPx" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 Double)) :+: C1 ('MetaCons "PaddingPercent" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 Double))))

data Padding Source #

Padding around bounds when fitting the viewport.

Instances

Instances details
Generic Padding Source # 
Instance details

Defined in Miso.Flow.Types

Methods

from :: Padding -> Rep Padding x #

to :: Rep Padding x -> Padding #

Show Padding Source # 
Instance details

Defined in Miso.Flow.Types

Eq Padding Source # 
Instance details

Defined in Miso.Flow.Types

Methods

(==) :: Padding -> Padding -> Bool #

(/=) :: Padding -> Padding -> Bool #

type Rep Padding Source # 
Instance details

Defined in Miso.Flow.Types

data FitViewOptions Source #

Instances

Instances details
Generic FitViewOptions Source # 
Instance details

Defined in Miso.Flow.Types

Associated Types

type Rep FitViewOptions 
Instance details

Defined in Miso.Flow.Types

type Rep FitViewOptions = D1 ('MetaData "FitViewOptions" "Miso.Flow.Types" "miso-flow-0.1.0.0-inplace" 'False) (C1 ('MetaCons "FitViewOptions" 'PrefixI 'True) ((S1 ('MetaSel ('Just "fitViewPadding") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 Padding) :*: (S1 ('MetaSel ('Just "fitViewIncludeHiddenNodes") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 Bool) :*: S1 ('MetaSel ('Just "fitViewMinZoom") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 (Maybe Double)))) :*: ((S1 ('MetaSel ('Just "fitViewMaxZoom") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 (Maybe Double)) :*: S1 ('MetaSel ('Just "fitViewDuration") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 (Maybe Double))) :*: (S1 ('MetaSel ('Just "fitViewInterpolate") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 Interpolation) :*: S1 ('MetaSel ('Just "fitViewNodes") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 (Maybe [NodeId]))))))
Show FitViewOptions Source # 
Instance details

Defined in Miso.Flow.Types

Eq FitViewOptions Source # 
Instance details

Defined in Miso.Flow.Types

type Rep FitViewOptions Source # 
Instance details

Defined in Miso.Flow.Types

type Rep FitViewOptions = D1 ('MetaData "FitViewOptions" "Miso.Flow.Types" "miso-flow-0.1.0.0-inplace" 'False) (C1 ('MetaCons "FitViewOptions" 'PrefixI 'True) ((S1 ('MetaSel ('Just "fitViewPadding") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 Padding) :*: (S1 ('MetaSel ('Just "fitViewIncludeHiddenNodes") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 Bool) :*: S1 ('MetaSel ('Just "fitViewMinZoom") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 (Maybe Double)))) :*: ((S1 ('MetaSel ('Just "fitViewMaxZoom") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 (Maybe Double)) :*: S1 ('MetaSel ('Just "fitViewDuration") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 (Maybe Double))) :*: (S1 ('MetaSel ('Just "fitViewInterpolate") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 Interpolation) :*: S1 ('MetaSel ('Just "fitViewNodes") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 (Maybe [NodeId]))))))

data ViewportHelperOptions Source #

Instances

Instances details
Generic ViewportHelperOptions Source # 
Instance details

Defined in Miso.Flow.Types

Associated Types

type Rep ViewportHelperOptions 
Instance details

Defined in Miso.Flow.Types

type Rep ViewportHelperOptions = D1 ('MetaData "ViewportHelperOptions" "Miso.Flow.Types" "miso-flow-0.1.0.0-inplace" 'False) (C1 ('MetaCons "ViewportHelperOptions" 'PrefixI 'True) (S1 ('MetaSel ('Just "vhoDuration") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 (Maybe Double)) :*: S1 ('MetaSel ('Just "vhoInterpolate") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 Interpolation)))
Show ViewportHelperOptions Source # 
Instance details

Defined in Miso.Flow.Types

Eq ViewportHelperOptions Source # 
Instance details

Defined in Miso.Flow.Types

type Rep ViewportHelperOptions Source # 
Instance details

Defined in Miso.Flow.Types

type Rep ViewportHelperOptions = D1 ('MetaData "ViewportHelperOptions" "Miso.Flow.Types" "miso-flow-0.1.0.0-inplace" 'False) (C1 ('MetaCons "ViewportHelperOptions" 'PrefixI 'True) (S1 ('MetaSel ('Just "vhoDuration") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 (Maybe Double)) :*: S1 ('MetaSel ('Just "vhoInterpolate") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 Interpolation)))

data Interpolation Source #

Instances

Instances details
Generic Interpolation Source # 
Instance details

Defined in Miso.Flow.Types

Associated Types

type Rep Interpolation 
Instance details

Defined in Miso.Flow.Types

type Rep Interpolation = D1 ('MetaData "Interpolation" "Miso.Flow.Types" "miso-flow-0.1.0.0-inplace" 'False) (C1 ('MetaCons "InterpolateSmooth" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "InterpolateLinear" 'PrefixI 'False) (U1 :: Type -> Type))
Show Interpolation Source # 
Instance details

Defined in Miso.Flow.Types

Eq Interpolation Source # 
Instance details

Defined in Miso.Flow.Types

ToJSON Interpolation Source # 
Instance details

Defined in Miso.Flow.Types

type Rep Interpolation Source # 
Instance details

Defined in Miso.Flow.Types

type Rep Interpolation = D1 ('MetaData "Interpolation" "Miso.Flow.Types" "miso-flow-0.1.0.0-inplace" 'False) (C1 ('MetaCons "InterpolateSmooth" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "InterpolateLinear" 'PrefixI 'False) (U1 :: Type -> Type))

data SetCenterOptions Source #

Instances

Instances details
Generic SetCenterOptions Source # 
Instance details

Defined in Miso.Flow.Types

Associated Types

type Rep SetCenterOptions 
Instance details

Defined in Miso.Flow.Types

type Rep SetCenterOptions = D1 ('MetaData "SetCenterOptions" "Miso.Flow.Types" "miso-flow-0.1.0.0-inplace" 'False) (C1 ('MetaCons "SetCenterOptions" 'PrefixI 'True) (S1 ('MetaSel ('Just "setCenterZoom") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 (Maybe Double)) :*: S1 ('MetaSel ('Just "setCenterOptions") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 ViewportHelperOptions)))
Show SetCenterOptions Source # 
Instance details

Defined in Miso.Flow.Types

Eq SetCenterOptions Source # 
Instance details

Defined in Miso.Flow.Types

type Rep SetCenterOptions Source # 
Instance details

Defined in Miso.Flow.Types

type Rep SetCenterOptions = D1 ('MetaData "SetCenterOptions" "Miso.Flow.Types" "miso-flow-0.1.0.0-inplace" 'False) (C1 ('MetaCons "SetCenterOptions" 'PrefixI 'True) (S1 ('MetaSel ('Just "setCenterZoom") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 (Maybe Double)) :*: S1 ('MetaSel ('Just "setCenterOptions") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 ViewportHelperOptions)))

data FitBoundsOptions Source #

Instances

Instances details
Generic FitBoundsOptions Source # 
Instance details

Defined in Miso.Flow.Types

Associated Types

type Rep FitBoundsOptions 
Instance details

Defined in Miso.Flow.Types

type Rep FitBoundsOptions = D1 ('MetaData "FitBoundsOptions" "Miso.Flow.Types" "miso-flow-0.1.0.0-inplace" 'False) (C1 ('MetaCons "FitBoundsOptions" 'PrefixI 'True) (S1 ('MetaSel ('Just "fitBoundsPadding") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 Double) :*: S1 ('MetaSel ('Just "fitBoundsOptions") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 ViewportHelperOptions)))
Show FitBoundsOptions Source # 
Instance details

Defined in Miso.Flow.Types

Eq FitBoundsOptions Source # 
Instance details

Defined in Miso.Flow.Types

type Rep FitBoundsOptions Source # 
Instance details

Defined in Miso.Flow.Types

type Rep FitBoundsOptions = D1 ('MetaData "FitBoundsOptions" "Miso.Flow.Types" "miso-flow-0.1.0.0-inplace" 'False) (C1 ('MetaCons "FitBoundsOptions" 'PrefixI 'True) (S1 ('MetaSel ('Just "fitBoundsPadding") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 Double) :*: S1 ('MetaSel ('Just "fitBoundsOptions") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 ViewportHelperOptions)))

Changes (types/changes.ts)

data NodeChange n Source #

Ways a node can change; port of NodeChange in types/changes.ts. Apply with applyNodeChanges.

Constructors

NodeDimensionChange NodeId (Maybe Dimensions) (Maybe Bool) SetAttributes

id, dimensions, resizing, setAttributes

NodePositionChange NodeId (Maybe XYPosition) (Maybe XYPosition) (Maybe Bool)

id, position, positionAbsolute, dragging

NodeSelectionChange NodeId Bool

id, selected

NodeRemoveChange NodeId 
NodeAddChange (Node n) (Maybe Int)

item, index

NodeReplaceChange NodeId (Node n) 

Instances

Instances details
Functor NodeChange Source # 
Instance details

Defined in Miso.Flow.Types

Methods

fmap :: (a -> b) -> NodeChange a -> NodeChange b #

(<$) :: a -> NodeChange b -> NodeChange a #

Generic (NodeChange n) Source # 
Instance details

Defined in Miso.Flow.Types

Associated Types

type Rep (NodeChange n) 
Instance details

Defined in Miso.Flow.Types

type Rep (NodeChange n) = D1 ('MetaData "NodeChange" "Miso.Flow.Types" "miso-flow-0.1.0.0-inplace" 'False) ((C1 ('MetaCons "NodeDimensionChange" 'PrefixI 'False) ((S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 NodeId) :*: S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Dimensions))) :*: (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Bool)) :*: S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 SetAttributes))) :+: (C1 ('MetaCons "NodePositionChange" 'PrefixI 'False) ((S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 NodeId) :*: S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe XYPosition))) :*: (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe XYPosition)) :*: S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Bool)))) :+: C1 ('MetaCons "NodeSelectionChange" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 NodeId) :*: S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Bool)))) :+: (C1 ('MetaCons "NodeRemoveChange" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 NodeId)) :+: (C1 ('MetaCons "NodeAddChange" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Node n)) :*: S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Int))) :+: C1 ('MetaCons "NodeReplaceChange" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 NodeId) :*: S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Node n))))))

Methods

from :: NodeChange n -> Rep (NodeChange n) x #

to :: Rep (NodeChange n) x -> NodeChange n #

Show n => Show (NodeChange n) Source # 
Instance details

Defined in Miso.Flow.Types

Eq n => Eq (NodeChange n) Source # 
Instance details

Defined in Miso.Flow.Types

Methods

(==) :: NodeChange n -> NodeChange n -> Bool #

(/=) :: NodeChange n -> NodeChange n -> Bool #

type Rep (NodeChange n) Source # 
Instance details

Defined in Miso.Flow.Types

type Rep (NodeChange n) = D1 ('MetaData "NodeChange" "Miso.Flow.Types" "miso-flow-0.1.0.0-inplace" 'False) ((C1 ('MetaCons "NodeDimensionChange" 'PrefixI 'False) ((S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 NodeId) :*: S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Dimensions))) :*: (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Bool)) :*: S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 SetAttributes))) :+: (C1 ('MetaCons "NodePositionChange" 'PrefixI 'False) ((S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 NodeId) :*: S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe XYPosition))) :*: (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe XYPosition)) :*: S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Bool)))) :+: C1 ('MetaCons "NodeSelectionChange" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 NodeId) :*: S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Bool)))) :+: (C1 ('MetaCons "NodeRemoveChange" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 NodeId)) :+: (C1 ('MetaCons "NodeAddChange" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Node n)) :*: S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Int))) :+: C1 ('MetaCons "NodeReplaceChange" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 NodeId) :*: S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Node n))))))

data SetAttributes Source #

Port of NodeDimensionChange.setAttributes (TS: boolean | 'width' | 'height').

Constructors

SetAttributesNone

false — only update measured

SetAttributesBoth

true — also set width and height

SetAttributesWidth 
SetAttributesHeight 

Instances

Instances details
Generic SetAttributes Source # 
Instance details

Defined in Miso.Flow.Types

Associated Types

type Rep SetAttributes 
Instance details

Defined in Miso.Flow.Types

type Rep SetAttributes = D1 ('MetaData "SetAttributes" "Miso.Flow.Types" "miso-flow-0.1.0.0-inplace" 'False) ((C1 ('MetaCons "SetAttributesNone" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "SetAttributesBoth" 'PrefixI 'False) (U1 :: Type -> Type)) :+: (C1 ('MetaCons "SetAttributesWidth" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "SetAttributesHeight" 'PrefixI 'False) (U1 :: Type -> Type)))
Show SetAttributes Source # 
Instance details

Defined in Miso.Flow.Types

Eq SetAttributes Source # 
Instance details

Defined in Miso.Flow.Types

type Rep SetAttributes Source # 
Instance details

Defined in Miso.Flow.Types

type Rep SetAttributes = D1 ('MetaData "SetAttributes" "Miso.Flow.Types" "miso-flow-0.1.0.0-inplace" 'False) ((C1 ('MetaCons "SetAttributesNone" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "SetAttributesBoth" 'PrefixI 'False) (U1 :: Type -> Type)) :+: (C1 ('MetaCons "SetAttributesWidth" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "SetAttributesHeight" 'PrefixI 'False) (U1 :: Type -> Type)))

data EdgeChange e Source #

Ways an edge can change; port of EdgeChange. Apply with applyEdgeChanges.

Instances

Instances details
Functor EdgeChange Source # 
Instance details

Defined in Miso.Flow.Types

Methods

fmap :: (a -> b) -> EdgeChange a -> EdgeChange b #

(<$) :: a -> EdgeChange b -> EdgeChange a #

Generic (EdgeChange e) Source # 
Instance details

Defined in Miso.Flow.Types

Methods

from :: EdgeChange e -> Rep (EdgeChange e) x #

to :: Rep (EdgeChange e) x -> EdgeChange e #

Show e => Show (EdgeChange e) Source # 
Instance details

Defined in Miso.Flow.Types

Eq e => Eq (EdgeChange e) Source # 
Instance details

Defined in Miso.Flow.Types

Methods

(==) :: EdgeChange e -> EdgeChange e -> Bool #

(/=) :: EdgeChange e -> EdgeChange e -> Bool #

type Rep (EdgeChange e) Source # 
Instance details

Defined in Miso.Flow.Types

Resizer types (xyresizer/types.ts)

data ControlPosition Source #

Instances

Instances details
Generic ControlPosition Source # 
Instance details

Defined in Miso.Flow.Types

Associated Types

type Rep ControlPosition 
Instance details

Defined in Miso.Flow.Types

type Rep ControlPosition = D1 ('MetaData "ControlPosition" "Miso.Flow.Types" "miso-flow-0.1.0.0-inplace" 'False) ((C1 ('MetaCons "ControlLine" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 ControlLinePosition)) :+: C1 ('MetaCons "ControlTopLeft" 'PrefixI 'False) (U1 :: Type -> Type)) :+: (C1 ('MetaCons "ControlTopRight" 'PrefixI 'False) (U1 :: Type -> Type) :+: (C1 ('MetaCons "ControlBottomLeft" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "ControlBottomRight" 'PrefixI 'False) (U1 :: Type -> Type))))
Show ControlPosition Source # 
Instance details

Defined in Miso.Flow.Types

Eq ControlPosition Source # 
Instance details

Defined in Miso.Flow.Types

Ord ControlPosition Source # 
Instance details

Defined in Miso.Flow.Types

ToJSON ControlPosition Source # 
Instance details

Defined in Miso.Flow.Types

type Rep ControlPosition Source # 
Instance details

Defined in Miso.Flow.Types

type Rep ControlPosition = D1 ('MetaData "ControlPosition" "Miso.Flow.Types" "miso-flow-0.1.0.0-inplace" 'False) ((C1 ('MetaCons "ControlLine" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 ControlLinePosition)) :+: C1 ('MetaCons "ControlTopLeft" 'PrefixI 'False) (U1 :: Type -> Type)) :+: (C1 ('MetaCons "ControlTopRight" 'PrefixI 'False) (U1 :: Type -> Type) :+: (C1 ('MetaCons "ControlBottomLeft" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "ControlBottomRight" 'PrefixI 'False) (U1 :: Type -> Type))))

data ControlLinePosition Source #

Instances

Instances details
Generic ControlLinePosition Source # 
Instance details

Defined in Miso.Flow.Types

Associated Types

type Rep ControlLinePosition 
Instance details

Defined in Miso.Flow.Types

type Rep ControlLinePosition = D1 ('MetaData "ControlLinePosition" "Miso.Flow.Types" "miso-flow-0.1.0.0-inplace" 'False) ((C1 ('MetaCons "ControlLineTop" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "ControlLineBottom" 'PrefixI 'False) (U1 :: Type -> Type)) :+: (C1 ('MetaCons "ControlLineLeft" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "ControlLineRight" 'PrefixI 'False) (U1 :: Type -> Type)))
Show ControlLinePosition Source # 
Instance details

Defined in Miso.Flow.Types

Eq ControlLinePosition Source # 
Instance details

Defined in Miso.Flow.Types

Ord ControlLinePosition Source # 
Instance details

Defined in Miso.Flow.Types

type Rep ControlLinePosition Source # 
Instance details

Defined in Miso.Flow.Types

type Rep ControlLinePosition = D1 ('MetaData "ControlLinePosition" "Miso.Flow.Types" "miso-flow-0.1.0.0-inplace" 'False) ((C1 ('MetaCons "ControlLineTop" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "ControlLineBottom" 'PrefixI 'False) (U1 :: Type -> Type)) :+: (C1 ('MetaCons "ControlLineLeft" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "ControlLineRight" 'PrefixI 'False) (U1 :: Type -> Type)))

data ResizeControlVariant Source #

Instances

Instances details
Generic ResizeControlVariant Source # 
Instance details

Defined in Miso.Flow.Types

Associated Types

type Rep ResizeControlVariant 
Instance details

Defined in Miso.Flow.Types

type Rep ResizeControlVariant = D1 ('MetaData "ResizeControlVariant" "Miso.Flow.Types" "miso-flow-0.1.0.0-inplace" 'False) (C1 ('MetaCons "ResizeControlLine" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "ResizeControlHandle" 'PrefixI 'False) (U1 :: Type -> Type))
Show ResizeControlVariant Source # 
Instance details

Defined in Miso.Flow.Types

Eq ResizeControlVariant Source # 
Instance details

Defined in Miso.Flow.Types

Ord ResizeControlVariant Source # 
Instance details

Defined in Miso.Flow.Types

type Rep ResizeControlVariant Source # 
Instance details

Defined in Miso.Flow.Types

type Rep ResizeControlVariant = D1 ('MetaData "ResizeControlVariant" "Miso.Flow.Types" "miso-flow-0.1.0.0-inplace" 'False) (C1 ('MetaCons "ResizeControlLine" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "ResizeControlHandle" 'PrefixI 'False) (U1 :: Type -> Type))

data ResizeControlDirection Source #

Instances

Instances details
Generic ResizeControlDirection Source # 
Instance details

Defined in Miso.Flow.Types

Associated Types

type Rep ResizeControlDirection 
Instance details

Defined in Miso.Flow.Types

type Rep ResizeControlDirection = D1 ('MetaData "ResizeControlDirection" "Miso.Flow.Types" "miso-flow-0.1.0.0-inplace" 'False) (C1 ('MetaCons "ResizeHorizontal" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "ResizeVertical" 'PrefixI 'False) (U1 :: Type -> Type))
Show ResizeControlDirection Source # 
Instance details

Defined in Miso.Flow.Types

Eq ResizeControlDirection Source # 
Instance details

Defined in Miso.Flow.Types

Ord ResizeControlDirection Source # 
Instance details

Defined in Miso.Flow.Types

ToJSON ResizeControlDirection Source # 
Instance details

Defined in Miso.Flow.Types

type Rep ResizeControlDirection Source # 
Instance details

Defined in Miso.Flow.Types

type Rep ResizeControlDirection = D1 ('MetaData "ResizeControlDirection" "Miso.Flow.Types" "miso-flow-0.1.0.0-inplace" 'False) (C1 ('MetaCons "ResizeHorizontal" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "ResizeVertical" 'PrefixI 'False) (U1 :: Type -> Type))

data ResizeParams Source #

Instances

Instances details
Generic ResizeParams Source # 
Instance details

Defined in Miso.Flow.Types

Associated Types

type Rep ResizeParams 
Instance details

Defined in Miso.Flow.Types

type Rep ResizeParams = D1 ('MetaData "ResizeParams" "Miso.Flow.Types" "miso-flow-0.1.0.0-inplace" 'False) (C1 ('MetaCons "ResizeParams" 'PrefixI 'True) ((S1 ('MetaSel ('Just "resizeX") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 Double) :*: S1 ('MetaSel ('Just "resizeY") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 Double)) :*: (S1 ('MetaSel ('Just "resizeWidth") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 Double) :*: S1 ('MetaSel ('Just "resizeHeight") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 Double))))
Show ResizeParams Source # 
Instance details

Defined in Miso.Flow.Types

Eq ResizeParams Source # 
Instance details

Defined in Miso.Flow.Types

type Rep ResizeParams Source # 
Instance details

Defined in Miso.Flow.Types

type Rep ResizeParams = D1 ('MetaData "ResizeParams" "Miso.Flow.Types" "miso-flow-0.1.0.0-inplace" 'False) (C1 ('MetaCons "ResizeParams" 'PrefixI 'True) ((S1 ('MetaSel ('Just "resizeX") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 Double) :*: S1 ('MetaSel ('Just "resizeY") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 Double)) :*: (S1 ('MetaSel ('Just "resizeWidth") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 Double) :*: S1 ('MetaSel ('Just "resizeHeight") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 Double))))

data ResizeParamsWithDirection Source #

Instances

Instances details
Generic ResizeParamsWithDirection Source # 
Instance details

Defined in Miso.Flow.Types

Associated Types

type Rep ResizeParamsWithDirection 
Instance details

Defined in Miso.Flow.Types

type Rep ResizeParamsWithDirection = D1 ('MetaData "ResizeParamsWithDirection" "Miso.Flow.Types" "miso-flow-0.1.0.0-inplace" 'False) (C1 ('MetaCons "ResizeParamsWithDirection" 'PrefixI 'True) (S1 ('MetaSel ('Just "resizeParams") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 ResizeParams) :*: (S1 ('MetaSel ('Just "resizeDirectionX") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 Double) :*: S1 ('MetaSel ('Just "resizeDirectionY") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 Double))))
Show ResizeParamsWithDirection Source # 
Instance details

Defined in Miso.Flow.Types

Eq ResizeParamsWithDirection Source # 
Instance details

Defined in Miso.Flow.Types

type Rep ResizeParamsWithDirection Source # 
Instance details

Defined in Miso.Flow.Types

type Rep ResizeParamsWithDirection = D1 ('MetaData "ResizeParamsWithDirection" "Miso.Flow.Types" "miso-flow-0.1.0.0-inplace" 'False) (C1 ('MetaCons "ResizeParamsWithDirection" 'PrefixI 'True) (S1 ('MetaSel ('Just "resizeParams") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 ResizeParams) :*: (S1 ('MetaSel ('Just "resizeDirectionX") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 Double) :*: S1 ('MetaSel ('Just "resizeDirectionY") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 Double))))

Misc

type ErrorCode = MisoString Source #

Error codes as used by errorMessages (e.g. "006").

type OnError = ErrorCode -> MisoString -> IO () Source #

Error callback: code and rendered message.