jsaddle-dom-0.10.0.0: src/JSDOM/Generated/SVGFEDropShadowElement.hs
{-# LANGUAGE PatternSynonyms #-}
{-# LANGUAGE ImplicitParams, ConstraintKinds, KindSignatures #-}
{-# OPTIONS_GHC -fno-warn-unused-imports #-}
-- | Generated by dom-gen from filter-effects-1 (webref). Do not edit.
module JSDOM.Generated.SVGFEDropShadowElement
(setStdDeviation, getIn1, getDx, getDy, getStdDeviationX, getStdDeviationY, SVGFEDropShadowElement(..), gTypeSVGFEDropShadowElement)
where
import Prelude ((.), (==), (>>=), (<$>), (++), Bool(..), Maybe(..), IO, Int, Word, Double, Float)
import qualified Prelude as P
import Control.Monad (void)
import Control.Lens.Operators ((^.))
import Language.Javascript.JSaddle (JSM, JSVal, JSString, toJSVal, valToBool, valToNumber, js, jss, jsf, jsg, new, function, asyncFunction, jsUndefined, jsNull)
import JSDOM.Types
import qualified JSDOM.Types as Types
import JSDOM.EventTargetClosures (EventName, unsafeEventName, unsafeEventNameAsync)
import JSDOM.Generated.Enums
-- | <https://developer.mozilla.org/docs/Web/API/SVGFEDropShadowElement/setStdDeviation MDN SVGFEDropShadowElement.setStdDeviation documentation>
setStdDeviation :: (MonadDOM m) => SVGFEDropShadowElement -> Float -> Float -> m ()
setStdDeviation self stdDeviationX stdDeviationY = liftDOM (void (self ^. jsf "setStdDeviation" [toJSVal stdDeviationX, toJSVal stdDeviationY]))
-- | <https://developer.mozilla.org/docs/Web/API/SVGFEDropShadowElement/in1 MDN SVGFEDropShadowElement.in1 documentation>
getIn1 :: (MonadDOM m) => SVGFEDropShadowElement -> m SVGAnimatedString
getIn1 self = liftDOM (((self ^. js "in1") >>= fromJSValUnchecked))
-- | <https://developer.mozilla.org/docs/Web/API/SVGFEDropShadowElement/dx MDN SVGFEDropShadowElement.dx documentation>
getDx :: (MonadDOM m) => SVGFEDropShadowElement -> m SVGAnimatedNumber
getDx self = liftDOM (((self ^. js "dx") >>= fromJSValUnchecked))
-- | <https://developer.mozilla.org/docs/Web/API/SVGFEDropShadowElement/dy MDN SVGFEDropShadowElement.dy documentation>
getDy :: (MonadDOM m) => SVGFEDropShadowElement -> m SVGAnimatedNumber
getDy self = liftDOM (((self ^. js "dy") >>= fromJSValUnchecked))
-- | <https://developer.mozilla.org/docs/Web/API/SVGFEDropShadowElement/stdDeviationX MDN SVGFEDropShadowElement.stdDeviationX documentation>
getStdDeviationX :: (MonadDOM m) => SVGFEDropShadowElement -> m SVGAnimatedNumber
getStdDeviationX self = liftDOM (((self ^. js "stdDeviationX") >>= fromJSValUnchecked))
-- | <https://developer.mozilla.org/docs/Web/API/SVGFEDropShadowElement/stdDeviationY MDN SVGFEDropShadowElement.stdDeviationY documentation>
getStdDeviationY :: (MonadDOM m) => SVGFEDropShadowElement -> m SVGAnimatedNumber
getStdDeviationY self = liftDOM (((self ^. js "stdDeviationY") >>= fromJSValUnchecked))