| License | BSD3-style (see the file LICENSE) |
|---|---|
| Safe Haskell | None |
| Language | Haskell2010 |
Miso.Flow.Constants
Description
Port of constants.ts from @xyflow/system.
Synopsis
- errorMessage :: ErrorCode -> MisoString -> MisoString
- error001 :: MisoString
- error002 :: MisoString
- error003 :: MisoString -> MisoString
- error004 :: MisoString
- error005 :: MisoString
- error006 :: MisoString
- error007 :: MisoString -> MisoString
- error008 :: HandleType -> Maybe MisoString -> EdgeId -> MisoString
- error009 :: MisoString -> MisoString
- error010 :: MisoString
- error011 :: MisoString -> MisoString
- error012 :: MisoString -> MisoString
- error013 :: MisoString
- error014 :: MisoString
- error015 :: MisoString
- error016 :: MisoString -> MisoString
- infiniteExtent :: CoordinateExtent
- elementSelectionKeys :: [MisoString]
- data AriaLabelConfig = AriaLabelConfig {
- ariaNodeDescriptionDefault :: MisoString
- ariaNodeDescriptionKeyboardDisabled :: MisoString
- ariaNodeLiveMessage :: MisoString -> Double -> Double -> MisoString
- ariaEdgeDescriptionDefault :: MisoString
- ariaControlsLabel :: MisoString
- ariaControlsZoomInLabel :: MisoString
- ariaControlsZoomOutLabel :: MisoString
- ariaControlsFitViewLabel :: MisoString
- ariaControlsInteractiveLabel :: MisoString
- ariaMinimapLabel :: MisoString
- ariaHandleLabel :: MisoString
- defaultAriaLabelConfig :: AriaLabelConfig
- mergeAriaLabelConfig :: (AriaLabelConfig -> AriaLabelConfig) -> AriaLabelConfig
Error messages
errorMessage :: ErrorCode -> MisoString -> MisoString Source #
Look up an error message renderer by its code. The context argument (an id, node type, etc.) is interpolated where the original message takes a parameter and ignored otherwise.
error003 :: MisoString -> MisoString Source #
error007 :: MisoString -> MisoString Source #
error008 :: HandleType -> Maybe MisoString -> EdgeId -> MisoString Source #
Takes the failing HandleType, the handle id (if any) and the edge id.
error009 :: MisoString -> MisoString Source #
error011 :: MisoString -> MisoString Source #
error012 :: MisoString -> MisoString Source #
error016 :: MisoString -> MisoString Source #
Extents
infiniteExtent :: CoordinateExtent Source #
The unbounded CoordinateExtent.
Keys
Aria labels
data AriaLabelConfig Source #
Port of defaultAriaLabelConfig. The two message functions are
proper Haskell functions.
Constructors
mergeAriaLabelConfig :: (AriaLabelConfig -> AriaLabelConfig) -> AriaLabelConfig Source #
Port of mergeAriaLabelConfig: apply overrides to the defaults.