Skip to content

Commit

Permalink
Web Types 0.0.179 [generated]
Browse files Browse the repository at this point in the history
  • Loading branch information
turansky committed Nov 14, 2024
1 parent 9686ee4 commit 3c2ec91
Show file tree
Hide file tree
Showing 6 changed files with 48 additions and 0 deletions.
8 changes: 8 additions & 0 deletions kotlin-browser/src/jsMain/generated/web/geometry/DOMQuad.kt
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,15 @@ open external class DOMQuad(
val p2: DOMPoint
val p3: DOMPoint
val p4: DOMPoint

/**
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMQuad/getBounds)
*/
fun getBounds(): DOMRect

/**
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMQuad/toJSON)
*/
fun toJSON(): Any

companion object {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,10 @@ protected constructor() :
* Sets or retrieves the coordinates of the object.
*/
var coords: String

/**
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLAreaElement/download)
*/
var download: String

/**
Expand Down
2 changes: 2 additions & 0 deletions kotlin-browser/src/jsMain/generated/web/html/HTMLLIElement.kt
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@ protected constructor() :
HTMLElement {
/**
* Sets or retrieves the value of a list item.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLLIElement/value)
*/
var value: Int
}
14 changes: 14 additions & 0 deletions kotlin-browser/src/jsMain/generated/web/window/Window.kt
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,8 @@ import web.selection.Selection
import web.storage.StorageEvent
import web.uievents.*
import web.url.URL
import web.viewtransition.PageRevealEvent
import web.viewtransition.PageSwapEvent

/**
* A window containing a DOM document; the document property points to the DOM document loaded in that window.
Expand Down Expand Up @@ -713,12 +715,24 @@ private constructor() :
@JsEvent("pagehide")
val pageHideEvent: EventInstance<PageTransitionEvent, Window /* this */, Window /* this */>

/**
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/pagereveal_event)
*/
@JsEvent("pagereveal")
val pageRevealEvent: EventInstance<PageRevealEvent, Window /* this */, Window /* this */>

/**
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/pageshow_event)
*/
@JsEvent("pageshow")
val pageShowEvent: EventInstance<PageTransitionEvent, Window /* this */, Window /* this */>

/**
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/pageswap_event)
*/
@JsEvent("pageswap")
val pageSwapEvent: EventInstance<PageSwapEvent, Window /* this */, Window /* this */>

/**
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/paste_event)
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -103,13 +103,27 @@ external interface WindowEventHandlers :
get() = definedExternally
set(value) = definedExternally

/**
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/pagereveal_event)
*/
var onpagereveal: EventHandler<Event, WindowEventHandlers, WindowEventHandlers>?
get() = definedExternally
set(value) = definedExternally

/**
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/pageshow_event)
*/
var onpageshow: EventHandler<PageTransitionEvent, WindowEventHandlers, WindowEventHandlers>?
get() = definedExternally
set(value) = definedExternally

/**
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/pageswap_event)
*/
var onpageswap: EventHandler<Event, WindowEventHandlers, WindowEventHandlers>?
get() = definedExternally
set(value) = definedExternally

/**
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/popstate_event)
*/
Expand Down
6 changes: 6 additions & 0 deletions kotlin-web/src/jsMain/generated/web/events/Event.kt
Original file line number Diff line number Diff line change
Expand Up @@ -280,6 +280,12 @@ open external class Event(
@JsValue("open")
val OPEN: EventType<Event>

@JsValue("pagereveal")
val PAGE_REVEAL: EventType<Event>

@JsValue("pageswap")
val PAGE_SWAP: EventType<Event>

@JsValue("pause")
val PAUSE: EventType<Event>

Expand Down

1 comment on commit 3c2ec91

@turansky
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@Leonya could you, please, release these changes?

Please sign in to comment.