Module
Data.DotLang.Attr.Node
- Package
- purescript-dotlang
- Repository
- csicar/purescript-dotlang
#LabelValue Source
#renderLabel Source
renderLabel :: LabelValue -> String#RecordLabelValue Source
#ShapeType Source
data ShapeTypepossible node shapes
Constructors
BoxPolygonEllipseOvalCirclePointEggTrianglePlaintextPlainDiamondTrapeziumParallelogramHousePentagonHexagonSeptagonOctagonDoublecircleDoubleoctagonTripleoctagonInvtriangleInvtrapeziumInvhouseMdiamondMsquareMcircleRectRectangleSquareStarNoneUnderlineCylinderNoteTabFolderBox3dComponentPromoterCdsTerminatorUtrPrimersiteRestrictionsiteFivepoverhangThreepoverhangNoverhangAssemblySignatureInsulatorRibositeRnastabProteasesiteProteinstabRpromoterRarrowLarrowLpromoterRecord
Instances
#recordLabel Source
recordLabel :: Array { fieldId :: Maybe String, value :: RecordLabelValue } -> Attr> import Data.DotLang
> import Data.DotLang.Class (toText)
> toText $ node "a" [recordLabel [subId "test" $ subLabel "c", subLabel "d", subRecord [ subLabel "k", subLabel "l"]]]
"a [label=\"{<test>c} | {d} | {{k} | {l}}\"]; "
#subRecord Source
subRecord :: Array { fieldId :: Maybe String, value :: RecordLabelValue } -> { fieldId :: Maybe String, value :: RecordLabelValue }#subId Source
subId :: String -> { fieldId :: Maybe String, value :: RecordLabelValue } -> { fieldId :: Maybe String, value :: RecordLabelValue }