Constructor of class
to configure class, if configuration option is omitted, default one is used
Private
Readonly
checkCheck orientation fn reference to be able to add and also remove event listener
Private
Readonly
configClass config
Optional
animationDirection of image animation
'clockwise'
Optional
animationEnable/disable image animation
false
Optional
backgroundBackground color of whole prompt (all css possibilities, like hexa color '#000000', 'red'...)
'#000000'
Optional
containerId of whole container prompt
'promptContainer'
Optional
hideHide/show image
false
Optional
hideHide/show description text
false
Optional
imageColor of device image (all css possibilities, like hexa color '#000000', 'red'...)
'#ffffff'
Optional
imageId of svg image
'promptImage'
Optional
imageSize of device image (all css units like px, em, rem, vh...)
'60vh' for portrait '30vh' for landscape
Optional
imagePhone style
'circle'
Optional
mobileTurn on/off automatic mobile/tablet detection When automatic detection is on, then prompt is show only on mobile/tablet devices
false
Optional
orientation?: DeviceOrientationThe orientation you want to force, if orientation is different, prompt is showed.
'landscape'
Optional
styleId of style tag, where all styles of this library are defined
'promptStyle'
Optional
text?: stringDescription text to show
'Please rotate your device'
Optional
textColor of description text (all css possibilities, like hexa color '#000000', 'red'...)
'#ffffff'
Optional
textFont of description text
'\'Arial Black\', \'Arial Bold\', Gadget, sans-serif'
Optional
textId of container with description text
'promptText'
Optional
textSize of description text (all css units like px, em, rem, vh...)
'10vh' for portrait '5vh' for landscape
Optional
zz-index of whole prompt
undefined
Private
animationPrivate
Animation css styles,
Private
devicePrivate
Device SVG image
Private
finalPrivate
Final angle of image
Private
imagePrivate
Size of image, returns size from config, or if image size is not presented in config it returns 60vh for portrait, 30vh for landscape
Private
initialPrivate
Initial angle of image, if animation is disabled, it returns final angle
Private
isPrivate
Return display CSS property based on hideImage property
Private
isPrivate
Return display CSS property based on hideText property
Private
svgPrivate
Get phone svg style based on imageStyle property
Private
textPrivate
Size of text, returns size from config, or if text size is not presented in config it returns 10vh for portrait, 5vh for landscape
Private
zPrivate
z-index rule for css, if zIndex property is present in config
Private
canPrivate
checkPrivate
generatePrivate
generatePrivate
isPrivate
isGenerated using TypeDoc
Class to show device rotation fullscreen prompt, it activates immediately upon instantiation