VisualViewport
Generated.swift:2071class VisualViewport
class VisualViewport
import CSSOM
class EventTarget
protocol ConstructibleFromJSValue
Types conforming to this protocol can be constructed from JSValue
.
protocol ConvertibleToJSValue
Objects that can be converted to a JavaScript value, preferably in a lossless manner.
protocol CustomStringConvertible
A type with a customized textual representation.
protocol JSBridgedClass : JSBridgedType
Conform to this protocol when your Swift class wraps a JavaScript class.
protocol JSBridgedType : ConstructibleFromJSValue, ConvertibleToJSValue, CustomStringConvertible
Use this protocol when your type has no single JavaScript class. For example, a union type of multiple classes or primitive values.
required init(unsafelyWrapping jsObject: JSObject)
override class var constructor: JSFunction? { get }
@ReadonlyAttribute var height: Double { get }
@ReadonlyAttribute var offsetLeft: Double { get }
@ReadonlyAttribute var offsetTop: Double { get }
@ClosureAttribute1Optional var onresize: EventHandler { get set }
@ClosureAttribute1Optional var onscroll: EventHandler { get set }
@ClosureAttribute1Optional var onscrollend: EventHandler { get set }
@ReadonlyAttribute var pageLeft: Double { get }
@ReadonlyAttribute var pageTop: Double { get }
@ReadonlyAttribute var scale: Double { get }
@ReadonlyAttribute var width: Double { get }