| License | BSD3-style (see the file LICENSE) |
|---|---|
| Safe Haskell | None |
| Language | Haskell2010 |
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
- data Position
- oppositePosition :: Position -> Position
- positionToText :: Position -> MisoString
- positionFromText :: MisoString -> Maybe Position
- data XYPosition = XYPosition {}
- xy :: Double -> Double -> XYPosition
- zeroPosition :: XYPosition
- data XYZPosition = XYZPosition {}
- data Dimensions = Dimensions {}
- zeroDimensions :: Dimensions
- data Rect = Rect {}
- data Box = Box {}
- type Transform = Viewport
- data CoordinateExtent = CoordinateExtent {
- extentMinX :: !Double
- extentMinY :: !Double
- extentMaxX :: !Double
- extentMaxY :: !Double
- data NodeExtent
- coordinateExtent :: (Double, Double) -> (Double, Double) -> CoordinateExtent
- data Viewport = Viewport {}
- defaultViewport :: Viewport
- viewportToTransform :: Viewport -> Transform
- transformToViewport :: Transform -> Viewport
- data SnapGrid = SnapGrid {}
- data PanelPosition
- panelPositionToText :: PanelPosition -> MisoString
- data SelectionMode
- data SelectionRect = SelectionRect {
- selectionRect :: !Rect
- selectionStartX :: !Double
- selectionStartY :: !Double
- data PanOnScrollMode
- data PanOnDrag
- = PanOnDrag !Bool
- | PanOnDragButtons ![Int]
- data ColorMode
- data ZIndexMode
- data Align
- data Connection = Connection {}
- connection :: NodeId -> NodeId -> Connection
- data HandleConnection = HandleConnection {}
- type NodeConnection = HandleConnection
- data ConnectionMode
- data ConnectionState n
- data ConnectionInProgress n = ConnectionInProgress {
- cipIsValid :: !(Maybe Bool)
- cipFrom :: !XYPosition
- cipFromHandle :: !Handle
- cipFromPosition :: !Position
- cipFromNode :: !(InternalNode n)
- cipTo :: !XYPosition
- cipToHandle :: !(Maybe Handle)
- cipToPosition :: !Position
- cipToNode :: !(Maybe (InternalNode n))
- cipPointer :: !XYPosition
- data FinalConnectionState n = FinalConnectionState {
- finalIsValid :: !(Maybe Bool)
- finalFrom :: !(Maybe XYPosition)
- finalFromHandle :: !(Maybe Handle)
- finalFromPosition :: !(Maybe Position)
- finalFromNode :: !(Maybe (InternalNode n))
- finalTo :: !(Maybe XYPosition)
- finalToHandle :: !(Maybe Handle)
- finalToPosition :: !(Maybe Position)
- finalToNode :: !(Maybe (InternalNode n))
- noConnection :: ConnectionState n
- connectionInProgress :: ConnectionState n -> Bool
- data OnConnectStartParams = OnConnectStartParams {}
- data HandleType
- handleTypeToText :: HandleType -> MisoString
- handleTypeFromText :: MisoString -> Maybe HandleType
- data Handle = Handle {}
- data NodeHandle = NodeHandle {}
- nodeHandle :: Double -> Double -> Position -> HandleType -> NodeHandle
- type NodeId = MisoString
- data Node n = Node {
- nodeId :: !NodeId
- nodePosition :: !XYPosition
- nodeData :: n
- nodeType :: !(Maybe MisoString)
- nodeSourcePosition :: !(Maybe Position)
- nodeTargetPosition :: !(Maybe Position)
- nodeHidden :: !Bool
- nodeSelected :: !Bool
- nodeDragging :: !Bool
- nodeDraggable :: !(Maybe Bool)
- nodeSelectable :: !(Maybe Bool)
- nodeConnectable :: !(Maybe Bool)
- nodeDeletable :: !(Maybe Bool)
- nodeDragHandle :: !(Maybe MisoString)
- nodeWidth :: !(Maybe Double)
- nodeHeight :: !(Maybe Double)
- nodeInitialWidth :: !(Maybe Double)
- nodeInitialHeight :: !(Maybe Double)
- nodeParentId :: !(Maybe NodeId)
- nodeZIndex :: !(Maybe Double)
- nodeExtent :: !(Maybe NodeExtent)
- nodeExpandParent :: !Bool
- nodeAriaLabel :: !(Maybe MisoString)
- nodeOrigin :: !(Maybe NodeOrigin)
- nodeHandles :: !(Maybe [NodeHandle])
- nodeMeasured :: !(Maybe Measured)
- nodeResizing :: !Bool
- node :: NodeId -> XYPosition -> n -> Node n
- data Measured = Measured {
- measuredWidth :: !(Maybe Double)
- measuredHeight :: !(Maybe Double)
- noMeasure :: Measured
- measuredToDimensions :: Measured -> Maybe Dimensions
- data NodeOrigin = NodeOrigin {}
- defaultOrigin :: NodeOrigin
- data InternalNode n = InternalNode {
- internalUser :: !(Node n)
- internalMeasured :: !Measured
- internalPositionAbsolute :: !XYPosition
- internalZ :: !Double
- internalRootParentIndex :: !(Maybe Int)
- internalHandleBounds :: !(Maybe NodeHandleBounds)
- internalBounds :: !(Maybe NodeBounds)
- internalUserNode :: InternalNode n -> Node n
- data NodeHandleBounds = NodeHandleBounds {}
- data NodeBounds = NodeBounds {}
- data NodeDragItem = NodeDragItem {
- dragItemId :: !NodeId
- dragItemPosition :: !XYPosition
- dragItemDistance :: !XYPosition
- dragItemMeasured :: !Dimensions
- dragItemPositionAbsolute :: !XYPosition
- dragItemExtent :: !(Maybe NodeExtent)
- dragItemParentId :: !(Maybe NodeId)
- dragItemOrigin :: !(Maybe NodeOrigin)
- dragItemExpandParent :: !Bool
- dragItemDragging :: !Bool
- type NodeLookup n = Map NodeId (InternalNode n)
- type ParentLookup n = Map NodeId (Map NodeId (InternalNode n))
- data InternalNodeUpdate = InternalNodeUpdate {}
- type EdgeId = MisoString
- data Edge e = Edge {
- edgeId :: !EdgeId
- edgeSource :: !NodeId
- edgeTarget :: !NodeId
- edgeType :: !(Maybe MisoString)
- edgeSourceHandle :: !(Maybe MisoString)
- edgeTargetHandle :: !(Maybe MisoString)
- edgeAnimated :: !Bool
- edgeHidden :: !Bool
- edgeDeletable :: !(Maybe Bool)
- edgeSelectable :: !(Maybe Bool)
- edgeData :: !(Maybe e)
- edgeSelected :: !Bool
- edgeMarkerStart :: !(Maybe EdgeMarkerType)
- edgeMarkerEnd :: !(Maybe EdgeMarkerType)
- edgeZIndex :: !(Maybe Double)
- edgeAriaLabel :: !(Maybe MisoString)
- edgeInteractionWidth :: !(Maybe Double)
- edge :: EdgeId -> NodeId -> NodeId -> Edge e
- data ConnectionLineType
- data EdgeMarker = EdgeMarker {
- markerType :: !MarkerType
- markerColor :: !(Maybe MisoString)
- markerWidth :: !(Maybe Double)
- markerHeight :: !(Maybe Double)
- markerUnits :: !(Maybe MisoString)
- markerOrient :: !(Maybe MisoString)
- markerStrokeWidth :: !(Maybe Double)
- edgeMarker :: MarkerType -> EdgeMarker
- data EdgeMarkerType
- data MarkerType
- markerTypeToText :: MarkerType -> MisoString
- data MarkerProps = MarkerProps {}
- data EdgePosition = EdgePosition {}
- type EdgeLookup e = Map EdgeId (Edge e)
- type ConnectionLookup = Map MisoString (Map MisoString HandleConnection)
- newtype BezierPathOptions = BezierPathOptions {}
- defaultBezierPathOptions :: BezierPathOptions
- data SmoothStepPathOptions = SmoothStepPathOptions {}
- defaultSmoothStepPathOptions :: SmoothStepPathOptions
- newtype StepPathOptions = StepPathOptions {
- stepOffset :: Double
- data PaddingWithUnit
- data Padding
- = PaddingUniform !PaddingWithUnit
- | PaddingSides {
- paddingTop :: !(Maybe PaddingWithUnit)
- paddingRight :: !(Maybe PaddingWithUnit)
- paddingBottom :: !(Maybe PaddingWithUnit)
- paddingLeft :: !(Maybe PaddingWithUnit)
- paddingX :: !(Maybe PaddingWithUnit)
- paddingY :: !(Maybe PaddingWithUnit)
- defaultFitViewPadding :: Padding
- data FitViewOptions = FitViewOptions {
- fitViewPadding :: !Padding
- fitViewIncludeHiddenNodes :: !Bool
- fitViewMinZoom :: !(Maybe Double)
- fitViewMaxZoom :: !(Maybe Double)
- fitViewDuration :: !(Maybe Double)
- fitViewInterpolate :: !Interpolation
- fitViewNodes :: !(Maybe [NodeId])
- defaultFitViewOptions :: FitViewOptions
- data ViewportHelperOptions = ViewportHelperOptions {
- vhoDuration :: !(Maybe Double)
- vhoInterpolate :: !Interpolation
- defaultViewportHelperOptions :: ViewportHelperOptions
- data Interpolation
- data SetCenterOptions = SetCenterOptions {}
- defaultSetCenterOptions :: SetCenterOptions
- data FitBoundsOptions = FitBoundsOptions {}
- data NodeChange n
- data SetAttributes
- data EdgeChange e
- = EdgeSelectionChange EdgeId Bool
- | EdgeRemoveChange EdgeId
- | EdgeAddChange (Edge e) (Maybe Int)
- | EdgeReplaceChange EdgeId (Edge e)
- data ControlPosition
- controlPositionToText :: ControlPosition -> MisoString
- data ControlLinePosition
- data ResizeControlVariant
- data ResizeControlDirection
- data ResizeParams = ResizeParams {
- resizeX :: !Double
- resizeY :: !Double
- resizeWidth :: !Double
- resizeHeight :: !Double
- data ResizeParamsWithDirection = ResizeParamsWithDirection {}
- xyResizerHandlePositions :: [ControlPosition]
- xyResizerLinePositions :: [ControlLinePosition]
- type ErrorCode = MisoString
- type OnError = ErrorCode -> MisoString -> IO ()
Geometry (types/utils.ts)
Side of a node an edge or handle attaches to.
Port of the Position enum in types/utils.ts.
Constructors
| PositionLeft | |
| PositionTop | |
| PositionRight | |
| PositionBottom |
Instances
| Generic Position Source # | |||||
Defined in Miso.Flow.Types Associated Types
| |||||
| Show Position Source # | |||||
| Eq Position Source # | |||||
| Ord Position Source # | |||||
Defined in Miso.Flow.Types | |||||
| FromJSON Position Source # | |||||
| ToJSON Position Source # | |||||
| type Rep Position Source # | |||||
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 | |
Instances
data XYZPosition Source #
Instances
| Generic XYZPosition Source # | |||||
Defined in Miso.Flow.Types Associated Types
| |||||
| Show XYZPosition Source # | |||||
Defined in Miso.Flow.Types Methods showsPrec :: Int -> XYZPosition -> ShowS # show :: XYZPosition -> String # showList :: [XYZPosition] -> ShowS # | |||||
| Eq XYZPosition Source # | |||||
Defined in Miso.Flow.Types | |||||
| Ord XYZPosition Source # | |||||
Defined in Miso.Flow.Types Methods compare :: XYZPosition -> XYZPosition -> Ordering # (<) :: XYZPosition -> XYZPosition -> Bool # (<=) :: XYZPosition -> XYZPosition -> Bool # (>) :: XYZPosition -> XYZPosition -> Bool # (>=) :: XYZPosition -> XYZPosition -> Bool # max :: XYZPosition -> XYZPosition -> XYZPosition # min :: XYZPosition -> XYZPosition -> XYZPosition # | |||||
| type Rep XYZPosition Source # | |||||
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 #
Constructors
| Dimensions | |
Fields
| |
Instances
| Generic Dimensions Source # | |||||
Defined in Miso.Flow.Types Associated Types
| |||||
| Show Dimensions Source # | |||||
Defined in Miso.Flow.Types Methods showsPrec :: Int -> Dimensions -> ShowS # show :: Dimensions -> String # showList :: [Dimensions] -> ShowS # | |||||
| Eq Dimensions Source # | |||||
Defined in Miso.Flow.Types | |||||
| Ord Dimensions Source # | |||||
Defined in Miso.Flow.Types Methods compare :: Dimensions -> Dimensions -> Ordering # (<) :: Dimensions -> Dimensions -> Bool # (<=) :: Dimensions -> Dimensions -> Bool # (>) :: Dimensions -> Dimensions -> Bool # (>=) :: Dimensions -> Dimensions -> Bool # max :: Dimensions -> Dimensions -> Dimensions # min :: Dimensions -> Dimensions -> Dimensions # | |||||
| FromJSON Dimensions Source # | |||||
Defined in Miso.Flow.Types | |||||
| ToJSON Dimensions Source # | |||||
Defined in Miso.Flow.Types | |||||
| type Rep Dimensions Source # | |||||
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))) | |||||
Rect = Dimensions & XYPosition.
Instances
| Generic Rect Source # | |||||
Defined in Miso.Flow.Types Associated Types
| |||||
| Show Rect Source # | |||||
| Eq Rect Source # | |||||
| Ord Rect Source # | |||||
| FromJSON Rect Source # | |||||
| ToJSON Rect Source # | |||||
| type Rep Rect Source # | |||||
Defined in Miso.Flow.Types type Rep Rect = D1 ('MetaData "Rect" "Miso.Flow.Types" "miso-flow-0.1.0.0-inplace" 'False) (C1 ('MetaCons "Rect" 'PrefixI 'True) ((S1 ('MetaSel ('Just "rectX") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 Double) :*: S1 ('MetaSel ('Just "rectY") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 Double)) :*: (S1 ('MetaSel ('Just "rectWidth") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 Double) :*: S1 ('MetaSel ('Just "rectHeight") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 Double)))) | |||||
A box given by its top-left and bottom-right corners.
Instances
| Generic Box Source # | |||||
Defined in Miso.Flow.Types Associated Types
| |||||
| Show Box Source # | |||||
| Eq Box Source # | |||||
| Ord Box Source # | |||||
| type Rep Box Source # | |||||
Defined in Miso.Flow.Types type Rep Box = D1 ('MetaData "Box" "Miso.Flow.Types" "miso-flow-0.1.0.0-inplace" 'False) (C1 ('MetaCons "Box" 'PrefixI 'True) ((S1 ('MetaSel ('Just "boxX") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 Double) :*: S1 ('MetaSel ('Just "boxY") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 Double)) :*: (S1 ('MetaSel ('Just "boxX2") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 Double) :*: S1 ('MetaSel ('Just "boxY2") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 Double)))) | |||||
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.
Constructors
| CoordinateExtent | |
Fields
| |
Instances
| Generic CoordinateExtent Source # | |||||
Defined in Miso.Flow.Types Associated Types
Methods from :: CoordinateExtent -> Rep CoordinateExtent x # to :: Rep CoordinateExtent x -> CoordinateExtent # | |||||
| Show CoordinateExtent Source # | |||||
Defined in Miso.Flow.Types Methods showsPrec :: Int -> CoordinateExtent -> ShowS # show :: CoordinateExtent -> String # showList :: [CoordinateExtent] -> ShowS # | |||||
| Eq CoordinateExtent Source # | |||||
Defined in Miso.Flow.Types Methods (==) :: CoordinateExtent -> CoordinateExtent -> Bool # (/=) :: CoordinateExtent -> CoordinateExtent -> Bool # | |||||
| Ord CoordinateExtent Source # | |||||
Defined in Miso.Flow.Types Methods compare :: CoordinateExtent -> CoordinateExtent -> Ordering # (<) :: CoordinateExtent -> CoordinateExtent -> Bool # (<=) :: CoordinateExtent -> CoordinateExtent -> Bool # (>) :: CoordinateExtent -> CoordinateExtent -> Bool # (>=) :: CoordinateExtent -> CoordinateExtent -> Bool # max :: CoordinateExtent -> CoordinateExtent -> CoordinateExtent # min :: CoordinateExtent -> CoordinateExtent -> CoordinateExtent # | |||||
| FromJSON CoordinateExtent Source # | |||||
Defined in Miso.Flow.Types | |||||
| ToJSON CoordinateExtent Source # | |||||
Defined in Miso.Flow.Types Methods toJSON :: CoordinateExtent -> Value Source # toJSONList :: [CoordinateExtent] -> Value Source # | |||||
| type Rep CoordinateExtent Source # | |||||
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).
Constructors
| ExtentParent | |
| ExtentCoordinates !CoordinateExtent |
Instances
| Generic NodeExtent Source # | |||||
Defined in Miso.Flow.Types Associated Types
| |||||
| Show NodeExtent Source # | |||||
Defined in Miso.Flow.Types Methods showsPrec :: Int -> NodeExtent -> ShowS # show :: NodeExtent -> String # showList :: [NodeExtent] -> ShowS # | |||||
| Eq NodeExtent Source # | |||||
Defined in Miso.Flow.Types | |||||
| Ord NodeExtent Source # | |||||
Defined in Miso.Flow.Types Methods compare :: NodeExtent -> NodeExtent -> Ordering # (<) :: NodeExtent -> NodeExtent -> Bool # (<=) :: NodeExtent -> NodeExtent -> Bool # (>) :: NodeExtent -> NodeExtent -> Bool # (>=) :: NodeExtent -> NodeExtent -> Bool # max :: NodeExtent -> NodeExtent -> NodeExtent # min :: NodeExtent -> NodeExtent -> NodeExtent # | |||||
| FromJSON NodeExtent Source # | |||||
Defined in Miso.Flow.Types | |||||
| ToJSON NodeExtent Source # | |||||
Defined in Miso.Flow.Types | |||||
| type Rep NodeExtent Source # | |||||
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)
Position and zoom of the flow pane.
Instances
| Generic Viewport Source # | |||||
Defined in Miso.Flow.Types Associated Types
| |||||
| Show Viewport Source # | |||||
| Eq Viewport Source # | |||||
| Ord Viewport Source # | |||||
Defined in Miso.Flow.Types | |||||
| FromJSON Viewport Source # | |||||
| ToJSON Viewport Source # | |||||
| type Rep Viewport Source # | |||||
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)))) | |||||
Instances
| Generic SnapGrid Source # | |||||
Defined in Miso.Flow.Types Associated Types
| |||||
| Show SnapGrid Source # | |||||
| Eq SnapGrid Source # | |||||
| Ord SnapGrid Source # | |||||
Defined in Miso.Flow.Types | |||||
| FromJSON SnapGrid Source # | |||||
| ToJSON SnapGrid Source # | |||||
| type Rep SnapGrid Source # | |||||
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
| Generic PanelPosition Source # | |||||
Defined in Miso.Flow.Types Associated Types
| |||||
| Show PanelPosition Source # | |||||
Defined in Miso.Flow.Types Methods showsPrec :: Int -> PanelPosition -> ShowS # show :: PanelPosition -> String # showList :: [PanelPosition] -> ShowS # | |||||
| Eq PanelPosition Source # | |||||
Defined in Miso.Flow.Types Methods (==) :: PanelPosition -> PanelPosition -> Bool # (/=) :: PanelPosition -> PanelPosition -> Bool # | |||||
| Ord PanelPosition Source # | |||||
Defined in Miso.Flow.Types Methods compare :: PanelPosition -> PanelPosition -> Ordering # (<) :: PanelPosition -> PanelPosition -> Bool # (<=) :: PanelPosition -> PanelPosition -> Bool # (>) :: PanelPosition -> PanelPosition -> Bool # (>=) :: PanelPosition -> PanelPosition -> Bool # max :: PanelPosition -> PanelPosition -> PanelPosition # min :: PanelPosition -> PanelPosition -> PanelPosition # | |||||
| type Rep PanelPosition Source # | |||||
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 #
Constructors
| SelectionPartial | |
| SelectionFull |
Instances
| Generic SelectionMode Source # | |||||
Defined in Miso.Flow.Types Associated Types
| |||||
| Show SelectionMode Source # | |||||
Defined in Miso.Flow.Types Methods showsPrec :: Int -> SelectionMode -> ShowS # show :: SelectionMode -> String # showList :: [SelectionMode] -> ShowS # | |||||
| Eq SelectionMode Source # | |||||
Defined in Miso.Flow.Types Methods (==) :: SelectionMode -> SelectionMode -> Bool # (/=) :: SelectionMode -> SelectionMode -> Bool # | |||||
| Ord SelectionMode Source # | |||||
Defined in Miso.Flow.Types Methods compare :: SelectionMode -> SelectionMode -> Ordering # (<) :: SelectionMode -> SelectionMode -> Bool # (<=) :: SelectionMode -> SelectionMode -> Bool # (>) :: SelectionMode -> SelectionMode -> Bool # (>=) :: SelectionMode -> SelectionMode -> Bool # max :: SelectionMode -> SelectionMode -> SelectionMode # min :: SelectionMode -> SelectionMode -> SelectionMode # | |||||
| type Rep SelectionMode Source # | |||||
data SelectionRect Source #
Constructors
| SelectionRect | |
Fields
| |
Instances
| Generic SelectionRect Source # | |||||
Defined in Miso.Flow.Types Associated Types
| |||||
| Show SelectionRect Source # | |||||
Defined in Miso.Flow.Types Methods showsPrec :: Int -> SelectionRect -> ShowS # show :: SelectionRect -> String # showList :: [SelectionRect] -> ShowS # | |||||
| Eq SelectionRect Source # | |||||
Defined in Miso.Flow.Types Methods (==) :: SelectionRect -> SelectionRect -> Bool # (/=) :: SelectionRect -> SelectionRect -> Bool # | |||||
| Ord SelectionRect Source # | |||||
Defined in Miso.Flow.Types Methods compare :: SelectionRect -> SelectionRect -> Ordering # (<) :: SelectionRect -> SelectionRect -> Bool # (<=) :: SelectionRect -> SelectionRect -> Bool # (>) :: SelectionRect -> SelectionRect -> Bool # (>=) :: SelectionRect -> SelectionRect -> Bool # max :: SelectionRect -> SelectionRect -> SelectionRect # min :: SelectionRect -> SelectionRect -> SelectionRect # | |||||
| type Rep SelectionRect Source # | |||||
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 #
Constructors
| PanOnScrollFree | |
| PanOnScrollVertical | |
| PanOnScrollHorizontal |
Instances
| Generic PanOnScrollMode Source # | |||||
Defined in Miso.Flow.Types Associated Types
Methods from :: PanOnScrollMode -> Rep PanOnScrollMode x # to :: Rep PanOnScrollMode x -> PanOnScrollMode # | |||||
| Show PanOnScrollMode Source # | |||||
Defined in Miso.Flow.Types Methods showsPrec :: Int -> PanOnScrollMode -> ShowS # show :: PanOnScrollMode -> String # showList :: [PanOnScrollMode] -> ShowS # | |||||
| Eq PanOnScrollMode Source # | |||||
Defined in Miso.Flow.Types Methods (==) :: PanOnScrollMode -> PanOnScrollMode -> Bool # (/=) :: PanOnScrollMode -> PanOnScrollMode -> Bool # | |||||
| Ord PanOnScrollMode Source # | |||||
Defined in Miso.Flow.Types Methods compare :: PanOnScrollMode -> PanOnScrollMode -> Ordering # (<) :: PanOnScrollMode -> PanOnScrollMode -> Bool # (<=) :: PanOnScrollMode -> PanOnScrollMode -> Bool # (>) :: PanOnScrollMode -> PanOnScrollMode -> Bool # (>=) :: PanOnScrollMode -> PanOnScrollMode -> Bool # max :: PanOnScrollMode -> PanOnScrollMode -> PanOnScrollMode # min :: PanOnScrollMode -> PanOnScrollMode -> PanOnScrollMode # | |||||
| ToJSON PanOnScrollMode Source # | |||||
Defined in Miso.Flow.Types | |||||
| type Rep PanOnScrollMode Source # | |||||
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))) | |||||
TS: panOnDrag: boolean | number[] — enabled/disabled, or the list
of mouse buttons that pan.
Constructors
| PanOnDrag !Bool | |
| PanOnDragButtons ![Int] |
Instances
| Generic PanOnDrag Source # | |||||
Defined in Miso.Flow.Types Associated Types
| |||||
| Show PanOnDrag Source # | |||||
| Eq PanOnDrag Source # | |||||
| ToJSON PanOnDrag Source # | |||||
| type Rep PanOnDrag Source # | |||||
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]))) | |||||
Constructors
| ColorModeLight | |
| ColorModeDark | |
| ColorModeSystem |
Instances
| Generic ColorMode Source # | |||||
Defined in Miso.Flow.Types Associated Types
| |||||
| Show ColorMode Source # | |||||
| Eq ColorMode Source # | |||||
| Ord ColorMode Source # | |||||
| type Rep ColorMode Source # | |||||
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.
Constructors
| ZIndexAuto | |
| ZIndexBasic | |
| ZIndexManual |
Instances
| Generic ZIndexMode Source # | |||||
Defined in Miso.Flow.Types Associated Types
| |||||
| Show ZIndexMode Source # | |||||
Defined in Miso.Flow.Types Methods showsPrec :: Int -> ZIndexMode -> ShowS # show :: ZIndexMode -> String # showList :: [ZIndexMode] -> ShowS # | |||||
| Eq ZIndexMode Source # | |||||
Defined in Miso.Flow.Types | |||||
| Ord ZIndexMode Source # | |||||
Defined in Miso.Flow.Types Methods compare :: ZIndexMode -> ZIndexMode -> Ordering # (<) :: ZIndexMode -> ZIndexMode -> Bool # (<=) :: ZIndexMode -> ZIndexMode -> Bool # (>) :: ZIndexMode -> ZIndexMode -> Bool # (>=) :: ZIndexMode -> ZIndexMode -> Bool # max :: ZIndexMode -> ZIndexMode -> ZIndexMode # min :: ZIndexMode -> ZIndexMode -> ZIndexMode # | |||||
| ToJSON ZIndexMode Source # | |||||
Defined in Miso.Flow.Types | |||||
| type Rep ZIndexMode Source # | |||||
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))) | |||||
Constructors
| AlignCenter | |
| AlignStart | |
| AlignEnd |
Connections (types/general.ts)
data Connection Source #
Minimal description of an edge between two nodes.
Constructors
| Connection | |
Fields | |
Instances
| Generic Connection Source # | |||||
Defined in Miso.Flow.Types Associated Types
| |||||
| Show Connection Source # | |||||
Defined in Miso.Flow.Types Methods showsPrec :: Int -> Connection -> ShowS # show :: Connection -> String # showList :: [Connection] -> ShowS # | |||||
| Eq Connection Source # | |||||
Defined in Miso.Flow.Types | |||||
| Ord Connection Source # | |||||
Defined in Miso.Flow.Types Methods compare :: Connection -> Connection -> Ordering # (<) :: Connection -> Connection -> Bool # (<=) :: Connection -> Connection -> Bool # (>) :: Connection -> Connection -> Bool # (>=) :: Connection -> Connection -> Bool # max :: Connection -> Connection -> Connection # min :: Connection -> Connection -> Connection # | |||||
| FromJSON Connection Source # | |||||
Defined in Miso.Flow.Types | |||||
| ToJSON Connection Source # | |||||
Defined in Miso.Flow.Types | |||||
| type Rep Connection Source # | |||||
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.
Constructors
| HandleConnection | |
Fields | |
Instances
| Generic HandleConnection Source # | |||||
Defined in Miso.Flow.Types Associated Types
Methods from :: HandleConnection -> Rep HandleConnection x # to :: Rep HandleConnection x -> HandleConnection # | |||||
| Show HandleConnection Source # | |||||
Defined in Miso.Flow.Types Methods showsPrec :: Int -> HandleConnection -> ShowS # show :: HandleConnection -> String # showList :: [HandleConnection] -> ShowS # | |||||
| Eq HandleConnection Source # | |||||
Defined in Miso.Flow.Types Methods (==) :: HandleConnection -> HandleConnection -> Bool # (/=) :: HandleConnection -> HandleConnection -> Bool # | |||||
| Ord HandleConnection Source # | |||||
Defined in Miso.Flow.Types Methods compare :: HandleConnection -> HandleConnection -> Ordering # (<) :: HandleConnection -> HandleConnection -> Bool # (<=) :: HandleConnection -> HandleConnection -> Bool # (>) :: HandleConnection -> HandleConnection -> Bool # (>=) :: HandleConnection -> HandleConnection -> Bool # max :: HandleConnection -> HandleConnection -> HandleConnection # min :: HandleConnection -> HandleConnection -> HandleConnection # | |||||
| type Rep HandleConnection Source # | |||||
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))) | |||||
type NodeConnection = HandleConnection Source #
data ConnectionMode Source #
Strict only allows source-to-target edges; Loose also allows
source-to-source and target-to-target.
Constructors
| ConnectionModeStrict | |
| ConnectionModeLoose |
Instances
| Generic ConnectionMode Source # | |||||
Defined in Miso.Flow.Types Associated Types
Methods from :: ConnectionMode -> Rep ConnectionMode x # to :: Rep ConnectionMode x -> ConnectionMode # | |||||
| Show ConnectionMode Source # | |||||
Defined in Miso.Flow.Types Methods showsPrec :: Int -> ConnectionMode -> ShowS # show :: ConnectionMode -> String # showList :: [ConnectionMode] -> ShowS # | |||||
| Eq ConnectionMode Source # | |||||
Defined in Miso.Flow.Types Methods (==) :: ConnectionMode -> ConnectionMode -> Bool # (/=) :: ConnectionMode -> ConnectionMode -> Bool # | |||||
| Ord ConnectionMode Source # | |||||
Defined in Miso.Flow.Types Methods compare :: ConnectionMode -> ConnectionMode -> Ordering # (<) :: ConnectionMode -> ConnectionMode -> Bool # (<=) :: ConnectionMode -> ConnectionMode -> Bool # (>) :: ConnectionMode -> ConnectionMode -> Bool # (>=) :: ConnectionMode -> ConnectionMode -> Bool # max :: ConnectionMode -> ConnectionMode -> ConnectionMode # min :: ConnectionMode -> ConnectionMode -> ConnectionMode # | |||||
| ToJSON ConnectionMode Source # | |||||
Defined in Miso.Flow.Types | |||||
| type Rep ConnectionMode Source # | |||||
data ConnectionState n Source #
State of the connection gesture; port of ConnectionState.
Constructors
| NoConnection | |
| InProgress !(ConnectionInProgress n) |
Instances
| Functor ConnectionState Source # | |||||
Defined in Miso.Flow.Types Methods fmap :: (a -> b) -> ConnectionState a -> ConnectionState b # (<$) :: a -> ConnectionState b -> ConnectionState a # | |||||
| Generic (ConnectionState n) Source # | |||||
Defined in Miso.Flow.Types Associated Types
Methods from :: ConnectionState n -> Rep (ConnectionState n) x # to :: Rep (ConnectionState n) x -> ConnectionState n # | |||||
| Show n => Show (ConnectionState n) Source # | |||||
Defined in Miso.Flow.Types Methods showsPrec :: Int -> ConnectionState n -> ShowS # show :: ConnectionState n -> String # showList :: [ConnectionState n] -> ShowS # | |||||
| Eq n => Eq (ConnectionState n) Source # | |||||
Defined in Miso.Flow.Types Methods (==) :: ConnectionState n -> ConnectionState n -> Bool # (/=) :: ConnectionState n -> ConnectionState n -> Bool # | |||||
| type Rep (ConnectionState n) Source # | |||||
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.
Constructors
| ConnectionInProgress | |
Fields
| |
Instances
| Functor ConnectionInProgress Source # | |||||
Defined in Miso.Flow.Types Methods fmap :: (a -> b) -> ConnectionInProgress a -> ConnectionInProgress b # (<$) :: a -> ConnectionInProgress b -> ConnectionInProgress a # | |||||
| Generic (ConnectionInProgress n) Source # | |||||
Defined in Miso.Flow.Types Associated Types
Methods from :: ConnectionInProgress n -> Rep (ConnectionInProgress n) x # to :: Rep (ConnectionInProgress n) x -> ConnectionInProgress n # | |||||
| Show n => Show (ConnectionInProgress n) Source # | |||||
Defined in Miso.Flow.Types Methods showsPrec :: Int -> ConnectionInProgress n -> ShowS # show :: ConnectionInProgress n -> String # showList :: [ConnectionInProgress n] -> ShowS # | |||||
| Eq n => Eq (ConnectionInProgress n) Source # | |||||
Defined in Miso.Flow.Types Methods (==) :: ConnectionInProgress n -> ConnectionInProgress n -> Bool # (/=) :: ConnectionInProgress n -> ConnectionInProgress n -> Bool # | |||||
| type Rep (ConnectionInProgress n) Source # | |||||
Defined in Miso.Flow.Types type Rep (ConnectionInProgress n) = D1 ('MetaData "ConnectionInProgress" "Miso.Flow.Types" "miso-flow-0.1.0.0-inplace" 'False) (C1 ('MetaCons "ConnectionInProgress" 'PrefixI 'True) (((S1 ('MetaSel ('Just "cipIsValid") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 (Maybe Bool)) :*: S1 ('MetaSel ('Just "cipFrom") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 XYPosition)) :*: (S1 ('MetaSel ('Just "cipFromHandle") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 Handle) :*: (S1 ('MetaSel ('Just "cipFromPosition") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 Position) :*: S1 ('MetaSel ('Just "cipFromNode") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 (InternalNode n))))) :*: ((S1 ('MetaSel ('Just "cipTo") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 XYPosition) :*: S1 ('MetaSel ('Just "cipToHandle") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 (Maybe Handle))) :*: (S1 ('MetaSel ('Just "cipToPosition") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 Position) :*: (S1 ('MetaSel ('Just "cipToNode") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 (Maybe (InternalNode n))) :*: S1 ('MetaSel ('Just "cipPointer") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 XYPosition)))))) | |||||
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.
Constructors
| FinalConnectionState | |
Fields
| |
Instances
| Functor FinalConnectionState Source # | |||||
Defined in Miso.Flow.Types Methods fmap :: (a -> b) -> FinalConnectionState a -> FinalConnectionState b # (<$) :: a -> FinalConnectionState b -> FinalConnectionState a # | |||||
| Generic (FinalConnectionState n) Source # | |||||
Defined in Miso.Flow.Types Associated Types
Methods from :: FinalConnectionState n -> Rep (FinalConnectionState n) x # to :: Rep (FinalConnectionState n) x -> FinalConnectionState n # | |||||
| Show n => Show (FinalConnectionState n) Source # | |||||
Defined in Miso.Flow.Types Methods showsPrec :: Int -> FinalConnectionState n -> ShowS # show :: FinalConnectionState n -> String # showList :: [FinalConnectionState n] -> ShowS # | |||||
| Eq n => Eq (FinalConnectionState n) Source # | |||||
Defined in Miso.Flow.Types Methods (==) :: FinalConnectionState n -> FinalConnectionState n -> Bool # (/=) :: FinalConnectionState n -> FinalConnectionState n -> Bool # | |||||
| type Rep (FinalConnectionState n) Source # | |||||
Defined in Miso.Flow.Types type Rep (FinalConnectionState n) = D1 ('MetaData "FinalConnectionState" "Miso.Flow.Types" "miso-flow-0.1.0.0-inplace" 'False) (C1 ('MetaCons "FinalConnectionState" 'PrefixI 'True) (((S1 ('MetaSel ('Just "finalIsValid") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 (Maybe Bool)) :*: S1 ('MetaSel ('Just "finalFrom") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 (Maybe XYPosition))) :*: (S1 ('MetaSel ('Just "finalFromHandle") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 (Maybe Handle)) :*: S1 ('MetaSel ('Just "finalFromPosition") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 (Maybe Position)))) :*: ((S1 ('MetaSel ('Just "finalFromNode") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 (Maybe (InternalNode n))) :*: S1 ('MetaSel ('Just "finalTo") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 (Maybe XYPosition))) :*: (S1 ('MetaSel ('Just "finalToHandle") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 (Maybe Handle)) :*: (S1 ('MetaSel ('Just "finalToPosition") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 (Maybe Position)) :*: S1 ('MetaSel ('Just "finalToNode") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 (Maybe (InternalNode n)))))))) | |||||
connectionInProgress :: ConnectionState n -> Bool Source #
data OnConnectStartParams Source #
Constructors
| OnConnectStartParams | |
Fields | |
Instances
| Generic OnConnectStartParams Source # | |||||
Defined in Miso.Flow.Types Associated Types
Methods from :: OnConnectStartParams -> Rep OnConnectStartParams x # to :: Rep OnConnectStartParams x -> OnConnectStartParams # | |||||
| Show OnConnectStartParams Source # | |||||
Defined in Miso.Flow.Types Methods showsPrec :: Int -> OnConnectStartParams -> ShowS # show :: OnConnectStartParams -> String # showList :: [OnConnectStartParams] -> ShowS # | |||||
| Eq OnConnectStartParams Source # | |||||
Defined in Miso.Flow.Types Methods (==) :: OnConnectStartParams -> OnConnectStartParams -> Bool # (/=) :: OnConnectStartParams -> OnConnectStartParams -> Bool # | |||||
| FromJSON OnConnectStartParams Source # | |||||
Defined in Miso.Flow.Types | |||||
| ToJSON OnConnectStartParams Source # | |||||
Defined in Miso.Flow.Types Methods toJSON :: OnConnectStartParams -> Value Source # toJSONList :: [OnConnectStartParams] -> Value Source # | |||||
| type Rep OnConnectStartParams Source # | |||||
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
| Generic HandleType Source # | |||||
Defined in Miso.Flow.Types Associated Types
| |||||
| Show HandleType Source # | |||||
Defined in Miso.Flow.Types Methods showsPrec :: Int -> HandleType -> ShowS # show :: HandleType -> String # showList :: [HandleType] -> ShowS # | |||||
| Eq HandleType Source # | |||||
Defined in Miso.Flow.Types | |||||
| Ord HandleType Source # | |||||
Defined in Miso.Flow.Types Methods compare :: HandleType -> HandleType -> Ordering # (<) :: HandleType -> HandleType -> Bool # (<=) :: HandleType -> HandleType -> Bool # (>) :: HandleType -> HandleType -> Bool # (>=) :: HandleType -> HandleType -> Bool # max :: HandleType -> HandleType -> HandleType # min :: HandleType -> HandleType -> HandleType # | |||||
| FromJSON HandleType Source # | |||||
Defined in Miso.Flow.Types | |||||
| ToJSON HandleType Source # | |||||
Defined in Miso.Flow.Types | |||||
| type Rep HandleType 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
| Generic Handle Source # | |||||
Defined in Miso.Flow.Types Associated Types
| |||||
| Show Handle Source # | |||||
| Eq Handle Source # | |||||
| Ord Handle Source # | |||||
| FromJSON Handle Source # | |||||
| ToJSON Handle Source # | |||||
| type Rep Handle Source # | |||||
Defined in Miso.Flow.Types type Rep Handle = D1 ('MetaData "Handle" "Miso.Flow.Types" "miso-flow-0.1.0.0-inplace" 'False) (C1 ('MetaCons "Handle" 'PrefixI 'True) (((S1 ('MetaSel ('Just "hId") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 (Maybe MisoString)) :*: S1 ('MetaSel ('Just "hNodeId") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 NodeId)) :*: (S1 ('MetaSel ('Just "hX") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 Double) :*: S1 ('MetaSel ('Just "hY") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 Double))) :*: ((S1 ('MetaSel ('Just "hPosition") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 Position) :*: S1 ('MetaSel ('Just "hType") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 HandleType)) :*: (S1 ('MetaSel ('Just "hWidth") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 Double) :*: S1 ('MetaSel ('Just "hHeight") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 Double))))) | |||||
data NodeHandle Source #
User-declared handle on a Node (handles field); width/height are
optional (defaulted to 1 by the store).
Constructors
| NodeHandle | |
Instances
| Generic NodeHandle Source # | |||||
Defined in Miso.Flow.Types Associated Types
| |||||
| Show NodeHandle Source # | |||||
Defined in Miso.Flow.Types Methods showsPrec :: Int -> NodeHandle -> ShowS # show :: NodeHandle -> String # showList :: [NodeHandle] -> ShowS # | |||||
| Eq NodeHandle Source # | |||||
Defined in Miso.Flow.Types | |||||
| Ord NodeHandle Source # | |||||
Defined in Miso.Flow.Types Methods compare :: NodeHandle -> NodeHandle -> Ordering # (<) :: NodeHandle -> NodeHandle -> Bool # (<=) :: NodeHandle -> NodeHandle -> Bool # (>) :: NodeHandle -> NodeHandle -> Bool # (>=) :: NodeHandle -> NodeHandle -> Bool # max :: NodeHandle -> NodeHandle -> NodeHandle # min :: NodeHandle -> NodeHandle -> NodeHandle # | |||||
| FromJSON NodeHandle Source # | |||||
Defined in Miso.Flow.Types | |||||
| ToJSON NodeHandle Source # | |||||
Defined in Miso.Flow.Types | |||||
| type Rep NodeHandle Source # | |||||
Defined in Miso.Flow.Types type Rep NodeHandle = D1 ('MetaData "NodeHandle" "Miso.Flow.Types" "miso-flow-0.1.0.0-inplace" 'False) (C1 ('MetaCons "NodeHandle" 'PrefixI 'True) ((S1 ('MetaSel ('Just "nhId") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 (Maybe MisoString)) :*: (S1 ('MetaSel ('Just "nhX") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 Double) :*: S1 ('MetaSel ('Just "nhY") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 Double))) :*: ((S1 ('MetaSel ('Just "nhPosition") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 Position) :*: S1 ('MetaSel ('Just "nhType") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 HandleType)) :*: (S1 ('MetaSel ('Just "nhWidth") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 (Maybe Double)) :*: S1 ('MetaSel ('Just "nhHeight") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 (Maybe Double)))))) | |||||
nodeHandle :: Double -> Double -> Position -> HandleType -> NodeHandle Source #
Nodes (types/nodes.ts)
type NodeId = MisoString Source #
Framework independent node data structure; port of NodeBase.
node is parameterized over the type of its user data.
Constructors
| Node | |
Fields
| |
Instances
| Functor Node Source # | |||||
| Generic (Node n) Source # | |||||
Defined in Miso.Flow.Types Associated Types
| |||||
| Show n => Show (Node n) Source # | |||||
| Eq n => Eq (Node n) Source # | |||||
| ToJSON (Node n) Source # | Serialize a | ||||
| type Rep (Node n) Source # | |||||
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))))))) | |||||
Optionally measured dimensions (measured field).
Constructors
| Measured | |
Fields
| |
Instances
| Generic Measured Source # | |||||
Defined in Miso.Flow.Types Associated Types
| |||||
| Show Measured Source # | |||||
| Eq Measured Source # | |||||
| Ord Measured Source # | |||||
Defined in Miso.Flow.Types | |||||
| FromJSON Measured Source # | |||||
| ToJSON Measured Source # | |||||
| type Rep Measured Source # | |||||
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 | |
Instances
| Generic NodeOrigin Source # | |||||
Defined in Miso.Flow.Types Associated Types
| |||||
| Show NodeOrigin Source # | |||||
Defined in Miso.Flow.Types Methods showsPrec :: Int -> NodeOrigin -> ShowS # show :: NodeOrigin -> String # showList :: [NodeOrigin] -> ShowS # | |||||
| Eq NodeOrigin Source # | |||||
Defined in Miso.Flow.Types | |||||
| Ord NodeOrigin Source # | |||||
Defined in Miso.Flow.Types Methods compare :: NodeOrigin -> NodeOrigin -> Ordering # (<) :: NodeOrigin -> NodeOrigin -> Bool # (<=) :: NodeOrigin -> NodeOrigin -> Bool # (>) :: NodeOrigin -> NodeOrigin -> Bool # (>=) :: NodeOrigin -> NodeOrigin -> Bool # max :: NodeOrigin -> NodeOrigin -> NodeOrigin # min :: NodeOrigin -> NodeOrigin -> NodeOrigin # | |||||
| FromJSON NodeOrigin Source # | |||||
Defined in Miso.Flow.Types | |||||
| ToJSON NodeOrigin Source # | |||||
Defined in Miso.Flow.Types | |||||
| type Rep NodeOrigin Source # | |||||
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).
Constructors
| InternalNode | |
Fields
| |
Instances
| Functor InternalNode Source # | |||||
Defined in Miso.Flow.Types Methods fmap :: (a -> b) -> InternalNode a -> InternalNode b # (<$) :: a -> InternalNode b -> InternalNode a # | |||||
| Generic (InternalNode n) Source # | |||||
Defined in Miso.Flow.Types Associated Types
Methods from :: InternalNode n -> Rep (InternalNode n) x # to :: Rep (InternalNode n) x -> InternalNode n # | |||||
| Show n => Show (InternalNode n) Source # | |||||
Defined in Miso.Flow.Types Methods showsPrec :: Int -> InternalNode n -> ShowS # show :: InternalNode n -> String # showList :: [InternalNode n] -> ShowS # | |||||
| Eq n => Eq (InternalNode n) Source # | |||||
Defined in Miso.Flow.Types Methods (==) :: InternalNode n -> InternalNode n -> Bool # (/=) :: InternalNode n -> InternalNode n -> Bool # | |||||
| type Rep (InternalNode n) Source # | |||||
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.
Instances
| Generic NodeHandleBounds Source # | |||||
Defined in Miso.Flow.Types Associated Types
Methods from :: NodeHandleBounds -> Rep NodeHandleBounds x # to :: Rep NodeHandleBounds x -> NodeHandleBounds # | |||||
| Show NodeHandleBounds Source # | |||||
Defined in Miso.Flow.Types Methods showsPrec :: Int -> NodeHandleBounds -> ShowS # show :: NodeHandleBounds -> String # showList :: [NodeHandleBounds] -> ShowS # | |||||
| Eq NodeHandleBounds Source # | |||||
Defined in Miso.Flow.Types Methods (==) :: NodeHandleBounds -> NodeHandleBounds -> Bool # (/=) :: NodeHandleBounds -> NodeHandleBounds -> Bool # | |||||
| FromJSON NodeHandleBounds Source # | |||||
Defined in Miso.Flow.Types | |||||
| ToJSON NodeHandleBounds Source # | |||||
Defined in Miso.Flow.Types Methods toJSON :: NodeHandleBounds -> Value Source # toJSONList :: [NodeHandleBounds] -> Value Source # | |||||
| type Rep NodeHandleBounds Source # | |||||
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 | |
Instances
| Generic NodeBounds Source # | |||||
Defined in Miso.Flow.Types Associated Types
| |||||
| Show NodeBounds Source # | |||||
Defined in Miso.Flow.Types Methods showsPrec :: Int -> NodeBounds -> ShowS # show :: NodeBounds -> String # showList :: [NodeBounds] -> ShowS # | |||||
| Eq NodeBounds Source # | |||||
Defined in Miso.Flow.Types | |||||
| type Rep NodeBounds Source # | |||||
Defined in Miso.Flow.Types type Rep NodeBounds = D1 ('MetaData "NodeBounds" "Miso.Flow.Types" "miso-flow-0.1.0.0-inplace" 'False) (C1 ('MetaCons "NodeBounds" 'PrefixI 'True) ((S1 ('MetaSel ('Just "nbX") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 Double) :*: S1 ('MetaSel ('Just "nbY") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 Double)) :*: (S1 ('MetaSel ('Just "nbWidth") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 (Maybe Double)) :*: S1 ('MetaSel ('Just "nbHeight") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 (Maybe Double))))) | |||||
data NodeDragItem Source #
Slice of a node captured when a drag starts; port of NodeDragItem.
Constructors
| NodeDragItem | |
Fields
| |
Instances
| Generic NodeDragItem Source # | |||||
Defined in Miso.Flow.Types Associated Types
| |||||
| Show NodeDragItem Source # | |||||
Defined in Miso.Flow.Types Methods showsPrec :: Int -> NodeDragItem -> ShowS # show :: NodeDragItem -> String # showList :: [NodeDragItem] -> ShowS # | |||||
| Eq NodeDragItem Source # | |||||
Defined in Miso.Flow.Types | |||||
| type Rep NodeDragItem Source # | |||||
Defined in Miso.Flow.Types type Rep NodeDragItem = D1 ('MetaData "NodeDragItem" "Miso.Flow.Types" "miso-flow-0.1.0.0-inplace" 'False) (C1 ('MetaCons "NodeDragItem" 'PrefixI 'True) (((S1 ('MetaSel ('Just "dragItemId") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 NodeId) :*: S1 ('MetaSel ('Just "dragItemPosition") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 XYPosition)) :*: (S1 ('MetaSel ('Just "dragItemDistance") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 XYPosition) :*: (S1 ('MetaSel ('Just "dragItemMeasured") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 Dimensions) :*: S1 ('MetaSel ('Just "dragItemPositionAbsolute") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 XYPosition)))) :*: ((S1 ('MetaSel ('Just "dragItemExtent") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 (Maybe NodeExtent)) :*: S1 ('MetaSel ('Just "dragItemParentId") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 (Maybe NodeId))) :*: (S1 ('MetaSel ('Just "dragItemOrigin") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 (Maybe NodeOrigin)) :*: (S1 ('MetaSel ('Just "dragItemExpandParent") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 Bool) :*: S1 ('MetaSel ('Just "dragItemDragging") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 Bool)))))) | |||||
type NodeLookup n = Map NodeId (InternalNode n) Source #
type ParentLookup n = Map NodeId (Map NodeId (InternalNode n)) Source #
data InternalNodeUpdate Source #
Request to re-measure a node; port of InternalNodeUpdate (the DOM
element itself stays on the JS side of the bridge).
Constructors
| InternalNodeUpdate | |
Fields | |
Instances
| Generic InternalNodeUpdate Source # | |||||
Defined in Miso.Flow.Types Associated Types
Methods from :: InternalNodeUpdate -> Rep InternalNodeUpdate x # to :: Rep InternalNodeUpdate x -> InternalNodeUpdate # | |||||
| Show InternalNodeUpdate Source # | |||||
Defined in Miso.Flow.Types Methods showsPrec :: Int -> InternalNodeUpdate -> ShowS # show :: InternalNodeUpdate -> String # showList :: [InternalNodeUpdate] -> ShowS # | |||||
| Eq InternalNodeUpdate Source # | |||||
Defined in Miso.Flow.Types Methods (==) :: InternalNodeUpdate -> InternalNodeUpdate -> Bool # (/=) :: InternalNodeUpdate -> InternalNodeUpdate -> Bool # | |||||
| type Rep InternalNodeUpdate Source # | |||||
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)
type EdgeId = MisoString Source #
Framework independent edge data structure; port of EdgeBase,
parameterized over the edge's user data.
Constructors
| Edge | |
Fields
| |
Instances
| Functor Edge Source # | |||||
| Generic (Edge e) Source # | |||||
Defined in Miso.Flow.Types Associated Types
| |||||
| Show e => Show (Edge e) Source # | |||||
| Eq e => Eq (Edge e) Source # | |||||
| ToJSON (Edge e) Source # | Serialize an | ||||
| type Rep (Edge e) Source # | |||||
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)))))))) | |||||
data ConnectionLineType Source #
Style of the connection line drawn while connecting.
Constructors
| ConnectionLineBezier | TS |
| ConnectionLineStraight | |
| ConnectionLineStep | |
| ConnectionLineSmoothStep | |
| ConnectionLineSimpleBezier |
Instances
| Generic ConnectionLineType Source # | |||||
Defined in Miso.Flow.Types Associated Types
Methods from :: ConnectionLineType -> Rep ConnectionLineType x # to :: Rep ConnectionLineType x -> ConnectionLineType # | |||||
| Show ConnectionLineType Source # | |||||
Defined in Miso.Flow.Types Methods showsPrec :: Int -> ConnectionLineType -> ShowS # show :: ConnectionLineType -> String # showList :: [ConnectionLineType] -> ShowS # | |||||
| Eq ConnectionLineType Source # | |||||
Defined in Miso.Flow.Types Methods (==) :: ConnectionLineType -> ConnectionLineType -> Bool # (/=) :: ConnectionLineType -> ConnectionLineType -> Bool # | |||||
| Ord ConnectionLineType Source # | |||||
Defined in Miso.Flow.Types Methods compare :: ConnectionLineType -> ConnectionLineType -> Ordering # (<) :: ConnectionLineType -> ConnectionLineType -> Bool # (<=) :: ConnectionLineType -> ConnectionLineType -> Bool # (>) :: ConnectionLineType -> ConnectionLineType -> Bool # (>=) :: ConnectionLineType -> ConnectionLineType -> Bool # max :: ConnectionLineType -> ConnectionLineType -> ConnectionLineType # min :: ConnectionLineType -> ConnectionLineType -> ConnectionLineType # | |||||
| type Rep ConnectionLineType Source # | |||||
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.
Constructors
| EdgeMarker | |
Fields
| |
Instances
| Generic EdgeMarker Source # | |||||
Defined in Miso.Flow.Types Associated Types
| |||||
| Show EdgeMarker Source # | |||||
Defined in Miso.Flow.Types Methods showsPrec :: Int -> EdgeMarker -> ShowS # show :: EdgeMarker -> String # showList :: [EdgeMarker] -> ShowS # | |||||
| Eq EdgeMarker Source # | |||||
Defined in Miso.Flow.Types | |||||
| Ord EdgeMarker Source # | |||||
Defined in Miso.Flow.Types Methods compare :: EdgeMarker -> EdgeMarker -> Ordering # (<) :: EdgeMarker -> EdgeMarker -> Bool # (<=) :: EdgeMarker -> EdgeMarker -> Bool # (>) :: EdgeMarker -> EdgeMarker -> Bool # (>=) :: EdgeMarker -> EdgeMarker -> Bool # max :: EdgeMarker -> EdgeMarker -> EdgeMarker # min :: EdgeMarker -> EdgeMarker -> EdgeMarker # | |||||
| type Rep EdgeMarker Source # | |||||
Defined in Miso.Flow.Types type Rep EdgeMarker = D1 ('MetaData "EdgeMarker" "Miso.Flow.Types" "miso-flow-0.1.0.0-inplace" 'False) (C1 ('MetaCons "EdgeMarker" 'PrefixI 'True) ((S1 ('MetaSel ('Just "markerType") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 MarkerType) :*: (S1 ('MetaSel ('Just "markerColor") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 (Maybe MisoString)) :*: S1 ('MetaSel ('Just "markerWidth") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 (Maybe Double)))) :*: ((S1 ('MetaSel ('Just "markerHeight") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 (Maybe Double)) :*: S1 ('MetaSel ('Just "markerUnits") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 (Maybe MisoString))) :*: (S1 ('MetaSel ('Just "markerOrient") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 (Maybe MisoString)) :*: S1 ('MetaSel ('Just "markerStrokeWidth") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 (Maybe Double)))))) | |||||
edgeMarker :: MarkerType -> EdgeMarker Source #
data EdgeMarkerType Source #
TS: string | EdgeMarker — either a reference to an existing SVG
marker id or an inline marker description.
Constructors
| MarkerRef !MisoString | |
| Marker !EdgeMarker |
Instances
| Generic EdgeMarkerType Source # | |||||
Defined in Miso.Flow.Types Associated Types
Methods from :: EdgeMarkerType -> Rep EdgeMarkerType x # to :: Rep EdgeMarkerType x -> EdgeMarkerType # | |||||
| Show EdgeMarkerType Source # | |||||
Defined in Miso.Flow.Types Methods showsPrec :: Int -> EdgeMarkerType -> ShowS # show :: EdgeMarkerType -> String # showList :: [EdgeMarkerType] -> ShowS # | |||||
| Eq EdgeMarkerType Source # | |||||
Defined in Miso.Flow.Types Methods (==) :: EdgeMarkerType -> EdgeMarkerType -> Bool # (/=) :: EdgeMarkerType -> EdgeMarkerType -> Bool # | |||||
| Ord EdgeMarkerType Source # | |||||
Defined in Miso.Flow.Types Methods compare :: EdgeMarkerType -> EdgeMarkerType -> Ordering # (<) :: EdgeMarkerType -> EdgeMarkerType -> Bool # (<=) :: EdgeMarkerType -> EdgeMarkerType -> Bool # (>) :: EdgeMarkerType -> EdgeMarkerType -> Bool # (>=) :: EdgeMarkerType -> EdgeMarkerType -> Bool # max :: EdgeMarkerType -> EdgeMarkerType -> EdgeMarkerType # min :: EdgeMarkerType -> EdgeMarkerType -> EdgeMarkerType # | |||||
| type Rep EdgeMarkerType Source # | |||||
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 #
Constructors
| MarkerArrow | |
| MarkerArrowClosed |
Instances
| Generic MarkerType Source # | |||||
Defined in Miso.Flow.Types Associated Types
| |||||
| Show MarkerType Source # | |||||
Defined in Miso.Flow.Types Methods showsPrec :: Int -> MarkerType -> ShowS # show :: MarkerType -> String # showList :: [MarkerType] -> ShowS # | |||||
| Eq MarkerType Source # | |||||
Defined in Miso.Flow.Types | |||||
| Ord MarkerType Source # | |||||
Defined in Miso.Flow.Types Methods compare :: MarkerType -> MarkerType -> Ordering # (<) :: MarkerType -> MarkerType -> Bool # (<=) :: MarkerType -> MarkerType -> Bool # (>) :: MarkerType -> MarkerType -> Bool # (>=) :: MarkerType -> MarkerType -> Bool # max :: MarkerType -> MarkerType -> MarkerType # min :: MarkerType -> MarkerType -> MarkerType # | |||||
| type Rep MarkerType Source # | |||||
data MarkerProps Source #
An EdgeMarker with the id it renders under.
Constructors
| MarkerProps | |
Fields | |
Instances
| Generic MarkerProps Source # | |||||
Defined in Miso.Flow.Types Associated Types
| |||||
| Show MarkerProps Source # | |||||
Defined in Miso.Flow.Types Methods showsPrec :: Int -> MarkerProps -> ShowS # show :: MarkerProps -> String # showList :: [MarkerProps] -> ShowS # | |||||
| Eq MarkerProps Source # | |||||
Defined in Miso.Flow.Types | |||||
| type Rep MarkerProps Source # | |||||
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.
Constructors
| EdgePosition | |
Instances
| Generic EdgePosition Source # | |||||
Defined in Miso.Flow.Types Associated Types
| |||||
| Show EdgePosition Source # | |||||
Defined in Miso.Flow.Types Methods showsPrec :: Int -> EdgePosition -> ShowS # show :: EdgePosition -> String # showList :: [EdgePosition] -> ShowS # | |||||
| Eq EdgePosition Source # | |||||
Defined in Miso.Flow.Types | |||||
| type Rep EdgePosition Source # | |||||
Defined in Miso.Flow.Types type Rep EdgePosition = D1 ('MetaData "EdgePosition" "Miso.Flow.Types" "miso-flow-0.1.0.0-inplace" 'False) (C1 ('MetaCons "EdgePosition" 'PrefixI 'True) ((S1 ('MetaSel ('Just "epSourceX") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 Double) :*: (S1 ('MetaSel ('Just "epSourceY") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 Double) :*: S1 ('MetaSel ('Just "epTargetX") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 Double))) :*: (S1 ('MetaSel ('Just "epTargetY") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 Double) :*: (S1 ('MetaSel ('Just "epSourcePosition") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 Position) :*: S1 ('MetaSel ('Just "epTargetPosition") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 Position))))) | |||||
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 | |
Fields | |
Instances
| Generic BezierPathOptions Source # | |||||
Defined in Miso.Flow.Types Associated Types
Methods from :: BezierPathOptions -> Rep BezierPathOptions x # to :: Rep BezierPathOptions x -> BezierPathOptions # | |||||
| Show BezierPathOptions Source # | |||||
Defined in Miso.Flow.Types Methods showsPrec :: Int -> BezierPathOptions -> ShowS # show :: BezierPathOptions -> String # showList :: [BezierPathOptions] -> ShowS # | |||||
| Eq BezierPathOptions Source # | |||||
Defined in Miso.Flow.Types Methods (==) :: BezierPathOptions -> BezierPathOptions -> Bool # (/=) :: BezierPathOptions -> BezierPathOptions -> Bool # | |||||
| type Rep BezierPathOptions Source # | |||||
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 #
Constructors
| SmoothStepPathOptions | |
Fields
| |
Instances
| Generic SmoothStepPathOptions Source # | |||||
Defined in Miso.Flow.Types Associated Types
Methods from :: SmoothStepPathOptions -> Rep SmoothStepPathOptions x # to :: Rep SmoothStepPathOptions x -> SmoothStepPathOptions # | |||||
| Show SmoothStepPathOptions Source # | |||||
Defined in Miso.Flow.Types Methods showsPrec :: Int -> SmoothStepPathOptions -> ShowS # show :: SmoothStepPathOptions -> String # showList :: [SmoothStepPathOptions] -> ShowS # | |||||
| Eq SmoothStepPathOptions Source # | |||||
Defined in Miso.Flow.Types Methods (==) :: SmoothStepPathOptions -> SmoothStepPathOptions -> Bool # (/=) :: SmoothStepPathOptions -> SmoothStepPathOptions -> Bool # | |||||
| type Rep SmoothStepPathOptions Source # | |||||
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
| Generic StepPathOptions Source # | |||||
Defined in Miso.Flow.Types Associated Types
Methods from :: StepPathOptions -> Rep StepPathOptions x # to :: Rep StepPathOptions x -> StepPathOptions # | |||||
| Show StepPathOptions Source # | |||||
Defined in Miso.Flow.Types Methods showsPrec :: Int -> StepPathOptions -> ShowS # show :: StepPathOptions -> String # showList :: [StepPathOptions] -> ShowS # | |||||
| Eq StepPathOptions Source # | |||||
Defined in Miso.Flow.Types Methods (==) :: StepPathOptions -> StepPathOptions -> Bool # (/=) :: StepPathOptions -> StepPathOptions -> Bool # | |||||
| type Rep StepPathOptions Source # | |||||
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
| Generic PaddingWithUnit Source # | |||||
Defined in Miso.Flow.Types Associated Types
Methods from :: PaddingWithUnit -> Rep PaddingWithUnit x # to :: Rep PaddingWithUnit x -> PaddingWithUnit # | |||||
| Show PaddingWithUnit Source # | |||||
Defined in Miso.Flow.Types Methods showsPrec :: Int -> PaddingWithUnit -> ShowS # show :: PaddingWithUnit -> String # showList :: [PaddingWithUnit] -> ShowS # | |||||
| Eq PaddingWithUnit Source # | |||||
Defined in Miso.Flow.Types Methods (==) :: PaddingWithUnit -> PaddingWithUnit -> Bool # (/=) :: PaddingWithUnit -> PaddingWithUnit -> Bool # | |||||
| type Rep PaddingWithUnit Source # | |||||
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)))) | |||||
Padding around bounds when fitting the viewport.
Constructors
| PaddingUniform !PaddingWithUnit | |
| PaddingSides | |
Fields
| |
Instances
| Generic Padding Source # | |||||
Defined in Miso.Flow.Types Associated Types
| |||||
| Show Padding Source # | |||||
| Eq Padding Source # | |||||
| type Rep Padding Source # | |||||
Defined in Miso.Flow.Types type Rep Padding = D1 ('MetaData "Padding" "Miso.Flow.Types" "miso-flow-0.1.0.0-inplace" 'False) (C1 ('MetaCons "PaddingUniform" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 PaddingWithUnit)) :+: C1 ('MetaCons "PaddingSides" 'PrefixI 'True) ((S1 ('MetaSel ('Just "paddingTop") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 (Maybe PaddingWithUnit)) :*: (S1 ('MetaSel ('Just "paddingRight") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 (Maybe PaddingWithUnit)) :*: S1 ('MetaSel ('Just "paddingBottom") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 (Maybe PaddingWithUnit)))) :*: (S1 ('MetaSel ('Just "paddingLeft") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 (Maybe PaddingWithUnit)) :*: (S1 ('MetaSel ('Just "paddingX") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 (Maybe PaddingWithUnit)) :*: S1 ('MetaSel ('Just "paddingY") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 (Maybe PaddingWithUnit)))))) | |||||
data FitViewOptions Source #
Constructors
| FitViewOptions | |
Fields
| |
Instances
| Generic FitViewOptions Source # | |||||
Defined in Miso.Flow.Types Associated Types
Methods from :: FitViewOptions -> Rep FitViewOptions x # to :: Rep FitViewOptions x -> FitViewOptions # | |||||
| Show FitViewOptions Source # | |||||
Defined in Miso.Flow.Types Methods showsPrec :: Int -> FitViewOptions -> ShowS # show :: FitViewOptions -> String # showList :: [FitViewOptions] -> ShowS # | |||||
| Eq FitViewOptions Source # | |||||
Defined in Miso.Flow.Types Methods (==) :: FitViewOptions -> FitViewOptions -> Bool # (/=) :: FitViewOptions -> FitViewOptions -> Bool # | |||||
| type Rep FitViewOptions Source # | |||||
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 #
Constructors
| ViewportHelperOptions | |
Fields
| |
Instances
| Generic ViewportHelperOptions Source # | |||||
Defined in Miso.Flow.Types Associated Types
Methods from :: ViewportHelperOptions -> Rep ViewportHelperOptions x # to :: Rep ViewportHelperOptions x -> ViewportHelperOptions # | |||||
| Show ViewportHelperOptions Source # | |||||
Defined in Miso.Flow.Types Methods showsPrec :: Int -> ViewportHelperOptions -> ShowS # show :: ViewportHelperOptions -> String # showList :: [ViewportHelperOptions] -> ShowS # | |||||
| Eq ViewportHelperOptions Source # | |||||
Defined in Miso.Flow.Types Methods (==) :: ViewportHelperOptions -> ViewportHelperOptions -> Bool # (/=) :: ViewportHelperOptions -> ViewportHelperOptions -> Bool # | |||||
| type Rep ViewportHelperOptions Source # | |||||
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 #
Constructors
| InterpolateSmooth | |
| InterpolateLinear |
Instances
| Generic Interpolation Source # | |||||
Defined in Miso.Flow.Types Associated Types
| |||||
| Show Interpolation Source # | |||||
Defined in Miso.Flow.Types Methods showsPrec :: Int -> Interpolation -> ShowS # show :: Interpolation -> String # showList :: [Interpolation] -> ShowS # | |||||
| Eq Interpolation Source # | |||||
Defined in Miso.Flow.Types Methods (==) :: Interpolation -> Interpolation -> Bool # (/=) :: Interpolation -> Interpolation -> Bool # | |||||
| ToJSON Interpolation Source # | |||||
Defined in Miso.Flow.Types | |||||
| type Rep Interpolation Source # | |||||
data SetCenterOptions Source #
Constructors
| SetCenterOptions | |
Fields | |
Instances
| Generic SetCenterOptions Source # | |||||
Defined in Miso.Flow.Types Associated Types
Methods from :: SetCenterOptions -> Rep SetCenterOptions x # to :: Rep SetCenterOptions x -> SetCenterOptions # | |||||
| Show SetCenterOptions Source # | |||||
Defined in Miso.Flow.Types Methods showsPrec :: Int -> SetCenterOptions -> ShowS # show :: SetCenterOptions -> String # showList :: [SetCenterOptions] -> ShowS # | |||||
| Eq SetCenterOptions Source # | |||||
Defined in Miso.Flow.Types Methods (==) :: SetCenterOptions -> SetCenterOptions -> Bool # (/=) :: SetCenterOptions -> SetCenterOptions -> Bool # | |||||
| type Rep SetCenterOptions Source # | |||||
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 #
Constructors
| FitBoundsOptions | |
Fields | |
Instances
| Generic FitBoundsOptions Source # | |||||
Defined in Miso.Flow.Types Associated Types
Methods from :: FitBoundsOptions -> Rep FitBoundsOptions x # to :: Rep FitBoundsOptions x -> FitBoundsOptions # | |||||
| Show FitBoundsOptions Source # | |||||
Defined in Miso.Flow.Types Methods showsPrec :: Int -> FitBoundsOptions -> ShowS # show :: FitBoundsOptions -> String # showList :: [FitBoundsOptions] -> ShowS # | |||||
| Eq FitBoundsOptions Source # | |||||
Defined in Miso.Flow.Types Methods (==) :: FitBoundsOptions -> FitBoundsOptions -> Bool # (/=) :: FitBoundsOptions -> FitBoundsOptions -> Bool # | |||||
| type Rep FitBoundsOptions Source # | |||||
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
| Functor NodeChange Source # | |||||
Defined in Miso.Flow.Types Methods fmap :: (a -> b) -> NodeChange a -> NodeChange b # (<$) :: a -> NodeChange b -> NodeChange a # | |||||
| Generic (NodeChange n) Source # | |||||
Defined in Miso.Flow.Types Associated Types
| |||||
| Show n => Show (NodeChange n) Source # | |||||
Defined in Miso.Flow.Types Methods showsPrec :: Int -> NodeChange n -> ShowS # show :: NodeChange n -> String # showList :: [NodeChange n] -> ShowS # | |||||
| Eq n => Eq (NodeChange n) Source # | |||||
Defined in Miso.Flow.Types | |||||
| type Rep (NodeChange n) Source # | |||||
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 |
|
| SetAttributesBoth |
|
| SetAttributesWidth | |
| SetAttributesHeight |
Instances
| Generic SetAttributes Source # | |||||
Defined in Miso.Flow.Types Associated Types
| |||||
| Show SetAttributes Source # | |||||
Defined in Miso.Flow.Types Methods showsPrec :: Int -> SetAttributes -> ShowS # show :: SetAttributes -> String # showList :: [SetAttributes] -> ShowS # | |||||
| Eq SetAttributes Source # | |||||
Defined in Miso.Flow.Types Methods (==) :: SetAttributes -> SetAttributes -> Bool # (/=) :: SetAttributes -> SetAttributes -> Bool # | |||||
| type Rep SetAttributes Source # | |||||
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.
Constructors
| EdgeSelectionChange EdgeId Bool | |
| EdgeRemoveChange EdgeId | |
| EdgeAddChange (Edge e) (Maybe Int) | |
| EdgeReplaceChange EdgeId (Edge e) |
Instances
| Functor EdgeChange Source # | |||||
Defined in Miso.Flow.Types Methods fmap :: (a -> b) -> EdgeChange a -> EdgeChange b # (<$) :: a -> EdgeChange b -> EdgeChange a # | |||||
| Generic (EdgeChange e) Source # | |||||
Defined in Miso.Flow.Types Associated Types
| |||||
| Show e => Show (EdgeChange e) Source # | |||||
Defined in Miso.Flow.Types Methods showsPrec :: Int -> EdgeChange e -> ShowS # show :: EdgeChange e -> String # showList :: [EdgeChange e] -> ShowS # | |||||
| Eq e => Eq (EdgeChange e) Source # | |||||
Defined in Miso.Flow.Types | |||||
| type Rep (EdgeChange e) Source # | |||||
Defined in Miso.Flow.Types type Rep (EdgeChange e) = D1 ('MetaData "EdgeChange" "Miso.Flow.Types" "miso-flow-0.1.0.0-inplace" 'False) ((C1 ('MetaCons "EdgeSelectionChange" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 EdgeId) :*: S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Bool)) :+: C1 ('MetaCons "EdgeRemoveChange" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 EdgeId))) :+: (C1 ('MetaCons "EdgeAddChange" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Edge e)) :*: S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Int))) :+: C1 ('MetaCons "EdgeReplaceChange" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 EdgeId) :*: S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Edge e))))) | |||||
Resizer types (xyresizer/types.ts)
data ControlPosition Source #
Constructors
| ControlLine !ControlLinePosition | |
| ControlTopLeft | |
| ControlTopRight | |
| ControlBottomLeft | |
| ControlBottomRight |
Instances
| Generic ControlPosition Source # | |||||
Defined in Miso.Flow.Types Associated Types
Methods from :: ControlPosition -> Rep ControlPosition x # to :: Rep ControlPosition x -> ControlPosition # | |||||
| Show ControlPosition Source # | |||||
Defined in Miso.Flow.Types Methods showsPrec :: Int -> ControlPosition -> ShowS # show :: ControlPosition -> String # showList :: [ControlPosition] -> ShowS # | |||||
| Eq ControlPosition Source # | |||||
Defined in Miso.Flow.Types Methods (==) :: ControlPosition -> ControlPosition -> Bool # (/=) :: ControlPosition -> ControlPosition -> Bool # | |||||
| Ord ControlPosition Source # | |||||
Defined in Miso.Flow.Types Methods compare :: ControlPosition -> ControlPosition -> Ordering # (<) :: ControlPosition -> ControlPosition -> Bool # (<=) :: ControlPosition -> ControlPosition -> Bool # (>) :: ControlPosition -> ControlPosition -> Bool # (>=) :: ControlPosition -> ControlPosition -> Bool # max :: ControlPosition -> ControlPosition -> ControlPosition # min :: ControlPosition -> ControlPosition -> ControlPosition # | |||||
| ToJSON ControlPosition Source # | |||||
Defined in Miso.Flow.Types | |||||
| type Rep ControlPosition Source # | |||||
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
| Generic ControlLinePosition Source # | |||||
Defined in Miso.Flow.Types Associated Types
Methods from :: ControlLinePosition -> Rep ControlLinePosition x # to :: Rep ControlLinePosition x -> ControlLinePosition # | |||||
| Show ControlLinePosition Source # | |||||
Defined in Miso.Flow.Types Methods showsPrec :: Int -> ControlLinePosition -> ShowS # show :: ControlLinePosition -> String # showList :: [ControlLinePosition] -> ShowS # | |||||
| Eq ControlLinePosition Source # | |||||
Defined in Miso.Flow.Types Methods (==) :: ControlLinePosition -> ControlLinePosition -> Bool # (/=) :: ControlLinePosition -> ControlLinePosition -> Bool # | |||||
| Ord ControlLinePosition Source # | |||||
Defined in Miso.Flow.Types Methods compare :: ControlLinePosition -> ControlLinePosition -> Ordering # (<) :: ControlLinePosition -> ControlLinePosition -> Bool # (<=) :: ControlLinePosition -> ControlLinePosition -> Bool # (>) :: ControlLinePosition -> ControlLinePosition -> Bool # (>=) :: ControlLinePosition -> ControlLinePosition -> Bool # max :: ControlLinePosition -> ControlLinePosition -> ControlLinePosition # min :: ControlLinePosition -> ControlLinePosition -> ControlLinePosition # | |||||
| type Rep ControlLinePosition Source # | |||||
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 #
Constructors
| ResizeControlLine | |
| ResizeControlHandle |
Instances
| Generic ResizeControlVariant Source # | |||||
Defined in Miso.Flow.Types Associated Types
Methods from :: ResizeControlVariant -> Rep ResizeControlVariant x # to :: Rep ResizeControlVariant x -> ResizeControlVariant # | |||||
| Show ResizeControlVariant Source # | |||||
Defined in Miso.Flow.Types Methods showsPrec :: Int -> ResizeControlVariant -> ShowS # show :: ResizeControlVariant -> String # showList :: [ResizeControlVariant] -> ShowS # | |||||
| Eq ResizeControlVariant Source # | |||||
Defined in Miso.Flow.Types Methods (==) :: ResizeControlVariant -> ResizeControlVariant -> Bool # (/=) :: ResizeControlVariant -> ResizeControlVariant -> Bool # | |||||
| Ord ResizeControlVariant Source # | |||||
Defined in Miso.Flow.Types Methods compare :: ResizeControlVariant -> ResizeControlVariant -> Ordering # (<) :: ResizeControlVariant -> ResizeControlVariant -> Bool # (<=) :: ResizeControlVariant -> ResizeControlVariant -> Bool # (>) :: ResizeControlVariant -> ResizeControlVariant -> Bool # (>=) :: ResizeControlVariant -> ResizeControlVariant -> Bool # max :: ResizeControlVariant -> ResizeControlVariant -> ResizeControlVariant # min :: ResizeControlVariant -> ResizeControlVariant -> ResizeControlVariant # | |||||
| type Rep ResizeControlVariant Source # | |||||
Defined in Miso.Flow.Types | |||||
data ResizeControlDirection Source #
Constructors
| ResizeHorizontal | |
| ResizeVertical |
Instances
| Generic ResizeControlDirection Source # | |||||
Defined in Miso.Flow.Types Associated Types
Methods from :: ResizeControlDirection -> Rep ResizeControlDirection x # to :: Rep ResizeControlDirection x -> ResizeControlDirection # | |||||
| Show ResizeControlDirection Source # | |||||
Defined in Miso.Flow.Types Methods showsPrec :: Int -> ResizeControlDirection -> ShowS # show :: ResizeControlDirection -> String # showList :: [ResizeControlDirection] -> ShowS # | |||||
| Eq ResizeControlDirection Source # | |||||
Defined in Miso.Flow.Types Methods (==) :: ResizeControlDirection -> ResizeControlDirection -> Bool # (/=) :: ResizeControlDirection -> ResizeControlDirection -> Bool # | |||||
| Ord ResizeControlDirection Source # | |||||
Defined in Miso.Flow.Types Methods compare :: ResizeControlDirection -> ResizeControlDirection -> Ordering # (<) :: ResizeControlDirection -> ResizeControlDirection -> Bool # (<=) :: ResizeControlDirection -> ResizeControlDirection -> Bool # (>) :: ResizeControlDirection -> ResizeControlDirection -> Bool # (>=) :: ResizeControlDirection -> ResizeControlDirection -> Bool # max :: ResizeControlDirection -> ResizeControlDirection -> ResizeControlDirection # min :: ResizeControlDirection -> ResizeControlDirection -> ResizeControlDirection # | |||||
| ToJSON ResizeControlDirection Source # | |||||
Defined in Miso.Flow.Types Methods toJSON :: ResizeControlDirection -> Value Source # toJSONList :: [ResizeControlDirection] -> Value Source # | |||||
| type Rep ResizeControlDirection Source # | |||||
data ResizeParams Source #
Constructors
| ResizeParams | |
Fields
| |
Instances
| Generic ResizeParams Source # | |||||
Defined in Miso.Flow.Types Associated Types
| |||||
| Show ResizeParams Source # | |||||
Defined in Miso.Flow.Types Methods showsPrec :: Int -> ResizeParams -> ShowS # show :: ResizeParams -> String # showList :: [ResizeParams] -> ShowS # | |||||
| Eq ResizeParams Source # | |||||
Defined in Miso.Flow.Types | |||||
| type Rep ResizeParams Source # | |||||
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 #
Constructors
| ResizeParamsWithDirection | |
Fields
| |
Instances
| Generic ResizeParamsWithDirection Source # | |||||
Defined in Miso.Flow.Types Associated Types
Methods from :: ResizeParamsWithDirection -> Rep ResizeParamsWithDirection x # to :: Rep ResizeParamsWithDirection x -> ResizeParamsWithDirection # | |||||
| Show ResizeParamsWithDirection Source # | |||||
Defined in Miso.Flow.Types Methods showsPrec :: Int -> ResizeParamsWithDirection -> ShowS # show :: ResizeParamsWithDirection -> String # showList :: [ResizeParamsWithDirection] -> ShowS # | |||||
| Eq ResizeParamsWithDirection Source # | |||||
Defined in Miso.Flow.Types Methods (==) :: ResizeParamsWithDirection -> ResizeParamsWithDirection -> Bool # (/=) :: ResizeParamsWithDirection -> ResizeParamsWithDirection -> Bool # | |||||
| type Rep ResizeParamsWithDirection Source # | |||||
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").