Interface: Window ​
A window containing a DOM document; the document property points to the DOM document loaded in that window.
Extends ​
EventTarget
.AnimationFrameProvider
.GlobalEventHandlers
.WindowEventHandlers
.WindowLocalStorage
.WindowOrWorkerGlobalScope
.WindowSessionStorage
Indexable ​
[index
: number
]: Window
Properties ​
caches ​
readonly
caches:CacheStorage
Available only in secure contexts.
Inherited from ​
WindowOrWorkerGlobalScope.caches
Defined in ​
node_modules/typescript/lib/lib.dom.d.ts:26272
clientInformation ​
readonly
clientInformation:Navigator
Deprecated ​
This is a legacy alias of navigator
.
Defined in ​
node_modules/typescript/lib/lib.dom.d.ts:25923
closed ​
readonly
closed:boolean
Returns true if the window has been closed, false otherwise.
Defined in ​
node_modules/typescript/lib/lib.dom.d.ts:25929
commaFormat() ​
commaFormat: (
num
,precision
) =>string
Parameters ​
num ​
precision ​
number
Returns ​
string
Defined in ​
profectus/src/util/bignum.ts:25
crossOriginIsolated ​
readonly
crossOriginIsolated:boolean
Inherited from ​
WindowOrWorkerGlobalScope.crossOriginIsolated
Defined in ​
node_modules/typescript/lib/lib.dom.d.ts:26274
crypto ​
readonly
crypto:Crypto
Inherited from ​
WindowOrWorkerGlobalScope.crypto
Defined in ​
node_modules/typescript/lib/lib.dom.d.ts:26276
customElements ​
readonly
customElements:CustomElementRegistry
Defines a new custom element, mapping the given name to the given constructor as an autonomous custom element.
Defined in ​
node_modules/typescript/lib/lib.dom.d.ts:25935
Decimal ​
Decimal: typeof
default
Defined in ​
profectus/src/util/bignum.ts:23
deleteLowerSaves ​
deleteLowerSaves:
VoidFunction
Defined in ​
profectus/src/util/save.ts:193
devicePixelRatio ​
readonly
devicePixelRatio:number
Defined in ​
node_modules/typescript/lib/lib.dom.d.ts:25937
document ​
readonly
document:Document
Defined in ​
node_modules/typescript/lib/lib.dom.d.ts:25939
event ​
readonly
event:undefined
|Event
Deprecated ​
Defined in ​
node_modules/typescript/lib/lib.dom.d.ts:25945
exponentialFormat() ​
exponentialFormat: (
num
,precision
,mantissa
) =>string
Parameters ​
num ​
precision ​
number
mantissa ​
boolean
Returns ​
string
Defined in ​
profectus/src/util/bignum.ts:24
external ​
readonly
external:External
Deprecated ​
Defined in ​
node_modules/typescript/lib/lib.dom.d.ts:25951
format() ​
format: (
num
,precision
?,small
?) =>string
Parameters ​
num ​
precision? ​
number
small? ​
boolean
Returns ​
string
Defined in ​
profectus/src/util/bignum.ts:27
formatSmall() ​
formatSmall: (
x
,precision
?) =>string
Parameters ​
x ​
precision? ​
number
Returns ​
string
Defined in ​
profectus/src/util/bignum.ts:31
formatTime() ​
formatTime: (
s
) =>string
Parameters ​
s ​
number
Returns ​
string
Defined in ​
profectus/src/util/bignum.ts:29
formatWhole() ​
formatWhole: (
num
) =>string
Parameters ​
num ​
Returns ​
string
Defined in ​
profectus/src/util/bignum.ts:28
frameElement ​
readonly
frameElement:null
|Element
Defined in ​
node_modules/typescript/lib/lib.dom.d.ts:25953
frames ​
readonly
frames:Window
Defined in ​
node_modules/typescript/lib/lib.dom.d.ts:25955
hardReset ​
hardReset:
VoidFunction
Defined in ​
profectus/src/util/save.ts:192
hardResetSettings ​
hardResetSettings:
VoidFunction
Defined in ​
profectus/src/game/settings.ts:53
history ​
readonly
history:History
Defined in ​
node_modules/typescript/lib/lib.dom.d.ts:25957
indexedDB ​
readonly
indexedDB:IDBFactory
Inherited from ​
WindowOrWorkerGlobalScope.indexedDB
Defined in ​
node_modules/typescript/lib/lib.dom.d.ts:26278
innerHeight ​
readonly
innerHeight:number
Defined in ​
node_modules/typescript/lib/lib.dom.d.ts:25959
innerWidth ​
readonly
innerWidth:number
Defined in ​
node_modules/typescript/lib/lib.dom.d.ts:25961
invertOOM() ​
invertOOM: (
x
) =>default
Parameters ​
x ​
Returns ​
Defined in ​
profectus/src/util/bignum.ts:32
isSecureContext ​
readonly
isSecureContext:boolean
Inherited from ​
WindowOrWorkerGlobalScope.isSecureContext
Defined in ​
node_modules/typescript/lib/lib.dom.d.ts:26280
layers ​
Defined in ​
profectus/src/game/layers.tsx:79
length ​
readonly
length:number
Defined in ​
node_modules/typescript/lib/lib.dom.d.ts:25963
localStorage ​
readonly
localStorage:Storage
Inherited from ​
WindowLocalStorage.localStorage
Defined in ​
node_modules/typescript/lib/lib.dom.d.ts:26263
locationbar ​
readonly
locationbar:BarProp
Returns true if the location bar is visible; otherwise, returns false.
Defined in ​
node_modules/typescript/lib/lib.dom.d.ts:25972
menubar ​
readonly
menubar:BarProp
Returns true if the menu bar is visible; otherwise, returns false.
Defined in ​
node_modules/typescript/lib/lib.dom.d.ts:25978
name ​
name:
string
Defined in ​
node_modules/typescript/lib/lib.dom.d.ts:25980
navigator ​
readonly
navigator:Navigator
Defined in ​
node_modules/typescript/lib/lib.dom.d.ts:25982
onabort ​
onabort:
null
| (this
,ev
) =>any
Fires when the user aborts the download.
Param ​
The event.
Inherited from ​
GlobalEventHandlers.onabort
Defined in ​
node_modules/typescript/lib/lib.dom.d.ts:9070
onafterprint ​
onafterprint:
null
| (this
,ev
) =>any
Inherited from ​
WindowEventHandlers.onafterprint
Defined in ​
node_modules/typescript/lib/lib.dom.d.ts:26216
onanimationcancel ​
onanimationcancel:
null
| (this
,ev
) =>any
Inherited from ​
GlobalEventHandlers.onanimationcancel
Defined in ​
node_modules/typescript/lib/lib.dom.d.ts:9072
onanimationend ​
onanimationend:
null
| (this
,ev
) =>any
Inherited from ​
GlobalEventHandlers.onanimationend
Defined in ​
node_modules/typescript/lib/lib.dom.d.ts:9074
onanimationiteration ​
onanimationiteration:
null
| (this
,ev
) =>any
Inherited from ​
GlobalEventHandlers.onanimationiteration
Defined in ​
node_modules/typescript/lib/lib.dom.d.ts:9076
onanimationstart ​
onanimationstart:
null
| (this
,ev
) =>any
Inherited from ​
GlobalEventHandlers.onanimationstart
Defined in ​
node_modules/typescript/lib/lib.dom.d.ts:9078
onauxclick ​
onauxclick:
null
| (this
,ev
) =>any
Inherited from ​
GlobalEventHandlers.onauxclick
Defined in ​
node_modules/typescript/lib/lib.dom.d.ts:9080
onbeforeinput ​
onbeforeinput:
null
| (this
,ev
) =>any
Inherited from ​
GlobalEventHandlers.onbeforeinput
Defined in ​
node_modules/typescript/lib/lib.dom.d.ts:9082
onbeforeprint ​
onbeforeprint:
null
| (this
,ev
) =>any
Inherited from ​
WindowEventHandlers.onbeforeprint
Defined in ​
node_modules/typescript/lib/lib.dom.d.ts:26218
onbeforetoggle ​
onbeforetoggle:
null
| (this
,ev
) =>any
Inherited from ​
GlobalEventHandlers.onbeforetoggle
Defined in ​
node_modules/typescript/lib/lib.dom.d.ts:9084
onbeforeunload ​
onbeforeunload:
null
| (this
,ev
) =>any
Inherited from ​
WindowEventHandlers.onbeforeunload
Defined in ​
node_modules/typescript/lib/lib.dom.d.ts:26220
onblur ​
onblur:
null
| (this
,ev
) =>any
Fires when the object loses the input focus.
Param ​
The focus event.
Inherited from ​
GlobalEventHandlers.onblur
Defined in ​
node_modules/typescript/lib/lib.dom.d.ts:9091
oncancel ​
oncancel:
null
| (this
,ev
) =>any
Inherited from ​
GlobalEventHandlers.oncancel
Defined in ​
node_modules/typescript/lib/lib.dom.d.ts:9093
oncanplay ​
oncanplay:
null
| (this
,ev
) =>any
Occurs when playback is possible, but would require further buffering.
Param ​
The event.
Inherited from ​
GlobalEventHandlers.oncanplay
Defined in ​
node_modules/typescript/lib/lib.dom.d.ts:9100
oncanplaythrough ​
oncanplaythrough:
null
| (this
,ev
) =>any
Inherited from ​
GlobalEventHandlers.oncanplaythrough
Defined in ​
node_modules/typescript/lib/lib.dom.d.ts:9102
onchange ​
onchange:
null
| (this
,ev
) =>any
Fires when the contents of the object or selection have changed.
Param ​
The event.
Inherited from ​
GlobalEventHandlers.onchange
Defined in ​
node_modules/typescript/lib/lib.dom.d.ts:9109
onclick ​
onclick:
null
| (this
,ev
) =>any
Fires when the user clicks the left mouse button on the object
Param ​
The mouse event.
Inherited from ​
GlobalEventHandlers.onclick
Defined in ​
node_modules/typescript/lib/lib.dom.d.ts:9116
onclose ​
onclose:
null
| (this
,ev
) =>any
Inherited from ​
GlobalEventHandlers.onclose
Defined in ​
node_modules/typescript/lib/lib.dom.d.ts:9118
oncontextmenu ​
oncontextmenu:
null
| (this
,ev
) =>any
Fires when the user clicks the right mouse button in the client area, opening the context menu.
Param ​
The mouse event.
Inherited from ​
GlobalEventHandlers.oncontextmenu
Defined in ​
node_modules/typescript/lib/lib.dom.d.ts:9125
oncopy ​
oncopy:
null
| (this
,ev
) =>any
Inherited from ​
GlobalEventHandlers.oncopy
Defined in ​
node_modules/typescript/lib/lib.dom.d.ts:9127
oncuechange ​
oncuechange:
null
| (this
,ev
) =>any
Inherited from ​
GlobalEventHandlers.oncuechange
Defined in ​
node_modules/typescript/lib/lib.dom.d.ts:9129
oncut ​
oncut:
null
| (this
,ev
) =>any
Inherited from ​
GlobalEventHandlers.oncut
Defined in ​
node_modules/typescript/lib/lib.dom.d.ts:9131
ondblclick ​
ondblclick:
null
| (this
,ev
) =>any
Fires when the user double-clicks the object.
Param ​
The mouse event.
Inherited from ​
GlobalEventHandlers.ondblclick
Defined in ​
node_modules/typescript/lib/lib.dom.d.ts:9138
ondevicemotion ​
ondevicemotion:
null
| (this
,ev
) =>any
Available only in secure contexts.
Defined in ​
node_modules/typescript/lib/lib.dom.d.ts:25988
ondeviceorientation ​
ondeviceorientation:
null
| (this
,ev
) =>any
Available only in secure contexts.
Defined in ​
node_modules/typescript/lib/lib.dom.d.ts:25994
ondeviceorientationabsolute ​
ondeviceorientationabsolute:
null
| (this
,ev
) =>any
Available only in secure contexts.
Defined in ​
node_modules/typescript/lib/lib.dom.d.ts:26000
ondrag ​
ondrag:
null
| (this
,ev
) =>any
Fires on the source object continuously during a drag operation.
Param ​
The event.
Inherited from ​
GlobalEventHandlers.ondrag
Defined in ​
node_modules/typescript/lib/lib.dom.d.ts:9145
ondragend ​
ondragend:
null
| (this
,ev
) =>any
Fires on the source object when the user releases the mouse at the close of a drag operation.
Param ​
The event.
Inherited from ​
GlobalEventHandlers.ondragend
Defined in ​
node_modules/typescript/lib/lib.dom.d.ts:9152
ondragenter ​
ondragenter:
null
| (this
,ev
) =>any
Fires on the target element when the user drags the object to a valid drop target.
Param ​
The drag event.
Inherited from ​
GlobalEventHandlers.ondragenter
Defined in ​
node_modules/typescript/lib/lib.dom.d.ts:9159
ondragleave ​
ondragleave:
null
| (this
,ev
) =>any
Fires on the target object when the user moves the mouse out of a valid drop target during a drag operation.
Param ​
The drag event.
Inherited from ​
GlobalEventHandlers.ondragleave
Defined in ​
node_modules/typescript/lib/lib.dom.d.ts:9166
ondragover ​
ondragover:
null
| (this
,ev
) =>any
Fires on the target element continuously while the user drags the object over a valid drop target.
Param ​
The event.
Inherited from ​
GlobalEventHandlers.ondragover
Defined in ​
node_modules/typescript/lib/lib.dom.d.ts:9173
ondragstart ​
ondragstart:
null
| (this
,ev
) =>any
Fires on the source object when the user starts to drag a text selection or selected object.
Param ​
The event.
Inherited from ​
GlobalEventHandlers.ondragstart
Defined in ​
node_modules/typescript/lib/lib.dom.d.ts:9180
ondrop ​
ondrop:
null
| (this
,ev
) =>any
Inherited from ​
GlobalEventHandlers.ondrop
Defined in ​
node_modules/typescript/lib/lib.dom.d.ts:9182
ondurationchange ​
ondurationchange:
null
| (this
,ev
) =>any
Occurs when the duration attribute is updated.
Param ​
The event.
Inherited from ​
GlobalEventHandlers.ondurationchange
Defined in ​
node_modules/typescript/lib/lib.dom.d.ts:9189
onemptied ​
onemptied:
null
| (this
,ev
) =>any
Occurs when the media element is reset to its initial state.
Param ​
The event.
Inherited from ​
GlobalEventHandlers.onemptied
Defined in ​
node_modules/typescript/lib/lib.dom.d.ts:9196
onended ​
onended:
null
| (this
,ev
) =>any
Occurs when the end of playback is reached.
Param ​
The event
Inherited from ​
GlobalEventHandlers.onended
Defined in ​
node_modules/typescript/lib/lib.dom.d.ts:9203
onerror ​
onerror:
OnErrorEventHandler
Fires when an error occurs during object loading.
Param ​
The event.
Inherited from ​
GlobalEventHandlers.onerror
Defined in ​
node_modules/typescript/lib/lib.dom.d.ts:9210
onfocus ​
onfocus:
null
| (this
,ev
) =>any
Fires when the object receives focus.
Param ​
The event.
Inherited from ​
GlobalEventHandlers.onfocus
Defined in ​
node_modules/typescript/lib/lib.dom.d.ts:9217
onformdata ​
onformdata:
null
| (this
,ev
) =>any
Inherited from ​
GlobalEventHandlers.onformdata
Defined in ​
node_modules/typescript/lib/lib.dom.d.ts:9219
ongamepadconnected ​
ongamepadconnected:
null
| (this
,ev
) =>any
Inherited from ​
WindowEventHandlers.ongamepadconnected
Defined in ​
node_modules/typescript/lib/lib.dom.d.ts:26222
ongamepaddisconnected ​
ongamepaddisconnected:
null
| (this
,ev
) =>any
Inherited from ​
WindowEventHandlers.ongamepaddisconnected
Defined in ​
node_modules/typescript/lib/lib.dom.d.ts:26224
ongotpointercapture ​
ongotpointercapture:
null
| (this
,ev
) =>any
Inherited from ​
GlobalEventHandlers.ongotpointercapture
Defined in ​
node_modules/typescript/lib/lib.dom.d.ts:9221
onhashchange ​
onhashchange:
null
| (this
,ev
) =>any
Inherited from ​
WindowEventHandlers.onhashchange
Defined in ​
node_modules/typescript/lib/lib.dom.d.ts:26226
oninput ​
oninput:
null
| (this
,ev
) =>any
Inherited from ​
GlobalEventHandlers.oninput
Defined in ​
node_modules/typescript/lib/lib.dom.d.ts:9223
oninvalid ​
oninvalid:
null
| (this
,ev
) =>any
Inherited from ​
GlobalEventHandlers.oninvalid
Defined in ​
node_modules/typescript/lib/lib.dom.d.ts:9225
onkeydown ​
onkeydown:
null
| (this
,ev
) =>any
Fires when the user presses a key.
Param ​
The keyboard event
Inherited from ​
GlobalEventHandlers.onkeydown
Defined in ​
node_modules/typescript/lib/lib.dom.d.ts:9232
onkeypress ​
onkeypress:
null
| (this
,ev
) =>any
Fires when the user presses an alphanumeric key.
Param ​
The event.
Deprecated ​
Inherited from ​
GlobalEventHandlers.onkeypress
Defined in ​
node_modules/typescript/lib/lib.dom.d.ts:9240
onkeyup ​
onkeyup:
null
| (this
,ev
) =>any
Fires when the user releases a key.
Param ​
The keyboard event
Inherited from ​
GlobalEventHandlers.onkeyup
Defined in ​
node_modules/typescript/lib/lib.dom.d.ts:9247
onlanguagechange ​
onlanguagechange:
null
| (this
,ev
) =>any
Inherited from ​
WindowEventHandlers.onlanguagechange
Defined in ​
node_modules/typescript/lib/lib.dom.d.ts:26228
onload ​
onload:
null
| (this
,ev
) =>any
Fires immediately after the browser loads the object.
Param ​
The event.
Inherited from ​
GlobalEventHandlers.onload
Defined in ​
node_modules/typescript/lib/lib.dom.d.ts:9254
onloadeddata ​
onloadeddata:
null
| (this
,ev
) =>any
Occurs when media data is loaded at the current playback position.
Param ​
The event.
Inherited from ​
GlobalEventHandlers.onloadeddata
Defined in ​
node_modules/typescript/lib/lib.dom.d.ts:9261
onloadedmetadata ​
onloadedmetadata:
null
| (this
,ev
) =>any
Occurs when the duration and dimensions of the media have been determined.
Param ​
The event.
Inherited from ​
GlobalEventHandlers.onloadedmetadata
Defined in ​
node_modules/typescript/lib/lib.dom.d.ts:9268
onloadstart ​
onloadstart:
null
| (this
,ev
) =>any
Occurs when Internet Explorer begins looking for media data.
Param ​
The event.
Inherited from ​
GlobalEventHandlers.onloadstart
Defined in ​
node_modules/typescript/lib/lib.dom.d.ts:9275
onlostpointercapture ​
onlostpointercapture:
null
| (this
,ev
) =>any
Inherited from ​
GlobalEventHandlers.onlostpointercapture
Defined in ​
node_modules/typescript/lib/lib.dom.d.ts:9277
onmessage ​
onmessage:
null
| (this
,ev
) =>any
Inherited from ​
WindowEventHandlers.onmessage
Defined in ​
node_modules/typescript/lib/lib.dom.d.ts:26230
onmessageerror ​
onmessageerror:
null
| (this
,ev
) =>any
Inherited from ​
WindowEventHandlers.onmessageerror
Defined in ​
node_modules/typescript/lib/lib.dom.d.ts:26232
onmousedown ​
onmousedown:
null
| (this
,ev
) =>any
Fires when the user clicks the object with either mouse button.
Param ​
The mouse event.
Inherited from ​
GlobalEventHandlers.onmousedown
Defined in ​
node_modules/typescript/lib/lib.dom.d.ts:9284
onmouseenter ​
onmouseenter:
null
| (this
,ev
) =>any
Inherited from ​
GlobalEventHandlers.onmouseenter
Defined in ​
node_modules/typescript/lib/lib.dom.d.ts:9286
onmouseleave ​
onmouseleave:
null
| (this
,ev
) =>any
Inherited from ​
GlobalEventHandlers.onmouseleave
Defined in ​
node_modules/typescript/lib/lib.dom.d.ts:9288
onmousemove ​
onmousemove:
null
| (this
,ev
) =>any
Fires when the user moves the mouse over the object.
Param ​
The mouse event.
Inherited from ​
GlobalEventHandlers.onmousemove
Defined in ​
node_modules/typescript/lib/lib.dom.d.ts:9295
onmouseout ​
onmouseout:
null
| (this
,ev
) =>any
Fires when the user moves the mouse pointer outside the boundaries of the object.
Param ​
The mouse event.
Inherited from ​
GlobalEventHandlers.onmouseout
Defined in ​
node_modules/typescript/lib/lib.dom.d.ts:9302
onmouseover ​
onmouseover:
null
| (this
,ev
) =>any
Fires when the user moves the mouse pointer into the object.
Param ​
The mouse event.
Inherited from ​
GlobalEventHandlers.onmouseover
Defined in ​
node_modules/typescript/lib/lib.dom.d.ts:9309
onmouseup ​
onmouseup:
null
| (this
,ev
) =>any
Fires when the user releases a mouse button while the mouse is over the object.
Param ​
The mouse event.
Inherited from ​
GlobalEventHandlers.onmouseup
Defined in ​
node_modules/typescript/lib/lib.dom.d.ts:9316
onoffline ​
onoffline:
null
| (this
,ev
) =>any
Inherited from ​
WindowEventHandlers.onoffline
Defined in ​
node_modules/typescript/lib/lib.dom.d.ts:26234
ononline ​
ononline:
null
| (this
,ev
) =>any
Inherited from ​
WindowEventHandlers.ononline
Defined in ​
node_modules/typescript/lib/lib.dom.d.ts:26236
onorientationchange ​
onorientationchange:
null
| (this
,ev
) =>any
Deprecated ​
Defined in ​
node_modules/typescript/lib/lib.dom.d.ts:26006
onpagehide ​
onpagehide:
null
| (this
,ev
) =>any
Inherited from ​
WindowEventHandlers.onpagehide
Defined in ​
node_modules/typescript/lib/lib.dom.d.ts:26238
onpageshow ​
onpageshow:
null
| (this
,ev
) =>any
Inherited from ​
WindowEventHandlers.onpageshow
Defined in ​
node_modules/typescript/lib/lib.dom.d.ts:26240
onpaste ​
onpaste:
null
| (this
,ev
) =>any
Inherited from ​
GlobalEventHandlers.onpaste
Defined in ​
node_modules/typescript/lib/lib.dom.d.ts:9318
onpause ​
onpause:
null
| (this
,ev
) =>any
Occurs when playback is paused.
Param ​
The event.
Inherited from ​
GlobalEventHandlers.onpause
Defined in ​
node_modules/typescript/lib/lib.dom.d.ts:9325
onplay ​
onplay:
null
| (this
,ev
) =>any
Occurs when the play method is requested.
Param ​
The event.
Inherited from ​
GlobalEventHandlers.onplay
Defined in ​
node_modules/typescript/lib/lib.dom.d.ts:9332
onplaying ​
onplaying:
null
| (this
,ev
) =>any
Occurs when the audio or video has started playing.
Param ​
The event.
Inherited from ​
GlobalEventHandlers.onplaying
Defined in ​
node_modules/typescript/lib/lib.dom.d.ts:9339
onpointercancel ​
onpointercancel:
null
| (this
,ev
) =>any
Inherited from ​
GlobalEventHandlers.onpointercancel
Defined in ​
node_modules/typescript/lib/lib.dom.d.ts:9341
onpointerdown ​
onpointerdown:
null
| (this
,ev
) =>any
Inherited from ​
GlobalEventHandlers.onpointerdown
Defined in ​
node_modules/typescript/lib/lib.dom.d.ts:9343
onpointerenter ​
onpointerenter:
null
| (this
,ev
) =>any
Inherited from ​
GlobalEventHandlers.onpointerenter
Defined in ​
node_modules/typescript/lib/lib.dom.d.ts:9345
onpointerleave ​
onpointerleave:
null
| (this
,ev
) =>any
Inherited from ​
GlobalEventHandlers.onpointerleave
Defined in ​
node_modules/typescript/lib/lib.dom.d.ts:9347
onpointermove ​
onpointermove:
null
| (this
,ev
) =>any
Inherited from ​
GlobalEventHandlers.onpointermove
Defined in ​
node_modules/typescript/lib/lib.dom.d.ts:9349
onpointerout ​
onpointerout:
null
| (this
,ev
) =>any
Inherited from ​
GlobalEventHandlers.onpointerout
Defined in ​
node_modules/typescript/lib/lib.dom.d.ts:9351
onpointerover ​
onpointerover:
null
| (this
,ev
) =>any
Inherited from ​
GlobalEventHandlers.onpointerover
Defined in ​
node_modules/typescript/lib/lib.dom.d.ts:9353
onpointerup ​
onpointerup:
null
| (this
,ev
) =>any
Inherited from ​
GlobalEventHandlers.onpointerup
Defined in ​
node_modules/typescript/lib/lib.dom.d.ts:9355
onpopstate ​
onpopstate:
null
| (this
,ev
) =>any
Inherited from ​
WindowEventHandlers.onpopstate
Defined in ​
node_modules/typescript/lib/lib.dom.d.ts:26242
onprogress ​
onprogress:
null
| (this
,ev
) =>any
Occurs to indicate progress while downloading media data.
Param ​
The event.
Inherited from ​
GlobalEventHandlers.onprogress
Defined in ​
node_modules/typescript/lib/lib.dom.d.ts:9362
onratechange ​
onratechange:
null
| (this
,ev
) =>any
Occurs when the playback rate is increased or decreased.
Param ​
The event.
Inherited from ​
GlobalEventHandlers.onratechange
Defined in ​
node_modules/typescript/lib/lib.dom.d.ts:9369
onrejectionhandled ​
onrejectionhandled:
null
| (this
,ev
) =>any
Inherited from ​
WindowEventHandlers.onrejectionhandled
Defined in ​
node_modules/typescript/lib/lib.dom.d.ts:26244
onreset ​
onreset:
null
| (this
,ev
) =>any
Fires when the user resets a form.
Param ​
The event.
Inherited from ​
GlobalEventHandlers.onreset
Defined in ​
node_modules/typescript/lib/lib.dom.d.ts:9376
onresize ​
onresize:
null
| (this
,ev
) =>any
Inherited from ​
GlobalEventHandlers.onresize
Defined in ​
node_modules/typescript/lib/lib.dom.d.ts:9378
onscroll ​
onscroll:
null
| (this
,ev
) =>any
Fires when the user repositions the scroll box in the scroll bar on the object.
Param ​
The event.
Inherited from ​
GlobalEventHandlers.onscroll
Defined in ​
node_modules/typescript/lib/lib.dom.d.ts:9385
onscrollend ​
onscrollend:
null
| (this
,ev
) =>any
Inherited from ​
GlobalEventHandlers.onscrollend
Defined in ​
node_modules/typescript/lib/lib.dom.d.ts:9387
onsecuritypolicyviolation ​
onsecuritypolicyviolation:
null
| (this
,ev
) =>any
Inherited from ​
GlobalEventHandlers.onsecuritypolicyviolation
Defined in ​
node_modules/typescript/lib/lib.dom.d.ts:9389
onseeked ​
onseeked:
null
| (this
,ev
) =>any
Occurs when the seek operation ends.
Param ​
The event.
Inherited from ​
GlobalEventHandlers.onseeked
Defined in ​
node_modules/typescript/lib/lib.dom.d.ts:9396
onseeking ​
onseeking:
null
| (this
,ev
) =>any
Occurs when the current playback position is moved.
Param ​
The event.
Inherited from ​
GlobalEventHandlers.onseeking
Defined in ​
node_modules/typescript/lib/lib.dom.d.ts:9403
onselect ​
onselect:
null
| (this
,ev
) =>any
Fires when the current selection changes.
Param ​
The event.
Inherited from ​
GlobalEventHandlers.onselect
Defined in ​
node_modules/typescript/lib/lib.dom.d.ts:9410
onselectionchange ​
onselectionchange:
null
| (this
,ev
) =>any
Inherited from ​
GlobalEventHandlers.onselectionchange
Defined in ​
node_modules/typescript/lib/lib.dom.d.ts:9412
onselectstart ​
onselectstart:
null
| (this
,ev
) =>any
Inherited from ​
GlobalEventHandlers.onselectstart
Defined in ​
node_modules/typescript/lib/lib.dom.d.ts:9414
onslotchange ​
onslotchange:
null
| (this
,ev
) =>any
Inherited from ​
GlobalEventHandlers.onslotchange
Defined in ​
node_modules/typescript/lib/lib.dom.d.ts:9416
onstalled ​
onstalled:
null
| (this
,ev
) =>any
Occurs when the download has stopped.
Param ​
The event.
Inherited from ​
GlobalEventHandlers.onstalled
Defined in ​
node_modules/typescript/lib/lib.dom.d.ts:9423
onstorage ​
onstorage:
null
| (this
,ev
) =>any
Inherited from ​
WindowEventHandlers.onstorage
Defined in ​
node_modules/typescript/lib/lib.dom.d.ts:26246
onsubmit ​
onsubmit:
null
| (this
,ev
) =>any
Inherited from ​
GlobalEventHandlers.onsubmit
Defined in ​
node_modules/typescript/lib/lib.dom.d.ts:9425
onsuspend ​
onsuspend:
null
| (this
,ev
) =>any
Occurs if the load operation has been intentionally halted.
Param ​
The event.
Inherited from ​
GlobalEventHandlers.onsuspend
Defined in ​
node_modules/typescript/lib/lib.dom.d.ts:9432
ontimeupdate ​
ontimeupdate:
null
| (this
,ev
) =>any
Occurs to indicate the current playback position.
Param ​
The event.
Inherited from ​
GlobalEventHandlers.ontimeupdate
Defined in ​
node_modules/typescript/lib/lib.dom.d.ts:9439
ontoggle ​
ontoggle:
null
| (this
,ev
) =>any
Inherited from ​
GlobalEventHandlers.ontoggle
Defined in ​
node_modules/typescript/lib/lib.dom.d.ts:9441
ontouchcancel? ​
optional
ontouchcancel:null
| (this
,ev
) =>any
Inherited from ​
GlobalEventHandlers.ontouchcancel
Defined in ​
node_modules/typescript/lib/lib.dom.d.ts:9443
ontouchend? ​
optional
ontouchend:null
| (this
,ev
) =>any
Inherited from ​
GlobalEventHandlers.ontouchend
Defined in ​
node_modules/typescript/lib/lib.dom.d.ts:9445
ontouchmove? ​
optional
ontouchmove:null
| (this
,ev
) =>any
Inherited from ​
GlobalEventHandlers.ontouchmove
Defined in ​
node_modules/typescript/lib/lib.dom.d.ts:9447
ontouchstart? ​
optional
ontouchstart:null
| (this
,ev
) =>any
Inherited from ​
GlobalEventHandlers.ontouchstart
Defined in ​
node_modules/typescript/lib/lib.dom.d.ts:9449
ontransitioncancel ​
ontransitioncancel:
null
| (this
,ev
) =>any
Inherited from ​
GlobalEventHandlers.ontransitioncancel
Defined in ​
node_modules/typescript/lib/lib.dom.d.ts:9451
ontransitionend ​
ontransitionend:
null
| (this
,ev
) =>any
Inherited from ​
GlobalEventHandlers.ontransitionend
Defined in ​
node_modules/typescript/lib/lib.dom.d.ts:9453
ontransitionrun ​
ontransitionrun:
null
| (this
,ev
) =>any
Inherited from ​
GlobalEventHandlers.ontransitionrun
Defined in ​
node_modules/typescript/lib/lib.dom.d.ts:9455
ontransitionstart ​
ontransitionstart:
null
| (this
,ev
) =>any
Inherited from ​
GlobalEventHandlers.ontransitionstart
Defined in ​
node_modules/typescript/lib/lib.dom.d.ts:9457
onunhandledrejection ​
onunhandledrejection:
null
| (this
,ev
) =>any
Inherited from ​
WindowEventHandlers.onunhandledrejection
Defined in ​
node_modules/typescript/lib/lib.dom.d.ts:26248
onunload ​
onunload:
null
| (this
,ev
) =>any
Deprecated ​
Inherited from ​
WindowEventHandlers.onunload
Defined in ​
node_modules/typescript/lib/lib.dom.d.ts:26254
onvolumechange ​
onvolumechange:
null
| (this
,ev
) =>any
Occurs when the volume is changed, or playback is muted or unmuted.
Param ​
The event.
Inherited from ​
GlobalEventHandlers.onvolumechange
Defined in ​
node_modules/typescript/lib/lib.dom.d.ts:9464
onwaiting ​
onwaiting:
null
| (this
,ev
) =>any
Occurs when playback stops because the next frame of a video resource is not available.
Param ​
The event.
Inherited from ​
GlobalEventHandlers.onwaiting
Defined in ​
node_modules/typescript/lib/lib.dom.d.ts:9471
onwebkitanimationend ​
onwebkitanimationend:
null
| (this
,ev
) =>any
Deprecated ​
This is a legacy alias of onanimationend
.
Inherited from ​
GlobalEventHandlers.onwebkitanimationend
Defined in ​
node_modules/typescript/lib/lib.dom.d.ts:9477
onwebkitanimationiteration ​
onwebkitanimationiteration:
null
| (this
,ev
) =>any
Deprecated ​
This is a legacy alias of onanimationiteration
.
Inherited from ​
GlobalEventHandlers.onwebkitanimationiteration
Defined in ​
node_modules/typescript/lib/lib.dom.d.ts:9483
onwebkitanimationstart ​
onwebkitanimationstart:
null
| (this
,ev
) =>any
Deprecated ​
This is a legacy alias of onanimationstart
.
Inherited from ​
GlobalEventHandlers.onwebkitanimationstart
Defined in ​
node_modules/typescript/lib/lib.dom.d.ts:9489
onwebkittransitionend ​
onwebkittransitionend:
null
| (this
,ev
) =>any
Deprecated ​
This is a legacy alias of ontransitionend
.
Inherited from ​
GlobalEventHandlers.onwebkittransitionend
Defined in ​
node_modules/typescript/lib/lib.dom.d.ts:9495
onwheel ​
onwheel:
null
| (this
,ev
) =>any
Inherited from ​
GlobalEventHandlers.onwheel
Defined in ​
node_modules/typescript/lib/lib.dom.d.ts:9497
opener ​
opener:
any
Defined in ​
node_modules/typescript/lib/lib.dom.d.ts:26008
orientation ​
readonly
orientation:number
Deprecated ​
Defined in ​
node_modules/typescript/lib/lib.dom.d.ts:26014
origin ​
readonly
origin:string
Inherited from ​
WindowOrWorkerGlobalScope.origin
Defined in ​
node_modules/typescript/lib/lib.dom.d.ts:26282
outerHeight ​
readonly
outerHeight:number
Defined in ​
node_modules/typescript/lib/lib.dom.d.ts:26016
outerWidth ​
readonly
outerWidth:number
Defined in ​
node_modules/typescript/lib/lib.dom.d.ts:26018
pageXOffset ​
readonly
pageXOffset:number
Deprecated ​
This is a legacy alias of scrollX
.
Defined in ​
node_modules/typescript/lib/lib.dom.d.ts:26024
pageYOffset ​
readonly
pageYOffset:number
Deprecated ​
This is a legacy alias of scrollY
.
Defined in ​
node_modules/typescript/lib/lib.dom.d.ts:26030
parent ​
readonly
parent:Window
Refers to either the parent WindowProxy, or itself.
It can rarely be null e.g. for contentWindow of an iframe that is already removed from the parent.
Defined in ​
node_modules/typescript/lib/lib.dom.d.ts:26038
performance ​
readonly
performance:Performance
Inherited from ​
WindowOrWorkerGlobalScope.performance
Defined in ​
node_modules/typescript/lib/lib.dom.d.ts:26284
personalbar ​
readonly
personalbar:BarProp
Returns true if the personal bar is visible; otherwise, returns false.
Defined in ​
node_modules/typescript/lib/lib.dom.d.ts:26044
player ​
player:
Player
Defined in ​
profectus/src/game/player.ts:74
projInfo ​
projInfo:
object
$schema ​
$schema:
string
="./projInfo-schema.json"
allowGoBack ​
allowGoBack:
boolean
=true
author ​
author:
string
=""
banner ​
banner:
null
=null
defaultDecimalsShown ​
defaultDecimalsShown:
number
=2
defaultShowSmall ​
defaultShowSmall:
boolean
=false
description ​
description:
string
="A project made in Profectus"
disableHealthWarning ​
disableHealthWarning:
boolean
=false
discordLink ​
discordLink:
string
=""
discordName ​
discordName:
string
=""
enablePausing ​
enablePausing:
boolean
=true
exportEncoding ​
exportEncoding:
string
="base64"
id ​
id:
string
=""
initialTabs ​
initialTabs:
string
[]
logo ​
logo:
string
=""
maxTickLength ​
maxTickLength:
number
=3600
offlineLimit ​
offlineLimit:
number
=1
title ​
title:
string
="Profectus"
useHeader ​
useHeader:
boolean
=true
versionNumber ​
versionNumber:
string
="0.0"
versionTitle ​
versionTitle:
string
="Initial Commit"
Defined in ​
regularFormat() ​
regularFormat: (
num
,precision
) =>string
Parameters ​
num ​
precision ​
number
Returns ​
string
Defined in ​
profectus/src/util/bignum.ts:26
save ​
save:
VoidFunction
Defined in ​
profectus/src/util/save.ts:191
screen ​
readonly
screen:Screen
Defined in ​
node_modules/typescript/lib/lib.dom.d.ts:26046
screenLeft ​
readonly
screenLeft:number
Defined in ​
node_modules/typescript/lib/lib.dom.d.ts:26048
screenTop ​
readonly
screenTop:number
Defined in ​
node_modules/typescript/lib/lib.dom.d.ts:26050
screenX ​
readonly
screenX:number
Defined in ​
node_modules/typescript/lib/lib.dom.d.ts:26052
screenY ​
readonly
screenY:number
Defined in ​
node_modules/typescript/lib/lib.dom.d.ts:26054
scrollbars ​
readonly
scrollbars:BarProp
Returns true if the scrollbars are visible; otherwise, returns false.
Defined in ​
node_modules/typescript/lib/lib.dom.d.ts:26064
scrollX ​
readonly
scrollX:number
Defined in ​
node_modules/typescript/lib/lib.dom.d.ts:26056
scrollY ​
readonly
scrollY:number
Defined in ​
node_modules/typescript/lib/lib.dom.d.ts:26058
self ​
readonly
self:Window
& typeofglobalThis
Defined in ​
node_modules/typescript/lib/lib.dom.d.ts:26066
sessionStorage ​
readonly
sessionStorage:Storage
Inherited from ​
WindowSessionStorage.sessionStorage
Defined in ​
node_modules/typescript/lib/lib.dom.d.ts:26312
settings ​
settings:
Settings
Defined in ​
profectus/src/game/settings.ts:52
speechSynthesis ​
readonly
speechSynthesis:SpeechSynthesis
Defined in ​
node_modules/typescript/lib/lib.dom.d.ts:26068
state ​
state:
Transient
Defined in ​
profectus/src/game/state.ts:24
status ​
status:
string
Deprecated ​
Defined in ​
node_modules/typescript/lib/lib.dom.d.ts:26074
statusbar ​
readonly
statusbar:BarProp
Returns true if the status bar is visible; otherwise, returns false.
Defined in ​
node_modules/typescript/lib/lib.dom.d.ts:26080
toolbar ​
readonly
toolbar:BarProp
Returns true if the toolbar is visible; otherwise, returns false.
Defined in ​
node_modules/typescript/lib/lib.dom.d.ts:26086
top ​
readonly
top:null
|Window
Defined in ​
node_modules/typescript/lib/lib.dom.d.ts:26088
toPlaces() ​
toPlaces: (
x
,precision
,maxAccepted
) =>string
Parameters ​
x ​
precision ​
number
maxAccepted ​
Returns ​
string
Defined in ​
profectus/src/util/bignum.ts:30
upgradeConfig() ​
upgradeConfig: (
config
,art
) =>EmitterConfigV3
Converts emitter configuration from pre-5.0.0 library values into the current version.
Example usage:
const emitter = new Emitter(myContainer, upgradeConfig(myOldConfig, [myTexture, myOtherTexture]));
Parameters ​
config ​
The old emitter config to upgrade.
EmitterConfigV2
| EmitterConfigV1
art ​
any
The old art values as would have been passed into the Emitter constructor or Emitter.init()
Returns ​
EmitterConfigV3
Defined in ​
profectus/src/features/particles/particles.tsx:96
visualViewport ​
readonly
visualViewport:null
|VisualViewport
Defined in ​
node_modules/typescript/lib/lib.dom.d.ts:26090
vue ​
vue:
App
Defined in ​
window ​
readonly
window:Window
& typeofglobalThis
Defined in ​
node_modules/typescript/lib/lib.dom.d.ts:26092
Accessors ​
location ​
Get Signature ​
get location():
Location
Returns ​
Set Signature ​
set location(
href
):void
Parameters ​
href ​
string
| Location
Returns ​
void
Defined in ​
node_modules/typescript/lib/lib.dom.d.ts:25965
Methods ​
addEventListener() ​
Call Signature ​
addEventListener<
K
>(type
,listener
,options
?):void
Appends an event listener for events whose type attribute value is type. The callback argument sets the callback that will be invoked when the event is dispatched.
The options argument sets listener-specific options. For compatibility this can be a boolean, in which case the method behaves exactly as if the value was specified as options's capture.
When set to true, options's capture prevents callback from being invoked when the event's eventPhase attribute value is BUBBLING_PHASE. When false (or not present), callback will not be invoked when event's eventPhase attribute value is CAPTURING_PHASE. Either way, callback will be invoked if event's eventPhase attribute value is AT_TARGET.
When set to true, options's passive indicates that the callback will not cancel the event by invoking preventDefault(). This is used to enable performance optimizations described in § 2.8 Observing event listeners.
When set to true, options's once indicates that the callback will only be invoked once after which the event listener will be removed.
If an AbortSignal is passed for options's signal, then the event listener will be removed when signal is aborted.
The event listener is appended to target's event listener list and is not appended if it has the same type, callback, and capture.
Type Parameters ​
• K extends keyof WindowEventMap
Parameters ​
type ​
K
listener ​
(this
, ev
) => any
options? ​
boolean
| AddEventListenerOptions
Returns ​
void
Overrides ​
EventTarget.addEventListener
Defined in ​
node_modules/typescript/lib/lib.dom.d.ts:26181
Call Signature ​
addEventListener(
type
,listener
,options
?):void
Appends an event listener for events whose type attribute value is type. The callback argument sets the callback that will be invoked when the event is dispatched.
The options argument sets listener-specific options. For compatibility this can be a boolean, in which case the method behaves exactly as if the value was specified as options's capture.
When set to true, options's capture prevents callback from being invoked when the event's eventPhase attribute value is BUBBLING_PHASE. When false (or not present), callback will not be invoked when event's eventPhase attribute value is CAPTURING_PHASE. Either way, callback will be invoked if event's eventPhase attribute value is AT_TARGET.
When set to true, options's passive indicates that the callback will not cancel the event by invoking preventDefault(). This is used to enable performance optimizations described in § 2.8 Observing event listeners.
When set to true, options's once indicates that the callback will only be invoked once after which the event listener will be removed.
If an AbortSignal is passed for options's signal, then the event listener will be removed when signal is aborted.
The event listener is appended to target's event listener list and is not appended if it has the same type, callback, and capture.
Parameters ​
type ​
string
listener ​
EventListenerOrEventListenerObject
options? ​
boolean
| AddEventListenerOptions
Returns ​
void
Overrides ​
EventTarget.addEventListener
Defined in ​
node_modules/typescript/lib/lib.dom.d.ts:26182
alert() ​
alert(
message
?):void
Parameters ​
message? ​
any
Returns ​
void
Defined in ​
node_modules/typescript/lib/lib.dom.d.ts:26094
atob() ​
atob(
data
):string
Parameters ​
data ​
string
Returns ​
string
Inherited from ​
WindowOrWorkerGlobalScope.atob
Defined in ​
node_modules/typescript/lib/lib.dom.d.ts:26286
blur() ​
blur():
void
Returns ​
void
Deprecated ​
Defined in ​
node_modules/typescript/lib/lib.dom.d.ts:26100
btoa() ​
btoa(
data
):string
Parameters ​
data ​
string
Returns ​
string
Inherited from ​
WindowOrWorkerGlobalScope.btoa
Defined in ​
node_modules/typescript/lib/lib.dom.d.ts:26288
cancelAnimationFrame() ​
cancelAnimationFrame(
handle
):void
Parameters ​
handle ​
number
Returns ​
void
Inherited from ​
AnimationFrameProvider.cancelAnimationFrame
Defined in ​
node_modules/typescript/lib/lib.dom.d.ts:2560
cancelIdleCallback() ​
cancelIdleCallback(
handle
):void
Parameters ​
handle ​
number
Returns ​
void
Defined in ​
node_modules/typescript/lib/lib.dom.d.ts:26102
captureEvents() ​
captureEvents():
void
Returns ​
void
Deprecated ​
Defined in ​
node_modules/typescript/lib/lib.dom.d.ts:26108
clearInterval() ​
clearInterval(
id
):void
Parameters ​
id ​
undefined
| number
Returns ​
void
Inherited from ​
WindowOrWorkerGlobalScope.clearInterval
Defined in ​
node_modules/typescript/lib/lib.dom.d.ts:26290
clearTimeout() ​
clearTimeout(
id
):void
Parameters ​
id ​
undefined
| number
Returns ​
void
Inherited from ​
WindowOrWorkerGlobalScope.clearTimeout
Defined in ​
node_modules/typescript/lib/lib.dom.d.ts:26292
close() ​
close():
void
Closes the window.
Returns ​
void
Defined in ​
node_modules/typescript/lib/lib.dom.d.ts:26114
confirm() ​
confirm(
message
?):boolean
Parameters ​
message? ​
string
Returns ​
boolean
Defined in ​
node_modules/typescript/lib/lib.dom.d.ts:26116
createImageBitmap() ​
Call Signature ​
createImageBitmap(
image
,options
?):Promise
<ImageBitmap
>
Parameters ​
image ​
ImageBitmapSource
options? ​
ImageBitmapOptions
Returns ​
Inherited from ​
WindowOrWorkerGlobalScope.createImageBitmap
Defined in ​
node_modules/typescript/lib/lib.dom.d.ts:26294
Call Signature ​
createImageBitmap(
image
,sx
,sy
,sw
,sh
,options
?):Promise
<ImageBitmap
>
Parameters ​
image ​
ImageBitmapSource
sx ​
number
sy ​
number
sw ​
number
sh ​
number
options? ​
ImageBitmapOptions
Returns ​
Inherited from ​
WindowOrWorkerGlobalScope.createImageBitmap
Defined in ​
node_modules/typescript/lib/lib.dom.d.ts:26295
dispatchEvent() ​
dispatchEvent(
event
):boolean
Dispatches a synthetic event event to target and returns true if either event's cancelable attribute value is false or its preventDefault() method was not invoked, and false otherwise.
Parameters ​
event ​
Returns ​
boolean
Inherited from ​
EventTarget.dispatchEvent
Defined in ​
node_modules/typescript/lib/lib.dom.d.ts:8343
fetch() ​
Parameters ​
input ​
URL
| RequestInfo
init? ​
RequestInit
Returns ​
Inherited from ​
WindowOrWorkerGlobalScope.fetch
Defined in ​
node_modules/typescript/lib/lib.dom.d.ts:26297
focus() ​
focus():
void
Moves the focus to the window's browsing context, if any.
Returns ​
void
Defined in ​
node_modules/typescript/lib/lib.dom.d.ts:26122
getComputedStyle() ​
getComputedStyle(
elt
,pseudoElt
?):CSSStyleDeclaration
Parameters ​
elt ​
pseudoElt? ​
null
| string
Returns ​
Defined in ​
node_modules/typescript/lib/lib.dom.d.ts:26124
getSelection() ​
getSelection():
null
|Selection
Returns ​
null
| Selection
Defined in ​
node_modules/typescript/lib/lib.dom.d.ts:26126
matchMedia() ​
matchMedia(
query
):MediaQueryList
Parameters ​
query ​
string
Returns ​
Defined in ​
node_modules/typescript/lib/lib.dom.d.ts:26128
moveBy() ​
moveBy(
x
,y
):void
Parameters ​
x ​
number
y ​
number
Returns ​
void
Defined in ​
node_modules/typescript/lib/lib.dom.d.ts:26130
moveTo() ​
moveTo(
x
,y
):void
Parameters ​
x ​
number
y ​
number
Returns ​
void
Defined in ​
node_modules/typescript/lib/lib.dom.d.ts:26132
open() ​
open(
url
?,target
?,features
?):null
|Window
Parameters ​
url? ​
string
| URL
target? ​
string
features? ​
string
Returns ​
null
| Window
Defined in ​
node_modules/typescript/lib/lib.dom.d.ts:26134
postMessage() ​
Call Signature ​
postMessage(
message
,targetOrigin
,transfer
?):void
Posts a message to the given window. Messages can be structured objects, e.g. nested objects and arrays, can contain JavaScript values (strings, numbers, Date objects, etc), and can contain certain data objects such as File Blob, FileList, and ArrayBuffer objects.
Objects listed in the transfer member of options are transferred, not just cloned, meaning that they are no longer usable on the sending side.
A target origin can be specified using the targetOrigin member of options. If not provided, it defaults to "/". This default restricts the message to same-origin targets only.
If the origin of the target window doesn't match the given target origin, the message is discarded, to avoid information leakage. To send the message to the target regardless of origin, set the target origin to "*".
Throws a "DataCloneError" DOMException if transfer array contains duplicate objects or if message could not be cloned.
Parameters ​
message ​
any
targetOrigin ​
string
transfer? ​
Transferable
[]
Returns ​
void
Defined in ​
node_modules/typescript/lib/lib.dom.d.ts:26148
Call Signature ​
postMessage(
message
,options
?):void
Parameters ​
message ​
any
options? ​
WindowPostMessageOptions
Returns ​
void
Defined in ​
node_modules/typescript/lib/lib.dom.d.ts:26149
print() ​
print():
void
Returns ​
void
Defined in ​
node_modules/typescript/lib/lib.dom.d.ts:26151
prompt() ​
prompt(
message
?,_default
?):null
|string
Parameters ​
message? ​
string
_default? ​
string
Returns ​
null
| string
Defined in ​
node_modules/typescript/lib/lib.dom.d.ts:26153
queueMicrotask() ​
queueMicrotask(
callback
):void
Parameters ​
callback ​
VoidFunction
Returns ​
void
Inherited from ​
WindowOrWorkerGlobalScope.queueMicrotask
Defined in ​
node_modules/typescript/lib/lib.dom.d.ts:26299
releaseEvents() ​
releaseEvents():
void
Returns ​
void
Deprecated ​
Defined in ​
node_modules/typescript/lib/lib.dom.d.ts:26159
removeEventListener() ​
Call Signature ​
removeEventListener<
K
>(type
,listener
,options
?):void
Removes the event listener in target's event listener list with the same type, callback, and options.
Type Parameters ​
• K extends keyof WindowEventMap
Parameters ​
type ​
K
listener ​
(this
, ev
) => any
options? ​
boolean
| EventListenerOptions
Returns ​
void
Overrides ​
EventTarget.removeEventListener
Defined in ​
node_modules/typescript/lib/lib.dom.d.ts:26183
Call Signature ​
removeEventListener(
type
,listener
,options
?):void
Removes the event listener in target's event listener list with the same type, callback, and options.
Parameters ​
type ​
string
listener ​
EventListenerOrEventListenerObject
options? ​
boolean
| EventListenerOptions
Returns ​
void
Overrides ​
EventTarget.removeEventListener
Defined in ​
node_modules/typescript/lib/lib.dom.d.ts:26184
reportError() ​
reportError(
e
):void
Parameters ​
e ​
any
Returns ​
void
Inherited from ​
WindowOrWorkerGlobalScope.reportError
Defined in ​
node_modules/typescript/lib/lib.dom.d.ts:26301
requestAnimationFrame() ​
requestAnimationFrame(
callback
):number
Parameters ​
callback ​
FrameRequestCallback
Returns ​
number
Inherited from ​
AnimationFrameProvider.requestAnimationFrame
Defined in ​
node_modules/typescript/lib/lib.dom.d.ts:2562
requestIdleCallback() ​
requestIdleCallback(
callback
,options
?):number
Parameters ​
callback ​
IdleRequestCallback
options? ​
IdleRequestOptions
Returns ​
number
Defined in ​
node_modules/typescript/lib/lib.dom.d.ts:26161
resizeBy() ​
resizeBy(
x
,y
):void
Parameters ​
x ​
number
y ​
number
Returns ​
void
Defined in ​
node_modules/typescript/lib/lib.dom.d.ts:26163
resizeTo() ​
resizeTo(
width
,height
):void
Parameters ​
width ​
number
height ​
number
Returns ​
void
Defined in ​
node_modules/typescript/lib/lib.dom.d.ts:26165
scroll() ​
Call Signature ​
scroll(
options
?):void
Parameters ​
options? ​
ScrollToOptions
Returns ​
void
Defined in ​
node_modules/typescript/lib/lib.dom.d.ts:26167
Call Signature ​
scroll(
x
,y
):void
Parameters ​
x ​
number
y ​
number
Returns ​
void
Defined in ​
node_modules/typescript/lib/lib.dom.d.ts:26168
scrollBy() ​
Call Signature ​
scrollBy(
options
?):void
Parameters ​
options? ​
ScrollToOptions
Returns ​
void
Defined in ​
node_modules/typescript/lib/lib.dom.d.ts:26170
Call Signature ​
scrollBy(
x
,y
):void
Parameters ​
x ​
number
y ​
number
Returns ​
void
Defined in ​
node_modules/typescript/lib/lib.dom.d.ts:26171
scrollTo() ​
Call Signature ​
scrollTo(
options
?):void
Parameters ​
options? ​
ScrollToOptions
Returns ​
void
Defined in ​
node_modules/typescript/lib/lib.dom.d.ts:26173
Call Signature ​
scrollTo(
x
,y
):void
Parameters ​
x ​
number
y ​
number
Returns ​
void
Defined in ​
node_modules/typescript/lib/lib.dom.d.ts:26174
setInterval() ​
setInterval(
handler
,timeout
?, ...arguments
?):number
Parameters ​
handler ​
TimerHandler
timeout? ​
number
arguments? ​
...any
[]
Returns ​
number
Inherited from ​
WindowOrWorkerGlobalScope.setInterval
Defined in ​
node_modules/typescript/lib/lib.dom.d.ts:26303
setTimeout() ​
setTimeout(
handler
,timeout
?, ...arguments
?):number
Parameters ​
handler ​
TimerHandler
timeout? ​
number
arguments? ​
...any
[]
Returns ​
number
Inherited from ​
WindowOrWorkerGlobalScope.setTimeout
Defined in ​
node_modules/typescript/lib/lib.dom.d.ts:26305
stop() ​
stop():
void
Cancels the document load.
Returns ​
void
Defined in ​
node_modules/typescript/lib/lib.dom.d.ts:26180
structuredClone() ​
structuredClone<
T
>(value
,options
?):T
Type Parameters ​
• T = any
Parameters ​
value ​
T
options? ​
StructuredSerializeOptions
Returns ​
T
Inherited from ​
WindowOrWorkerGlobalScope.structuredClone
Defined in ​
node_modules/typescript/lib/lib.dom.d.ts:26307