jsaddle-dom-0.10.0.0: src/JSDOM/Generated/SVGTextPositioningElement.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.SVGTextPositioningElement
(getX, getY, getDx, getDy, getRotate, SVGTextPositioningElement(..), gTypeSVGTextPositioningElement, IsSVGTextPositioningElement, toSVGTextPositioningElement)
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/SVGTextPositioningElement/x MDN SVGTextPositioningElement.x documentation>
getX :: (MonadDOM m, IsSVGTextPositioningElement self) => self -> m SVGAnimatedLengthList
getX self = liftDOM ((((Types.toSVGTextPositioningElement self) ^. js "x") >>= fromJSValUnchecked))
-- | <https://developer.mozilla.org/docs/Web/API/SVGTextPositioningElement/y MDN SVGTextPositioningElement.y documentation>
getY :: (MonadDOM m, IsSVGTextPositioningElement self) => self -> m SVGAnimatedLengthList
getY self = liftDOM ((((Types.toSVGTextPositioningElement self) ^. js "y") >>= fromJSValUnchecked))
-- | <https://developer.mozilla.org/docs/Web/API/SVGTextPositioningElement/dx MDN SVGTextPositioningElement.dx documentation>
getDx :: (MonadDOM m, IsSVGTextPositioningElement self) => self -> m SVGAnimatedLengthList
getDx self = liftDOM ((((Types.toSVGTextPositioningElement self) ^. js "dx") >>= fromJSValUnchecked))
-- | <https://developer.mozilla.org/docs/Web/API/SVGTextPositioningElement/dy MDN SVGTextPositioningElement.dy documentation>
getDy :: (MonadDOM m, IsSVGTextPositioningElement self) => self -> m SVGAnimatedLengthList
getDy self = liftDOM ((((Types.toSVGTextPositioningElement self) ^. js "dy") >>= fromJSValUnchecked))
-- | <https://developer.mozilla.org/docs/Web/API/SVGTextPositioningElement/rotate MDN SVGTextPositioningElement.rotate documentation>
getRotate :: (MonadDOM m, IsSVGTextPositioningElement self) => self -> m SVGAnimatedNumberList
getRotate self = liftDOM ((((Types.toSVGTextPositioningElement self) ^. js "rotate") >>= fromJSValUnchecked))