Liking cljdoc? Tell your friends :D

web.viewport.VisualViewport

The VisualViewport interface of the the Visual Viewport API represents visual viewport for a given window. For a page containing iframes, iframe, as well as the containing page, will have a unique window Each window on a page will have a unique VisualViewport representing properties associated with that window.

The VisualViewport interface of the the Visual Viewport API represents
visual viewport for a given window. For a page containing iframes,
iframe, as well as the containing page, will have a unique window
Each window on a page will have a unique VisualViewport representing
properties associated with that window.
raw docstring

heightcljs

(height this)

Property.

[Read Only] [Experimental]

The height read-only property of the web.viewport.VisualViewport returns the height of the visual viewport, in CSS pixels.

var height = VisualViewport.height

See also: https://developer.mozilla.org/en-US/docs/Web/API/VisualViewport/height

Property.

[Read Only]
[Experimental]

The height read-only property of the `web.viewport.VisualViewport`
returns the height of the visual viewport, in CSS pixels.

`var height = VisualViewport.height`

See also: `https://developer.mozilla.org/en-US/docs/Web/API/VisualViewport/height`
sourceraw docstring

offset-topcljs

(offset-top this)

Property.

[Read Only] [Experimental]

The offsetTop read-only property of the web.viewport.VisualViewport returns the offset of the top edge of the visual viewport from top edge of the layout viewport in CSS pixels.

var offsetTop = VisualViewport.offsetTop

See also: https://developer.mozilla.org/en-US/docs/Web/API/VisualViewport/offsetTop

Property.

[Read Only]
[Experimental]

The offsetTop read-only property of the `web.viewport.VisualViewport`
returns the offset of the top edge of the visual viewport from
top edge of the layout viewport in CSS pixels.

`var offsetTop = VisualViewport.offsetTop`

See also: `https://developer.mozilla.org/en-US/docs/Web/API/VisualViewport/offsetTop`
sourceraw docstring

offsetleftcljs

(offsetleft this)

Property.

[Read Only] [Experimental]

The offsetLeft read-only property of the web.viewport.VisualViewport returns the offset of the left edge of the visual viewport from left edge of the layout viewport in CSS pixels.

var offsetLeft = VisualViewport.offsetLeft

See also: https://developer.mozilla.org/en-US/docs/Web/API/VisualViewport/offsetleft

Property.

[Read Only]
[Experimental]

The offsetLeft read-only property of the `web.viewport.VisualViewport`
returns the offset of the left edge of the visual viewport from
left edge of the layout viewport in CSS pixels.

`var offsetLeft = VisualViewport.offsetLeft`

See also: `https://developer.mozilla.org/en-US/docs/Web/API/VisualViewport/offsetleft`
sourceraw docstring

page-leftcljs

(page-left this)

Property.

[Read Only] [Experimental]

The pageLeft read-only property of the web.viewport.VisualViewport returns the x coordinate relative to the initial containing block of the left edge of the visual viewport, in CSS pixels.

var pageLeft = VisualViewport.pageLeft

See also: https://developer.mozilla.org/en-US/docs/Web/API/VisualViewport/pageLeft

Property.

[Read Only]
[Experimental]

The pageLeft read-only property of the `web.viewport.VisualViewport`
returns the x coordinate relative to the initial containing block
of the left edge of the visual viewport, in CSS pixels.

`var pageLeft = VisualViewport.pageLeft`

See also: `https://developer.mozilla.org/en-US/docs/Web/API/VisualViewport/pageLeft`
sourceraw docstring

page-topcljs

(page-top this)

Property.

[Read Only] [Experimental]

The pageTop read-only property of the web.viewport.VisualViewport returns the y coordinate relative to the initial containing block of the top edge of the visual viewport, in CSS pixels.

var pageTop = VisualViewport.pageTop

See also: https://developer.mozilla.org/en-US/docs/Web/API/VisualViewport/pageTop

Property.

[Read Only]
[Experimental]

The pageTop read-only property of the `web.viewport.VisualViewport`
returns the y coordinate relative to the initial containing block
of the top edge of the visual viewport, in CSS pixels.

`var pageTop = VisualViewport.pageTop`

See also: `https://developer.mozilla.org/en-US/docs/Web/API/VisualViewport/pageTop`
sourceraw docstring

scalecljs

(scale this)

Property.

[Read Only] [Experimental]

The scale read-only property of the web.viewport.VisualViewport returns the pinch-zoom scaling factor applied to the visual viewport.

var scale = VisualViewport.scale

See also: https://developer.mozilla.org/en-US/docs/Web/API/VisualViewport/scale

Property.

[Read Only]
[Experimental]

The scale read-only property of the `web.viewport.VisualViewport`
returns the pinch-zoom scaling factor applied to the visual viewport.

`var scale = VisualViewport.scale`

See also: `https://developer.mozilla.org/en-US/docs/Web/API/VisualViewport/scale`
sourceraw docstring

widthcljs

(width this)

Property.

[Read Only] [Experimental]

The width read-only property of the web.viewport.VisualViewport returns the width of the visual viewport, in CSS pixels.

var width = VisualViewport.width

See also: https://developer.mozilla.org/en-US/docs/Web/API/VisualViewport/width

Property.

[Read Only]
[Experimental]

The width read-only property of the `web.viewport.VisualViewport`
returns the width of the visual viewport, in CSS pixels.

`var width = VisualViewport.width`

See also: `https://developer.mozilla.org/en-US/docs/Web/API/VisualViewport/width`
sourceraw docstring

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close