module JSDOM.Generated.SVGMarkerElement
(setOrientToAuto, setOrientToAngle,
pattern SVG_MARKERUNITS_UNKNOWN,
pattern SVG_MARKERUNITS_USERSPACEONUSE,
pattern SVG_MARKERUNITS_STROKEWIDTH,
pattern SVG_MARKER_ORIENT_UNKNOWN, pattern SVG_MARKER_ORIENT_AUTO,
pattern SVG_MARKER_ORIENT_ANGLE, getRefX, getRefY, getMarkerUnits,
getMarkerWidth, getMarkerHeight, getOrientType, getOrientAngle,
SVGMarkerElement(..), gTypeSVGMarkerElement)
where
import Prelude ((.), (==), (>>=), return, IO, Int, Float, Double, Bool(..), Maybe, maybe, fromIntegral, round, realToFrac, fmap, Show, Read, Eq, Ord, Maybe(..))
import qualified Prelude (error)
import Data.Typeable (Typeable)
import Data.Traversable (mapM)
import Language.Javascript.JSaddle (JSM(..), JSVal(..), JSString, strictEqual, toJSVal, valToStr, valToNumber, valToBool, js, jss, jsf, jsg, function, asyncFunction, new, array, jsUndefined, (!), (!!))
import Data.Int (Int64)
import Data.Word (Word, Word64)
import JSDOM.Types
import Control.Applicative ((<$>))
import Control.Monad (void)
import Control.Lens.Operators ((^.))
import JSDOM.EventTargetClosures (EventName, unsafeEventName)
import JSDOM.Enums
setOrientToAuto :: (MonadDOM m) => SVGMarkerElement -> m ()
setOrientToAuto self
= liftDOM (void (self ^. jsf "setOrientToAuto" ()))
setOrientToAngle ::
(MonadDOM m) => SVGMarkerElement -> SVGAngle -> m ()
setOrientToAngle self angle
= liftDOM (void (self ^. jsf "setOrientToAngle" [toJSVal angle]))
pattern SVG_MARKERUNITS_UNKNOWN = 0
pattern SVG_MARKERUNITS_USERSPACEONUSE = 1
pattern SVG_MARKERUNITS_STROKEWIDTH = 2
pattern SVG_MARKER_ORIENT_UNKNOWN = 0
pattern SVG_MARKER_ORIENT_AUTO = 1
pattern SVG_MARKER_ORIENT_ANGLE = 2
getRefX :: (MonadDOM m) => SVGMarkerElement -> m SVGAnimatedLength
getRefX self = liftDOM ((self ^. js "refX") >>= fromJSValUnchecked)
getRefY :: (MonadDOM m) => SVGMarkerElement -> m SVGAnimatedLength
getRefY self = liftDOM ((self ^. js "refY") >>= fromJSValUnchecked)
getMarkerUnits ::
(MonadDOM m) => SVGMarkerElement -> m SVGAnimatedEnumeration
getMarkerUnits self
= liftDOM ((self ^. js "markerUnits") >>= fromJSValUnchecked)
getMarkerWidth ::
(MonadDOM m) => SVGMarkerElement -> m SVGAnimatedLength
getMarkerWidth self
= liftDOM ((self ^. js "markerWidth") >>= fromJSValUnchecked)
getMarkerHeight ::
(MonadDOM m) => SVGMarkerElement -> m SVGAnimatedLength
getMarkerHeight self
= liftDOM ((self ^. js "markerHeight") >>= fromJSValUnchecked)
getOrientType ::
(MonadDOM m) => SVGMarkerElement -> m SVGAnimatedEnumeration
getOrientType self
= liftDOM ((self ^. js "orientType") >>= fromJSValUnchecked)
getOrientAngle ::
(MonadDOM m) => SVGMarkerElement -> m SVGAnimatedAngle
getOrientAngle self
= liftDOM ((self ^. js "orientAngle") >>= fromJSValUnchecked)