Kotlin Wrappers API Reference
Toggle table of contents
common
Platform filter
common
Switch theme
kotlin-browser
/
web.viewport
/
VisualViewport
Visual
Viewport
class
VisualViewport
:
EventTarget
(
source
)
MDN Reference
Members
Properties
height
Link copied to clipboard
val
height
:
Double
MDN Reference
offset
Left
Link copied to clipboard
val
offsetLeft
:
Double
MDN Reference
offset
Top
Link copied to clipboard
val
offsetTop
:
Double
MDN Reference
onresize
Link copied to clipboard
var
onresize
:
EventHandler
<
Event
,
VisualViewport
,
VisualViewport
>
?
MDN Reference
onscroll
Link copied to clipboard
var
onscroll
:
EventHandler
<
Event
,
VisualViewport
,
VisualViewport
>
?
MDN Reference
page
Left
Link copied to clipboard
val
pageLeft
:
Double
MDN Reference
page
Top
Link copied to clipboard
val
pageTop
:
Double
MDN Reference
resize
Event
Link copied to clipboard
val
resizeEvent
:
EventInstance
<
Event
,
VisualViewport
,
VisualViewport
>
MDN Reference
scale
Link copied to clipboard
val
scale
:
Double
MDN Reference
scroll
End
Event
Link copied to clipboard
val
scrollEndEvent
:
EventInstance
<
Event
,
VisualViewport
,
VisualViewport
>
MDN Reference
scroll
Event
Link copied to clipboard
val
scrollEvent
:
EventInstance
<
Event
,
VisualViewport
,
VisualViewport
>
MDN Reference
width
Link copied to clipboard
val
width
:
Double
MDN Reference
Functions
dispatch
Event
Link copied to clipboard
fun
dispatchEvent
(
event
:
Event
)
:
Boolean
when
Link copied to clipboard
fun
<
T
:
Event
>
when
(
type
:
EventType
<
T
>
,
options
:
ObservableEventListenerOptions
?
)
:
Observable
<
T
>