jsaddle-dom-0.10.0.0: src/JSDOM/Generated/SVGCircleElement.hs
{-# LANGUAGE PatternSynonyms #-}
{-# LANGUAGE ImplicitParams, ConstraintKinds, KindSignatures #-}
{-# OPTIONS_GHC -fno-warn-unused-imports #-}
-- | Generated by dom-gen from SVG2 (webref). Do not edit.
module JSDOM.Generated.SVGCircleElement
(getCx, getCy, getR, SVGCircleElement(..), gTypeSVGCircleElement)
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/SVGCircleElement/cx MDN SVGCircleElement.cx documentation>
getCx :: (MonadDOM m) => SVGCircleElement -> m SVGAnimatedLength
getCx self = liftDOM (((self ^. js "cx") >>= fromJSValUnchecked))
-- | <https://developer.mozilla.org/docs/Web/API/SVGCircleElement/cy MDN SVGCircleElement.cy documentation>
getCy :: (MonadDOM m) => SVGCircleElement -> m SVGAnimatedLength
getCy self = liftDOM (((self ^. js "cy") >>= fromJSValUnchecked))
-- | <https://developer.mozilla.org/docs/Web/API/SVGCircleElement/r MDN SVGCircleElement.r documentation>
getR :: (MonadDOM m) => SVGCircleElement -> m SVGAnimatedLength
getR self = liftDOM (((self ^. js "r") >>= fromJSValUnchecked))