miso
Copyright(C) 2016-2025 David M. Johnson
LicenseBSD3-style (see the file LICENSE)
MaintainerDavid M. Johnson <code@dmj.io>
Stabilityexperimental
Portabilitynon-portable
Safe HaskellNone
LanguageHaskell2010

Miso.Svg

Description

Example usage:

import Miso
import Miso.Svg

intView :: Int -> View IntAction
intView n = svg_ [ height_ "100", width "100" ] [
   circle_ [ cx_ "50", cy_ "50", r_ "40", stroke_ "green", strokeWidth_ "4", fill_ "yellow" ] []
 ]

More information on how to use miso is available on GitHub

http://github.com/dmjio/miso

Synopsis

Element

Property

Event

onAbort :: action -> Attribute action Source #

onAbort event

onActivate :: action -> Attribute action Source #

onActivate event

onBegin :: action -> Attribute action Source #

onBegin event

onEnd :: action -> Attribute action Source #

onEnd event

onError :: action -> Attribute action Source #

onError event

onFocusIn :: action -> Attribute action Source #

onFocusIn event

onFocusOut :: action -> Attribute action Source #

onFocusOut event

onLoad :: action -> Attribute action Source #

onLoad event

onMouseDown :: action -> Attribute action Source #

onMouseDown event

onMouseMove :: action -> Attribute action Source #

onMouseMove event

onMouseOut :: action -> Attribute action Source #

onMouseOut event

onMouseOver :: action -> Attribute action Source #

onMouseOver event

onMouseUp :: action -> Attribute action Source #

onMouseUp event

onRepeat :: action -> Attribute action Source #

onRepeat event

onResize :: action -> Attribute action Source #

onResize event

onScroll :: action -> Attribute action Source #

onScroll event

onUnload :: action -> Attribute action Source #

onUnload event

onZoom :: action -> Attribute action Source #

onZoom event