Module
Sigil.Svg.Emit
- Package
- purescript-sigil
- Repository
- afcondon/purescript-sigil
Emit: LayoutNode → Effect Element.
Uses shared attribute mapping from Sigil.Svg.Attrs and calls thin
SVG DOM FFI helpers.
#emit Source
emit :: LayoutNode -> Dimensions -> Effect ElementEmit a layout tree as a detached SVG element with the given dimensions.
#renderClassDeclIntoSvg Source
renderClassDeclIntoSvg :: String -> { methods :: Array { ast :: Maybe RenderType, name :: String }, name :: String, superclasses :: Array SuperclassInfo, typeParams :: Array String } -> Effect UnitRender a class definition into a DOM element selected by CSS selector.