diff --git a/.scalafmt.conf b/.scalafmt.conf index 1702ceb82..0d45a5ae4 100644 --- a/.scalafmt.conf +++ b/.scalafmt.conf @@ -7,6 +7,7 @@ maxColumn = 120 danglingParentheses.callSite = false danglingParentheses.ctrlSite = false danglingParentheses.defnSite = false +docstrings.oneline = fold docstrings.style = SpaceAsterisk literals.hexDigits = Upper literals.scientific = Upper diff --git a/src/main/scala/org/scalajs/dom/AbortController.scala b/src/main/scala/org/scalajs/dom/AbortController.scala index dd3d22d37..7f3f6ca66 100644 --- a/src/main/scala/org/scalajs/dom/AbortController.scala +++ b/src/main/scala/org/scalajs/dom/AbortController.scala @@ -10,8 +10,7 @@ import scala.scalajs.js.annotation.JSGlobal @JSGlobal class AbortController() extends js.Object { - /** Returns a AbortSignal object instance, which can be used to communicate with/abort a DOM request - */ + /** Returns a AbortSignal object instance, which can be used to communicate with/abort a DOM request */ val signal: AbortSignal = js.native /** Aborts a DOM request before it has completed. This is able to abort fetch requests, consumption of any response diff --git a/src/main/scala/org/scalajs/dom/Audio.scala b/src/main/scala/org/scalajs/dom/Audio.scala index 8f561ee2a..2c7a4d60e 100644 --- a/src/main/scala/org/scalajs/dom/Audio.scala +++ b/src/main/scala/org/scalajs/dom/Audio.scala @@ -41,8 +41,7 @@ class AudioContext extends EventTarget { /** Returns the current state of the AudioContext. */ def state: String = js.native - /** Closes the audio context, releasing any system audio resources that it uses. - */ + /** Closes the audio context, releasing any system audio resources that it uses. */ def close(): js.Promise[Unit] = js.native /** Creates an AnalyserNode, which can be used to expose audio time and frequency data and for example to create data @@ -106,12 +105,10 @@ class AudioContext extends EventTarget { */ def createDelay(maxDelayTime: Int): DelayNode = js.native - /** Creates a DynamicsCompressorNode, which can be used to apply acoustic compression to an audio signal. - */ + /** Creates a DynamicsCompressorNode, which can be used to apply acoustic compression to an audio signal. */ def createDynamicsCompressor(): DynamicsCompressorNode = js.native - /** Creates a GainNode, which can be used to control the overall volume of the audio graph. - */ + /** Creates a GainNode, which can be used to control the overall volume of the audio graph. */ def createGain(): GainNode = js.native /** Creates a MediaElementAudioSourceNode associated with an HTMLMediaElement. This can be used to play and manipulate @@ -135,12 +132,10 @@ class AudioContext extends EventTarget { */ def createMediaStreamDestination(): MediaStreamAudioDestinationNode = js.native - /** Creates an OscillatorNode, a source representing a periodic waveform. It basically generates a tone. - */ + /** Creates an OscillatorNode, a source representing a periodic waveform. It basically generates a tone. */ def createOscillator(): OscillatorNode = js.native - /** Creates a PannerNode, which is used to spatialise an incoming audio stream in 3D space. - */ + /** Creates a PannerNode, which is used to spatialise an incoming audio stream in 3D space. */ def createPanner(): PannerNode = js.native /** Creates a PeriodicWave, used to define a periodic waveform that can be used to determine the output of an @@ -148,12 +143,10 @@ class AudioContext extends EventTarget { */ def createPeriodicWave(real: js.typedarray.Float32Array, imag: js.typedarray.Float32Array): PeriodicWave = js.native - /** Creates a StereoPannerNode, which can be used to apply stereo panning to an audio source. - */ + /** Creates a StereoPannerNode, which can be used to apply stereo panning to an audio source. */ def createStereoPanner(): StereoPannerNode = js.native - /** Creates a WaveShaperNode, which is used to implement non-linear distortion effects. - */ + /** Creates a WaveShaperNode, which is used to implement non-linear distortion effects. */ def createWaveShaper(): WaveShaperNode = js.native /** Asynchronously decodes audio file data contained in an ArrayBuffer. In this case, the ArrayBuffer is usually @@ -175,8 +168,7 @@ class AudioContext extends EventTarget { errorCallback: js.Function0[_] = js.native ): js.Promise[AudioBuffer] = js.native - /** Resumes the progression of time in an audio context that has previously been suspended. - */ + /** Resumes the progression of time in an audio context that has previously been suspended. */ def resume(): js.Promise[Unit] = js.native /** Suspends the progression of time in the audio context, temporarily halting audio hardware access and reducing @@ -269,12 +261,10 @@ trait AudioNode extends EventTarget { */ var channelInterpretation: String = js.native - /** Allows us to connect one output of this node to one input of another node. - */ + /** Allows us to connect one output of this node to one input of another node. */ def connect(audioNode: AudioNode): Unit = js.native - /** Allows us to connect one output of this node to one input of an audio parameter. - */ + /** Allows us to connect one output of this node to one input of an audio parameter. */ def connect(audioParam: AudioParam): Unit = js.native /** Allows us to disconnect the current node from another one it is already connected to. @@ -434,8 +424,7 @@ trait AudioBufferSourceNode extends AudioNode { */ def stop(when: Double = 0.0): Unit = js.native - /** Is an EventHandler containing the callback associated with the ended event. - */ + /** Is an EventHandler containing the callback associated with the ended event. */ var onended: js.Function1[Event, _] = js.native } @@ -458,8 +447,7 @@ trait AudioBufferSourceNode extends AudioNode { @js.native trait AudioDestinationNode extends AudioNode { - /** Is an unsigned long defining the maximum amount of channels that the physical device can handle. - */ + /** Is an unsigned long defining the maximum amount of channels that the physical device can handle. */ var maxChannelCount: Int = js.native } @@ -472,12 +460,10 @@ trait AudioDestinationNode extends AudioNode { @js.native trait AudioListener extends AudioNode { - /** Is a double value representing the amount of pitch shift to use when rendering a doppler effect. - */ + /** Is a double value representing the amount of pitch shift to use when rendering a doppler effect. */ var dopplerFactor: Double = js.native - /** Is a double value representing the speed of sound, in meters per second. - */ + /** Is a double value representing the speed of sound, in meters per second. */ var speedOfSound: Double = js.native /** Defines the position of the listener. @@ -552,8 +538,7 @@ trait AudioParam extends AudioNode { */ var value: Double = js.native - /** Represents the initial value of the attributes as defined by the specific AudioNode creating the AudioParam. - */ + /** Represents the initial value of the attributes as defined by the specific AudioNode creating the AudioParam. */ val defaultValue: Double = js.native /** Schedules an instant change to the value of the AudioParam at a precise time, as measured against @@ -646,20 +631,16 @@ trait BiquadFilterNode extends AudioNode { */ val frequency: AudioParam = js.native - /** Is an a-rate AudioParam representing detuning of the frequency in cents. - */ + /** Is an a-rate AudioParam representing detuning of the frequency in cents. */ val detune: AudioParam = js.native - /** Is a k-rate AudioParam, a double representing a Q factor, or quality factor. - */ + /** Is a k-rate AudioParam, a double representing a Q factor, or quality factor. */ val Q: AudioParam = js.native - /** Is a k-rate AudioParam, a double representing the gain used in the current filtering algorithm. - */ + /** Is a k-rate AudioParam, a double representing the gain used in the current filtering algorithm. */ val gain: AudioParam = js.native - /** Is a string value defining the kind of filtering algorithm the node is implementing. - */ + /** Is a string value defining the kind of filtering algorithm the node is implementing. */ var `type`: String = js.native /** From the current filter parameter settings this method calculates the frequency response for frequencies specified @@ -778,8 +759,7 @@ trait DelayNode extends AudioNode { @js.native trait DynamicsCompressorNode extends AudioNode { - /** Is a k-rate AudioParam representing the decibel value above which the compression will start taking effect. - */ + /** Is a k-rate AudioParam representing the decibel value above which the compression will start taking effect. */ val threshold: AudioParam = js.native /** Is a k-rate AudioParam containing a decibel value representing the range above the threshold where the curve @@ -797,12 +777,10 @@ trait DynamicsCompressorNode extends AudioNode { */ val reduction: AudioParam = js.native - /** Is a k-rate AudioParam representing the amount of time, in seconds, required to reduce the gain by 10 dB. - */ + /** Is a k-rate AudioParam representing the amount of time, in seconds, required to reduce the gain by 10 dB. */ val attack: AudioParam = js.native - /** Is a k-rate AudioParam representing the amount of time, in seconds, required to increase the gain by 10 dB. - */ + /** Is a k-rate AudioParam representing the amount of time, in seconds, required to increase the gain by 10 dB. */ val release: AudioParam = js.native } @@ -909,8 +887,7 @@ trait OscillatorNode extends AudioNode { */ var detune: AudioParam = js.native - /** Represents the shape of the oscillator wave generated. Different waves will produce different tones. - */ + /** Represents the shape of the oscillator wave generated. Different waves will produce different tones. */ var `type`: String = js.native // Not sure if this is correct ... /** This method specifies the exact time to start playing the tone. */ @@ -926,8 +903,7 @@ trait OscillatorNode extends AudioNode { */ def setPeriodicWave(wave: PeriodicWave): Unit = js.native - /** Used to set the event handler for the ended event, which fires when the tone has stopped playing. - */ + /** Used to set the event handler for the ended event, which fires when the tone has stopped playing. */ var onended: js.Function1[Event, _] = js.native } @@ -949,8 +925,7 @@ trait OscillatorNode extends AudioNode { @js.native trait PannerNode extends AudioNode { - /** Is an enumerated value determining which spatialisation algorithm to use to position the audio in 3D space. - */ + /** Is an enumerated value determining which spatialisation algorithm to use to position the audio in 3D space. */ var panningModel: String = js.native /** Is an enumerated value determining which algorithm to use to reduce the volume of the audio source as it moves @@ -1097,16 +1072,13 @@ trait WaveShaperNode extends AudioNode { @js.native trait AudioBuffer extends js.Object { - /** Returns a float representing the sample rate, in samples per second, of the PCM data stored in the buffer. - */ + /** Returns a float representing the sample rate, in samples per second, of the PCM data stored in the buffer. */ val sampleRate: Double = js.native - /** Returns an integer representing the length, in sample-frames, of the PCM data stored in the buffer. - */ + /** Returns an integer representing the length, in sample-frames, of the PCM data stored in the buffer. */ val length: Int = js.native - /** Returns a double representing the duration, in seconds, of the PCM data stored in the buffer. - */ + /** Returns a double representing the duration, in seconds, of the PCM data stored in the buffer. */ val duration: Double = js.native /** Returns an integer representing the number of discrete audio channels described by the PCM data stored in the @@ -1158,8 +1130,7 @@ trait AudioBuffer extends js.Object { @js.native trait OfflineAudioCompletionEvent extends Event { - /** The buffer containing the result of the processing of an OfflineAudioContext. - */ + /** The buffer containing the result of the processing of an OfflineAudioContext. */ val renderedBuffer: AudioBuffer = js.native } diff --git a/src/main/scala/org/scalajs/dom/CSSTypes.scala b/src/main/scala/org/scalajs/dom/CSSTypes.scala index 264f97974..915d7b91f 100644 --- a/src/main/scala/org/scalajs/dom/CSSTypes.scala +++ b/src/main/scala/org/scalajs/dom/CSSTypes.scala @@ -240,8 +240,7 @@ class CSSStyleDeclaration extends js.Object { var transformStyle: String = js.native } -/** An object implementing the CSSStyleSheet interface represents a single CSS style sheet. - */ +/** An object implementing the CSSStyleSheet interface represents a single CSS style sheet. */ @js.native @JSGlobal class CSSStyleSheet extends StyleSheet { @@ -257,8 +256,7 @@ class CSSStyleSheet extends StyleSheet { */ var ownerRule: CSSRule = js.native - /** Returns a CSSRuleList of the CSS rules in the style sheet. - */ + /** Returns a CSSRuleList of the CSS rules in the style sheet. */ var cssRules: CSSRuleList = js.native var id: String = js.native @@ -266,14 +264,12 @@ class CSSStyleSheet extends StyleSheet { def addPageRule(bstrSelector: String, bstrStyle: String, lIndex: Int = js.native): Int = js.native - /** The CSSStyleSheet.insertRule() method inserts a new style rule into the current style sheet. - */ + /** The CSSStyleSheet.insertRule() method inserts a new style rule into the current style sheet. */ def insertRule(rule: String, index: Int = js.native): Int = js.native def removeRule(lIndex: Int): Unit = js.native - /** Deletes a rule from the style sheet. - */ + /** Deletes a rule from the style sheet. */ def deleteRule(index: Int = js.native): Unit = js.native def addRule(bstrSelector: String, bstrStyle: String = js.native, lIndex: Int = js.native): Int = js.native @@ -288,13 +284,11 @@ class CSSStyleSheet extends StyleSheet { @JSGlobal class CSSStyleRule extends CSSRule { - /** Gets/sets the textual representation of the selector for this rule, e.g. "h1,h2". - */ + /** Gets/sets the textual representation of the selector for this rule, e.g. "h1,h2". */ var selectorText: String = js.native var readOnly: Boolean = js.native - /** Returns the CSSStyleDeclaration object for the rule. - */ + /** Returns the CSSStyleDeclaration object for the rule. */ val style: CSSStyleDeclaration = js.native } @@ -305,8 +299,7 @@ class CSSStyleRule extends CSSRule { @JSGlobal class CSSMediaRule extends CSSRule { - /** Specifies a MediaList representing the intended destination medium for style information. - */ + /** Specifies a MediaList representing the intended destination medium for style information. */ var media: MediaList = js.native var cssRules: CSSRuleList = js.native @@ -322,8 +315,7 @@ class CSSMediaRule extends CSSRule { @JSGlobal class CSSNamespaceRule extends CSSRule { - /** Returns a DOMString containing the text of the URI of the given namespace. - */ + /** Returns a DOMString containing the text of the URI of the given namespace. */ var namespaceURI: String = js.native /** Returns a DOMString with the name of the prefix associated to this namespace. If there is no such prefix, returns  @@ -352,8 +344,7 @@ class CSSRule extends js.Object { */ var cssText: String = js.native - /** parentStyleSheet returns the stylesheet object in which the current rule is defined. - */ + /** parentStyleSheet returns the stylesheet object in which the current rule is defined. */ var parentStyleSheet: CSSStyleSheet = js.native /** Returns the containing rule, otherwise null. E.g. if this rule is a style rule inside an `@media` block, the @@ -401,18 +392,15 @@ class CSSFontFaceRule extends CSSRule { class CSSPageRule extends CSSRule { var pseudoClass: String = js.native - /** Represents the text of the page selector associated with the at-rule. - */ + /** Represents the text of the page selector associated with the at-rule. */ var selectorText: String = js.native var selector: String = js.native - /** Returns the declaration block associated with the at-rule. - */ + /** Returns the declaration block associated with the at-rule. */ var style: CSSStyleDeclaration = js.native } -/** A CSSRuleList is an array-like object containing an ordered collection of CSSRule objects. - */ +/** A CSSRuleList is an array-like object containing an ordered collection of CSSRule objects. */ @js.native @JSGlobal class CSSRuleList private[this] () extends DOMList[CSSRule] { @@ -427,12 +415,10 @@ class CSSRuleList private[this] () extends DOMList[CSSRule] { @JSGlobal class CSSKeyframesRule extends CSSRule { - /** Represents the name of the animation, used by the animation-name property. - */ + /** Represents the name of the animation, used by the animation-name property. */ var name: String = js.native - /** Returns a CSSRuleList of the CSS rules in the media rule. - */ + /** Returns a CSSRuleList of the CSS rules in the media rule. */ var cssRules: CSSRuleList = js.native /** Returns a keyframe rule corresponding to the given key. The key is a DOMString containing an index of the keyframe @@ -465,7 +451,6 @@ class CSSKeyframeRule extends CSSRule { */ var keyText: String = js.native - /** Returns a CSSStyleDeclaration of the CSS style associated with the keyfrom. - */ + /** Returns a CSSStyleDeclaration of the CSS style associated with the keyfrom. */ var style: CSSStyleDeclaration = js.native } diff --git a/src/main/scala/org/scalajs/dom/DeprecatedCSSAliases.scala b/src/main/scala/org/scalajs/dom/DeprecatedCSSAliases.scala index b6bb9c43d..80d1632ef 100644 --- a/src/main/scala/org/scalajs/dom/DeprecatedCSSAliases.scala +++ b/src/main/scala/org/scalajs/dom/DeprecatedCSSAliases.scala @@ -2,8 +2,7 @@ package org.scalajs.dom import org.scalajs.dom -/** Short aliases of all the dom.CSSThing classes - */ +/** Short aliases of all the dom.CSSThing classes */ @deprecated("directly use the dom.CSS* types and values instead", "2.0.0") object DeprecatedCSSAliases { diff --git a/src/main/scala/org/scalajs/dom/Fetch.scala b/src/main/scala/org/scalajs/dom/Fetch.scala index 37f4f828c..6cfdbfe4e 100644 --- a/src/main/scala/org/scalajs/dom/Fetch.scala +++ b/src/main/scala/org/scalajs/dom/Fetch.scala @@ -30,19 +30,16 @@ object Fetch extends js.Object { @JSGlobal class Request(input: RequestInfo, init: RequestInit = null) extends Body { - /** Contains the request's method (GET, POST, etc.) - */ + /** Contains the request's method (GET, POST, etc.) */ def method: HttpMethod = js.native @JSName("type") def `mediaType`: RequestType = js.native - /** Contains the URL of the request. - */ + /** Contains the URL of the request. */ def url: String = js.native //should be USVString - /** Contains the associated Headers object of the request. - */ + /** Contains the associated Headers object of the request. */ def headers: Headers = js.native def destination: RequestDestination = js.native @@ -119,8 +116,7 @@ class Response(content: BodyInit = null, init: ResponseInit = null) extends Body /** Contains the URL of the response. */ def url: String = js.native - /** Contains a boolean stating whether the response was successful (status in the range 200-299) or not. - */ + /** Contains a boolean stating whether the response was successful (status in the range 200-299) or not. */ def ok: Boolean = js.native /** Contains the status code of the response (e.g., 200 for a success). */ @@ -158,8 +154,7 @@ object Response extends js.Object { def redirect(url: String, status: Int = 302): Response = js.native } -/** See [[https://fetch.spec.whatwg.org/#response-class ¶6.4 Response class]] definition in whatwg Fetch spec. - */ +/** See [[https://fetch.spec.whatwg.org/#response-class ¶6.4 Response class]] definition in whatwg Fetch spec. */ trait ResponseInit extends js.Object { var status: Int var statusText: ByteString @@ -173,20 +168,16 @@ trait ResponseInit extends js.Object { @js.native trait Body extends js.Object { - /** Contains a Boolean that indicates whether the body has been read. - */ + /** Contains a Boolean that indicates whether the body has been read. */ def bodyUsed: Boolean = js.native - /** Takes a Response stream and reads it to completion. It returns a promise that resolves with an ArrayBuffer. - */ + /** Takes a Response stream and reads it to completion. It returns a promise that resolves with an ArrayBuffer. */ def arrayBuffer(): js.Promise[ArrayBuffer] = js.native - /** Takes a Response stream and reads it to completion. It returns a promise that resolves with a Blob. - */ + /** Takes a Response stream and reads it to completion. It returns a promise that resolves with a Blob. */ def blob(): js.Promise[Blob] = js.native - /** Takes a Response stream and reads it to completion. It returns a promise that resolves with a FormData object. - */ + /** Takes a Response stream and reads it to completion. It returns a promise that resolves with a FormData object. */ def formData(): js.Promise[FormData] = js.native /** Takes a Response stream and reads it to completion. It returns a promise that resolves with a JSON object. //todo: @@ -194,8 +185,7 @@ trait Body extends js.Object { */ def json(): js.Promise[js.Any] = js.native - /** Takes a Response stream and reads it to completion. It returns a promise that resolves with a USVString (text). - */ + /** Takes a Response stream and reads it to completion. It returns a promise that resolves with a USVString (text). */ def text(): js.Promise[String] = js.native } @@ -245,8 +235,7 @@ class Headers(map: HeadersInit = js.Array[js.Array[String]]()) extends js.Iterab */ def set(name: ByteString, value: ByteString): Unit = js.native - /** The delete() method of the Headers interface deletes a header from the current Headers object. - */ + /** The delete() method of the Headers interface deletes a header from the current Headers object. */ def delete(name: ByteString): Unit = js.native /** The get() method of the Headers interface returns the first value of a given header from within a Headers object . @@ -290,8 +279,7 @@ object ReferrerPolicy { val `unsafe-url` = "unsafe-url".asInstanceOf[ReferrerPolicy] } -/** This is not typed in the Fetch API but it is easy to create the most common defaults. - */ +/** This is not typed in the Fetch API but it is easy to create the most common defaults. */ @js.native trait HttpMethod extends js.Any @@ -306,8 +294,7 @@ object HttpMethod { val OPTIONS: HttpMethod = "OPTIONS".asInstanceOf[HttpMethod] } -/** Fetch APIs [[https://fetch.spec.whatwg.org/#requesttype RequestType enum]] - */ +/** Fetch APIs [[https://fetch.spec.whatwg.org/#requesttype RequestType enum]] */ @js.native sealed trait RequestType extends js.Any @@ -322,8 +309,7 @@ object RequestType { val video: RequestType = "video".asInstanceOf[RequestType] } -/** Fetch APIs [[https://fetch.spec.whatwg.org/#requestdestination RequestDestination enum]] - */ +/** Fetch APIs [[https://fetch.spec.whatwg.org/#requestdestination RequestDestination enum]] */ @js.native sealed trait RequestDestination extends js.Any @@ -336,8 +322,7 @@ object RequestDestination { val worker: RequestDestination = "worker".asInstanceOf[RequestDestination] } -/** Fetch API's [[https://fetch.spec.whatwg.org/#requestmode RequestMode enum]] - */ +/** Fetch API's [[https://fetch.spec.whatwg.org/#requestmode RequestMode enum]] */ @js.native sealed trait RequestMode extends js.Any @@ -348,8 +333,7 @@ object RequestMode { val cors: RequestMode = "cors".asInstanceOf[RequestMode] } -/** Fetch APIs [[https://fetch.spec.whatwg.org/#requestcredentials RequestCredentials enum]] - */ +/** Fetch APIs [[https://fetch.spec.whatwg.org/#requestcredentials RequestCredentials enum]] */ @js.native sealed trait RequestCredentials extends js.Any @@ -359,8 +343,7 @@ object RequestCredentials { val include: RequestCredentials = "include".asInstanceOf[RequestCredentials] } -/** Fetch APIs [[https://fetch.spec.whatwg.org/#requestcache RequestCache enum]] - */ +/** Fetch APIs [[https://fetch.spec.whatwg.org/#requestcache RequestCache enum]] */ @js.native sealed trait RequestCache extends js.Any @@ -373,8 +356,7 @@ object RequestCache { val `only-if-cached` = "only-if-cached".asInstanceOf[RequestCache] } -/** Fetch API's [[https://fetch.spec.whatwg.org/#requestredirect RequestRedirect enum]] - */ +/** Fetch API's [[https://fetch.spec.whatwg.org/#requestredirect RequestRedirect enum]] */ @js.native sealed trait RequestRedirect extends js.Any @@ -387,8 +369,7 @@ object RequestRedirect { @js.native sealed trait ResponseType extends js.Any -/** see [[https://fetch.spec.whatwg.org/#responsetype]] of whatwg Fetch spec - */ +/** see [[https://fetch.spec.whatwg.org/#responsetype]] of whatwg Fetch spec */ object ResponseType { val basic: ResponseType = "basic".asInstanceOf[ResponseType] val cors: ResponseType = "cors".asInstanceOf[ResponseType] diff --git a/src/main/scala/org/scalajs/dom/HTMLTypes.scala b/src/main/scala/org/scalajs/dom/HTMLTypes.scala index 2e4933271..7eba30412 100644 --- a/src/main/scala/org/scalajs/dom/HTMLTypes.scala +++ b/src/main/scala/org/scalajs/dom/HTMLTypes.scala @@ -15,12 +15,10 @@ import scala.scalajs.js.| @JSGlobal abstract class HTMLDocument extends Document { - /** Returns the title of the current document. - */ + /** Returns the title of the current document. */ var title: String = js.native - /** Gets/sets the domain portion of the origin of the current document, as used by the same origin policy. - */ + /** Gets/sets the domain portion of the origin of the current document, as used by the same origin policy. */ var domain: String = js.native /** The Document.location property returns a Location object, which contains information about the URL of the document @@ -28,16 +26,13 @@ abstract class HTMLDocument extends Document { */ var location: Location = js.native - /** Returns a string containing the URL of the current document. - */ + /** Returns a string containing the URL of the current document. */ def URL: String = js.native - /** Returns the URI of the page that linked to this page. - */ + /** Returns the URI of the page that linked to this page. */ def referrer: String = js.native - /** Returns a semicolon-separated list of the cookies for that document or sets a single cookie. - */ + /** Returns a semicolon-separated list of the cookies for that document or sets a single cookie. */ var cookie: String = js.native /** The Document.dir property is a DOMString representing the directionality of the text of the document, whether left @@ -45,12 +40,10 @@ abstract class HTMLDocument extends Document { */ var dir: String = js.native - /** Can be used to make any document editable, for example in a <iframe />: - */ + /** Can be used to make any document editable, for example in a <iframe />: */ var designMode: String = js.native - /** Indicates whether the document is rendered in Quirks mode or Strict mode. - */ + /** Indicates whether the document is rendered in Quirks mode or Strict mode. */ def compatMode: String = js.native /** Returns "loading" while the document is loading, "interactive" once it is finished parsing but still loading @@ -60,8 +53,7 @@ abstract class HTMLDocument extends Document { var uniqueID: String = js.native - /** In browsers returns the window object associated with the document or null if none available. - */ + /** In browsers returns the window object associated with the document or null if none available. */ def defaultView: Window = js.native /** Returns the <head> element of the current document. If there are more than one <head> elements, the @@ -69,8 +61,7 @@ abstract class HTMLDocument extends Document { */ def head: HTMLHeadElement = js.native - /** Returns the <body> or <frameset> node of the current document, or null if no such element exists. - */ + /** Returns the <body> or <frameset> node of the current document, or null if no such element exists. */ var body: HTMLElement = js.native /** Returns the currently focused element, that is, the element that will get keystroke events if the user types any. @@ -78,12 +69,10 @@ abstract class HTMLDocument extends Document { */ def activeElement: Element = js.native - /** Returns a list of the embedded <embed> elements within the current document. - */ + /** Returns a list of the embedded <embed> elements within the current document. */ def embeds: HTMLCollection = js.native - /** forms returns a collection (an HTMLCollection) of the form elements within the current document. - */ + /** forms returns a collection (an HTMLCollection) of the form elements within the current document. */ def forms: HTMLCollection = js.native /** The links property returns a collection of all AREA elements and anchor elements in a document with a value for @@ -91,8 +80,7 @@ abstract class HTMLDocument extends Document { */ def links: HTMLCollection = js.native - /** anchors returns a list of all of the anchors in the document. - */ + /** anchors returns a list of all of the anchors in the document. */ def anchors: HTMLCollection = js.native /** Returns an HTMLCollection object containing one or more HTMLEmbedElements or null which represent the @@ -100,16 +88,13 @@ abstract class HTMLDocument extends Document { */ def plugins: HTMLCollection = js.native - /** document.images returns a collection of the images in the current HTML document. - */ + /** document.images returns a collection of the images in the current HTML document. */ def images: HTMLCollection = js.native - /** Returns the current value of the current range for a formatting command. - */ + /** Returns the current value of the current range for a formatting command. */ def queryCommandValue(commandId: String): String = js.native - /** Returns true if the formatting command is in an indeterminate state on the current range. - */ + /** Returns true if the formatting command is in an indeterminate state on the current range. */ def queryCommandIndeterm(commandId: String): Boolean = js.native /** This method never did anything but throw an exception, and was removed in Gecko 14.0 (Firefox 14.0 / Thunderbird @@ -117,16 +102,13 @@ abstract class HTMLDocument extends Document { */ def queryCommandText(commandId: String): String = js.native - /** Reports whether or not the specified editor query command is supported by the browser. - */ + /** Reports whether or not the specified editor query command is supported by the browser. */ def queryCommandSupported(commandId: String): Boolean = js.native - /** Returns true if the formatting command can be executed on the current range. - */ + /** Returns true if the formatting command can be executed on the current range. */ def queryCommandEnabled(commandId: String): Boolean = js.native - /** Returns true if the formatting command has been executed on the current range. - */ + /** Returns true if the formatting command has been executed on the current range. */ def queryCommandState(commandId: String): Boolean = js.native /** When an HTML document has been switched to designMode, the document object exposes the execCommand method which @@ -141,21 +123,17 @@ abstract class HTMLDocument extends Document { */ def execCommandShowHelp(commandId: String): Boolean = js.native - /** Writes a string of text to a document stream opened by document.open(). - */ + /** Writes a string of text to a document stream opened by document.open(). */ def write(content: String*): Unit = js.native - /** Writes a string of text followed by a newline character to a document. - */ + /** Writes a string of text followed by a newline character to a document. */ def writeln(content: String*): Unit = js.native - /** The document.open() method opens a document for writing. - */ + /** The document.open() method opens a document for writing. */ def open(url: String = js.native, name: String = js.native, features: String = js.native, replace: Boolean = js.native): js.Dynamic = js.native - /** The document.close() method finishes writing to a document, opened with document.open(). - */ + /** The document.close() method finishes writing to a document, opened with document.open(). */ def close(): Unit = js.native def updateSettings(): Unit = js.native @@ -186,16 +164,13 @@ abstract class HTMLDocument extends Document { var onload: js.Function1[Event, _] = js.native - /** The onchange property sets and returns the event handler for the change event. - */ + /** The onchange property sets and returns the event handler for the change event. */ var onchange: js.Function1[Event, _] = js.native - /** Returns the event handling code for the readystatechange event. - */ + /** Returns the event handling code for the readystatechange event. */ var onreadystatechange: js.Function1[Event, _] = js.native - /** The submit event is raised when the user clicks a submit button in a form - */ + /** The submit event is raised when the user clicks a submit button in a form */ var onsubmit: js.Function1[Event, _] = js.native var onfocus: js.Function1[FocusEvent, _] = js.native @@ -214,30 +189,25 @@ abstract class HTMLDocument extends Document { var oninput: js.Function1[Event, _] = js.native - /** The keydown event is raised when the user presses a keyboard key. - */ + /** The keydown event is raised when the user presses a keyboard key. */ var onkeydown: js.Function1[KeyboardEvent, _] = js.native - /** The keyup event is raised when the user releases a key that's been pressed. - */ + /** The keyup event is raised when the user releases a key that's been pressed. */ var onkeyup: js.Function1[KeyboardEvent, _] = js.native var onkeypress: js.Function1[KeyboardEvent, _] = js.native - /** The onclick property returns the onClick event handler code on the current element. - */ + /** The onclick property returns the onClick event handler code on the current element. */ var onclick: js.Function1[MouseEvent, _] = js.native var ondblclick: js.Function1[MouseEvent, _] = js.native var onmouseup: js.Function1[MouseEvent, _] = js.native - /** The mouseover event is raised when the user moves the mouse over a particular element. - */ + /** The mouseover event is raised when the user moves the mouse over a particular element. */ var onmouseover: js.Function1[MouseEvent, _] = js.native - /** The mousedown event is raised when the user presses the mouse button. - */ + /** The mousedown event is raised when the user presses the mouse button. */ var onmousedown: js.Function1[MouseEvent, _] = js.native var onmousemove: js.Function1[MouseEvent, _] = js.native @@ -253,8 +223,7 @@ abstract class HTMLDocument extends Document { var onscroll: js.Function1[UIEvent, _] = js.native - /** Called periodically throughout the drag and drop operation. - */ + /** Called periodically throughout the drag and drop operation. */ var ondrag: js.Function1[DragEvent, _] = js.native /** Called for an element when the mouse pointer first moves over the element while something is being dragged. This @@ -275,8 +244,7 @@ abstract class HTMLDocument extends Document { */ var ondragstart: js.Function1[DragEvent, _] = js.native - /** Called when the drag operation is finished. - */ + /** Called when the drag operation is finished. */ var ondragend: js.Function1[DragEvent, _] = js.native var ondrop: js.Function1[DragEvent, _] = js.native @@ -333,8 +301,7 @@ abstract class HTMLDocument extends Document { var onstoragecommit: js.Function1[StorageEvent, _] = js.native - /** fired when a pointing device is moved into an element's hit test boundaries. - */ + /** fired when a pointing device is moved into an element's hit test boundaries. */ var onpointerover: js.Function1[PointerEvent, _] = js.native /** fired when a pointing device is moved into the hit test boundaries of an element or one of its descendants, @@ -342,16 +309,13 @@ abstract class HTMLDocument extends Document { */ var onpointerenter: js.Function1[PointerEvent, _] = js.native - /** fired when a pointer becomes active. - */ + /** fired when a pointer becomes active. */ var onpointerdown: js.Function1[PointerEvent, _] = js.native - /** fired when a pointer changes coordinates. - */ + /** fired when a pointer changes coordinates. */ var onpointermove: js.Function1[PointerEvent, _] = js.native - /** fired when a pointer is no longer active. - */ + /** fired when a pointer is no longer active. */ var onpointerup: js.Function1[PointerEvent, _] = js.native /** a browser fires this event if it concludes the pointer will no longer be able to generate events (for example the @@ -370,12 +334,10 @@ abstract class HTMLDocument extends Document { */ var onpointerleave: js.Function1[PointerEvent, _] = js.native - /** fired when an element receives pointer capture. - */ + /** fired when an element receives pointer capture. */ var gotpointercapture: js.Function1[PointerEvent, _] = js.native - /** Fired after pointer capture is released for a pointer. - */ + /** Fired after pointer capture is released for a pointer. */ var lostpointercapture: js.Function1[PointerEvent, _] = js.native } @@ -430,8 +392,7 @@ abstract class HTMLTableElement extends HTMLElement { def createTBody(): HTMLElement = js.native - /** Removes the first <caption> that is a child of the element. - */ + /** Removes the first <caption> that is a child of the element. */ def deleteCaption(): Unit = js.native /** Returns an HTMLElement representing a new row of the table. It inserts it in the rows collection immediately @@ -441,8 +402,7 @@ abstract class HTMLTableElement extends HTMLElement { */ def insertRow(index: Int = js.native): HTMLElement = js.native - /** Removes the first <tfoot> that is a child of the element. - */ + /** Removes the first <tfoot> that is a child of the element. */ def deleteTFoot(): Unit = js.native /** Returns an HTMLElement representing the first <thead> that is a child of the element. If none is found, a @@ -451,8 +411,7 @@ abstract class HTMLTableElement extends HTMLElement { */ def createTHead(): HTMLElement = js.native - /** Removes the first <thead> that is a child of the element. - */ + /** Removes the first <thead> that is a child of the element. */ def deleteTHead(): Unit = js.native /** Returns an HTMLElement representing the first <caption> that is a child of the element. If none is found, a @@ -481,8 +440,7 @@ abstract class HTMLBaseElement extends HTMLElement { */ var target: String = js.native - /** Is a DOMString that reflects the href HTML attribute, containing a base URL for relative URLs in the document. - */ + /** Is a DOMString that reflects the href HTML attribute, containing a base URL for relative URLs in the document. */ var href: String = js.native } @@ -512,12 +470,10 @@ abstract class HTMLOListElement extends HTMLElement { @JSGlobal abstract class HTMLSelectElement extends HTMLElement { - /** The set of <option> elements contained by this element. Read only. - */ + /** The set of <option> elements contained by this element. Read only. */ val options: js.Array[HTMLOptionElement] = js.native - /** The value of this form control, that is, of the first selected option. - */ + /** The value of this form control, that is, of the first selected option. */ var value: String = js.native /** The form that this element is associated with. If this element is a descendant of a form element, then this @@ -526,8 +482,7 @@ abstract class HTMLSelectElement extends HTMLElement { */ def form: HTMLFormElement = js.native - /** Reflects the name HTML attribute, containing the name of this control used by servers and DOM search functions. - */ + /** Reflects the name HTML attribute, containing the name of this control used by servers and DOM search functions. */ var name: String = js.native /** Reflects the size HTML attribute, which contains the number of visible items in the control. The default is 1, @@ -535,16 +490,13 @@ abstract class HTMLSelectElement extends HTMLElement { */ var size: Int = js.native - /** The number of <option> elements in this select element. - */ + /** The number of <option> elements in this select element. */ var length: Int = js.native - /** The index of the first selected <option> element. - */ + /** The index of the first selected <option> element. */ var selectedIndex: Int = js.native - /** Reflects the multiple HTML attribute, whichindicates whether multiple items can be selected. - */ + /** Reflects the multiple HTML attribute, whichindicates whether multiple items can be selected. */ var multiple: Boolean = js.native def `type`: String = js.native @@ -553,12 +505,10 @@ abstract class HTMLSelectElement extends HTMLElement { */ var disabled: Boolean = js.native - /** Removes the element at the specified index from the options collection for this select element. - */ + /** Removes the element at the specified index from the options collection for this select element. */ def remove(index: Int = js.native): Unit = js.native - /** Adds an element to the collection of option elements for this select element. - */ + /** Adds an element to the collection of option elements for this select element. */ def add(element: HTMLElement, before: js.Any = js.native): Unit = js.native def item(name: js.Any = js.native, index: js.Any = js.native): js.Dynamic = js.native @@ -583,8 +533,7 @@ abstract class HTMLSelectElement extends HTMLElement { */ var autofocus: Boolean = js.native - /** The validity states that this control is in. Read only. HTML5 - */ + /** The validity states that this control is in. Read only. HTML5 */ def validity: ValidityState = js.native /** Reflects the required HTML attribute, which indicates whether the user is required to select a value before @@ -609,16 +558,13 @@ abstract class HTMLSelectElement extends HTMLElement { @JSGlobal abstract class HTMLMetaElement extends HTMLElement { - /** Gets or sets the name of an HTTP response header to define for a document. - */ + /** Gets or sets the name of an HTTP response header to define for a document. */ var httpEquiv: String = js.native - /** Gets or sets the name of a meta-data property to define for a document. - */ + /** Gets or sets the name of a meta-data property to define for a document. */ var name: String = js.native - /** Gets or sets the value of meta-data property. - */ + /** Gets or sets the value of meta-data property. */ var content: String = js.native var url: String = js.native @@ -633,29 +579,23 @@ abstract class HTMLMetaElement extends HTMLElement { @JSGlobal abstract class HTMLLinkElement extends HTMLElement with LinkStyle { - /** Gets or sets the forward relationship of the linked resource from the document to the resource. - */ + /** Gets or sets the forward relationship of the linked resource from the document to the resource. */ var rel: String = js.native - /** Gets or sets the name of the target frame to which the resource applies. - */ + /** Gets or sets the name of the target frame to which the resource applies. */ var target: String = js.native - /** Gets or sets the URI for the target resource. - */ + /** Gets or sets the URI for the target resource. */ var href: String = js.native - /** Gets or sets a list of one or more media formats to which the resource applies. - */ + /** Gets or sets a list of one or more media formats to which the resource applies. */ var media: String = js.native - /** Gets or sets the reverse relationship of the linked resource from the resource to the document. - */ + /** Gets or sets the reverse relationship of the linked resource from the resource to the document. */ var rev: String = js.native var `type`: String = js.native - /** Gets or sets the language code for the linked resource. - */ + /** Gets or sets the language code for the linked resource. */ var hreflang: String = js.native } @@ -688,8 +628,7 @@ abstract class HTMLOptionElement extends HTMLElement { */ var value: String = js.native - /** Contains the text content of the element. - */ + /** Contains the text content of the element. */ var text: String = js.native /** If the option is a descendent of a <select> element, then this property has the same value as the form @@ -702,8 +641,7 @@ abstract class HTMLOptionElement extends HTMLElement { */ var label: String = js.native - /** Indicates whether the option is currently selected. - */ + /** Indicates whether the option is currently selected. */ var selected: Boolean = js.native /** Reflects the value of the disabled HTML attribute, which indicates that the option is unavailable to be selected. @@ -755,42 +693,33 @@ class HTMLCollection private[this] () extends DOMList[Element] { @JSGlobal abstract class HTMLImageElement extends HTMLElement { - /** Reflects the width HTML attribute, indicating the rendered width of the image in CSS pixels. - */ + /** Reflects the width HTML attribute, indicating the rendered width of the image in CSS pixels. */ var width: Int = js.native - /** Intrinsic height of the image in CSS pixels, if it is available; otherwise, 0. - */ + /** Intrinsic height of the image in CSS pixels, if it is available; otherwise, 0. */ var naturalHeight: Int = js.native - /** Reflects the alt HTML attribute, indicating fallback context for the image. - */ + /** Reflects the alt HTML attribute, indicating fallback context for the image. */ var alt: String = js.native - /** Reflects the src HTML attribute, containing the URL of the image. - */ + /** Reflects the src HTML attribute, containing the URL of the image. */ var src: String = js.native - /** Reflects the usemap HTML attribute, containing a partial URL of a map element. - */ + /** Reflects the usemap HTML attribute, containing a partial URL of a map element. */ var useMap: String = js.native - /** Intrinsic width of the image in CSS pixels, if it is available; otherwise, 0. - */ + /** Intrinsic width of the image in CSS pixels, if it is available; otherwise, 0. */ var naturalWidth: Int = js.native - /** Reflects the height HTML attribute, indicating the rendered height of the image in CSS pixels. - */ + /** Reflects the height HTML attribute, indicating the rendered height of the image in CSS pixels. */ var height: Int = js.native var href: String = js.native - /** Reflects the ismap HTML attribute, indicating that the image is part of a server-side image map. - */ + /** Reflects the ismap HTML attribute, indicating that the image is part of a server-side image map. */ var isMap: Boolean = js.native - /** True if the browser has fetched the image, and it is in a supported image type that was decoded without errors. - */ + /** True if the browser has fetched the image, and it is in a supported image type that was decoded without errors. */ def complete: Boolean = js.native var onload: js.Function1[Event, _] = js.native @@ -804,8 +733,7 @@ abstract class HTMLImageElement extends HTMLElement { @JSGlobal abstract class HTMLAreaElement extends HTMLElement { - /** Is a DOMString containing the protocol component (including trailing colon ':'), of the referenced URL. - */ + /** Is a DOMString containing the protocol component (including trailing colon ':'), of the referenced URL. */ var protocol: String = js.native /** Is a DOMString containing tThe search element (including leading question mark '?'), if any, of the referenced @@ -813,28 +741,22 @@ abstract class HTMLAreaElement extends HTMLElement { */ var search: String = js.native - /** Is a DOMString that reflects the alt HTML attribute, containing alternative text for the element. - */ + /** Is a DOMString that reflects the alt HTML attribute, containing alternative text for the element. */ var alt: String = js.native - /** Is a DOMString that reflects the coords HTML attribute, containing coordinates to define the hot-spot region. - */ + /** Is a DOMString that reflects the coords HTML attribute, containing coordinates to define the hot-spot region. */ var coords: String = js.native - /** Is a DOMString containing the hostname in the referenced URL. - */ + /** Is a DOMString containing the hostname in the referenced URL. */ var hostname: String = js.native - /** Is a DOMString containing the port component, if any, of the referenced URL. - */ + /** Is a DOMString containing the port component, if any, of the referenced URL. */ var port: String = js.native - /** Is a DOMString containing the path name component, if any, of the referenced URL. - */ + /** Is a DOMString containing the path name component, if any, of the referenced URL. */ var pathname: String = js.native - /** Is a DOMString containing the hostname and port (if it's not the default port) in the referenced URL. - */ + /** Is a DOMString containing the hostname and port (if it's not the default port) in the referenced URL. */ var host: String = js.native /** Is a DOMString containing the fragment identifier (including the leading hash mark (#)), if any, in the referenced @@ -847,8 +769,7 @@ abstract class HTMLAreaElement extends HTMLElement { */ var target: String = js.native - /** Is a DOMString containing that reflects the href HTML attribute, containing a valid URL of a linked resource. - */ + /** Is a DOMString containing that reflects the href HTML attribute, containing a valid URL of a linked resource. */ var href: String = js.native /** Is a DOMString teflects the shape HTML attribute, indicating the shape of the hot-spot, limited to known values. @@ -863,8 +784,7 @@ abstract class HTMLAreaElement extends HTMLElement { @JSGlobal abstract class HTMLButtonElement extends HTMLElement { - /** The current form control value of the button. - */ + /** The current form control value of the button. */ var value: String = js.native var status: js.Any = js.native @@ -874,13 +794,11 @@ abstract class HTMLButtonElement extends HTMLElement { */ def form: HTMLFormElement = js.native - /** The name of the object when submitted with a form. HTML5 If specified, it must not be the empty string. - */ + /** The name of the object when submitted with a form. HTML5 If specified, it must not be the empty string. */ var name: String = js.native var `type`: String = js.native - /** The control is disabled, meaning that it does not accept any clicks. - */ + /** The control is disabled, meaning that it does not accept any clicks. */ var disabled: Boolean = js.native /** A localized message that describes the validation constraints that the control does not satisfy (if any). This @@ -909,8 +827,7 @@ abstract class HTMLButtonElement extends HTMLElement { */ var autofocus: Boolean = js.native - /** The validity states that this button is in. - */ + /** The validity states that this button is in. */ def validity: ValidityState = js.native /** Indicates that the form is not to be validated when it is submitted. If specified, this attribute overrides the @@ -936,12 +853,10 @@ abstract class HTMLButtonElement extends HTMLElement { @JSGlobal abstract class HTMLSourceElement extends HTMLElement { - /** Reflects the src HTML attribute, containing the URL for the media resource. - */ + /** Reflects the src HTML attribute, containing the URL for the media resource. */ var src: String = js.native - /** Reflects the media HTML attribute, containing the intended type of the media resource. - */ + /** Reflects the media HTML attribute, containing the intended type of the media resource. */ var media: String = js.native var `type`: String = js.native } @@ -963,12 +878,10 @@ abstract class HTMLScriptElement extends HTMLElement { */ var text: String = js.native - /** Represents gives the address of the external script resource to use. It reflects the src attribute. - */ + /** Represents gives the address of the external script resource to use. It reflects the src attribute. */ var src: String = js.native - /** Represents the character encoding of the external script resource. It reflects the charset attribute. - */ + /** Represents the character encoding of the external script resource. It reflects the charset attribute. */ var charset: String = js.native var `type`: String = js.native var event: String = js.native @@ -1048,8 +961,7 @@ abstract class HTMLHtmlElement extends HTMLElement abstract class HTMLQuoteElement extends HTMLElement { var dateTime: String = js.native - /** Reflects the cite HTML attribute, containing a URL for the source of the quotation. - */ + /** Reflects the cite HTML attribute, containing a URL for the source of the quotation. */ var cite: String = js.native } @@ -1067,8 +979,7 @@ abstract class HTMLDListElement extends HTMLElement @JSGlobal abstract class HTMLLabelElement extends HTMLElement { - /** The ID of the labeled control. Reflects the for attribute. - */ + /** The ID of the labeled control. Reflects the for attribute. */ var htmlFor: String = js.native def form: HTMLFormElement = js.native @@ -1106,36 +1017,29 @@ abstract class HTMLLIElement extends HTMLElement { @JSGlobal abstract class HTMLIFrameElement extends HTMLElement with GetSVGDocument { - /** Reflects the width HTML attribute, indicating the width of the frame. - */ + /** Reflects the width HTML attribute, indicating the width of the frame. */ var width: String = js.native - /** The window proxy for the nested browsing context. - */ + /** The window proxy for the nested browsing context. */ def contentWindow: Window = js.native - /** Reflects the src HTML attribute, containing the address of the content to be embedded. - */ + /** Reflects the src HTML attribute, containing the address of the content to be embedded. */ var src: String = js.native - /** Reflects the name HTML attribute, containing a name by which to refer to the frame. - */ + /** Reflects the name HTML attribute, containing a name by which to refer to the frame. */ var name: String = js.native - /** Reflects the height HTML attribute, indicating the height of the frame. - */ + /** Reflects the height HTML attribute, indicating the height of the frame. */ var height: String = js.native var border: String = js.native - /** The active document in the inline frame's nested browsing context. - */ + /** The active document in the inline frame's nested browsing context. */ def contentDocument: Document = js.native var security: js.Any = js.native var onload: js.Function1[Event, _] = js.native - /** Reflects the sandbox HTML attribute, indicating extra restrictions on the behavior of the nested content. - */ + /** Reflects the sandbox HTML attribute, indicating extra restrictions on the behavior of the nested content. */ var sandbox: DOMSettableTokenList = js.native } @@ -1147,12 +1051,10 @@ abstract class HTMLIFrameElement extends HTMLElement with GetSVGDocument { abstract class HTMLBodyElement extends HTMLElement { var scroll: String = js.native - /** Reflects the ononline HTML attribute value for a function to call when network communication is restored. - */ + /** Reflects the ononline HTML attribute value for a function to call when network communication is restored. */ var ononline: js.Function1[Event, _] = js.native - /** Reflects the onmessage HTML attribute value for a function to call when the document receives a message. - */ + /** Reflects the onmessage HTML attribute value for a function to call when the document receives a message. */ var onmessage: js.Function1[MessageEvent, _] = js.native /** Exposes the window.onerror event handler to call when the document fails to load properly. Note: This handler is @@ -1161,12 +1063,10 @@ abstract class HTMLBodyElement extends HTMLElement { */ var onerror: js.Function1[Event, _] = js.native - /** Reflects the onresize HTML attribute value for a function to call when the document has been resized. - */ + /** Reflects the onresize HTML attribute value for a function to call when the document has been resized. */ var onresize: js.Function1[UIEvent, _] = js.native - /** Reflects the onafterprint HTML attribute value for a function to call after the user has printed the document. - */ + /** Reflects the onafterprint HTML attribute value for a function to call after the user has printed the document. */ var onafterprint: js.Function1[Event, _] = js.native /** Reflects the onbeforeprint HTML attribute value for a function to call when the user has requested printing the @@ -1174,12 +1074,10 @@ abstract class HTMLBodyElement extends HTMLElement { */ var onbeforeprint: js.Function1[Event, _] = js.native - /** Reflects the onoffline HTML attribute value for a function to call when network communication fails. - */ + /** Reflects the onoffline HTML attribute value for a function to call when network communication fails. */ var onoffline: js.Function1[Event, _] = js.native - /** Reflects the onunload HTML attribute value for a function to call when when the document is going away. - */ + /** Reflects the onunload HTML attribute value for a function to call when when the document is going away. */ var onunload: js.Function1[Event, _] = js.native /** Reflects the onhashchange HTML attribute value for a function to call when the fragment identifier in the address @@ -1197,8 +1095,7 @@ abstract class HTMLBodyElement extends HTMLElement { */ var onbeforeunload: js.Function1[BeforeUnloadEvent, _] = js.native - /** Reflects the onpopstate HTML attribute value for a function to call when the storage area has changed. - */ + /** Reflects the onpopstate HTML attribute value for a function to call when the storage area has changed. */ var onstorage: js.Function1[StorageEvent, _] = js.native /** Reflects the onpopstate HTML attribute value for a function to call when the user has navigated session history. @@ -1250,12 +1147,10 @@ abstract class HTMLInputElement extends HTMLElement { */ def form: HTMLFormElement = js.native - /** The index of the beginning of selected text. - */ + /** The index of the beginning of selected text. */ var selectionStart: Int = js.native - /** Indicates that a checkbox is neither on nor off. - */ + /** Indicates that a checkbox is neither on nor off. */ var indeterminate: Boolean = js.native /** Reflects the readonly HTML attribute, indicating that the user cannot modify the value of the control. HTML5This @@ -1269,8 +1164,7 @@ abstract class HTMLInputElement extends HTMLElement { */ var size: Int = js.native - /** The index of the end of selected text. - */ + /** The index of the end of selected text. */ var selectionEnd: Int = js.native /** Reflects the accept HTML attribute, containing comma-separated list of file types accepted by the server when type @@ -1278,16 +1172,13 @@ abstract class HTMLInputElement extends HTMLElement { */ var accept: String = js.native - /** Reflects the alt HTML attribute, containing alternative text to use when type is image. - */ + /** Reflects the alt HTML attribute, containing alternative text to use when type is image. */ var alt: String = js.native - /** The default state of a radio button or checkbox as originally specified in HTML that created this object. - */ + /** The default state of a radio button or checkbox as originally specified in HTML that created this object. */ var defaultChecked: Boolean = js.native - /** Current value in the control. - */ + /** Current value in the control. */ var value: String = js.native /** Reflects the src HTML attribute, which specifies a URI for the location of an image to display on the graphical @@ -1295,8 +1186,7 @@ abstract class HTMLInputElement extends HTMLElement { */ var src: String = js.native - /** Reflects the name HTML attribute, containing a name that identifies the element when submitting the form. - */ + /** Reflects the name HTML attribute, containing a name that identifies the element when submitting the form. */ var name: String = js.native /** Reflects the height HTML attribute, which defines the height of the image displayed for the button, if the value @@ -1304,8 +1194,7 @@ abstract class HTMLInputElement extends HTMLElement { */ var height: String = js.native - /** The current state of the element when type is checkbox or radio. - */ + /** The current state of the element when type is checkbox or radio. */ var checked: Boolean = js.native /** Reflects the disabled HTML attribute, indicating that the control is not available for interaction. The input @@ -1324,8 +1213,7 @@ abstract class HTMLInputElement extends HTMLElement { */ var `type`: String = js.native - /** The default value as originally specified in HTML that created this object. - */ + /** The default value as originally specified in HTML that created this object. */ var defaultValue: String = js.native /** Selects a range of text in the element (but does not focus it). The optional selectionDirection parameter may be @@ -1335,8 +1223,7 @@ abstract class HTMLInputElement extends HTMLElement { */ def setSelectionRange(start: Int, end: Int): Unit = js.native - /** Selects the input text in the element, and focuses it so the user can subsequently replace the whole entry. - */ + /** Selects the input text in the element, and focuses it so the user can subsequently replace the whole entry. */ def select(): Unit = js.native /** A localized message that describes the validation constraints that the control does not satisfy (if any). This is @@ -1375,8 +1262,7 @@ abstract class HTMLInputElement extends HTMLElement { */ var autofocus: Boolean = js.native - /** Reflects the required HTML attribute, indicating that the user must fill in a value before submitting a form. - */ + /** Reflects the required HTML attribute, indicating that the user must fill in a value before submitting a form. */ var required: Boolean = js.native /** Reflects the formenctype HTML attribute, containing the type of content that is used to submit the form to the @@ -1434,8 +1320,7 @@ abstract class HTMLInputElement extends HTMLElement { */ var pattern: String = js.native - /** The validity state that this element is in. - */ + /** The validity state that this element is in. */ def validity: ValidityState = js.native /** Reflects the formnovalidate HTML attribute, indicating that the form is not to be validated when it is submitted. @@ -1485,8 +1370,7 @@ abstract class HTMLAnchorElement extends HTMLElement { */ var rel: String = js.native - /** Is a DOMString representing the protocol component, including trailing colon (':'), of the referenced URL. - */ + /** Is a DOMString representing the protocol component, including trailing colon (':'), of the referenced URL. */ var protocol: String = js.native /** Is a DOMString representing tThe search element, including leading question mark ('?'), if any, of the referenced @@ -1494,36 +1378,28 @@ abstract class HTMLAnchorElement extends HTMLElement { */ var search: String = js.native - /** Is a DOMString representing the hostname in the referenced URL. - */ + /** Is a DOMString representing the hostname in the referenced URL. */ var hostname: String = js.native - /** Is a DOMString representing the path name component, if any, of the referenced URL. - */ + /** Is a DOMString representing the path name component, if any, of the referenced URL. */ var pathname: String = js.native - /** Is a DOMString that reflects the target HTML attribute, indicating where to display the linked resource. - */ + /** Is a DOMString that reflects the target HTML attribute, indicating where to display the linked resource. */ var target: String = js.native - /** Is a DOMString that reflects the href HTML attribute, containing a valid URL of a linked resource. - */ + /** Is a DOMString that reflects the href HTML attribute, containing a valid URL of a linked resource. */ var href: String = js.native - /** Is a DOMString representing the character encoding of the linked resource. - */ + /** Is a DOMString representing the character encoding of the linked resource. */ var charset: String = js.native - /** Is a DOMString that reflects the hreflang HTML attribute, indicating the language of the linked resource. - */ + /** Is a DOMString that reflects the hreflang HTML attribute, indicating the language of the linked resource. */ var hreflang: String = js.native - /** Is a DOMString representing the port component, if any, of the referenced URL. - */ + /** Is a DOMString representing the port component, if any, of the referenced URL. */ var port: String = js.native - /** Is a DOMString representing the hostname and port (if it's not the default port) in the referenced URL. - */ + /** Is a DOMString representing the hostname and port (if it's not the default port) in the referenced URL. */ var host: String = js.native /** Is a DOMString representing the fragment identifier, including the leading hash mark ('#'), if any, in the @@ -1534,8 +1410,7 @@ abstract class HTMLAnchorElement extends HTMLElement { var `type`: String = js.native var mimeType: String = js.native - /** Is a DOMString being a synonym for the Node.textContent property. - */ + /** Is a DOMString being a synonym for the Node.textContent property. */ var text: String = js.native } @@ -1547,12 +1422,10 @@ abstract class HTMLAnchorElement extends HTMLElement { @JSGlobal abstract class HTMLParamElement extends HTMLElement { - /** Is a DOMString representing the value associated to the parameter. It reflects the value attribute. - */ + /** Is a DOMString representing the value associated to the parameter. It reflects the value attribute. */ var value: String = js.native - /** Is a DOMString representing the name of the parameter. It reflects the name attribute. - */ + /** Is a DOMString representing the name of the parameter. It reflects the name attribute. */ var name: String = js.native } @@ -1571,12 +1444,10 @@ abstract class HTMLPreElement extends HTMLElement @JSGlobal abstract class HTMLCanvasElement extends HTMLElement { - /** Reflects the width HTML attribute, specifying the width of the coordinate space in CSS pixels. - */ + /** Reflects the width HTML attribute, specifying the width of the coordinate space in CSS pixels. */ var width: Int = js.native - /** Reflects the height HTML attribute, specifying the height of the coordinate space in CSS pixels. - */ + /** Reflects the height HTML attribute, specifying the height of the coordinate space in CSS pixels. */ var height: Int = js.native /** Returns a data: URL containing a representation of the image in the format specified by type (defaults to PNG). @@ -1603,8 +1474,7 @@ abstract class HTMLCanvasElement extends HTMLElement { @JSGlobal abstract class HTMLTitleElement extends HTMLElement { - /** DOMString representing the text of the document's title. - */ + /** DOMString representing the text of the document's title. */ var text: String = js.native } @@ -1615,12 +1485,10 @@ abstract class HTMLTitleElement extends HTMLElement { @JSGlobal abstract class HTMLStyleElement extends HTMLElement with LinkStyle { - /** Is a DOMString representing the intended destination medium for style information. - */ + /** Is a DOMString representing the intended destination medium for style information. */ var media: String = js.native - /** Returns the type of the current style. - */ + /** Returns the type of the current style. */ var `type`: String = js.native } @@ -1660,8 +1528,7 @@ abstract class HTMLTableCellElement extends HTMLElement with HTMLTableAlignment */ var colSpan: Int = js.native - /** Is an unsigned long that represents the number of rows this cell must span. It reflects the rowspan attribute. - */ + /** Is an unsigned long that represents the number of rows this cell must span. It reflects the rowspan attribute. */ var rowSpan: Int = js.native } @@ -1673,8 +1540,7 @@ abstract class HTMLTableCellElement extends HTMLElement with HTMLTableAlignment @JSGlobal abstract class HTMLTextAreaElement extends HTMLElement { - /** The raw value contained in the control. - */ + /** The raw value contained in the control. */ var value: String = js.native var status: js.Any = js.native @@ -1683,12 +1549,10 @@ abstract class HTMLTextAreaElement extends HTMLElement { */ def form: HTMLFormElement = js.native - /** Reflects name HTML attribute, containing the name of the control. - */ + /** Reflects name HTML attribute, containing the name of the control. */ var name: String = js.native - /** Reflects the disabled HTML attribute, indicating that the control is not available for interaction. - */ + /** Reflects the disabled HTML attribute, indicating that the control is not available for interaction. */ var disabled: Boolean = js.native /** The index of the beginning of selected text. If no text is selected, contains the index of the character that @@ -1697,20 +1561,16 @@ abstract class HTMLTextAreaElement extends HTMLElement { */ var selectionStart: Int = js.native - /** Reflects the rows HTML attribute, indicating the number of visible text lines for the control. - */ + /** Reflects the rows HTML attribute, indicating the number of visible text lines for the control. */ var rows: Int = js.native - /** Reflects the cols HTML attribute, indicating the visible width of the text area. - */ + /** Reflects the cols HTML attribute, indicating the visible width of the text area. */ var cols: Int = js.native - /** Reflects the readonly HTML attribute, indicating that the user cannot modify the value of the control. - */ + /** Reflects the readonly HTML attribute, indicating that the user cannot modify the value of the control. */ var readOnly: Boolean = js.native - /** Reflects the wrap HTML attribute, indicating how the control wraps text. - */ + /** Reflects the wrap HTML attribute, indicating how the control wraps text. */ var wrap: String = js.native /** The index of the end of selected text. If no text is selected, contains the index of the character that follows @@ -1719,12 +1579,10 @@ abstract class HTMLTextAreaElement extends HTMLElement { */ var selectionEnd: Int = js.native - /** The string textarea. - */ + /** The string textarea. */ def `type`: String = js.native - /** The control's default value, which behaves like the element.textContent property. - */ + /** The control's default value, which behaves like the element.textContent property. */ var defaultValue: String = js.native /** Selects a range of text, and sets selectionStart and selectionEnd. If either argument is greater than the length @@ -1733,8 +1591,7 @@ abstract class HTMLTextAreaElement extends HTMLElement { */ def setSelectionRange(start: Int, end: Int): Unit = js.native - /** Selects the contents of the control. - */ + /** Selects the contents of the control. */ def select(): Unit = js.native /** A localized message that describes the validation constraints that the control does not satisfy (if any). This is @@ -1743,16 +1600,13 @@ abstract class HTMLTextAreaElement extends HTMLElement { */ def validationMessage: String = js.native - /** Reflects the autofocus HTML attribute, indicating that the control should have input focus when the page loads - */ + /** Reflects the autofocus HTML attribute, indicating that the control should have input focus when the page loads */ var autofocus: Boolean = js.native - /** The validity states that this element is in. - */ + /** The validity states that this element is in. */ def validity: ValidityState = js.native - /** Reflects the required HTML attribute, indicating that the user must specify a value before submitting the form. - */ + /** Reflects the required HTML attribute, indicating that the user must specify a value before submitting the form. */ var required: Boolean = js.native /** Reflects the maxlength HTML attribute, indicating the maximum number of characters the user can enter. This @@ -1765,8 +1619,7 @@ abstract class HTMLTextAreaElement extends HTMLElement { */ def willValidate: Boolean = js.native - /** Reflects the placeholder HTML attribute, containing a hint to the user about what to enter in the control. - */ + /** Reflects the placeholder HTML attribute, containing a hint to the user about what to enter in the control. */ var placeholder: String = js.native /** Returns false if the button is a candidate for constraint validation, and it does not satisfy its constraints. In @@ -1790,8 +1643,7 @@ abstract class HTMLTextAreaElement extends HTMLElement { abstract class HTMLModElement extends HTMLElement { var dateTime: String = js.native - /** Reflects the cite HTML attribute, containing a URI of a resource explaining the change. - */ + /** Reflects the cite HTML attribute, containing a URI of a resource explaining the change. */ var cite: String = js.native } @@ -1825,8 +1677,7 @@ abstract class HTMLUListElement extends HTMLElement @JSGlobal abstract class HTMLDivElement extends HTMLElement -/** The HTMLBRElement interface represents a HTML line break element (<br>). It inherits from HTMLElement. - */ +/** The HTMLBRElement interface represents a HTML line break element (<br>). It inherits from HTMLElement. */ @js.native @JSGlobal abstract class HTMLBRElement extends HTMLElement @@ -1838,12 +1689,10 @@ abstract class HTMLBRElement extends HTMLElement @JSGlobal abstract class HTMLMediaElement extends HTMLElement { - /** The initial playback position in seconds. - */ + /** The initial playback position in seconds. */ def initialTime: Double = js.native - /** The ranges of the media source that the browser has played, if any. - */ + /** The ranges of the media source that the browser has played, if any. */ def played: TimeRanges = js.native /** The absolute URL of the chosen media resource (if, for example, the server selects a media file based on the @@ -1855,8 +1704,7 @@ abstract class HTMLMediaElement extends HTMLElement { */ var loop: Boolean = js.native - /** Indicates whether the media element has ended playback. - */ + /** Indicates whether the media element has ended playback. */ def ended: Boolean = js.native /** The ranges of the media source that the browser has buffered (if any) at the moment the buffered property is @@ -1864,12 +1712,10 @@ abstract class HTMLMediaElement extends HTMLElement { */ def buffered: TimeRanges = js.native - /** The MediaError object for the most recent error, or null if there has not been an error. - */ + /** The MediaError object for the most recent error, or null if there has not been an error. */ def error: MediaError = js.native - /** The time ranges that the user is able to seek to, if any. - */ + /** The time ranges that the user is able to seek to, if any. */ def seekable: TimeRanges = js.native /** Reflects the autoplay HTML attribute, indicating whether playback should automatically begin as soon as enough @@ -1882,8 +1728,7 @@ abstract class HTMLMediaElement extends HTMLElement { */ var controls: Boolean = js.native - /** The audio volume, from 0.0 (silent) to 1.0 (loudest). - */ + /** The audio volume, from 0.0 (silent) to 1.0 (loudest). */ var volume: Double = js.native /** Reflects the src HTML attribute, containing the URL of a media resource to use. Gecko implements a similar @@ -1905,8 +1750,7 @@ abstract class HTMLMediaElement extends HTMLElement { */ def duration: Double = js.native - /** true if the audio is muted, and false otherwise. - */ + /** true if the audio is muted, and false otherwise. */ var muted: Boolean = js.native /** The default playback rate for the media. 1.0 is "normal speed," values lower than @@ -1915,16 +1759,13 @@ abstract class HTMLMediaElement extends HTMLElement { */ var defaultPlaybackRate: Double = js.native - /** Indicates whether the media element is paused. - */ + /** Indicates whether the media element is paused. */ def paused: Boolean = js.native - /** Indicates whether the media is in the process of seeking to a new position. - */ + /** Indicates whether the media is in the process of seeking to a new position. */ def seeking: Boolean = js.native - /** The current playback time, in seconds. Setting this value seeks the media to the new time. - */ + /** The current playback time, in seconds. Setting this value seeks the media to the new time. */ var currentTime: Double = js.native /** Reflects the preload HTML attribute, indicating what data should be preloaded, if any. Possible values are: none, @@ -1945,24 +1786,19 @@ abstract class HTMLMediaElement extends HTMLElement { */ def play(): js.UndefOr[js.Promise[Unit]] = js.native - /** Begins loading the media content from the server. - */ + /** Begins loading the media content from the server. */ def load(): Unit = js.native - /** Determines whether the specified media type can be played back. - */ + /** Determines whether the specified media type can be played back. */ def canPlayType(`type`: String): String = js.native - /** Represents the list of TextTrack objects contained in the element. - */ + /** Represents the list of TextTrack objects contained in the element. */ def textTracks: TextTrackList = js.native - /** Represents the list of AudioTrack objects contained in the element. - */ + /** Represents the list of AudioTrack objects contained in the element. */ def audioTracks: AudioTrackList = js.native - /** Sets or returns the object which serves as the source of the media associated with the HTMLMediaElement. - */ + /** Sets or returns the object which serves as the source of the media associated with the HTMLMediaElement. */ var srcObject: js.UndefOr[MediaStream | MediaSource | Blob] } @@ -1975,12 +1811,10 @@ object HTMLMediaElement extends js.Object { */ val HAVE_METADATA: Int = js.native - /** Data is available for the current playback position, but not enough to actually play more than one frame. - */ + /** Data is available for the current playback position, but not enough to actually play more than one frame. */ val HAVE_CURRENT_DATA: Int = js.native - /** No information is available about the media resource. - */ + /** No information is available about the media resource. */ val HAVE_NOTHING: Int = js.native val NETWORK_NO_SOURCE: Int = js.native @@ -1989,8 +1823,7 @@ object HTMLMediaElement extends js.Object { */ val HAVE_ENOUGH_DATA: Int = js.native - /** There is no data yet.  The readyState is also HAVE_NOTHING. - */ + /** There is no data yet.  The readyState is also HAVE_NOTHING. */ val NETWORK_EMPTY: Int = js.native val NETWORK_LOADING: Int = js.native val NETWORK_IDLE: Int = js.native @@ -2014,8 +1847,7 @@ abstract class HTMLFieldSetElement extends HTMLElement { */ def form: HTMLFormElement = js.native - /** Reflects the disabled HTML attribute, indicating whether the user can interact with the control. - */ + /** Reflects the disabled HTML attribute, indicating whether the user can interact with the control. */ var disabled: Boolean = js.native /** A localized message that describes the validation constraints that the element does not satisfy (if any). This is @@ -2024,16 +1856,13 @@ abstract class HTMLFieldSetElement extends HTMLElement { */ def validationMessage: String = js.native - /** The validity states that this element is in. - */ + /** The validity states that this element is in. */ def validity: ValidityState = js.native - /** Always false because <fieldset> objects are never candidates for constraint validation. - */ + /** Always false because <fieldset> objects are never candidates for constraint validation. */ def willValidate: Boolean = js.native - /** Always returns true because <fieldset> objects are never candidates for constraint validation. - */ + /** Always returns true because <fieldset> objects are never candidates for constraint validation. */ def checkValidity(): Boolean = js.native /** Sets a custom validity message for the field set. If this message is not the empty string, then the field set is @@ -2062,18 +1891,15 @@ abstract class HTMLElement extends Element { var onseeked: js.Function1[Event, _] = js.native var recordNumber: js.Any = js.native - /** Establishes the text to be displayed in a 'tool tip' popup when the mouse is over the displayed node. - */ + /** Establishes the text to be displayed in a 'tool tip' popup when the mouse is over the displayed node. */ var title: String = js.native var ondurationchange: js.Function1[Event, _] = js.native - /** Height of an element relative to the element's offsetParent. - */ + /** Height of an element relative to the element's offsetParent. */ def offsetHeight: Double = js.native - /** The dir attribute gets or sets the text writing directionality of the content of the current element. - */ + /** The dir attribute gets or sets the text writing directionality of the content of the current element. */ var dir: String = js.native var onemptied: js.Function1[Event, _] = js.native var onseeking: js.Function1[Event, _] = js.native @@ -2117,8 +1943,7 @@ abstract class HTMLElement extends Element { var onbeforepaste: js.Function1[DragEvent, _] = js.native var ondragover: js.Function1[DragEvent, _] = js.native - /** offsetTop returns the distance of the current element relative to the top of the offsetParent node. - */ + /** offsetTop returns the distance of the current element relative to the top of the offsetParent node. */ def offsetTop: Double = js.native var onmouseup: js.Function1[MouseEvent, _] = js.native @@ -2127,8 +1952,7 @@ abstract class HTMLElement extends Element { var ondrag: js.Function1[DragEvent, _] = js.native var onmouseover: js.Function1[MouseEvent, _] = js.native - /** This property gets or sets the base language of an element's attribute values and text content. - */ + /** This property gets or sets the base language of an element's attribute values and text content. */ var lang: String = js.native var onpause: js.Function1[Event, _] = js.native @@ -2145,8 +1969,7 @@ abstract class HTMLElement extends Element { var onstalled: js.Function1[Event, _] = js.native var onmousemove: js.Function1[MouseEvent, _] = js.native - /** isContentEditable returns true if the contents of the element are editable; otherwise it returns false. - */ + /** isContentEditable returns true if the contents of the element are editable; otherwise it returns false. */ def isContentEditable: Boolean = js.native var onratechange: js.Function1[Event, _] = js.native @@ -2198,8 +2021,7 @@ abstract class HTMLElement extends Element { var onselect: js.Function1[UIEvent, _] = js.native var ondrop: js.Function1[DragEvent, _] = js.native - /** Returns the layout width of an element. - */ + /** Returns the layout width of an element. */ def offsetWidth: Double = js.native var onended: js.Function1[Event, _] = js.native @@ -2207,26 +2029,22 @@ abstract class HTMLElement extends Element { var oninput: js.Function1[Event, _] = js.native - /** Sets focus on the specified element, if it can be focused. - */ + /** Sets focus on the specified element, if it can be focused. */ def focus(): Unit = js.native - /** The blur method removes keyboard focus from the current element. - */ + /** The blur method removes keyboard focus from the current element. */ def blur(): Unit = js.native def contains(child: HTMLElement): Boolean = js.native - /** The click method simulates a mouse click on an element. - */ + /** The click method simulates a mouse click on an element. */ def click(): Unit = js.native var oncuechange: js.Function1[Event, _] = js.native var spellcheck: Boolean = js.native var draggable: Boolean = js.native - /** Returns an object that represents the element's style attribute. - */ + /** Returns an object that represents the element's style attribute. */ def style: CSSStyleDeclaration = js.native def style_=(value: CSSStyleDeclaration): Unit = js.native def style_=(value: String): Unit = js.native @@ -2246,8 +2064,7 @@ abstract class HTMLElement extends Element { */ def dataset: js.Dictionary[String] = js.native - /** fired when a pointing device is moved into an element's hit test boundaries. - */ + /** fired when a pointing device is moved into an element's hit test boundaries. */ var onpointerover: js.Function1[PointerEvent, _] = js.native /** fired when a pointing device is moved into the hit test boundaries of an element or one of its descendants, @@ -2255,16 +2072,13 @@ abstract class HTMLElement extends Element { */ var onpointerenter: js.Function1[PointerEvent, _] = js.native - /** fired when a pointer becomes active. - */ + /** fired when a pointer becomes active. */ var onpointerdown: js.Function1[PointerEvent, _] = js.native - /** fired when a pointer changes coordinates. - */ + /** fired when a pointer changes coordinates. */ var onpointermove: js.Function1[PointerEvent, _] = js.native - /** fired when a pointer is no longer active. - */ + /** fired when a pointer is no longer active. */ var onpointerup: js.Function1[PointerEvent, _] = js.native /** a browser fires this event if it concludes the pointer will no longer be able to generate events (for example the @@ -2283,12 +2097,10 @@ abstract class HTMLElement extends Element { */ var onpointerleave: js.Function1[PointerEvent, _] = js.native - /** fired when an element receives pointer capture. - */ + /** fired when an element receives pointer capture. */ var gotpointercapture: js.Function1[PointerEvent, _] = js.native - /** Fired after pointer capture is released for a pointer. - */ + /** Fired after pointer capture is released for a pointer. */ var lostpointercapture: js.Function1[PointerEvent, _] = js.native } @@ -2307,37 +2119,30 @@ abstract class HTMLHRElement extends HTMLElement @JSGlobal abstract class HTMLObjectElement extends HTMLElement with GetSVGDocument { - /** Reflects the width HTML attribute, specifying the displayed width of the resource in CSS pixels. - */ + /** Reflects the width HTML attribute, specifying the displayed width of the resource in CSS pixels. */ var width: String = js.native var `object`: Object = js.native - /** The object element's form owner, or null if there isn't one. - */ + /** The object element's form owner, or null if there isn't one. */ def form: HTMLFormElement = js.native var alt: String = js.native var classid: String = js.native - /** Reflects the name HTML attribute, specifying the name of the object (HTML 4, or of a browsing context (HTML5. - */ + /** Reflects the name HTML attribute, specifying the name of the object (HTML 4, or of a browsing context (HTML5. */ var name: String = js.native - /** Reflects the usemap HTML attribute, specifying a <map> element to use. - */ + /** Reflects the usemap HTML attribute, specifying a <map> element to use. */ var useMap: String = js.native - /** Reflects the data HTML attribute, specifying the address of a resource's data. - */ + /** Reflects the data HTML attribute, specifying the address of a resource's data. */ var data: String = js.native - /** Reflects the height HTML attribute, specifying the displayed height of the resource in CSS pixels. - */ + /** Reflects the height HTML attribute, specifying the displayed height of the resource in CSS pixels. */ var height: String = js.native - /** The active document of the object element's nested browsing context, if any; otherwise null. - */ + /** The active document of the object element's nested browsing context, if any; otherwise null. */ def contentDocument: Document = js.native var altHtml: String = js.native @@ -2350,8 +2155,7 @@ abstract class HTMLObjectElement extends HTMLElement with GetSVGDocument { */ def validationMessage: String = js.native - /** The validity states that this element is in. - */ + /** The validity states that this element is in. */ def validity: ValidityState = js.native /** Indicates whether the element is a candidate for constraint validation. Always false for HTMLObjectElement @@ -2359,8 +2163,7 @@ abstract class HTMLObjectElement extends HTMLElement with GetSVGDocument { */ def willValidate: Boolean = js.native - /** Always returns true, because object objects are never candidates for constraint validation. - */ + /** Always returns true, because object objects are never candidates for constraint validation. */ def checkValidity(): Boolean = js.native /** Sets a custom validity message for the element. If this message is not the empty string, then the element is @@ -2376,16 +2179,13 @@ abstract class HTMLObjectElement extends HTMLElement with GetSVGDocument { @JSGlobal abstract class HTMLEmbedElement extends HTMLElement with GetSVGDocument { - /** Reflects the width HTML attribute, containing the displayed width of the resource. - */ + /** Reflects the width HTML attribute, containing the displayed width of the resource. */ var width: String = js.native - /** Reflects the src HTML attribute, containing the address of the resource. - */ + /** Reflects the src HTML attribute, containing the address of the resource. */ var src: String = js.native - /** Reflects the height HTML attribute, containing the displayed height of the resource. - */ + /** Reflects the height HTML attribute, containing the displayed height of the resource. */ var height: String = js.native } @@ -2397,12 +2197,10 @@ abstract class HTMLEmbedElement extends HTMLElement with GetSVGDocument { @JSGlobal abstract class HTMLOptGroupElement extends HTMLElement { - /** Set or get the label for the group. - */ + /** Set or get the label for the group. */ var label: String = js.native - /** If true, the whole list of children <option> is disabled - */ + /** If true, the whole list of children <option> is disabled */ var disabled: Boolean = js.native } @@ -2473,8 +2271,7 @@ abstract class HTMLProgressElement extends HTMLElement { @JSGlobal abstract class HTMLDataListElement extends HTMLElement { - /** A collection of the contained option elements. - */ + /** A collection of the contained option elements. */ def options: HTMLCollection = js.native } @@ -2519,12 +2316,10 @@ abstract class HTMLHeadingElement extends HTMLElement @JSGlobal abstract class HTMLFormElement extends HTMLElement { - /** length returns the number of controls in the FORM element. - */ + /** length returns the number of controls in the FORM element. */ def length: Int = js.native - /** target gets/sets the target of the action (i.e., the frame to render its output in). - */ + /** target gets/sets the target of the action (i.e., the frame to render its output in). */ var target: String = js.native /** acceptCharset returns a list of the supported character encodings for the given FORM element. This list can be @@ -2532,8 +2327,7 @@ abstract class HTMLFormElement extends HTMLElement { */ var acceptCharset: String = js.native - /** enctype gets/sets the content type of the FORM element. - */ + /** enctype gets/sets the content type of the FORM element. */ var enctype: String = js.native /** elements returns an HTMLFormControlsCollection (HTML 4 HTMLCollection) of all the form controls contained in the @@ -2541,24 +2335,19 @@ abstract class HTMLFormElement extends HTMLElement { */ def elements: HTMLCollection = js.native - /** action gets/sets the action of the <form> element. - */ + /** action gets/sets the action of the <form> element. */ var action: String = js.native - /** name returns the name of the current form element as a string. - */ + /** name returns the name of the current form element as a string. */ var name: String = js.native - /** method gets/sets the HTTP method used to submit the form. - */ + /** method gets/sets the HTTP method used to submit the form. */ var method: String = js.native - /** encoding is an alternative name for the enctype element on the DOM HTMLFormElement object. - */ + /** encoding is an alternative name for the enctype element on the DOM HTMLFormElement object. */ var encoding: String = js.native - /** reset restores a form element's default values. - */ + /** reset restores a form element's default values. */ def reset(): Unit = js.native /** Gets the item in the elements collection at the specified index, or null if there is no item at that index. You @@ -2567,8 +2356,7 @@ abstract class HTMLFormElement extends HTMLElement { */ def item(name: js.Any = js.native, index: js.Any = js.native): js.Dynamic = js.native - /** This method does something similar to activating a submit button of the form. - */ + /** This method does something similar to activating a submit button of the form. */ def submit(): Unit = js.native /** Gets the item or list of items in elements collection whose name or id match the specified name, or null if no @@ -2588,8 +2376,7 @@ abstract class HTMLFormElement extends HTMLElement { */ var autocomplete: String = js.native - /** Reflects the novalidate HTML attribute, indicating that the form should not be validated. - */ + /** Reflects the novalidate HTML attribute, indicating that the form should not be validated. */ var noValidate: Boolean = js.native def checkValidity(): Boolean = js.native diff --git a/src/main/scala/org/scalajs/dom/IDBTypes.scala b/src/main/scala/org/scalajs/dom/IDBTypes.scala index bee6afe3b..475ed7170 100644 --- a/src/main/scala/org/scalajs/dom/IDBTypes.scala +++ b/src/main/scala/org/scalajs/dom/IDBTypes.scala @@ -18,8 +18,7 @@ sealed trait IDBTransactionMode extends js.Any object IDBTransactionMode { - /** Allows data to be read but not changed. It is the default transaction mode. - */ + /** Allows data to be read but not changed. It is the default transaction mode. */ val READ_ONLY: IDBTransactionMode = "readonly".asInstanceOf[IDBTransactionMode] /** Allows any operation to be performed, including ones that delete and create object stores and indexes. This mode @@ -28,8 +27,7 @@ object IDBTransactionMode { */ val VERSION_CHANGE: IDBTransactionMode = "versionchange".asInstanceOf[IDBTransactionMode] - /** Allows reading and writing of data in existing data stores to be changed. - */ + /** Allows reading and writing of data in existing data stores to be changed. */ val READ_WRITE: IDBTransactionMode = "readwrite".asInstanceOf[IDBTransactionMode] } @@ -41,14 +39,12 @@ object IDBTransactionMode { @JSGlobal class IDBObjectStore extends js.Object { - /** A list of the names of indexes on objects in this object store. - */ + /** A list of the names of indexes on objects in this object store. */ def indexNames: DOMStringList = js.native def name: String = js.native - /** The name of the transaction to which this object store belongs. - */ + /** The name of the transaction to which this object store belongs. */ def transaction: IDBTransaction = js.native /** The key path of this object store. If this attribute is null, the application must provide a key for each @@ -70,8 +66,7 @@ class IDBObjectStore extends js.Object { */ def clear(): IDBRequest = js.native - /** Note that this method must be called only from a VersionChange transaction mode callback. - */ + /** Note that this method must be called only from a VersionChange transaction mode callback. */ def createIndex(name: String, keyPath: String, optionalParameters: js.Any = js.native): IDBIndex = js.native /** If the record is successfully stored, then a success event is fired on the returned request object with the result @@ -80,13 +75,11 @@ class IDBObjectStore extends js.Object { */ def put(value: js.Any, key: js.Any = js.native): IDBRequest = js.native - /** The method sets the position of the cursor to the appropriate record, based on the specified direction. - */ + /** The method sets the position of the cursor to the appropriate record, based on the specified direction. */ def openCursor(range: js.UndefOr[IDBKeyRange | js.Any] = js.undefined, direction: js.UndefOr[IDBCursorDirection] = js.undefined): IDBRequest = js.native - /** The method sets the position of the cursor to the appropriate key, based on the specified direction. - */ + /** The method sets the position of the cursor to the appropriate key, based on the specified direction. */ def openKeyCursor(range: js.UndefOr[IDBKeyRange | js.Any] = js.undefined, direction: js.UndefOr[IDBCursorDirection] = js.undefined): IDBRequest = js.native @@ -95,8 +88,7 @@ class IDBObjectStore extends js.Object { */ def deleteIndex(indexName: String): Unit = js.native - /** This method may raise a DOMException of one of the following types: - */ + /** This method may raise a DOMException of one of the following types: */ def index(name: String): IDBIndex = js.native /** If a value is successfully found, then a structured clone of it is created and set as the result of the request @@ -121,8 +113,7 @@ class IDBObjectStore extends js.Object { */ def getKey(key: js.Any): IDBRequest = js.native - /** returns an IDBRequest object, and, in a separate thread, deletes the current object store. - */ + /** returns an IDBRequest object, and, in a separate thread, deletes the current object store. */ def delete(key: js.Any): IDBRequest = js.native } @@ -144,8 +135,7 @@ class IDBVersionChangeEvent(typeArg: String, init: js.UndefOr[IDBVersionChangeEv */ def newVersion: Integer = js.native - /** Returns the old version of the database. - */ + /** Returns the old version of the database. */ def oldVersion: Int = js.native } @@ -167,18 +157,15 @@ class IDBVersionChangeEvent(typeArg: String, init: js.UndefOr[IDBVersionChangeEv @JSGlobal class IDBIndex extends js.Object { - /** If true, this index does not allow duplicate values for a key. - */ + /** If true, this index does not allow duplicate values for a key. */ def unique: Boolean = js.native def name: String = js.native - /** The key path of this index. If null, this index is not auto-populated. - */ + /** The key path of this index. If null, this index is not auto-populated. */ def keyPath: String = js.native - /** The name of the object store referenced by this index. - */ + /** The name of the object store referenced by this index. */ def objectStore: IDBObjectStore = js.native def count(key: js.Any): IDBRequest = js.native @@ -203,8 +190,7 @@ class IDBIndex extends js.Object { */ def get(key: js.Any): IDBRequest = js.native - /** The method sets the position of the cursor to the appropriate record, based on the specified direction. - */ + /** The method sets the position of the cursor to the appropriate record, based on the specified direction. */ def openCursor(range: IDBKeyRange = js.native, direction: IDBCursorDirection = js.native): IDBRequest = js.native } @@ -240,8 +226,7 @@ class IDBCursor extends js.Object { */ def primaryKey: js.Any = js.native - /** This method may raise a DOMException of one of the following types: - */ + /** This method may raise a DOMException of one of the following types: */ def advance(count: Int): Unit = js.native /** Sets cursor to key if specified, otherwise advances cursor by one. @@ -291,8 +276,7 @@ object IDBCursorDirection { val NEXT_UNIQUE: IDBCursorDirection = "nextunique".asInstanceOf[IDBCursorDirection] } -/** Same as IDBCursor with the value property. - */ +/** Same as IDBCursor with the value property. */ @js.native @JSGlobal class IDBCursorWithValue extends IDBCursor { @@ -312,20 +296,16 @@ class IDBCursorWithValue extends IDBCursor { @JSGlobal class IDBKeyRange extends js.Object { - /** The upper bound of the key range (can be any type.) - */ + /** The upper bound of the key range (can be any type.) */ def upper: js.Any = js.native - /** Returns false if the upper-bound value is included in the key range. - */ + /** Returns false if the upper-bound value is included in the key range. */ def upperOpen: Boolean = js.native - /** The lower bound of the key range (can be any type.) - */ + /** The lower bound of the key range (can be any type.) */ def lower: js.Any = js.native - /** Returns false if the lower-bound value is included in the key range. - */ + /** Returns false if the lower-bound value is included in the key range. */ def lowerOpen: Boolean = js.native } @@ -339,16 +319,13 @@ object IDBKeyRange extends js.Object { def bound(lower: js.Any, upper: js.Any, lowerOpen: Boolean = js.native, upperOpen: Boolean = js.native): IDBKeyRange = js.native - /** This method may raise a DOMException of the following types: - */ + /** This method may raise a DOMException of the following types: */ def only(value: js.Any): IDBKeyRange = js.native - /** By default, it includes the lower endpoint value and is closed. - */ + /** By default, it includes the lower endpoint value and is closed. */ def lowerBound(bound: js.Any, open: Boolean = js.native): IDBKeyRange = js.native - /** By default, it includes the upper endpoint value and is closed. - */ + /** By default, it includes the upper endpoint value and is closed. */ def upperBound(bound: js.Any, open: Boolean = js.native): IDBKeyRange = js.native } @@ -361,12 +338,10 @@ object IDBKeyRange extends js.Object { @JSGlobal class IDBTransaction extends EventTarget { - /** The event handler for the oncomplete event. - */ + /** The event handler for the oncomplete event. */ var oncomplete: js.Function1[Event, _] = js.native - /** The database connection with which this transaction is associated. - */ + /** The database connection with which this transaction is associated. */ def db: IDBDatabase = js.native /** The mode for isolating access to data in the object stores that are in the scope of the transaction. For possible @@ -380,12 +355,10 @@ class IDBTransaction extends EventTarget { */ def error: DOMException = js.native - /** The event handler for the onerror event. - */ + /** The event handler for the onerror event. */ var onerror: js.Function1[Event, _] = js.native - /** The event handler for the onabort event. - */ + /** The event handler for the onabort event. */ var onabort: js.Function1[Event, _] = js.native /** Returns immediately, and rolls back all the changes to objects in the database associated with this transaction. @@ -418,20 +391,16 @@ class IDBDatabase extends EventTarget { */ def version: Int = js.native - /** A DOMString that contains the name of the connected database. - */ + /** A DOMString that contains the name of the connected database. */ def name: String = js.native - /** A DOMStringList that contains a list of the names of the object stores currently in the connected database. - */ + /** A DOMStringList that contains a list of the names of the object stores currently in the connected database. */ def objectStoreNames: DOMStringList = js.native - /** Fires when access to the database fails. - */ + /** Fires when access to the database fails. */ var onerror: js.Function1[Event, _] = js.native - /** Fires when access of the database is aborted. - */ + /** Fires when access of the database is aborted. */ var onabort: js.Function1[Event, _] = js.native /** The onversionchange event handler of the IDBDatabase interface handles the versionchange event, fired when a @@ -502,12 +471,10 @@ class IDBFactory extends js.Object { */ def open(name: String): IDBOpenDBRequest = js.native - /** A method that compares two keys and returns a result indicating which one is greater in value. - */ + /** A method that compares two keys and returns a result indicating which one is greater in value. */ def cmp(first: js.Any, second: js.Any): Int = js.native - /** The deletion operation (performed in a different thread) consists of the following steps: - */ + /** The deletion operation (performed in a different thread) consists of the following steps: */ def deleteDatabase(name: String): IDBOpenDBRequest = js.native } @@ -528,12 +495,10 @@ class IDBRequest extends EventTarget { */ def source: js.Any = js.native - /** The event handler for the success event. - */ + /** The event handler for the success event. */ var onsuccess: js.Function1[Event, _] = js.native - /** Returns a DOMException in the event of an unsuccessful request, indicating what went wrong. - */ + /** Returns a DOMException in the event of an unsuccessful request, indicating what went wrong. */ def error: DOMException = js.native /** The transaction for the request. This property can be null for certain requests, such as for request returned from @@ -541,8 +506,7 @@ class IDBRequest extends EventTarget { */ def transaction: IDBTransaction = js.native - /** The event handler for the error event. - */ + /** The event handler for the error event. */ var onerror: js.Function1[Event, _] = js.native /** The state of the request. Every request starts in the pending state. The state changes to done when the request diff --git a/src/main/scala/org/scalajs/dom/KeyboardEventConstants.scala b/src/main/scala/org/scalajs/dom/KeyboardEventConstants.scala index 386b8a8e6..6c7aff46d 100644 --- a/src/main/scala/org/scalajs/dom/KeyboardEventConstants.scala +++ b/src/main/scala/org/scalajs/dom/KeyboardEventConstants.scala @@ -770,8 +770,7 @@ object KeyValue { } } -/** A list of the codes returned by KeyEvents. - */ +/** A list of the codes returned by KeyEvents. */ object KeyCode { final val Backspace = 8 final val Tab = 9 diff --git a/src/main/scala/org/scalajs/dom/Notification.scala b/src/main/scala/org/scalajs/dom/Notification.scala index a0cc95a8c..7f0a5bcb5 100644 --- a/src/main/scala/org/scalajs/dom/Notification.scala +++ b/src/main/scala/org/scalajs/dom/Notification.scala @@ -6,12 +6,10 @@ import scala.scalajs.js.annotation._ @js.native trait NotificationOptions extends js.Object { - /** The body property of the Notification interface indicates the body string of the notification. - */ + /** The body property of the Notification interface indicates the body string of the notification. */ val body: String = js.native - /** The dir property of the Notification interface indicates the text direction of the notification. - */ + /** The dir property of the Notification interface indicates the text direction of the notification. */ val dir: String = js.native /** The icon property of the Notification interface contains the URL of an icon to be displayed as part of the @@ -19,8 +17,7 @@ trait NotificationOptions extends js.Object { */ val icon: String = js.native - /** The lang property of the Notification interface indicates the text direction of the notification. - */ + /** The lang property of the Notification interface indicates the text direction of the notification. */ val lang: String = js.native /** The noscreen property of the Notification interface specifies whether the notification firing should enable the @@ -240,7 +237,6 @@ class Notification(title: String, options: NotificationOptions = ???) extends Ev */ val vibrate: js.Array[Double] = js.native - /** The close() method of the Notification interface is used to close a previously displayed notification. - */ + /** The close() method of the Notification interface is used to close a previously displayed notification. */ def close(): Unit = js.native } diff --git a/src/main/scala/org/scalajs/dom/OffscreenCanvas.scala b/src/main/scala/org/scalajs/dom/OffscreenCanvas.scala index 15738b48e..35c0e18e7 100644 --- a/src/main/scala/org/scalajs/dom/OffscreenCanvas.scala +++ b/src/main/scala/org/scalajs/dom/OffscreenCanvas.scala @@ -10,18 +10,15 @@ import scala.scalajs.js.annotation.JSGlobal @JSGlobal class OffscreenCanvas(var width: Double, var height: Double) extends js.Object { - /** Returns a rendering context for the offscreen canvas. - */ + /** Returns a rendering context for the offscreen canvas. */ def getContext(contextType: String): js.Dynamic = js.native def getContext(contextType: String, contextAttributes: WebGLContextAttributes): js.Dynamic = js.native def getContext(contextType: String, contextAttributes: TwoDContextAttributes): js.Dynamic = js.native - /** Creates a Blob object representing the image contained in the canvas. - */ + /** Creates a Blob object representing the image contained in the canvas. */ def convertToBlob(options: ConvertToBlobOptions = ???): js.Promise[Blob] = js.native - /** Creates an ImageBitmap object from the most recently rendered image of the OffscreenCanvas. - */ + /** Creates an ImageBitmap object from the most recently rendered image of the OffscreenCanvas. */ def transferToImageBitmap(): ImageBitmap = js.native } diff --git a/src/main/scala/org/scalajs/dom/SVGTypes.scala b/src/main/scala/org/scalajs/dom/SVGTypes.scala index 074d5c0fe..7e1eeac5b 100644 --- a/src/main/scala/org/scalajs/dom/SVGTypes.scala +++ b/src/main/scala/org/scalajs/dom/SVGTypes.scala @@ -59,8 +59,7 @@ object SVGMarkerElement extends js.Object { val SVG_MARKERUNITS_USERSPACEONUSE: Int = js.native } -/** The SVGGElement interface corresponds to the <g> element. - */ +/** The SVGGElement interface corresponds to the <g> element. */ @js.native @JSGlobal abstract class SVGGElement @@ -115,25 +114,20 @@ abstract class SVGLineElement extends SVGElement with SVGStylable with SVGTransformable with SVGLangSpace with SVGTests with SVGExternalResourcesRequired { - /** Corresponds to attribute y1 on the given <line> element. - */ + /** Corresponds to attribute y1 on the given <line> element. */ def y1: SVGAnimatedLength = js.native - /** Corresponds to attribute x2 on the given <line> element. - */ + /** Corresponds to attribute x2 on the given <line> element. */ def x2: SVGAnimatedLength = js.native - /** Corresponds to attribute x1 on the given <line> element. - */ + /** Corresponds to attribute x1 on the given <line> element. */ def x1: SVGAnimatedLength = js.native - /** Corresponds to attribute y2 on the given <line> element. - */ + /** Corresponds to attribute y2 on the given <line> element. */ def y2: SVGAnimatedLength = js.native } -/** The SVGDescElement interface corresponds to the <desc> element. - */ +/** The SVGDescElement interface corresponds to the <desc> element. */ @js.native @JSGlobal abstract class SVGDescElement extends SVGElement with SVGStylable with SVGLangSpace @@ -167,24 +161,19 @@ abstract class SVGClipPathElement @JSGlobal abstract class SVGTextPositioningElement extends SVGTextContentElement { - /** Corresponds to attribute y on the given element. - */ + /** Corresponds to attribute y on the given element. */ def y: SVGAnimatedLengthList = js.native - /** Corresponds to attribute rotate on the given element. - */ + /** Corresponds to attribute rotate on the given element. */ def rotate: SVGAnimatedNumberList = js.native - /** Corresponds to attribute dy on the given element. - */ + /** Corresponds to attribute dy on the given element. */ def dy: SVGAnimatedLengthList = js.native - /** Corresponds to attribute x on the given element. - */ + /** Corresponds to attribute x on the given element. */ def x: SVGAnimatedLengthList = js.native - /** Corresponds to attribute dx on the given element. - */ + /** Corresponds to attribute dx on the given element. */ def dx: SVGAnimatedLengthList = js.native } @@ -194,8 +183,7 @@ class SVGPathSegLinetoVerticalRel extends SVGPathSeg { var y: Double = js.native } -/** The SVGAnimatedString interface is used for attributes of type DOMString which can be animated. - */ +/** The SVGAnimatedString interface is used for attributes of type DOMString which can be animated. */ @js.native @JSGlobal class SVGAnimatedString extends js.Object { @@ -205,8 +193,7 @@ class SVGAnimatedString extends js.Object { */ def animVal: String = js.native - /** The base value of the given attribute before applying any animations. - */ + /** The base value of the given attribute before applying any animations. */ var baseVal: String = js.native } @@ -216,25 +203,20 @@ class SVGAnimatedString extends js.Object { @js.native trait SVGTests extends js.Object { - /** Corresponds to attribute requiredFeatures on the given element. - */ + /** Corresponds to attribute requiredFeatures on the given element. */ var requiredFeatures: SVGStringList = js.native - /** Corresponds to attribute requiredExtensions on the given element. - */ + /** Corresponds to attribute requiredExtensions on the given element. */ var requiredExtensions: SVGStringList = js.native - /** Corresponds to attribute systemLanguage on the given element. - */ + /** Corresponds to attribute systemLanguage on the given element. */ var systemLanguage: SVGStringList = js.native - /** Returns true if the browser supports the given extension, specified by a URI. - */ + /** Returns true if the browser supports the given extension, specified by a URI. */ def hasExtension(extension: String): Boolean = js.native } -/** The SVGPatternElement interface corresponds to the <pattern> element. - */ +/** The SVGPatternElement interface corresponds to the <pattern> element. */ @js.native @JSGlobal abstract class SVGPatternElement @@ -246,16 +228,13 @@ abstract class SVGPatternElement */ def patternUnits: SVGAnimatedEnumeration = js.native - /** Corresponds to attribute y on the given <pattern> element. - */ + /** Corresponds to attribute y on the given <pattern> element. */ def y: SVGAnimatedLength = js.native - /** Corresponds to attribute width on the given <pattern> element. - */ + /** Corresponds to attribute width on the given <pattern> element. */ def width: SVGAnimatedLength = js.native - /** Corresponds to attribute x on the given <pattern> element. - */ + /** Corresponds to attribute x on the given <pattern> element. */ def x: SVGAnimatedLength = js.native /** Corresponds to attribute patternContentUnits on the given <pattern> element. Takes one of the constants @@ -263,17 +242,14 @@ abstract class SVGPatternElement */ def patternContentUnits: SVGAnimatedEnumeration = js.native - /** Corresponds to attribute patternTransform on the given <pattern> element. - */ + /** Corresponds to attribute patternTransform on the given <pattern> element. */ def patternTransform: SVGAnimatedTransformList = js.native - /** Corresponds to attribute height on the given <pattern> element. - */ + /** Corresponds to attribute height on the given <pattern> element. */ def height: SVGAnimatedLength = js.native } -/** The SVGAnimatedAngle interface is used for attributes of basic type <angle> which can be animated. - */ +/** The SVGAnimatedAngle interface is used for attributes of basic type <angle> which can be animated. */ @js.native @JSGlobal class SVGAnimatedAngle extends js.Object { @@ -284,13 +260,11 @@ class SVGAnimatedAngle extends js.Object { */ def animVal: SVGAngle = js.native - /** The base value of the given attribute before applying any animations. - */ + /** The base value of the given attribute before applying any animations. */ var baseVal: SVGAngle = js.native } -/** The SVGScriptElement interface corresponds to the SVG <script> element. - */ +/** The SVGScriptElement interface corresponds to the SVG <script> element. */ @js.native @JSGlobal abstract class SVGScriptElement extends SVGElement with SVGExternalResourcesRequired with SVGURIReference { @@ -326,8 +300,7 @@ trait SVGLocatable extends js.Object { def getScreenCTM(): SVGMatrix = js.native } -/** The SVGTitleElement interface corresponds to the <title> element. - */ +/** The SVGTitleElement interface corresponds to the <title> element. */ @js.native @JSGlobal abstract class SVGTitleElement extends SVGElement with SVGStylable with SVGLangSpace @@ -346,8 +319,7 @@ class SVGAnimatedTransformList extends js.Object { */ def animVal: SVGTransformList = js.native - /** The base value of the given attribute before applying any animations. - */ + /** The base value of the given attribute before applying any animations. */ var baseVal: SVGTransformList = js.native } @@ -377,8 +349,7 @@ class SVGPointList extends js.Object { def insertItemBefore(newItem: SVGPoint, index: Int): SVGPoint = js.native } -/** The SVGAnimatedLengthList interface is used for attributes of type SVGLengthList which can be animated. - */ +/** The SVGAnimatedLengthList interface is used for attributes of type SVGLengthList which can be animated. */ @js.native @JSGlobal class SVGAnimatedLengthList extends js.Object { @@ -390,8 +361,7 @@ class SVGAnimatedLengthList extends js.Object { */ def animVal: SVGLengthList = js.native - /** The base value of the given attribute before applying any animations. - */ + /** The base value of the given attribute before applying any animations. */ var baseVal: SVGLengthList = js.native } @@ -409,8 +379,7 @@ class SVGAnimatedPreserveAspectRatio extends js.Object { */ def animVal: SVGPreserveAspectRatio = js.native - /** The base value of the given attribute before applying any animations. - */ + /** The base value of the given attribute before applying any animations. */ var baseVal: SVGPreserveAspectRatio = js.native } @@ -419,8 +388,7 @@ trait SVGExternalResourcesRequired extends js.Object { var externalResourcesRequired: SVGAnimatedBoolean = js.native } -/** The SVGAngle interface correspond to the <angle> basic data type. - */ +/** The SVGAngle interface correspond to the <angle> basic data type. */ @js.native @JSGlobal class SVGAngle extends js.Object { @@ -447,8 +415,7 @@ class SVGAngle extends js.Object { */ var value: Double = js.native - /** The type of the value as specified by one of the SVG_ANGLETYPE_* constants defined on this interface. - */ + /** The type of the value as specified by one of the SVG_ANGLETYPE_* constants defined on this interface. */ def unitType: Int = js.native /** Reset the value as a number with an associated unitType, thereby replacing the values for all of the attributes on @@ -465,8 +432,7 @@ class SVGAngle extends js.Object { def convertToSpecifiedUnits(unitType: Int): Unit = js.native } -/** The SVGAngle interface correspond to the <angle> basic data type. - */ +/** The SVGAngle interface correspond to the <angle> basic data type. */ @js.native @JSGlobal object SVGAngle extends js.Object { @@ -479,8 +445,7 @@ object SVGAngle extends js.Object { val SVG_ANGLETYPE_UNKNOWN: Int = js.native val SVG_ANGLETYPE_UNSPECIFIED: Int = js.native - /** The unit type was explicitly set to degrees. - */ + /** The unit type was explicitly set to degrees. */ val SVG_ANGLETYPE_DEG: Int = js.native val SVG_ANGLETYPE_GRAD: Int = js.native } @@ -504,16 +469,14 @@ abstract class SVGElement extends Element { var onfocusout: js.Function1[FocusEvent, _] = js.native var onfocusin: js.Function1[FocusEvent, _] = js.native - /** Corresponds to attribute xml:base on the given element. - */ + /** Corresponds to attribute xml:base on the given element. */ var xmlbase: String = js.native var onmousedown: js.Function1[MouseEvent, _] = js.native var onload: js.Function1[Event, _] = js.native var onmouseup: js.Function1[MouseEvent, _] = js.native var onclick: js.Function1[MouseEvent, _] = js.native - /** The nearest ancestor <svg> element. Null if the given element is the outermost svg element. - */ + /** The nearest ancestor <svg> element. Null if the given element is the outermost svg element. */ def ownerSVGElement: SVGSVGElement = js.native } @@ -535,8 +498,7 @@ class SVGPathSegArcAbs extends SVGPathSeg { var largeArcFlag: Boolean = js.native } -/** The SVGTransformList defines a list of SVGTransform objects. - */ +/** The SVGTransformList defines a list of SVGTransform objects. */ @js.native @JSGlobal class SVGTransformList extends js.Object { @@ -604,8 +566,7 @@ class SVGTransformList extends js.Object { @JSGlobal class SVGPathSegClosePath extends SVGPathSeg -/** The SVGAnimatedLength interface is used for attributes of basic type <length> which can be animated. - */ +/** The SVGAnimatedLength interface is used for attributes of basic type <length> which can be animated. */ @js.native @JSGlobal class SVGAnimatedLength extends js.Object { @@ -615,8 +576,7 @@ class SVGAnimatedLength extends js.Object { */ def animVal: SVGLength = js.native - /** The base value of the given attribute before applying any animations. - */ + /** The base value of the given attribute before applying any animations. */ var baseVal: SVGLength = js.native } @@ -626,8 +586,7 @@ class SVGAnimatedLength extends js.Object { @js.native trait SVGAnimatedPoints extends js.Object { - /** Provides access to the base (i.e., static) contents of the points attribute. - */ + /** Provides access to the base (i.e., static) contents of the points attribute. */ var points: SVGPointList = js.native /** Provides access to the current animated contents of the points attribute. If the given attribute or property is @@ -637,8 +596,7 @@ trait SVGAnimatedPoints extends js.Object { def animatedPoints: SVGPointList = js.native } -/** The SVGDefsElement interface corresponds to the <defs> element. - */ +/** The SVGDefsElement interface corresponds to the <defs> element. */ @js.native @JSGlobal abstract class SVGDefsElement @@ -660,20 +618,16 @@ abstract class SVGEllipseElement extends SVGElement with SVGStylable with SVGTransformable with SVGLangSpace with SVGTests with SVGExternalResourcesRequired { - /** Corresponds to attribute ry on the given <ellipse> element. - */ + /** Corresponds to attribute ry on the given <ellipse> element. */ def ry: SVGAnimatedLength = js.native - /** Corresponds to attribute cx on the given <ellipse> element. - */ + /** Corresponds to attribute cx on the given <ellipse> element. */ def cx: SVGAnimatedLength = js.native - /** Corresponds to attribute rx on the given <ellipse> element. - */ + /** Corresponds to attribute rx on the given <ellipse> element. */ def rx: SVGAnimatedLength = js.native - /** Corresponds to attribute cy on the given <ellipse> element. - */ + /** Corresponds to attribute cy on the given <ellipse> element. */ def cy: SVGAnimatedLength = js.native } @@ -686,8 +640,7 @@ abstract class SVGAElement extends SVGElement with SVGStylable with SVGTransformable with SVGLangSpace with SVGTests with SVGExternalResourcesRequired with SVGURIReference { - /** Corresponds to attribute target on the given <a> element. - */ + /** Corresponds to attribute target on the given <a> element. */ def target: SVGAnimatedString = js.native } @@ -697,12 +650,10 @@ abstract class SVGAElement @js.native trait SVGStylable extends js.Object { - /** Corresponds to attribute class on the given element. - */ + /** Corresponds to attribute class on the given element. */ var className: SVGAnimatedString = js.native - /** Corresponds to attribute style on the given element. - */ + /** Corresponds to attribute style on the given element. */ var style: CSSStyleDeclaration = js.native } @@ -712,8 +663,7 @@ trait SVGStylable extends js.Object { @js.native trait SVGTransformable extends SVGLocatable { - /** Corresponds to attribute transform on the given element. - */ + /** Corresponds to attribute transform on the given element. */ var transform: SVGAnimatedTransformList = js.native } @@ -732,8 +682,7 @@ class SVGPoint extends js.Object { def matrixTransform(matrix: SVGMatrix): SVGPoint = js.native } -/** The SVGAnimatedNumber interface is used for attributes which take a list of numbers and which can be animated. - */ +/** The SVGAnimatedNumber interface is used for attributes which take a list of numbers and which can be animated. */ @js.native @JSGlobal class SVGAnimatedNumberList extends js.Object { @@ -745,8 +694,7 @@ class SVGAnimatedNumberList extends js.Object { */ def animVal: SVGNumberList = js.native - /** The base value of the given attribute before applying any animations. - */ + /** The base value of the given attribute before applying any animations. */ def baseVal: SVGNumberList = js.native } @@ -760,21 +708,17 @@ abstract class SVGSVGElement extends SVGElement with SVGStylable with SVGZoomAndPan with DocumentEvent with SVGLangSpace with SVGLocatable with SVGTests with SVGFitToViewBox with SVGExternalResourcesRequired { - /** Corresponds to attribute width on the given <svg> element. - */ + /** Corresponds to attribute width on the given <svg> element. */ def width: SVGAnimatedLength = js.native - /** Corresponds to attribute x on the given <svg> element. - */ + /** Corresponds to attribute x on the given <svg> element. */ def x: SVGAnimatedLength = js.native - /** Corresponds to attribute contentStyleType on the given <svg> element. - */ + /** Corresponds to attribute contentStyleType on the given <svg> element. */ var contentStyleType: String = js.native var onzoom: js.Function1[js.Any, _] = js.native - /** Corresponds to attribute y on the given <svg> element. - */ + /** Corresponds to attribute y on the given <svg> element. */ def y: SVGAnimatedLength = js.native /** The position and size of the viewport (implicit or explicit) that corresponds to this <svg> element. When @@ -789,24 +733,20 @@ abstract class SVGSVGElement var onerror: js.Function1[Event, _] = js.native - /** Corresponding size of a pixel unit along the y-axis of the viewport. - */ + /** Corresponding size of a pixel unit along the y-axis of the viewport. */ def pixelUnitToMillimeterY: Double = js.native var onresize: js.Function1[UIEvent, _] = js.native - /** Corresponding size of a screen pixel along the y-axis of the viewport. - */ + /** Corresponding size of a screen pixel along the y-axis of the viewport. */ def screenPixelToMillimeterY: Double = js.native - /** Corresponds to attribute height on the given <svg> element. - */ + /** Corresponds to attribute height on the given <svg> element. */ def height: SVGAnimatedLength = js.native var onabort: js.Function1[UIEvent, _] = js.native - /** Corresponds to attribute contentScriptType on the given <svg> element. - */ + /** Corresponds to attribute contentScriptType on the given <svg> element. */ var contentScriptType: String = js.native /** Size of a pixel units (as defined by CSS2) along the x-axis of the viewport, which represents a unit somewhere in @@ -896,8 +836,7 @@ abstract class SVGSVGElement */ def suspendRedraw(maxWaitMilliseconds: Int): Int = js.native - /** Unselects any selected objects, including any selections of text strings and type-in bars. - */ + /** Unselects any selected objects, including any selections of text strings and type-in bars. */ def deselectAll(): Unit = js.native /** Creates an SVGAngle object outside of any document trees. The object is initialized to a value of zero degrees @@ -934,8 +873,7 @@ abstract class SVGSVGElement */ def checkEnclosure(element: SVGElement, rect: SVGRect): Boolean = js.native - /** Creates an SVGMatrix object outside of any document trees. The object is initialized to the identity matrix. - */ + /** Creates an SVGMatrix object outside of any document trees. The object is initialized to the identity matrix. */ def createSVGMatrix(): SVGMatrix = js.native /** Creates an SVGPoint object outside of any document trees. The object is initialized to the point (0,0) in the user @@ -943,8 +881,7 @@ abstract class SVGSVGElement */ def createSVGPoint(): SVGPoint = js.native - /** Creates an SVGNumber object outside of any document trees. The object is initialized to a value of zero. - */ + /** Creates an SVGNumber object outside of any document trees. The object is initialized to a value of zero. */ def createSVGNumber(): SVGNumber = js.native /** Creates an SVGTransform object outside of any document trees. The object is initialized to the given matrix @@ -962,8 +899,7 @@ abstract class SVGSVGElement def getElementById(elementId: String): Element = js.native } -/** The SVGAnimatedInteger interface is used for attributes of basic type <integer> which can be animated. - */ +/** The SVGAnimatedInteger interface is used for attributes of basic type <integer> which can be animated. */ @js.native @JSGlobal class SVGAnimatedInteger extends js.Object { @@ -973,13 +909,11 @@ class SVGAnimatedInteger extends js.Object { */ def animVal: Int = js.native - /** The base value of the given attribute before applying any animations. - */ + /** The base value of the given attribute before applying any animations. */ var baseVal: Int = js.native } -/** The SVGTextElement interface corresponds to the <text> elements. - */ +/** The SVGTextElement interface corresponds to the <text> elements. */ @js.native @JSGlobal abstract class SVGTextElement extends SVGTextPositioningElement with SVGTransformable @@ -997,8 +931,7 @@ class SVGPathSegLinetoVerticalAbs extends SVGPathSeg { var y: Double = js.native } -/** The SVGStyleElement interface corresponds to the SVG <style> element. - */ +/** The SVGStyleElement interface corresponds to the SVG <style> element. */ @js.native @JSGlobal abstract class SVGStyleElement extends SVGElement with SVGLangSpace { @@ -1016,64 +949,51 @@ abstract class SVGStyleElement extends SVGElement with SVGLangSpace { var title: String = js.native } -/** The SVGRadialGradientElement interface corresponds to the <radialgradient> element. - */ +/** The SVGRadialGradientElement interface corresponds to the <radialgradient> element. */ @js.native @JSGlobal class SVGRadialGradientElement extends SVGGradientElement { - /** Corresponds to attribute cx on the given <radialgradient> element. - */ + /** Corresponds to attribute cx on the given <radialgradient> element. */ def cx: SVGAnimatedLength = js.native - /** Corresponds to attribute r on the given <radialgradient> element. - */ + /** Corresponds to attribute r on the given <radialgradient> element. */ def r: SVGAnimatedLength = js.native - /** Corresponds to attribute cy on the given <radialgradient> element. - */ + /** Corresponds to attribute cy on the given <radialgradient> element. */ def cy: SVGAnimatedLength = js.native - /** Corresponds to attribute fx on the given <radialgradient> element. - */ + /** Corresponds to attribute fx on the given <radialgradient> element. */ def fx: SVGAnimatedLength = js.native - /** Corresponds to attribute fy on the given <radialgradient> element. - */ + /** Corresponds to attribute fy on the given <radialgradient> element. */ def fy: SVGAnimatedLength = js.native } -/** The SVGImageElement interface corresponds to the <image> element. - */ +/** The SVGImageElement interface corresponds to the <image> element. */ @js.native @JSGlobal abstract class SVGImageElement extends SVGElement with SVGStylable with SVGTransformable with SVGLangSpace with SVGTests with SVGExternalResourcesRequired with SVGURIReference { - /** Corresponds to attribute y on the given <image> element. - */ + /** Corresponds to attribute y on the given <image> element. */ def y: SVGAnimatedLength = js.native - /** Corresponds to attribute width on the given <image> element. - */ + /** Corresponds to attribute width on the given <image> element. */ def width: SVGAnimatedLength = js.native - /** Corresponds to attribute preserveAspectRatio on the given <image> element. - */ + /** Corresponds to attribute preserveAspectRatio on the given <image> element. */ def preserveAspectRatio: SVGAnimatedPreserveAspectRatio = js.native - /** Corresponds to attribute x on the given <image> element. - */ + /** Corresponds to attribute x on the given <image> element. */ def x: SVGAnimatedLength = js.native - /** Corresponds to attribute height on the given <image> element. - */ + /** Corresponds to attribute height on the given <image> element. */ def height: SVGAnimatedLength = js.native } -/** The SVGAnimatedNumber interface is used for attributes of basic type <Number> which can be animated. - */ +/** The SVGAnimatedNumber interface is used for attributes of basic type <Number> which can be animated. */ @js.native @JSGlobal class SVGAnimatedNumber extends js.Object { @@ -1083,8 +1003,7 @@ class SVGAnimatedNumber extends js.Object { */ def animVal: Double = js.native - /** The base value of the given attribute before applying any animations. - */ + /** The base value of the given attribute before applying any animations. */ var baseVal: Double = js.native } @@ -1111,8 +1030,7 @@ class SVGPathSegMovetoAbs extends SVGPathSeg { var x: Double = js.native } -/** The SVGStringList defines a list of DOMString objects. - */ +/** The SVGStringList defines a list of DOMString objects. */ @js.native @JSGlobal class SVGStringList extends js.Object { @@ -1172,8 +1090,7 @@ class SVGStringList extends js.Object { def insertItemBefore(newItem: String, index: Int): String = js.native } -/** The SVGLength interface correspond to the <length> basic data type. - */ +/** The SVGLength interface correspond to the <length> basic data type. */ @js.native @JSGlobal class SVGLength extends js.Object { @@ -1200,8 +1117,7 @@ class SVGLength extends js.Object { */ var value: Double = js.native - /** The type of the value as specified by one of the SVG_LENGTHTYPE_* constants defined on this interface. - */ + /** The type of the value as specified by one of the SVG_LENGTHTYPE_* constants defined on this interface. */ def unitType: Int = js.native /** Reset the value as a number with an associated unitType, thereby replacing the values for all of the attributes on @@ -1221,8 +1137,7 @@ class SVGLength extends js.Object { def convertToSpecifiedUnits(unitType: Int): Unit = js.native } -/** The SVGLength interface correspond to the <length> basic data type. - */ +/** The SVGLength interface correspond to the <length> basic data type. */ @js.native @JSGlobal object SVGLength extends js.Object { @@ -1422,8 +1337,7 @@ object SVGPathSeg extends js.Object { val PATHSEG_CURVETO_QUADRATIC_SMOOTH_REL: Int = js.native } -/** The SVGNumber interface correspond to the <number> basic data type. - */ +/** The SVGNumber interface correspond to the <number> basic data type. */ @js.native @JSGlobal class SVGNumber extends js.Object { @@ -1434,8 +1348,7 @@ class SVGNumber extends js.Object { var value: Double = js.native } -/** The SVGPathElement interface corresponds to the <path> element. - */ +/** The SVGPathElement interface corresponds to the <path> element. */ @js.native @JSGlobal abstract class SVGPathElement @@ -1487,8 +1400,7 @@ abstract class SVGPathElement */ def createSVGPathSegLinetoAbs(x: Double, y: Double): SVGPathSegLinetoAbs = js.native - /** Returns a stand-alone, parentless SVGPathSegClosePath object. - */ + /** Returns a stand-alone, parentless SVGPathSegClosePath object. */ def createSVGPathSegClosePath(): SVGPathSegClosePath = js.native /** Returns a stand-alone, parentless SVGPathSegCurvetoCubicRel object. Parameters: float x The relative X coordinate @@ -1579,8 +1491,7 @@ abstract class SVGPathElement sweepFlag: Boolean): SVGPathSegArcAbs = js.native } -/** The SVGAnimatedRect interface is used for attributes of basic SVGRect which can be animated. - */ +/** The SVGAnimatedRect interface is used for attributes of basic SVGRect which can be animated. */ @js.native @JSGlobal class SVGAnimatedRect extends js.Object { @@ -1591,8 +1502,7 @@ class SVGAnimatedRect extends js.Object { */ def animVal: SVGRect = js.native - /** The base value of the given attribute before applying any animations. - */ + /** The base value of the given attribute before applying any animations. */ def baseVal: SVGRect = js.native } @@ -1645,16 +1555,13 @@ abstract class SVGCircleElement extends SVGElement with SVGStylable with SVGTransformable with SVGLangSpace with SVGTests with SVGExternalResourcesRequired { - /** Corresponds to attribute cx on the given <circle> element. - */ + /** Corresponds to attribute cx on the given <circle> element. */ def cx: SVGAnimatedLength = js.native - /** Corresponds to attribute r on the given <circle> element. - */ + /** Corresponds to attribute r on the given <circle> element. */ def r: SVGAnimatedLength = js.native - /** Corresponds to attribute cy on the given <circle> element. - */ + /** Corresponds to attribute cy on the given <circle> element. */ def cy: SVGAnimatedLength = js.native } @@ -1666,20 +1573,16 @@ abstract class SVGCircleElement @JSGlobal class SVGRect extends js.Object { - /** The y coordinate of the rectangle, in user units. - */ + /** The y coordinate of the rectangle, in user units. */ var y: Double = js.native - /** The width coordinate of the rectangle, in user units. - */ + /** The width coordinate of the rectangle, in user units. */ var width: Double = js.native - /** The x coordinate of the rectangle, in user units. - */ + /** The x coordinate of the rectangle, in user units. */ var x: Double = js.native - /** The height coordinate of the rectangle, in user units. - */ + /** The height coordinate of the rectangle, in user units. */ var height: Double = js.native } @@ -1710,8 +1613,7 @@ class SVGPathSegLinetoAbs extends SVGPathSeg { var x: Double = js.native } -/** Many of SVG's graphics operations utilize 2x3 matrices of the form: - */ +/** Many of SVG's graphics operations utilize 2x3 matrices of the form: */ @js.native @JSGlobal class SVGMatrix extends js.Object { @@ -1727,12 +1629,10 @@ class SVGMatrix extends js.Object { */ def multiply(secondMatrix: SVGMatrix): SVGMatrix = js.native - /** Post-multiplies the transformation [1 0 0 -1 0 0] and returns the resulting matrix. - */ + /** Post-multiplies the transformation [1 0 0 -1 0 0] and returns the resulting matrix. */ def flipY(): SVGMatrix = js.native - /** Post-multiplies a skewY transformation on the current matrix and returns the resulting matrix. - */ + /** Post-multiplies a skewY transformation on the current matrix and returns the resulting matrix. */ def skewY(angle: Double): SVGMatrix = js.native /** Return the inverse matrix Exceptions: a DOMException with code SVG_MATRIX_NOT_INVERTABLE is raised if the matrix @@ -1740,24 +1640,19 @@ class SVGMatrix extends js.Object { */ def inverse(): SVGMatrix = js.native - /** Post-multiplies a non-uniform scale transformation on the current matrix and returns the resulting matrix. - */ + /** Post-multiplies a non-uniform scale transformation on the current matrix and returns the resulting matrix. */ def scaleNonUniform(scaleFactorX: Double, scaleFactorY: Double): SVGMatrix = js.native - /** Post-multiplies a rotation transformation on the current matrix and returns the resulting matrix. - */ + /** Post-multiplies a rotation transformation on the current matrix and returns the resulting matrix. */ def rotate(angle: Double): SVGMatrix = js.native - /** Post-multiplies the transformation [-1 0 0 1 0 0] and returns the resulting matrix. - */ + /** Post-multiplies the transformation [-1 0 0 1 0 0] and returns the resulting matrix. */ def flipX(): SVGMatrix = js.native - /** Post-multiplies a translation transformation on the current matrix and returns the resulting matrix. - */ + /** Post-multiplies a translation transformation on the current matrix and returns the resulting matrix. */ def translate(x: Double, y: Double): SVGMatrix = js.native - /** Post-multiplies a uniform scale transformation on the current matrix and returns the resulting matrix. - */ + /** Post-multiplies a uniform scale transformation on the current matrix and returns the resulting matrix. */ def scale(scaleFactor: Double): SVGMatrix = js.native /** Post-multiplies a rotation transformation on the current matrix and returns the resulting matrix. The rotation @@ -1767,8 +1662,7 @@ class SVGMatrix extends js.Object { */ def rotateFromVector(x: Double, y: Double): SVGMatrix = js.native - /** Post-multiplies a skewX transformation on the current matrix and returns the resulting matrix. - */ + /** Post-multiplies a skewX transformation on the current matrix and returns the resulting matrix. */ def skewX(angle: Double): SVGMatrix = js.native } @@ -1781,12 +1675,10 @@ abstract class SVGUseElement extends SVGElement with SVGStylable with SVGTransformable with SVGLangSpace with SVGTests with SVGExternalResourcesRequired with SVGURIReference { - /** Corresponds to attribute y on the given <use> element. - */ + /** Corresponds to attribute y on the given <use> element. */ def y: SVGAnimatedLength = js.native - /** Corresponds to attribute width on the given <use> element. - */ + /** Corresponds to attribute width on the given <use> element. */ def width: SVGAnimatedLength = js.native /** If the xlink:href attribute is being animated, contains the current animated root of the instance tree. If the @@ -1795,16 +1687,13 @@ abstract class SVGUseElement */ def animatedInstanceRoot: SVGElementInstance = js.native - /** The root of the instance tree. See description of SVGElementInstance to learn more about the instance tree. - */ + /** The root of the instance tree. See description of SVGElementInstance to learn more about the instance tree. */ def instanceRoot: SVGElementInstance = js.native - /** Corresponds to attribute x on the given <use> element. - */ + /** Corresponds to attribute x on the given <use> element. */ def x: SVGAnimatedLength = js.native - /** Corresponds to attribute height on the given <use> element. - */ + /** Corresponds to attribute height on the given <use> element. */ def height: SVGAnimatedLength = js.native } @@ -1825,26 +1714,21 @@ object SVGException extends js.Object { val SVG_INVALID_VALUE_ERR: Int = js.native } -/** The SVGLinearGradientElement interface corresponds to the <lineargradient> element. - */ +/** The SVGLinearGradientElement interface corresponds to the <lineargradient> element. */ @js.native @JSGlobal class SVGLinearGradientElement extends SVGGradientElement { - /** Corresponds to attribute y1 on the given <lineargradient> element. - */ + /** Corresponds to attribute y1 on the given <lineargradient> element. */ def y1: SVGAnimatedLength = js.native - /** Corresponds to attribute x2 on the given <lineargradient> element. - */ + /** Corresponds to attribute x2 on the given <lineargradient> element. */ def x2: SVGAnimatedLength = js.native - /** Corresponds to attribute x1 on the given <lineargradient> element. - */ + /** Corresponds to attribute x1 on the given <lineargradient> element. */ def x1: SVGAnimatedLength = js.native - /** Corresponds to attribute y2 on the given <lineargradient> element. - */ + /** Corresponds to attribute y2 on the given <lineargradient> element. */ def y2: SVGAnimatedLength = js.native } @@ -1860,8 +1744,7 @@ class SVGAnimatedEnumeration extends js.Object { */ def animVal: Int = js.native - /** The base value of the given attribute before applying any animations. - */ + /** The base value of the given attribute before applying any animations. */ var baseVal: Int = js.native } @@ -1874,28 +1757,22 @@ abstract class SVGRectElement extends SVGElement with SVGStylable with SVGTransformable with SVGLangSpace with SVGTests with SVGExternalResourcesRequired { - /** Corresponds to attribute y on the given <rect> element. - */ + /** Corresponds to attribute y on the given <rect> element. */ def y: SVGAnimatedLength = js.native - /** Corresponds to attribute width on the given <rect> element. - */ + /** Corresponds to attribute width on the given <rect> element. */ def width: SVGAnimatedLength = js.native - /** Corresponds to attribute ry on the given <rect> element. - */ + /** Corresponds to attribute ry on the given <rect> element. */ def ry: SVGAnimatedLength = js.native - /** Corresponds to attribute rx on the given <rect> element. - */ + /** Corresponds to attribute rx on the given <rect> element. */ def rx: SVGAnimatedLength = js.native - /** Corresponds to attribute x on the given <rect> element. - */ + /** Corresponds to attribute x on the given <rect> element. */ def x: SVGAnimatedLength = js.native - /** Corresponds to attribute height on the given <rect> element. - */ + /** Corresponds to attribute height on the given <rect> element. */ def height: SVGAnimatedLength = js.native } @@ -1915,8 +1792,7 @@ class SVGPathSegCurvetoCubicSmoothRel extends SVGPathSeg { var y2: Double = js.native } -/** The SVGLengthList defines a list of SVGLength objects. - */ +/** The SVGLengthList defines a list of SVGLength objects. */ @js.native @JSGlobal class SVGLengthList extends js.Object { @@ -2025,8 +1901,7 @@ object SVGTextPathElement extends js.Object { val TEXTPATH_METHODTYPE_ALIGN: Int = js.native } -/** The SVGGradient interface is a base interface used by SVGLinearGradientElement and SVGRadialGradientElement. - */ +/** The SVGGradient interface is a base interface used by SVGLinearGradientElement and SVGRadialGradientElement. */ @js.native @JSGlobal abstract class SVGGradientElement @@ -2037,8 +1912,7 @@ abstract class SVGGradientElement */ def spreadMethod: SVGAnimatedEnumeration = js.native - /** Corresponds to attribute gradientTransform on the given element. - */ + /** Corresponds to attribute gradientTransform on the given element. */ def gradientTransform: SVGAnimatedTransformList = js.native /** Corresponds to attribute gradientUnits on the given element. Takes one of the constants defined in SVGUnitTypes. @@ -2046,8 +1920,7 @@ abstract class SVGGradientElement def gradientUnits: SVGAnimatedEnumeration = js.native } -/** The SVGGradient interface is a base interface used by SVGLinearGradientElement and SVGRadialGradientElement. - */ +/** The SVGGradient interface is a base interface used by SVGLinearGradientElement and SVGRadialGradientElement. */ @js.native @JSGlobal object SVGGradientElement extends js.Object { @@ -2061,8 +1934,7 @@ object SVGGradientElement extends js.Object { val SVG_SPREADMETHOD_REPEAT: Int = js.native } -/** The SVGNumberList defines a list of SVGNumber objects. - */ +/** The SVGNumberList defines a list of SVGNumber objects. */ @js.native @JSGlobal class SVGNumberList extends js.Object { @@ -2129,8 +2001,7 @@ class SVGPathSegLinetoRel extends SVGPathSeg { var x: Double = js.native } -/** The SVGAnimatedBoolean interface is used for attributes of type boolean which can be animated. - */ +/** The SVGAnimatedBoolean interface is used for attributes of type boolean which can be animated. */ @js.native @JSGlobal class SVGAnimatedBoolean extends js.Object { @@ -2140,13 +2011,11 @@ class SVGAnimatedBoolean extends js.Object { */ def animVal: Boolean = js.native - /** The base value of the given attribute before applying any animations. - */ + /** The base value of the given attribute before applying any animations. */ var baseVal: Boolean = js.native } -/** The SVGSwitchElement interface corresponds to the <switch> element. - */ +/** The SVGSwitchElement interface corresponds to the <switch> element. */ @js.native @JSGlobal abstract class SVGSwitchElement @@ -2192,31 +2061,26 @@ object SVGPreserveAspectRatio extends js.Object { val SVG_PRESERVEASPECTRATIO_XMIDYMAX: Int = js.native val SVG_PRESERVEASPECTRATIO_XMINYMIN: Int = js.native - /** Corresponds to value meet for attribute preserveAspectRatio. - */ + /** Corresponds to value meet for attribute preserveAspectRatio. */ val SVG_MEETORSLICE_MEET: Int = js.native val SVG_PRESERVEASPECTRATIO_XMIDYMID: Int = js.native val SVG_PRESERVEASPECTRATIO_XMIDYMIN: Int = js.native - /** Corresponds to value slice for attribute preserveAspectRatio. - */ + /** Corresponds to value slice for attribute preserveAspectRatio. */ val SVG_MEETORSLICE_SLICE: Int = js.native val SVG_PRESERVEASPECTRATIO_UNKNOWN: Int = js.native } -/** The SVGStopElement interface corresponds to the <stop> element. - */ +/** The SVGStopElement interface corresponds to the <stop> element. */ @js.native @JSGlobal abstract class SVGStopElement extends SVGElement with SVGStylable { - /** Corresponds to attribute offset on the given <stop> element. - */ + /** Corresponds to attribute offset on the given <stop> element. */ var offset: SVGAnimatedNumber = js.native } -/** The SVGSymbolElement interface corresponds to the <symbol> element. - */ +/** The SVGSymbolElement interface corresponds to the <symbol> element. */ @js.native @JSGlobal abstract class SVGSymbolElement @@ -2239,12 +2103,10 @@ abstract class SVGMaskElement extends SVGElement with SVGUnitTypes with SVGStylable with SVGLangSpace with SVGTests with SVGExternalResourcesRequired { - /** Corresponds to attribute y on the given <mask> element. - */ + /** Corresponds to attribute y on the given <mask> element. */ def y: SVGAnimatedLength = js.native - /** Corresponds to attribute width on the given <mask> element. - */ + /** Corresponds to attribute width on the given <mask> element. */ def width: SVGAnimatedLength = js.native /** Corresponds to attribute maskUnits on the given <mask> element. Takes one of the constants defined in @@ -2257,12 +2119,10 @@ abstract class SVGMaskElement */ def maskContentUnits: SVGAnimatedEnumeration = js.native - /** Corresponds to attribute x on the given <mask> element. - */ + /** Corresponds to attribute x on the given <mask> element. */ def x: SVGAnimatedLength = js.native - /** Corresponds to attribute height on the given <mask> element. - */ + /** Corresponds to attribute height on the given <mask> element. */ def height: SVGAnimatedLength = js.native } @@ -2275,16 +2135,13 @@ abstract class SVGFilterElement extends SVGElement with SVGUnitTypes with SVGStylable with SVGLangSpace with SVGURIReference with SVGExternalResourcesRequired { - /** Corresponds to attribute y on the given <filter> element. - */ + /** Corresponds to attribute y on the given <filter> element. */ def y: SVGAnimatedLength = js.native - /** Corresponds to attribute width on the given <filter> element. - */ + /** Corresponds to attribute width on the given <filter> element. */ def width: SVGAnimatedLength = js.native - /** Contains the X component of attribute filterRes on the given <filter> element. - */ + /** Contains the X component of attribute filterRes on the given <filter> element. */ def filterResX: SVGAnimatedInteger = js.native /** Corresponds to attribute filterUnits on the given <filter> element. Takes one of the constants defined in @@ -2297,20 +2154,16 @@ abstract class SVGFilterElement */ def primitiveUnits: SVGAnimatedEnumeration = js.native - /** Corresponds to attribute x on the given <filter> element. - */ + /** Corresponds to attribute x on the given <filter> element. */ def x: SVGAnimatedLength = js.native - /** Corresponds to attribute height on the given <filter> element. - */ + /** Corresponds to attribute height on the given <filter> element. */ def height: SVGAnimatedLength = js.native - /** Contains the Y component of attribute filterRes on the given <filter> element. - */ + /** Contains the Y component of attribute filterRes on the given <filter> element. */ def filterResY: SVGAnimatedInteger = js.native - /** Sets the values for attribute filterRes. - */ + /** Sets the values for attribute filterRes. */ def setFilterRes(filterResX: Double, filterResY: Double): Unit = js.native } diff --git a/src/main/scala/org/scalajs/dom/Stream.scala b/src/main/scala/org/scalajs/dom/Stream.scala index ebc41e819..284d2b290 100644 --- a/src/main/scala/org/scalajs/dom/Stream.scala +++ b/src/main/scala/org/scalajs/dom/Stream.scala @@ -5,8 +5,7 @@ import scala.scalajs.js.annotation._ // the stream API is defined in https://streams.spec.whatwg.org/ -/** [[https://streams.spec.whatwg.org/#ws-state ¶4.2.4.3. get state]] of whatwg streams spec - */ +/** [[https://streams.spec.whatwg.org/#ws-state ¶4.2.4.3. get state]] of whatwg streams spec */ @js.native sealed trait WriteableState extends js.Any @@ -17,8 +16,7 @@ object WriteableState { */ val waiting: WriteableState = "waiting".asInstanceOf[WriteableState] - /** The stream’s internal queue is not full; call .write() until backpressure is exerted. - */ + /** The stream’s internal queue is not full; call .write() until backpressure is exerted. */ val writable: WriteableState = "writable".asInstanceOf[WriteableState] /** The stream’s .close() method has been called, and a command to close is in the queue or being processed by the @@ -290,13 +288,11 @@ class ReadableStreamController[-T](stream: ReadableStream[T] = null) extends js. def error(e: Any): Unit = js.native } -/** See [[https://streams.spec.whatwg.org/#chunk ¶2 Model]] but mostly the examples in the whatwg streams spec - */ +/** See [[https://streams.spec.whatwg.org/#chunk ¶2 Model]] but mostly the examples in the whatwg streams spec */ @js.native trait Chunk[+T] extends js.Object { - /** The value of the chunk. - */ + /** The value of the chunk. */ def value: T = js.native def done: Boolean = js.native diff --git a/src/main/scala/org/scalajs/dom/URL.scala b/src/main/scala/org/scalajs/dom/URL.scala index 3700c9174..651ea507e 100644 --- a/src/main/scala/org/scalajs/dom/URL.scala +++ b/src/main/scala/org/scalajs/dom/URL.scala @@ -3,8 +3,7 @@ package org.scalajs.dom import scala.scalajs.js import scala.scalajs.js.annotation._ -/** The URL object provides static methods used for creating object URLs. - */ +/** The URL object provides static methods used for creating object URLs. */ @js.native @JSGlobal object URL extends js.Object { @@ -22,67 +21,53 @@ object URL extends js.Object { def createObjectURL(blob: Blob): String = js.native } -/** The URL() constructor returns a newly created URL object representing the URL defined by the parameters. - */ +/** The URL() constructor returns a newly created URL object representing the URL defined by the parameters. */ @js.native @JSGlobal class URL(url: String, base: String = js.native) extends js.Object { - /** Returns a DOMString containing the origin of the URL, that is its scheme, its domain and its port. - */ + /** Returns a DOMString containing the origin of the URL, that is its scheme, its domain and its port. */ def origin: String = js.native - /** Is a DOMString containing the whole URL. - */ + /** Is a DOMString containing the whole URL. */ var href: String = js.native - /** Is a DOMString containing the protocol scheme of the URL, including the final ':'. - */ + /** Is a DOMString containing the protocol scheme of the URL, including the final ':'. */ var protocol: String = js.native - /** Is a DOMString containing the username specified before the domain name. - */ + /** Is a DOMString containing the username specified before the domain name. */ var username: String = js.native - /** Is a DOMString containing the password specified before the domain name. - */ + /** Is a DOMString containing the password specified before the domain name. */ var password: String = js.native - /** Is a DOMString containing the host, that is the hostname, a ':', and the port of the URL. - */ + /** Is a DOMString containing the host, that is the hostname, a ':', and the port of the URL. */ var host: String = js.native - /** Is a DOMString containing the domain of the URL. - */ + /** Is a DOMString containing the domain of the URL. */ var hostname: String = js.native - /** Is a DOMString containing the port number of the URL. - */ + /** Is a DOMString containing the port number of the URL. */ var port: String = js.native - /** Is a DOMString containing an initial '/' followed by the path of the URL. - */ + /** Is a DOMString containing an initial '/' followed by the path of the URL. */ var pathname: String = js.native - /** Is a DOMString containing a '?' followed by the parameters of the URL. - */ + /** Is a DOMString containing a '?' followed by the parameters of the URL. */ var search: String = js.native - /** Is a DOMString containing a '#' followed by the fragment identifier of the URL. - */ + /** Is a DOMString containing a '#' followed by the fragment identifier of the URL. */ var hash: String = js.native var searchParams: URLSearchParams = js.native } -/** The URLSearchParams defines utility methods to work with the query string of a URL. - */ +/** The URLSearchParams defines utility methods to work with the query string of a URL. */ @js.native @JSGlobal class URLSearchParams extends js.Iterable[js.Tuple2[String, String]] { - /** Leading '?' characters are ignored. - */ + /** Leading '?' characters are ignored. */ def this(init: String) = this() def this(init: Sequence[String]) = this() def this(init: js.Dictionary[String]) = this() diff --git a/src/main/scala/org/scalajs/dom/WebGLTypes.scala b/src/main/scala/org/scalajs/dom/WebGLTypes.scala index f0b8c95e5..a83f7d212 100644 --- a/src/main/scala/org/scalajs/dom/WebGLTypes.scala +++ b/src/main/scala/org/scalajs/dom/WebGLTypes.scala @@ -10,26 +10,21 @@ import scala.scalajs.js import scala.scalajs.js.annotation._ import scala.scalajs.js.typedarray._ -/** Contains drawing surface attributes. - */ +/** Contains drawing surface attributes. */ @js.native @JSGlobal class WebGLContextAttributes extends js.Object { - /** When `true`, the drawing buffer has an alpha channel. - */ + /** When `true`, the drawing buffer has an alpha channel. */ var alpha: Boolean = js.native - /** When `true`, the drawing buffer has a depth buffer of at least 16 bits. - */ + /** When `true`, the drawing buffer has a depth buffer of at least 16 bits. */ var depth: Boolean = js.native - /** When `true`, the drawing buffer has a stencil buffer of at least 8 bits. - */ + /** When `true`, the drawing buffer has a stencil buffer of at least 8 bits. */ var stencil: Boolean = js.native - /** When `true` and antialiasing is supported, the drawing buffer will use an antialiasing method if it's choice. - */ + /** When `true` and antialiasing is supported, the drawing buffer will use an antialiasing method if it's choice. */ var antialias: Boolean = js.native /** When `true` the page compositor assumes the buffer's contents is premultiplied. Used for sensible transparency @@ -43,44 +38,37 @@ class WebGLContextAttributes extends js.Object { var preserveDrawingBuffer: Boolean = js.native } -/** An opaque type representing a WebGL buffer. - */ +/** An opaque type representing a WebGL buffer. */ @js.native @JSGlobal class WebGLBuffer private[this] () extends js.Object -/** An opaque type representing a WebGL framebuffer. - */ +/** An opaque type representing a WebGL framebuffer. */ @js.native @JSGlobal class WebGLFramebuffer private[this] () extends js.Object -/** An opaque type representing a WebGL program. - */ +/** An opaque type representing a WebGL program. */ @js.native @JSGlobal class WebGLProgram private[this] () extends js.Object -/** An opaque type representing a WebGL renderbuffer. - */ +/** An opaque type representing a WebGL renderbuffer. */ @js.native @JSGlobal class WebGLRenderbuffer private[this] () extends js.Object -/** An opaque type representing a WebGL shader. - */ +/** An opaque type representing a WebGL shader. */ @js.native @JSGlobal class WebGLShader private[this] () extends js.Object -/** An opaque type representing a WebGL texture. - */ +/** An opaque type representing a WebGL texture. */ @js.native @JSGlobal class WebGLTexture private[this] () extends js.Object -/** An opaque type representing a WebGL uniform location. - */ +/** An opaque type representing a WebGL uniform location. */ @js.native @JSGlobal class WebGLUniformLocation private[this] () extends js.Object @@ -92,16 +80,13 @@ class WebGLUniformLocation private[this] () extends js.Object @JSGlobal class WebGLActiveInfo private[this] () extends js.Object { - /** The size of the requested variable. - */ + /** The size of the requested variable. */ val size: Int = js.native - /** The type of the requested variable. - */ + /** The type of the requested variable. */ val `type`: Int = js.native - /** The name of the requested variable. - */ + /** The name of the requested variable. */ val name: String = js.native } @@ -112,16 +97,13 @@ class WebGLActiveInfo private[this] () extends js.Object { @JSGlobal class WebGLShaderPrecisionFormat private[this] () extends js.Object { - /** The base 2 log of the absolute value of the minimum value that can be represented. - */ + /** The base 2 log of the absolute value of the minimum value that can be represented. */ val rangeMin: Int = js.native - /** The base 2 log of the absolute value of the maximum value that can be represented. - */ + /** The base 2 log of the absolute value of the maximum value that can be represented. */ val rangeMax: Int = js.native - /** The number of bits of precision that can be represented. For integer formats this value is always 0. - */ + /** The number of bits of precision that can be represented. For integer formats this value is always 0. */ val precision: Int = js.native } @@ -286,16 +268,13 @@ object WebGLRenderingContext { final val CURRENT_VERTEX_ATTRIB = 0x8626 /* CullFaceMode */ - /** Specifies front faces. - */ + /** Specifies front faces. */ final val FRONT = 0x0404 - /** Specifies back faces. - */ + /** Specifies back faces. */ final val BACK = 0x0405 - /** Specifies both front and back faces. - */ + /** Specifies both front and back faces. */ final val FRONT_AND_BACK = 0x0408 /* DepthFunction */ @@ -310,64 +289,50 @@ object WebGLRenderingContext { /* EnableCap */ /* TEXTURE_2D */ - /** Capability to enable/disable backface culling. - */ + /** Capability to enable/disable backface culling. */ final val CULL_FACE = 0x0B44 - /** Capability to enable/disable blending. - */ + /** Capability to enable/disable blending. */ final val BLEND = 0x0BE2 - /** Capability to enable/disable dithering. - */ + /** Capability to enable/disable dithering. */ final val DITHER = 0x0BD0 - /** Capability to enable/disable the stencil test. - */ + /** Capability to enable/disable the stencil test. */ final val STENCIL_TEST = 0x0B90 - /** Capability to enable/disable the depth test. - */ + /** Capability to enable/disable the depth test. */ final val DEPTH_TEST = 0x0B71 - /** Capability to enable/disable the scissor test. - */ + /** Capability to enable/disable the scissor test. */ final val SCISSOR_TEST = 0x0C11 - /** Capability to enable/disable polygon offset. - */ + /** Capability to enable/disable polygon offset. */ final val POLYGON_OFFSET_FILL = 0x8037 final val SAMPLE_ALPHA_TO_COVERAGE = 0x809E final val SAMPLE_COVERAGE = 0x80A0 /* ErrorCode */ - /** No error has occurred. - */ + /** No error has occurred. */ final val NO_ERROR = 0 - /** An invalid enumerated name has been passed to an API function. - */ + /** An invalid enumerated name has been passed to an API function. */ final val INVALID_ENUM = 0x0500 - /** An invalid value has been passed to an API function. - */ + /** An invalid value has been passed to an API function. */ final val INVALID_VALUE = 0x0501 - /** The requested operation is not valid. - */ + /** The requested operation is not valid. */ final val INVALID_OPERATION = 0x0502 - /** The operation requested could not be completed because it ran out of memory. - */ + /** The operation requested could not be completed because it ran out of memory. */ final val OUT_OF_MEMORY = 0x0505 /* FrontFaceDirection */ - /** Clockwise wound triangles are front-facing. - */ + /** Clockwise wound triangles are front-facing. */ final val CW = 0x0900 - /** Counter-Clockwise wound triangles are front-facing. - */ + /** Counter-Clockwise wound triangles are front-facing. */ final val CCW = 0x0901 /* GetPName */ @@ -514,20 +479,16 @@ object WebGLRenderingContext { /* TextureMinFilter */ /* NEAREST */ /* LINEAR */ - /** Specifies nearest neighbour interpolation on the nearest mipmap level. - */ + /** Specifies nearest neighbour interpolation on the nearest mipmap level. */ final val NEAREST_MIPMAP_NEAREST = 0x2700 - /** Specifies linear interpolation on the nearest mipmap level. - */ + /** Specifies linear interpolation on the nearest mipmap level. */ final val LINEAR_MIPMAP_NEAREST = 0x2701 - /** Specifies nearest neighbour interpolation, linearly blending between mipmap levels. - */ + /** Specifies nearest neighbour interpolation, linearly blending between mipmap levels. */ final val NEAREST_MIPMAP_LINEAR = 0x2702 - /** Specifies linear interpolation linearly blending between mipmap levels. - */ + /** Specifies linear interpolation linearly blending between mipmap levels. */ final val LINEAR_MIPMAP_LINEAR = 0x2703 /* TextureParameterName */ @@ -557,13 +518,11 @@ object WebGLRenderingContext { final val TEXTURE_WRAP_T = 0x2803 /* TextureTarget */ - /** The target for a simple 2 dimensional texture. - */ + /** The target for a simple 2 dimensional texture. */ final val TEXTURE_2D = 0x0DE1 final val TEXTURE = 0x1702 - /** The target for a cube mapped texture. - */ + /** The target for a cube mapped texture. */ final val TEXTURE_CUBE_MAP = 0x8513 final val TEXTURE_BINDING_CUBE_MAP = 0x8514 final val TEXTURE_CUBE_MAP_POSITIVE_X = 0x8515 @@ -723,16 +682,13 @@ object WebGLRenderingContext { final val ACTIVE_TEXTURE = 0x84E0 /* TextureWrapMode */ - /** Repeat the texture along this axis. - */ + /** Repeat the texture along this axis. */ final val REPEAT = 0x2901 - /** Clamp the texture along this axis. The colour of the edge pixels will be replicated to infinity. - */ + /** Clamp the texture along this axis. The colour of the edge pixels will be replicated to infinity. */ final val CLAMP_TO_EDGE = 0x812F - /** Repeat the texture along this axis, mirroring it each step. - */ + /** Repeat the texture along this axis, mirroring it each step. */ final val MIRRORED_REPEAT = 0x8370 /* Uniform Types */ @@ -769,37 +725,29 @@ object WebGLRenderingContext { final val COMPILE_STATUS = 0x8B81 /* Shader Precision-Specified Types */ - /** Specifies a low precision float. - */ + /** Specifies a low precision float. */ final val LOW_FLOAT = 0x8DF0 - /** Specifies a medium precision float. - */ + /** Specifies a medium precision float. */ final val MEDIUM_FLOAT = 0x8DF1 - /** Specifies a high precision float. - */ + /** Specifies a high precision float. */ final val HIGH_FLOAT = 0x8DF2 - /** Specifies a low precision integer. - */ + /** Specifies a low precision integer. */ final val LOW_INT = 0x8DF3 - /** Specifies a medium precision float. - */ + /** Specifies a medium precision float. */ final val MEDIUM_INT = 0x8DF4 - /** Specifies a high precision float. - */ + /** Specifies a high precision float. */ final val HIGH_INT = 0x8DF5 /* Framebuffer Object. */ - /** The framebuffer target. - */ + /** The framebuffer target. */ final val FRAMEBUFFER = 0x8D40 - /** The renderbuffer target. - */ + /** The renderbuffer target. */ final val RENDERBUFFER = 0x8D41 final val RGBA4 = 0x8056 @@ -856,28 +804,22 @@ object WebGLRenderingContext { @JSGlobal class WebGLRenderingContext extends js.Object { - /** The canvas object this WebGLRenderingContext is associated with. - */ + /** The canvas object this WebGLRenderingContext is associated with. */ val canvas: HTMLCanvasElement = js.native - /** The actual width of the drawing buffer. This may be different than the underlying HTMLCanvasElement width. - */ + /** The actual width of the drawing buffer. This may be different than the underlying HTMLCanvasElement width. */ val drawingBufferWidth: Int = js.native - /** The actual height of the drawing buffer. This may be different than the underlying HTMLCanvasElement height. - */ + /** The actual height of the drawing buffer. This may be different than the underlying HTMLCanvasElement height. */ val drawingBufferHeight: Int = js.native - /** Returns `null` if [[isContextLost]] would return `false`, otherwise returns a copy of the context parameters. - */ + /** Returns `null` if [[isContextLost]] would return `false`, otherwise returns a copy of the context parameters. */ def getContextAttributes(): WebGLContextAttributes = js.native - /** Returns `true` if the context has been lost, `false` otherwise. - */ + /** Returns `true` if the context has been lost, `false` otherwise. */ def isContextLost(): Boolean = js.native - /** Returns an array of strings naming supported WebGL extensions. - */ + /** Returns an array of strings naming supported WebGL extensions. */ def getSupportedExtensions(): js.Array[String] = js.native /** Returns an object for the named extension, or `null` if no such extension exists. @@ -894,12 +836,10 @@ class WebGLRenderingContext extends js.Object { */ def activeTexture(texture: Int): Unit = js.native - /** Attaches a shader (fragment or vertex) to a [[WebGLProgram]]. - */ + /** Attaches a shader (fragment or vertex) to a [[WebGLProgram]]. */ def attachShader(program: WebGLProgram, shader: WebGLShader): Unit = js.native - /** Associates a vertex attribute index with a named attribute variable. - */ + /** Associates a vertex attribute index with a named attribute variable. */ def bindAttribLocation(program: WebGLProgram, index: Int, name: String): Unit = js.native /** Loads a a target into a [[WebGLBuffer]]. @@ -938,8 +878,7 @@ class WebGLRenderingContext extends js.Object { */ def bindTexture(target: Int, texture: WebGLTexture): Unit = js.native - /** Sets the blend color used in [[WebGLRenderingContext.BLEND_COLOR]]. - */ + /** Sets the blend color used in [[WebGLRenderingContext.BLEND_COLOR]]. */ def blendColor(red: Double, green: Double, blue: Double, alpha: Double): Unit = js.native /** Specifies the equation used for RGB and Alpha blending. @@ -1085,16 +1024,13 @@ class WebGLRenderingContext extends js.Object { */ def clear(mask: Int): Unit = js.native - /** Sets the clear color to use with [[WebGLRenderingContext#clear]]. - */ + /** Sets the clear color to use with [[WebGLRenderingContext#clear]]. */ def clearColor(red: Double, green: Double, blue: Double, alpha: Double): Unit = js.native - /** Sets the clear depth to use with [[WebGLRenderingContext#clear]]. - */ + /** Sets the clear depth to use with [[WebGLRenderingContext#clear]]. */ def clearDepth(depth: Double): Unit = js.native - /** Sets the stencil value to use with [[WebGLRenderingContext#clear]]. - */ + /** Sets the stencil value to use with [[WebGLRenderingContext#clear]]. */ def clearStencil(s: Int): Unit = js.native /** Enable and disable writing to the given channels. For each channel, `true` will allow writing, `false` will @@ -1207,28 +1143,22 @@ class WebGLRenderingContext extends js.Object { def copyTexSubImage2D(target: Int, level: Int, xoffset: Int, yoffset: Int, x: Int, y: Int, width: Int, height: Int): Unit = js.native - /** Creates a new [[WebGLBuffer]]. - */ + /** Creates a new [[WebGLBuffer]]. */ def createBuffer(): WebGLBuffer = js.native - /** Creates a new [[WebGLFramebuffer]]. - */ + /** Creates a new [[WebGLFramebuffer]]. */ def createFramebuffer(): WebGLFramebuffer = js.native - /** Creates a new [[WebGLProgram]]. - */ + /** Creates a new [[WebGLProgram]]. */ def createProgram(): WebGLProgram = js.native - /** Creates a new [[WebGLRenderbuffer]]. - */ + /** Creates a new [[WebGLRenderbuffer]]. */ def createRenderbuffer(): WebGLRenderbuffer = js.native - /** Creates a new [[WebGLShader]]. - */ + /** Creates a new [[WebGLShader]]. */ def createShader(`type`: Int): WebGLShader = js.native - /** Creates a new [[WebGLTexture]]. - */ + /** Creates a new [[WebGLTexture]]. */ def createTexture(): WebGLTexture = js.native /** Set the culling mode for front and back facing polygons. @@ -1330,8 +1260,7 @@ class WebGLRenderingContext extends js.Object { */ def disable(cap: Int): Unit = js.native - /** Disables the generic vertex attribute array specified by index. - */ + /** Disables the generic vertex attribute array specified by index. */ def disableVertexAttribArray(index: Int): Unit = js.native /** Renders the primitives in the active arrays. @@ -1376,16 +1305,13 @@ class WebGLRenderingContext extends js.Object { */ def enable(cap: Int): Unit = js.native - /** Enables the generic vertex attribute array specified by index. - */ + /** Enables the generic vertex attribute array specified by index. */ def enableVertexAttribArray(index: Int): Unit = js.native - /** Block until all GL execution is complete. - */ + /** Block until all GL execution is complete. */ def finish(): Unit = js.native - /** Force all pending GL execution to complete as soon as possible. - */ + /** Force all pending GL execution to complete as soon as possible. */ def flush(): Unit = js.native /** Attach a [[WebGLRenderbuffer]] to a [[WebGLFramebuffer]]. @@ -1439,20 +1365,16 @@ class WebGLRenderingContext extends js.Object { */ def generateMipmap(target: Int): Unit = js.native - /** Returns a new [[WebGLActiveInfo]] object describing the given attribute at `index`. - */ + /** Returns a new [[WebGLActiveInfo]] object describing the given attribute at `index`. */ def getActiveAttrib(program: WebGLProgram, index: Int): WebGLActiveInfo = js.native - /** Returns a new [[WebGLActiveInfo]] object describing the given uniform at `index`. - */ + /** Returns a new [[WebGLActiveInfo]] object describing the given uniform at `index`. */ def getActiveUniform(program: WebGLProgram, index: Int): WebGLActiveInfo = js.native - /** Returns a new array containing the shaders attached to the given program. - */ + /** Returns a new array containing the shaders attached to the given program. */ def getAttachedShaders(program: WebGLProgram): js.Array[WebGLShader] = js.native - /** Returns the index of the named attribute, or -1 on error. - */ + /** Returns the index of the named attribute, or -1 on error. */ def getAttribLocation(program: WebGLProgram, name: String): Int = js.native /** Returns the value of the requested parameter for a buffer. @@ -1555,8 +1477,7 @@ class WebGLRenderingContext extends js.Object { */ def getProgramParameter(program: WebGLProgram, pname: Int): js.Any = js.native - /** Returns a string containing information about the last link or validation operation for a program. - */ + /** Returns a string containing information about the last link or validation operation for a program. */ def getProgramInfoLog(program: WebGLProgram): String = js.native /** Returns the value of a parameter on the active renderbuffer. The return type is dependent on the requested @@ -1595,12 +1516,10 @@ class WebGLRenderingContext extends js.Object { */ def getShaderPrecisionFormat(shadertype: Int, precisiontype: Int): WebGLShaderPrecisionFormat = js.native - /** Returns the information log from the last compile of the shader. - */ + /** Returns the information log from the last compile of the shader. */ def getShaderInfoLog(shader: WebGLShader): String = js.native - /** Returns the source of the given shader. - */ + /** Returns the source of the given shader. */ def getShaderSource(shader: WebGLShader): String = js.native /** Returns the value of the given texture parameter on the target of the active texture. @@ -1655,8 +1574,7 @@ class WebGLRenderingContext extends js.Object { */ def hint(target: Int, mode: Int): Unit = js.native - /** Returns `true` if the `buffer` is valid, `false` otherwise. - */ + /** Returns `true` if the `buffer` is valid, `false` otherwise. */ def isBuffer(buffer: js.Any): Boolean = js.native /** Returns `true` if the specified capability is enabled, `false` otherwise. @@ -1665,32 +1583,25 @@ class WebGLRenderingContext extends js.Object { */ def isEnabled(cap: Int): Boolean = js.native - /** Returns `true` if the `framebuffer` is valid, `false` otherwise. - */ + /** Returns `true` if the `framebuffer` is valid, `false` otherwise. */ def isFramebuffer(framebuffer: js.Any): Boolean = js.native - /** Returns `true` if the `program` is valid, `false` otherwise. - */ + /** Returns `true` if the `program` is valid, `false` otherwise. */ def isProgram(program: js.Any): Boolean = js.native - /** Returns `true` if the `renderbuffer` is valid, `false` otherwise. - */ + /** Returns `true` if the `renderbuffer` is valid, `false` otherwise. */ def isRenderbuffer(renderbuffer: js.Any): Boolean = js.native - /** Returns `true` if the `shader` is valid, `false` otherwise. - */ + /** Returns `true` if the `shader` is valid, `false` otherwise. */ def isShader(shader: js.Any): Boolean = js.native - /** Returns `true` if the `texture` is valid, `false` otherwise. - */ + /** Returns `true` if the `texture` is valid, `false` otherwise. */ def isTexture(texture: js.Any): Boolean = js.native - /** Specifies the line width. - */ + /** Specifies the line width. */ def lineWidth(width: Double): Unit = js.native - /** Attempts to link the specified [[WebGLProgram]]. - */ + /** Attempts to link the specified [[WebGLProgram]]. */ def linkProgram(program: WebGLProgram): Unit = js.native /** Sets the pixel store mode, used when copying image data such as framebuffers or textures. @@ -1758,8 +1669,7 @@ class WebGLRenderingContext extends js.Object { */ def scissor(x: Int, y: Int, width: Int, height: Int): Unit = js.native - /** Sets the GLSL source for the given shader. - */ + /** Sets the GLSL source for the given shader. */ def shaderSource(shader: WebGLShader, source: String): Unit = js.native /** Sets the stencil test for front and back faces. @@ -2397,12 +2307,10 @@ class WebGLRenderingContext extends js.Object { */ def uniformMatrix4fv(location: WebGLUniformLocation, transpose: Boolean, value: js.Array[Double]): Unit = js.native - /** Makes a [[WebGLProgram]] become the active program. - */ + /** Makes a [[WebGLProgram]] become the active program. */ def useProgram(program: WebGLProgram): Unit = js.native - /** Validates a [[WebGLProgram]]. - */ + /** Validates a [[WebGLProgram]]. */ def validateProgram(program: WebGLProgram): Unit = js.native /** Loads a scalar into a vertex attribute. @@ -2544,7 +2452,6 @@ class WebGLRenderingContext extends js.Object { def vertexAttribPointer(indx: Int, size: Int, `type`: Int, normalized: Boolean, stride: Int, offset: Int): Unit = js.native - /** Sets the OpenGL viewport to render within. - */ + /** Sets the OpenGL viewport to render within. */ def viewport(x: Double, y: Double, width: Double, height: Double): Unit = js.native } diff --git a/src/main/scala/org/scalajs/dom/WebWorkerTypes.scala b/src/main/scala/org/scalajs/dom/WebWorkerTypes.scala index 95e291a6b..d4cc874a9 100644 --- a/src/main/scala/org/scalajs/dom/WebWorkerTypes.scala +++ b/src/main/scala/org/scalajs/dom/WebWorkerTypes.scala @@ -155,8 +155,7 @@ trait DedicatedWorkerGlobalScope extends WorkerGlobalScope { @JSGlobalScope object DedicatedWorkerGlobalScope extends js.Object { - /** Returns an object reference to the DedicatedWorkerGlobalScope object itself. - */ + /** Returns an object reference to the DedicatedWorkerGlobalScope object itself. */ def self: DedicatedWorkerGlobalScope = js.native } @@ -174,36 +173,28 @@ trait WorkerNavigator extends NavigatorID with NavigatorOnLine with NavigatorLan @js.native trait WorkerLocation extends js.Object { - /** Is a DOMString containing a '#' followed by the fragment identifier of the URL. - */ + /** Is a DOMString containing a '#' followed by the fragment identifier of the URL. */ def hash: String = js.native - /** Is a DOMString containing the protocol scheme of the URL, including the final ':'. - */ + /** Is a DOMString containing the protocol scheme of the URL, including the final ':'. */ def protocol: String = js.native - /** Is a DOMString containing a '?' followed by the parameters of the URL. - */ + /** Is a DOMString containing a '?' followed by the parameters of the URL. */ def search: String = js.native - /** Is a DOMString containing the whole URL. - */ + /** Is a DOMString containing the whole URL. */ def href: String = js.native - /** Is a DOMString containing the domain of the URL. - */ + /** Is a DOMString containing the domain of the URL. */ def hostname: String = js.native - /** Is a DOMString containing the port number of the URL. - */ + /** Is a DOMString containing the port number of the URL. */ def port: String = js.native - /** Is a DOMString containing an initial '/' followed by the path of the URL. - */ + /** Is a DOMString containing an initial '/' followed by the path of the URL. */ def pathname: String = js.native - /** Is a DOMString containing the host, that is the hostname, a ':', and the port of the URL. - */ + /** Is a DOMString containing the host, that is the hostname, a ':', and the port of the URL. */ def host: String = js.native /** The origin read-only property is a String containing the Unicode serialization of the origin of the represented diff --git a/src/main/scala/org/scalajs/dom/WindowOrWorkerGlobalScope.scala b/src/main/scala/org/scalajs/dom/WindowOrWorkerGlobalScope.scala index a856aa7a9..5531822a3 100644 --- a/src/main/scala/org/scalajs/dom/WindowOrWorkerGlobalScope.scala +++ b/src/main/scala/org/scalajs/dom/WindowOrWorkerGlobalScope.scala @@ -19,24 +19,19 @@ trait WindowOrWorkerGlobalScope extends WindowBase64 with WindowTimers { */ def caches: js.UndefOr[CacheStorage] = js.native - /** Returns a boolean value that indicates whether a SharedArrayBuffer can be sent via a Window.postMessage() call. - */ + /** Returns a boolean value that indicates whether a SharedArrayBuffer can be sent via a Window.postMessage() call. */ def crossOriginIsolated: Boolean = js.native - /** Provides a mechanism for applications to asynchronously access capabilities of indexed databases. - */ + /** Provides a mechanism for applications to asynchronously access capabilities of indexed databases. */ def indexedDB: js.UndefOr[IDBFactory] = js.native - /** Returns a boolean indicating whether the current context is secure or not. - */ + /** Returns a boolean indicating whether the current context is secure or not. */ def isSecureContext: Boolean = js.native - /** Returns the origin of the global scope, serialized as a string. - */ + /** Returns the origin of the global scope, serialized as a string. */ def origin: String = js.native //should be USVString - /** Starts the process of fetching a resource from the network. - */ + /** Starts the process of fetching a resource from the network. */ def fetch(info: RequestInfo, init: RequestInit = null): js.Promise[Response] = js.native /** Enqueues a microtask—a short function to be executed after execution of the JavaScript code completes and control @@ -69,16 +64,13 @@ trait WindowOrWorkerGlobalScope extends WindowBase64 with WindowTimers { @js.native trait ImageBitmap extends js.Object { - /** An unsigned long representing the height, in CSS pixels, of the ImageData. - */ + /** An unsigned long representing the height, in CSS pixels, of the ImageData. */ def height: Double = js.native - /** An unsigned long representing the width, in CSS pixels, of the ImageData. - */ + /** An unsigned long representing the width, in CSS pixels, of the ImageData. */ def width: Double = js.native - /** Dispose of all graphical resources associated with an ImageBitmap. - */ + /** Dispose of all graphical resources associated with an ImageBitmap. */ def close(): Unit = js.native } diff --git a/src/main/scala/org/scalajs/dom/crypto/Crypto.scala b/src/main/scala/org/scalajs/dom/crypto/Crypto.scala index e56541507..3c978bd5d 100644 --- a/src/main/scala/org/scalajs/dom/crypto/Crypto.scala +++ b/src/main/scala/org/scalajs/dom/crypto/Crypto.scala @@ -23,8 +23,7 @@ trait Crypto extends js.Object { */ val subtle: SubtleCrypto = js.native - /** Fills the passed TypedArray with cryptographically sound random values. - */ + /** Fills the passed TypedArray with cryptographically sound random values. */ def getRandomValues(array: ArrayBufferView): ArrayBufferView = js.native } @@ -328,22 +327,19 @@ object RsaHashedKeyAlgorithm { .asInstanceOf[RsaHashedKeyAlgorithm] } - /** see [[http://www.w3.org/TR/WebCryptoAPI/#rsassa-pkcs1 ¶20. RSASSA-PKCS1-v1_5]] of w3c spec - */ + /** see [[http://www.w3.org/TR/WebCryptoAPI/#rsassa-pkcs1 ¶20. RSASSA-PKCS1-v1_5]] of w3c spec */ def `RSASSA-PKCS1-v1_5`(modulusLength: Long, publicExponent: BigInteger, hash: HashAlgorithmIdentifier): RsaHashedKeyAlgorithm = { apply("RSASSA-PKCS1-v1_5", modulusLength, publicExponent, hash) } - /** see [[http://www.w3.org/TR/WebCryptoAPI/#rsa-pss ¶21. RSA-PSS]] of w3c spec - */ + /** see [[http://www.w3.org/TR/WebCryptoAPI/#rsa-pss ¶21. RSA-PSS]] of w3c spec */ def `RSA-PSS`(modulusLength: Long, publicExponent: BigInteger, hash: HashAlgorithmIdentifier): RsaHashedKeyAlgorithm = { apply("RSA-PSS", modulusLength, publicExponent, hash) } - /** see [[http://www.w3.org/TR/WebCryptoAPI/#rsa-pss ¶21. RSA-OAEP]] of w3c spec - */ + /** see [[http://www.w3.org/TR/WebCryptoAPI/#rsa-pss ¶21. RSA-OAEP]] of w3c spec */ def `RSA-OAEP`(modulusLength: Long, publicExponent: BigInteger, hash: HashAlgorithmIdentifier): RsaHashedKeyAlgorithm = { apply("RSA-OAEP", modulusLength, publicExponent, hash) @@ -811,8 +807,7 @@ object Pbkdf2Params { } } -/** See [[http://www.w3.org/TR/WebCryptoAPI/#cryptokey-interface ¶ 13. CryptoKey Interface]] of w3c spec - */ +/** See [[http://www.w3.org/TR/WebCryptoAPI/#cryptokey-interface ¶ 13. CryptoKey Interface]] of w3c spec */ @js.native trait KeyUsage extends js.Any @@ -827,8 +822,7 @@ object KeyUsage { val unwrapKey: KeyUsage = "unwrapKey".asInstanceOf[KeyUsage] } -/** see [[http://www.w3.org/TR/WebCryptoAPI/#cryptokey-interface ¶13 CryptoKey interface]] in W3C doc - */ +/** see [[http://www.w3.org/TR/WebCryptoAPI/#cryptokey-interface ¶13 CryptoKey interface]] in W3C doc */ @js.native trait KeyType extends js.Any @@ -838,8 +832,7 @@ object KeyType { val secret: KeyType = "secret".asInstanceOf[KeyType] } -/** see [[http://www.w3.org/TR/WebCryptoAPI/#dfn-KeyFormat ¶14.2 Data Types]] in W3C spec - */ +/** see [[http://www.w3.org/TR/WebCryptoAPI/#dfn-KeyFormat ¶14.2 Data Types]] in W3C spec */ @js.native trait KeyFormat extends js.Any @@ -863,8 +856,7 @@ object KeyFormat { // http://tools.ietf.org/html/rfc7517 // -/** see example http://tools.ietf.org/html/rfc7517#appendix-A.1 //todo: where is the specification of n and e? - */ +/** see example http://tools.ietf.org/html/rfc7517#appendix-A.1 //todo: where is the specification of n and e? */ @js.native trait RSAPublicKey extends js.Object { diff --git a/src/main/scala/org/scalajs/dom/experimental/domparser/DOMParser.scala b/src/main/scala/org/scalajs/dom/experimental/domparser/DOMParser.scala index fcfea8873..eb411cf3c 100644 --- a/src/main/scala/org/scalajs/dom/experimental/domparser/DOMParser.scala +++ b/src/main/scala/org/scalajs/dom/experimental/domparser/DOMParser.scala @@ -4,8 +4,7 @@ import org.scalajs.dom.Document import scala.scalajs.js import scala.scalajs.js.annotation._ -/** DOMParser can parse XML or HTML source stored in a string into a DOM Document. - */ +/** DOMParser can parse XML or HTML source stored in a string into a DOM Document. */ @js.native @JSGlobal class DOMParser extends js.Object { diff --git a/src/main/scala/org/scalajs/dom/experimental/gamepad/Gamepad.scala b/src/main/scala/org/scalajs/dom/experimental/gamepad/Gamepad.scala index eb3ea572f..df7db3bb6 100644 --- a/src/main/scala/org/scalajs/dom/experimental/gamepad/Gamepad.scala +++ b/src/main/scala/org/scalajs/dom/experimental/gamepad/Gamepad.scala @@ -14,21 +14,17 @@ import scala.scalajs.js.annotation._ @js.native trait GamepadMappingType extends js.Any -/** Represents the state of a button. - */ +/** Represents the state of a button. */ trait GamepadButton extends js.Any { - /** True if the button is pressed, false otherwise. - */ + /** True if the button is pressed, false otherwise. */ val pressed: Boolean - /** The value of this gamepad button, 0 is fully unpressed, 1 is fully pressed. - */ + /** The value of this gamepad button, 0 is fully unpressed, 1 is fully pressed. */ val value: Double } -/** Represents the state of a connected gamepad device. - */ +/** Represents the state of a connected gamepad device. */ trait Gamepad extends js.Any { /** The identification string for the gamepad. */ @@ -48,12 +44,10 @@ trait Gamepad extends js.Any { */ val axes: js.Array[Double] - /** The current state of all the gamepad's buttons. - */ + /** The current state of all the gamepad's buttons. */ val buttons: js.Array[GamepadButton] - /** The layout of the gamepad. Either "standard" or unknown (""). - */ + /** The layout of the gamepad. Either "standard" or unknown (""). */ val mapping: GamepadMappingType } diff --git a/src/main/scala/org/scalajs/dom/experimental/intl/Intl.scala b/src/main/scala/org/scalajs/dom/experimental/intl/Intl.scala index 097d2fcd5..c3f0b0e10 100644 --- a/src/main/scala/org/scalajs/dom/experimental/intl/Intl.scala +++ b/src/main/scala/org/scalajs/dom/experimental/intl/Intl.scala @@ -34,8 +34,7 @@ class DateTimeFormat(locales: js.UndefOr[String | js.Array[String]] = js.undefin def supportedLocalesOf(locales: String | js.Array[String], options: js.Any): js.Array[String] = js.native } -/** The Intl.NumberFormat object is a constructor for objects that enable language sensitive number formatting. - */ +/** The Intl.NumberFormat object is a constructor for objects that enable language sensitive number formatting. */ @js.native @JSGlobal("Intl.NumberFormat") class NumberFormat(locales: js.UndefOr[String | js.Array[String]] = js.undefined, diff --git a/src/main/scala/org/scalajs/dom/experimental/mediastream/MediaStream.scala b/src/main/scala/org/scalajs/dom/experimental/mediastream/MediaStream.scala index 41ae28039..ea15e28b3 100644 --- a/src/main/scala/org/scalajs/dom/experimental/mediastream/MediaStream.scala +++ b/src/main/scala/org/scalajs/dom/experimental/mediastream/MediaStream.scala @@ -1,5 +1,4 @@ -/** https://www.w3.org/TR/2016/CR-mediacapture-streams-20160519/ - */ +/** https://www.w3.org/TR/2016/CR-mediacapture-streams-20160519/ */ package org.scalajs.dom.experimental.mediastream import org.scalajs.dom._ @@ -15,12 +14,10 @@ import scala.scalajs.js.| @JSGlobal class MediaStream() extends EventTarget { - /** A Boolean value that returns true if the MediaStream is active, or false otherwise. - */ + /** A Boolean value that returns true if the MediaStream is active, or false otherwise. */ val active: Boolean = js.native - /** Is a DOMString containing 36 characters denoting a universally unique identifier (UUID) for the object. - */ + /** Is a DOMString containing 36 characters denoting a universally unique identifier (UUID) for the object. */ val id: String = js.native /** Is an EventHandler containing the action to perform when an addtrack event is fired when a new MediaStreamTrack @@ -78,8 +75,7 @@ class MediaStream() extends EventTarget { override def clone(): MediaStream = js.native } -/** see [[https://www.w3.org/TR/2013/WD-mediacapture-streams-20130903/#widl-MediaStream-onended]] in W3C spec - */ +/** see [[https://www.w3.org/TR/2013/WD-mediacapture-streams-20130903/#widl-MediaStream-onended]] in W3C spec */ @js.native trait MediaStreamTrackState extends js.Any @@ -108,8 +104,7 @@ trait MediaStreamTrack extends EventTarget { */ var enabled: Boolean = js.native - /** Returns a DOMString containing a unique identifier (GUID) for the track; it is generated by the browser. - */ + /** Returns a DOMString containing a unique identifier (GUID) for the track; it is generated by the browser. */ val id: String = js.native /** Returns a DOMString set to "audio" if the track is an audio track and to "video", if it is a video track. It @@ -123,8 +118,7 @@ trait MediaStreamTrack extends EventTarget { */ val label: String = js.native - /** Returns a Boolean value with a value of true if the track is muted, false otherwise. - */ + /** Returns a Boolean value with a value of true if the track is muted, false otherwise. */ val muted: Boolean = js.native /** Returns a Boolean value with a value of true if the track is (such a video file source or a camera that settings @@ -141,8 +135,7 @@ trait MediaStreamTrack extends EventTarget { */ val readyState: MediaStreamTrackState = js.native - /** Returns a boolean value with a value of true if the track is sourced by a RTCPeerConnection, false otherwise. - */ + /** Returns a boolean value with a value of true if the track is sourced by a RTCPeerConnection, false otherwise. */ val remote: Boolean = js.native /** Is a EventHandler containing the action to perform when an started event is fired on the object, that is when a @@ -175,12 +168,10 @@ trait MediaStreamTrack extends EventTarget { */ def getConstraints(): MediaTrackConstraints = js.native - /** Returns the a list of constrainable properties available for the MediaStreamTrack. - */ + /** Returns the a list of constrainable properties available for the MediaStreamTrack. */ def getCapabilities(): js.Any = js.native - /** Returns a duplicate of the MediaStreamTrack. - */ + /** Returns a duplicate of the MediaStreamTrack. */ override def clone(): MediaStreamTrack = js.native /** Lets the application specify the ideal and/or ranges of acceptable values for any number of the available @@ -337,23 +328,19 @@ class MediaStreamTrackEvent(typeArg: String, init: js.UndefOr[MediaStreamTrackEv val track: MediaStreamTrack = js.native } -/** see [[https://www.w3.org/TR/2016/CR-mediacapture-streams-20160519/#idl-def-MediaDeviceKind]] in W3C spec - */ +/** see [[https://www.w3.org/TR/2016/CR-mediacapture-streams-20160519/#idl-def-MediaDeviceKind]] in W3C spec */ @js.native trait MediaDeviceKind extends js.Any object MediaDeviceKind { - /** Represents an audio input device; for example a microphone. - */ + /** Represents an audio input device; for example a microphone. */ val audioinput: MediaDeviceKind = "audioinput".asInstanceOf[MediaDeviceKind] - /** Represents an audio output device; for example a pair of headphones. - */ + /** Represents an audio output device; for example a pair of headphones. */ val audiooutput: MediaDeviceKind = "audiooutput".asInstanceOf[MediaDeviceKind] - /** Represents a video input device; for example a webcam. - */ + /** Represents a video input device; for example a webcam. */ val videoinput: MediaDeviceKind = "videoinput".asInstanceOf[MediaDeviceKind] } @@ -408,8 +395,7 @@ trait MediaDevices extends EventTarget { */ var ondevicechange: js.Function1[Event, Any] = js.native - /** Obtains an array of information about the media input and output devices available on the system. - */ + /** Obtains an array of information about the media input and output devices available on the system. */ def enumerateDevices(): js.Promise[js.Array[MediaDeviceInfo]] = js.native /** Returns an object conforming to MediaTrackSupportedConstraints indicating which constrainable properties are @@ -454,8 +440,7 @@ class ImageCapture( init: MediaStreamTrack ) extends js.Object { - /** Returns a reference to the MediaStreamTrack passed to the constructor. - */ + /** Returns a reference to the MediaStreamTrack passed to the constructor. */ val track: MediaStreamTrack = js.native /** Takes a single exposure using the video capture device sourcing a MediaStreamTrack and returns a Promise that @@ -463,8 +448,7 @@ class ImageCapture( */ def takePhoto(): js.Promise[Blob] = js.native - /** Takes a snapshot of the live video in a MediaStreamTrack, returning an ImageBitmap, if successful. - */ + /** Takes a snapshot of the live video in a MediaStreamTrack, returning an ImageBitmap, if successful. */ def grabFrame(): js.Promise[ImageBitmap] = js.native } diff --git a/src/main/scala/org/scalajs/dom/experimental/push/PushManager.scala b/src/main/scala/org/scalajs/dom/experimental/push/PushManager.scala index 7e5b4b84d..58e7c6f72 100644 --- a/src/main/scala/org/scalajs/dom/experimental/push/PushManager.scala +++ b/src/main/scala/org/scalajs/dom/experimental/push/PushManager.scala @@ -64,8 +64,7 @@ trait PushSubscription extends js.Object { */ val options: PushSubscriptionOptions = js.native - /** The getKey method retrieves keying material that can be used for encrypting and authenticating messages. - */ + /** The getKey method retrieves keying material that can be used for encrypting and authenticating messages. */ def getKey(name: PushEncryptionKeyName): ArrayBuffer = js.native /** The unsubscribe() method of the PushSubscription interface returns a Promise that resolves to a Boolean when the @@ -85,12 +84,10 @@ trait PushSubscription extends js.Object { @js.native trait PushSubscriptionJSON extends js.Object { - /** The endpoint contains the underlying value of the endpoint attribute. - */ + /** The endpoint contains the underlying value of the endpoint attribute. */ val endpoint: String = js.native - /** The endpoint contains the underlying value of the endpoint attribute. - */ + /** The endpoint contains the underlying value of the endpoint attribute. */ val expirationTime: java.lang.Double = js.native /** The keys record contains an entry for each of the supported PushEncryptionKeyName entries to the URL-safe base64 @@ -105,8 +102,7 @@ trait PushSubscriptionJSON extends js.Object { @js.native trait PushEvent extends ExtendableEvent { - /** Returns a reference to a PushMessageData object containing data sent to the PushSubscription. Read-only. - */ + /** Returns a reference to a PushMessageData object containing data sent to the PushSubscription. Read-only. */ val data: PushMessageData = js.native } @@ -119,20 +115,16 @@ trait PushEvent extends ExtendableEvent { @js.native trait PushMessageData extends js.Object { - /** Extracts the data as an ArrayBuffer object. - */ + /** Extracts the data as an ArrayBuffer object. */ def arrayBuffer(): ArrayBuffer = js.native - /** Extracts the data as a Blob object. - */ + /** Extracts the data as a Blob object. */ def blob(): Blob = js.native - /** Extracts the data as a JSON object. - */ + /** Extracts the data as a JSON object. */ def json(): js.Any = js.native - /** Extracts the data as a plain text string. - */ + /** Extracts the data as a plain text string. */ def text(): String = js.native } @@ -158,16 +150,13 @@ sealed trait PushPermissionState extends js.Any /** Static definitions for [[PushPermissionState]] */ object PushPermissionState { - /** The webapp has permission to use the Push API. - */ + /** The webapp has permission to use the Push API. */ val granted: PushPermissionState = "granted".asInstanceOf[PushPermissionState] - /** The webapp has been denied permission to use the Push API. - */ + /** The webapp has been denied permission to use the Push API. */ val denied: PushPermissionState = "denied".asInstanceOf[PushPermissionState] - /** The webapp needs to ask for permission in order to use the Push API. - */ + /** The webapp needs to ask for permission in order to use the Push API. */ val prompt: PushPermissionState = "prompt".asInstanceOf[PushPermissionState] } diff --git a/src/main/scala/org/scalajs/dom/experimental/push/package.scala b/src/main/scala/org/scalajs/dom/experimental/push/package.scala index 2bb3e714f..fe4aa2b0f 100644 --- a/src/main/scala/org/scalajs/dom/experimental/push/package.scala +++ b/src/main/scala/org/scalajs/dom/experimental/push/package.scala @@ -4,24 +4,20 @@ import org.scalajs.dom.experimental.serviceworkers.{ServiceWorkerGlobalScope, Se import scala.language.implicitConversions import scala.scalajs.js -/** The Push API is currently specified here: [[http://www.w3.org/TR/2015/WD-push-api-20151215/]] - */ +/** The Push API is currently specified here: [[http://www.w3.org/TR/2015/WD-push-api-20151215/]] */ package object push { - /** Implicit function for patching Push API support onto ServiceWorkerRegistration. - */ + /** Implicit function for patching Push API support onto ServiceWorkerRegistration. */ implicit def pushServiceWorkerRegistration(swr: ServiceWorkerRegistration): PushServiceWorkerRegistration = { swr.asInstanceOf[PushServiceWorkerRegistration] } - /** Implicit function for patching Push API support onto ServiceWorkerGlobalScope - */ + /** Implicit function for patching Push API support onto ServiceWorkerGlobalScope */ implicit def pushServiceWorkerGlobalScope(swgs: ServiceWorkerGlobalScope): PushServiceWorkerGlobalScope = { swgs.asInstanceOf[PushServiceWorkerGlobalScope] } - /** A trait used for patching Push API support onto ServiceWorkerRegistration. - */ + /** A trait used for patching Push API support onto ServiceWorkerRegistration. */ @js.native trait PushServiceWorkerRegistration extends js.Any { @@ -32,8 +28,7 @@ package object push { val pushManager: PushManager = js.native } - /** A trait used for patching Push API support onto ServiceWorkerGlobalScope. - */ + /** A trait used for patching Push API support onto ServiceWorkerGlobalScope. */ @js.native trait PushServiceWorkerGlobalScope extends js.Any { diff --git a/src/main/scala/org/scalajs/dom/experimental/serviceworkers/ServiceWorkers.scala b/src/main/scala/org/scalajs/dom/experimental/serviceworkers/ServiceWorkers.scala index 3d3dc05f9..8022eb372 100644 --- a/src/main/scala/org/scalajs/dom/experimental/serviceworkers/ServiceWorkers.scala +++ b/src/main/scala/org/scalajs/dom/experimental/serviceworkers/ServiceWorkers.scala @@ -15,16 +15,13 @@ sealed trait FrameType extends js.Any */ object FrameType { - /** The window client's global object's browsing context is an auxiliary browsing context. - */ + /** The window client's global object's browsing context is an auxiliary browsing context. */ val auxiliary: FrameType = "auxiliary".asInstanceOf[FrameType] - /** The window client's global object's browsing context is a top-level browsing context. - */ + /** The window client's global object's browsing context is a top-level browsing context. */ val `top-level` = "top-level".asInstanceOf[FrameType] - /** The window client's global object's browsing context is a nested browsing context. - */ + /** The window client's global object's browsing context is a nested browsing context. */ val nested: FrameType = "nested".asInstanceOf[FrameType] val none: FrameType = "none".asInstanceOf[FrameType] @@ -35,14 +32,12 @@ object FrameType { @js.native trait Client extends js.Object { - /** The url attribute must return the context object's associated service worker client's serialized creation url. - */ + /** The url attribute must return the context object's associated service worker client's serialized creation url. */ def url: String = js.native def frameType: FrameType = js.native - /** The id attribute must return its associated service worker client's id. - */ + /** The id attribute must return its associated service worker client's id. */ def id: String = js.native /** @param message @@ -82,8 +77,7 @@ class FetchEvent(typeArg: String, init: js.UndefOr[FetchEventInit]) extends Exte */ def isReload: Boolean = js.native - /** The Request that triggered the event handler. - */ + /** The Request that triggered the event handler. */ def request: Request = js.native def preloadResponse: js.Promise[js.UndefOr[Response]] = js.native @@ -195,8 +189,7 @@ trait ServiceWorkerRegistration extends EventTarget { def showNotification(title: String, options: NotificationOptions = ???): js.Promise[Unit] = js.native } -/** An object containing options to filter the notifications returned. - */ +/** An object containing options to filter the notifications returned. */ trait GetNotificationOptions extends js.Object { /** A DOMString representing a notification tag. If specified, only notifications that have this tag will be returned. @@ -290,16 +283,13 @@ trait ExtendableMessageEventInit extends ExtendableEventInit { class ExtendableMessageEvent(typeArg: String, init: js.UndefOr[ExtendableMessageEventInit]) extends ExtendableEvent(typeArg, init) { - /** Returns the event's data. It can be any data type. - */ + /** Returns the event's data. It can be any data type. */ val data: Any = js.native - /** Returns the origin of the service worker's environment settings object. - */ + /** Returns the origin of the service worker's environment settings object. */ val origin: String = js.native - /** Represents, in server-sent events, the last event ID of the event source. - */ + /** Represents, in server-sent events, the last event ID of the event source. */ val lastEventId: String = js.native /** @return @@ -307,8 +297,7 @@ class ExtendableMessageEvent(typeArg: String, init: js.UndefOr[ExtendableMessage */ def source: ServiceWorker | MessagePort = js.native - /** It represents the MessagePort array being sent, if any. - */ + /** It represents the MessagePort array being sent, if any. */ def ports: js.Array[MessagePort] = js.native } @@ -335,8 +324,7 @@ object ServiceWorkerState { */ val installing: ServiceWorkerState = "installing".asInstanceOf[ServiceWorkerState] - /** The service worker in this state is considered a waiting worker. - */ + /** The service worker in this state is considered a waiting worker. */ val installed: ServiceWorkerState = "installed".asInstanceOf[ServiceWorkerState] /** The service worker in this state is considered an active worker. During this state, event.waitUntil(f) can be @@ -345,8 +333,7 @@ object ServiceWorkerState { */ val activating: ServiceWorkerState = "activating".asInstanceOf[ServiceWorkerState] - /** The service worker in this state is considered an active worker ready to handle functional events. - */ + /** The service worker in this state is considered an active worker ready to handle functional events. */ val activated: ServiceWorkerState = "activated".asInstanceOf[ServiceWorkerState] /** A new service worker is replacing the current service worker, or the current service worker is being discarded due @@ -395,8 +382,7 @@ trait WindowClient extends Client { */ def focused: Boolean = js.native - /** Gives user input focus to the current client and returns a Promise that resolves to the existing WindowClient. - */ + /** Gives user input focus to the current client and returns a Promise that resolves to the existing WindowClient. */ def focus(): js.Promise[WindowClient] /** See @@ -439,8 +425,7 @@ trait Clients extends js.Object { @js.native trait ServiceWorkerGlobalScope extends WorkerGlobalScope { - /** Returns the Clients object associated with the service worker. - */ + /** Returns the Clients object associated with the service worker. */ def clients: Clients = js.native /** The registration read-only property of the ServiceWorkerGlobalScope interface returns a reference to the @@ -453,8 +438,7 @@ trait ServiceWorkerGlobalScope extends WorkerGlobalScope { */ var onactivate: js.Function1[ExtendableEvent, _] = js.native - /** An event handler fired whenever a fetch event occurs — when a fetch() is called. - */ + /** An event handler fired whenever a fetch event occurs — when a fetch() is called. */ var onfetch: js.Function1[FetchEvent, _] = js.native /** An event handler fired whenever an install event occurs — when a ServiceWorkerRegistration acquires a new diff --git a/src/main/scala/org/scalajs/dom/experimental/sharedworkers/SharedWorkerGlobalScope.scala b/src/main/scala/org/scalajs/dom/experimental/sharedworkers/SharedWorkerGlobalScope.scala index ab9456987..6a9d4746e 100644 --- a/src/main/scala/org/scalajs/dom/experimental/sharedworkers/SharedWorkerGlobalScope.scala +++ b/src/main/scala/org/scalajs/dom/experimental/sharedworkers/SharedWorkerGlobalScope.scala @@ -18,8 +18,7 @@ trait SharedWorkerGlobalScope extends WorkerGlobalScope { */ def name: String = js.native - /** Returns the ApplicationCache object for the worker (see Using the application cache). - */ + /** Returns the ApplicationCache object for the worker (see Using the application cache). */ def applicationCache: ApplicationCache = js.native /** An EventHandler representing the code to be called when the connect event is raised — that is, when a MessagePort diff --git a/src/main/scala/org/scalajs/dom/experimental/storage/package.scala b/src/main/scala/org/scalajs/dom/experimental/storage/package.scala index 52a8b4e1d..52a57a74a 100644 --- a/src/main/scala/org/scalajs/dom/experimental/storage/package.scala +++ b/src/main/scala/org/scalajs/dom/experimental/storage/package.scala @@ -4,8 +4,7 @@ import org.scalajs.dom import scala.language.implicitConversions import scala.scalajs.js -/** https://storage.spec.whatwg.org/ - */ +/** https://storage.spec.whatwg.org/ */ package object storage { implicit def toNavigatorStorage(navigator: dom.Navigator): NavigatorStorage = diff --git a/src/main/scala/org/scalajs/dom/experimental/webgl/extensions/Extensions.scala b/src/main/scala/org/scalajs/dom/experimental/webgl/extensions/Extensions.scala index 4c8076d26..8f2e21f69 100644 --- a/src/main/scala/org/scalajs/dom/experimental/webgl/extensions/Extensions.scala +++ b/src/main/scala/org/scalajs/dom/experimental/webgl/extensions/Extensions.scala @@ -43,8 +43,7 @@ trait OESStandardDerivatives extends js.Object { val FRAGMENT_SHADER_DERIVATIVE_HINT_OES: Int = js.native } -/** A vertex array object, as used by `OES_vertex_array_object`. - */ +/** A vertex array object, as used by `OES_vertex_array_object`. */ @js.native trait WebGLVertexArrayObjectOES extends js.Object diff --git a/src/main/scala/org/scalajs/dom/experimental/webrtc/WebRTC.scala b/src/main/scala/org/scalajs/dom/experimental/webrtc/WebRTC.scala index 46a0dbdcf..b60f010c1 100644 --- a/src/main/scala/org/scalajs/dom/experimental/webrtc/WebRTC.scala +++ b/src/main/scala/org/scalajs/dom/experimental/webrtc/WebRTC.scala @@ -1,5 +1,4 @@ -/** http://www.w3.org/TR/2015/WD-webrtc-20150210/ - */ +/** http://www.w3.org/TR/2015/WD-webrtc-20150210/ */ package org.scalajs.dom.experimental.webrtc import org.scalajs.dom.experimental.mediastream._ @@ -97,15 +96,13 @@ object RTCIceServer { } } -/** see [[https://www.w3.org/TR/2015/WD-webrtc-20150210/#idl-def-RTCIceTransportPolicy]] in W3C spec - */ +/** see [[https://www.w3.org/TR/2015/WD-webrtc-20150210/#idl-def-RTCIceTransportPolicy]] in W3C spec */ @js.native trait RTCIceTransportPolicy extends js.Any object RTCIceTransportPolicy { - /** The ICE engine must not send or receive any packets at this point. - */ + /** The ICE engine must not send or receive any packets at this point. */ val none: RTCIceTransportPolicy = "none".asInstanceOf[RTCIceTransportPolicy] /** The ICE engine must only use media relay candidates such as candidates passing through a TURN server. This can be @@ -113,13 +110,11 @@ object RTCIceTransportPolicy { */ val relay: RTCIceTransportPolicy = "relay".asInstanceOf[RTCIceTransportPolicy] - /** The ICE engine may use any type of candidates when this value is specified. - */ + /** The ICE engine may use any type of candidates when this value is specified. */ val all: RTCIceTransportPolicy = "all".asInstanceOf[RTCIceTransportPolicy] } -/** see [[https://www.w3.org/TR/2015/WD-webrtc-20150210/#idl-def-RTCBundlePolicy]] in W3C spec - */ +/** see [[https://www.w3.org/TR/2015/WD-webrtc-20150210/#idl-def-RTCBundlePolicy]] in W3C spec */ @js.native trait RTCBundlePolicy extends js.Any @@ -144,16 +139,13 @@ object RTCBundlePolicy { @js.native trait RTCConfiguration extends js.Object { - /** An array containing URIs of servers available to be used by ICE, such as STUN and TURN server. - */ + /** An array containing URIs of servers available to be used by ICE, such as STUN and TURN server. */ var iceServers: js.Array[RTCIceServer] = js.native - /** defaulting to "all" Indicates which candidates the ICE engine is allowed to use. - */ + /** defaulting to "all" Indicates which candidates the ICE engine is allowed to use. */ var iceTransportPolicy: RTCIceTransportPolicy = js.native - /** defaulting to "balanced" Indicates which BundlePolicy to use. - */ + /** defaulting to "balanced" Indicates which BundlePolicy to use. */ var bundlePolicy: RTCBundlePolicy = js.native /** Sets the target peer identity for the RTCPeerConnection. The RTCPeerConnection will establish a connection to a @@ -178,15 +170,13 @@ object RTCConfiguration { } } -/** see [[https://www.w3.org/TR/2015/WD-webrtc-20150210/#idl-def-RTCSdpType]] in W3C spec - */ +/** see [[https://www.w3.org/TR/2015/WD-webrtc-20150210/#idl-def-RTCSdpType]] in W3C spec */ @js.native trait RTCSdpType extends js.Any object RTCSdpType { - /** An RTCSdpType of "offer" indicates that a description should be treated as an [SDP] offer. - */ + /** An RTCSdpType of "offer" indicates that a description should be treated as an [SDP] offer. */ val offer: RTCSdpType = "offer".asInstanceOf[RTCSdpType] /** An RTCSdpType of "pranswer" indicates that a description should be treated as an [SDP] answer, but not a final @@ -225,12 +215,10 @@ object RTCSessionDescriptionInit { class RTCSessionDescription(descriptionInitDict: js.UndefOr[RTCSessionDescriptionInit] = js.undefined) extends js.Object { - /** An enum of type RTCSdpType describing the session description's type. - */ + /** An enum of type RTCSdpType describing the session description's type. */ var `type`: RTCSdpType = js.native - /** A DOMString containing the SDP format describing the session. - */ + /** A DOMString containing the SDP format describing the session. */ var sdp: String = js.native } @@ -279,8 +267,7 @@ class RTCIceCandidate(candidateInitDict: RTCIceCandidateInit) extends js.Object var sdpMLineIndex: Double = js.native } -/** see [[https://www.w3.org/TR/2015/WD-webrtc-20150210/#idl-def-RTCDataChannelState]] in W3C spec - */ +/** see [[https://www.w3.org/TR/2015/WD-webrtc-20150210/#idl-def-RTCDataChannelState]] in W3C spec */ @js.native trait RTCDataChannelState extends js.Any @@ -296,17 +283,14 @@ object RTCDataChannelState { */ val open: RTCDataChannelState = "open".asInstanceOf[RTCDataChannelState] - /** The procedure to close down the underlying data transport has started. - */ + /** The procedure to close down the underlying data transport has started. */ val closing: RTCDataChannelState = "closing".asInstanceOf[RTCDataChannelState] - /** The underlying data transport has been closed or could not be established. - */ + /** The underlying data transport has been closed or could not be established. */ val closed: RTCDataChannelState = "closed".asInstanceOf[RTCDataChannelState] } -/** The RTCDataChannel interface represents a bi-directional data channel between two peers of a connection. - */ +/** The RTCDataChannel interface represents a bi-directional data channel between two peers of a connection. */ @js.native trait RTCDataChannel extends EventTarget { @@ -321,8 +305,7 @@ trait RTCDataChannel extends EventTarget { val maxPacketLifeTime: Double = js.native val maxRetransmits: Double = js.native - /** Returns a DOMString containing the name of the subprotocol in use. If none, it returns "". - */ + /** Returns a DOMString containing the name of the subprotocol in use. If none, it returns "". */ val protocol: String = js.native val negotiated: Boolean = js.native @@ -331,8 +314,7 @@ trait RTCDataChannel extends EventTarget { */ val id: Double = js.native - /** Returns an enum of the type RTCDataChannelState representing the state of the underlying data connection. - */ + /** Returns an enum of the type RTCDataChannelState representing the state of the underlying data connection. */ def readyState: RTCDataChannelState = js.native /** Returns an unsigned long containing the amount of bytes that have been queued for sending: that is the amount of @@ -388,8 +370,7 @@ trait RTCDataChannelInit extends js.Object { class RTCDataChannelEvent(typeArg: String, init: js.UndefOr[RTCDataChannelEventInit]) extends Event(typeArg, init) { def this(init: RTCDataChannelEventInit) = this("datachannel", init) - /** Contains the RTCDataChannel containing the data channel associated with the event. - */ + /** Contains the RTCDataChannel containing the data channel associated with the event. */ val channel: RTCDataChannel = js.native } @@ -420,8 +401,7 @@ object RTCDataChannelInit { @js.native trait RTCDTMFSender extends js.Object { - /** The canInsertDTMF attribute must indicate if the RTCDTMFSender is capable of sending DTMF. - */ + /** The canInsertDTMF attribute must indicate if the RTCDTMFSender is capable of sending DTMF. */ val canInsertDTMF: Boolean = js.native /** An RTCDTMFSender object's insertDTMF() method is used to send DTMF tones. The tones parameter is treated as a @@ -441,8 +421,7 @@ trait RTCDTMFSender extends js.Object { def insertDTMF(tones: String = js.native, duration: Double = js.native, interToneGap: Double = js.native): Unit = js.native - /** The track attribute must return the MediaStreamTrack given as argument to the createDTMFSender() method. - */ + /** The track attribute must return the MediaStreamTrack given as argument to the createDTMFSender() method. */ val track: MediaStreamTrack = js.native /** This event handler uses the RTCDTMFToneChangeEvent interface to return the character for each tone as it is played @@ -467,8 +446,7 @@ trait RTCDTMFSender extends js.Object { val interToneGap: Double = js.native } -/** see [[https://www.w3.org/TR/2015/WD-webrtc-20150210/#idl-def-RTCStatsType]] in W3C spec - */ +/** see [[https://www.w3.org/TR/2015/WD-webrtc-20150210/#idl-def-RTCStatsType]] in W3C spec */ @js.native trait RTCStatsType extends js.Any @@ -506,20 +484,17 @@ trait RTCPeerConnectionIceEventInit extends EventInit { class RTCPeerConnectionIceEvent(typeArg: String, init: js.UndefOr[RTCPeerConnectionIceEventInit]) extends Event(typeArg, init) { - /** Contains the RTCIceCandidate containing the candidate associated with the event. - */ + /** Contains the RTCIceCandidate containing the candidate associated with the event. */ var candidate: RTCIceCandidate = js.native } -/** see [[https://www.w3.org/TR/2015/WD-webrtc-20150210/#rtciceconnectionstate-enum]] in W3C spec - */ +/** see [[https://www.w3.org/TR/2015/WD-webrtc-20150210/#rtciceconnectionstate-enum]] in W3C spec */ @js.native trait RTCIceConnectionState extends js.Any object RTCIceConnectionState { - /** The ICE Agent is gathering addresses and/or waiting for remote candidates to be supplied. - */ + /** The ICE Agent is gathering addresses and/or waiting for remote candidates to be supplied. */ val `new`: RTCIceConnectionState = "new".asInstanceOf[RTCIceConnectionState] /** The ICE Agent has received remote candidates on at least one component, and is checking candidate pairs but has @@ -547,8 +522,7 @@ object RTCIceConnectionState { */ val disconnected: RTCIceConnectionState = "disconnected".asInstanceOf[RTCIceConnectionState] - /** The ICE Agent has shut down and is no longer responding to STUN requests. - */ + /** The ICE Agent has shut down and is no longer responding to STUN requests. */ val closed: RTCIceConnectionState = "closed".asInstanceOf[RTCIceConnectionState] } @@ -562,12 +536,10 @@ object RTCSignalingState { */ val stable: RTCSignalingState = "stable".asInstanceOf[RTCSignalingState] - /** A local description, of type "offer", has been successfully applied. - */ + /** A local description, of type "offer", has been successfully applied. */ val `have-local-offer` = "have-local-offer".asInstanceOf[RTCSignalingState] - /** A remote description, of type "offer", has been successfully applied. - */ + /** A remote description, of type "offer", has been successfully applied. */ val `have-remote-offer` = "have-remote-offer".asInstanceOf[RTCSignalingState] /** A remote description of type "offer" has been successfully applied and a local description of type "pranswer" has @@ -582,8 +554,7 @@ object RTCSignalingState { val `have-remote-pranswer` = "have-remote-pranswer".asInstanceOf[RTCSignalingState] - /** The connection is closed. - */ + /** The connection is closed. */ val closed: RTCSignalingState = "closed".asInstanceOf[RTCSignalingState] } @@ -592,12 +563,10 @@ trait RTCIceGatheringState extends js.Any object RTCIceGatheringState { - /** The object was just created, and no networking has occurred yet. - */ + /** The object was just created, and no networking has occurred yet. */ val `new`: RTCIceGatheringState = "new".asInstanceOf[RTCIceGatheringState] - /** The ICE engine is in the process of gathering candidates for this RTCPeerConnection. - */ + /** The ICE engine is in the process of gathering candidates for this RTCPeerConnection. */ val gathering: RTCIceGatheringState = "gathering".asInstanceOf[RTCIceGatheringState] /** The ICE engine has completed gathering. Events such as adding a new interface or a new TURN server will cause the @@ -789,12 +758,10 @@ class RTCPeerConnection(configuration: js.UndefOr[RTCConfiguration] = js.undefin def getConfiguration(): RTCConfiguration = js.native - /** Returns an array of MediaStream associated with the local end of the connection. The array may be empty. - */ + /** Returns an array of MediaStream associated with the local end of the connection. The array may be empty. */ def getLocalStreams(): js.Array[MediaStream] = js.native - /** Returns an array of MediaStream associated with the remote end of the connection. The array may be empty. - */ + /** Returns an array of MediaStream associated with the remote end of the connection. The array may be empty. */ def getRemoteStreams(): js.Array[MediaStream] = js.native /** Returns the MediaStream with the given id that is associated with local or remote end of the connection. If no @@ -812,8 +779,7 @@ class RTCPeerConnection(configuration: js.UndefOr[RTCConfiguration] = js.undefin */ def removeStream(stream: MediaStream): Unit = js.native - /** Abruptly closes a connection. - */ + /** Abruptly closes a connection. */ def close(): Unit = js.native /** Creates a new RTCDataChannel associated with this connection. The method takes a dictionary as parameter, with the @@ -826,8 +792,7 @@ class RTCPeerConnection(configuration: js.UndefOr[RTCConfiguration] = js.undefin */ def createDTMFSender(track: MediaStreamTrack): RTCDTMFSender = js.native - /** Creates a new RTCStatsReport that contains and allows access to statistics regarding the connection. - */ + /** Creates a new RTCStatsReport that contains and allows access to statistics regarding the connection. */ def getStats(selector: MediaStreamTrack, callback: js.Function1[RTCStatsReport, Any], error: js.Function1[DOMException, Any]): RTCStatsReport = js.native diff --git a/src/main/scala/org/scalajs/dom/ext/Extensions.scala b/src/main/scala/org/scalajs/dom/ext/Extensions.scala index 2ac1018ff..e6c1262b8 100644 --- a/src/main/scala/org/scalajs/dom/ext/Extensions.scala +++ b/src/main/scala/org/scalajs/dom/ext/Extensions.scala @@ -21,13 +21,11 @@ case class AjaxException(xhr: dom.XMLHttpRequest) extends Exception { @deprecated("use the dom.fetch API instead", "2.0.0") object AjaxException extends (dom.XMLHttpRequest => AjaxException) -/** Wraps an XMLHttpRequest to provide an easy one-line way of making an Ajax call, returning a Future. - */ +/** Wraps an XMLHttpRequest to provide an easy one-line way of making an Ajax call, returning a Future. */ @deprecated("use the dom.fetch API instead", "2.0.0") object Ajax { - /** Supported data formats for Ajax are implicitly converted to InputData - */ + /** Supported data formats for Ajax are implicitly converted to InputData */ @js.native sealed trait InputData extends js.Any diff --git a/src/main/scala/org/scalajs/dom/html.scala b/src/main/scala/org/scalajs/dom/html.scala index 0135fa937..74451c232 100644 --- a/src/main/scala/org/scalajs/dom/html.scala +++ b/src/main/scala/org/scalajs/dom/html.scala @@ -1,7 +1,6 @@ package org.scalajs.dom -/** Short aliases of all the dom.HTMLThing classes - */ +/** Short aliases of all the dom.HTMLThing classes */ object html { type Anchor = HTMLAnchorElement type Audio = HTMLAudioElement diff --git a/src/main/scala/org/scalajs/dom/idb.scala b/src/main/scala/org/scalajs/dom/idb.scala index 3ccfabb98..d613ca717 100644 --- a/src/main/scala/org/scalajs/dom/idb.scala +++ b/src/main/scala/org/scalajs/dom/idb.scala @@ -1,7 +1,6 @@ package org.scalajs.dom -/** Short aliases of all the dom.IDBThing classes - */ +/** Short aliases of all the dom.IDBThing classes */ object idb { type Cursor = IDBCursor @inline def CursorDirection = IDBCursorDirection diff --git a/src/main/scala/org/scalajs/dom/lib.scala b/src/main/scala/org/scalajs/dom/lib.scala index eb534604e..1ae55e3c9 100644 --- a/src/main/scala/org/scalajs/dom/lib.scala +++ b/src/main/scala/org/scalajs/dom/lib.scala @@ -27,8 +27,7 @@ object XPathResult extends js.Object { */ val NUMBER_TYPE: Int = js.native - /** A result containing a single string. - */ + /** A result containing a single string. */ val STRING_TYPE: Int = js.native /** A result containing a single boolean value. This is useful for example, in an XPath expression using the not() @@ -61,8 +60,7 @@ object XPathResult extends js.Object { */ val ANY_UNORDERED_NODE_TYPE: Int = js.native - /** A result node-set containing the first node in the document that matches the expression. - */ + /** A result node-set containing the first node in the document that matches the expression. */ val FIRST_ORDERED_NODE_TYPE: Int = js.native } @@ -134,12 +132,10 @@ trait NavigatorID extends js.Object { */ def appName: String = js.native - /** Returns the user agent string for the current browser. - */ + /** Returns the user agent string for the current browser. */ def userAgent: String = js.native - /** Returns a string representing the platform of the browser. - */ + /** Returns a string representing the platform of the browser. */ def platform: String = js.native } @@ -161,12 +157,10 @@ class TreeWalker extends js.Object { */ def filter: NodeFilter = js.native - /** The TreeWalker.root read-only property returns the node that is the root of what the TreeWalker traverses. - */ + /** The TreeWalker.root read-only property returns the node that is the root of what the TreeWalker traverses. */ def root: Node = js.native - /** The TreeWalker.currentNode property represents the Node on which the TreeWalker is currently pointing at. - */ + /** The TreeWalker.currentNode property represents the Node on which the TreeWalker is currently pointing at. */ var currentNode: Node = js.native /** The TreeWalker.previousSibling() method moves the current Node to its previous sibling, if any, and returns the @@ -231,8 +225,7 @@ class Performance extends js.Object { def getEntriesByType(entryType: String): js.Dynamic = js.native - /** Is a jsonizer returning a json object representing the Performance object. - */ + /** Is a jsonizer returning a json object representing the Performance object. */ def toJSON(): js.Dynamic = js.native def getMeasures(measureName: String = js.native): js.Dynamic = js.native @@ -266,8 +259,7 @@ trait CompositionEventInit extends UIEventInit { var locale: js.UndefOr[String] = js.undefined } -/** The DOM CompositionEvent represents events that occur due to the user indirectly entering text. - */ +/** The DOM CompositionEvent represents events that occur due to the user indirectly entering text. */ @js.native @JSGlobal class CompositionEvent(typeArg: String, init: js.UndefOr[CompositionEventInit]) extends UIEvent(typeArg, init) { @@ -288,16 +280,13 @@ class CompositionEvent(typeArg: String, init: js.UndefOr[CompositionEventInit]) @js.native trait WindowTimers extends js.Object { - /** Clears the delay set by window.setTimeout(). - */ + /** Clears the delay set by window.setTimeout(). */ def clearTimeout(handle: Int): Unit = js.native - /** Calls a function or executes a code snippet after a specified delay. - */ + /** Calls a function or executes a code snippet after a specified delay. */ def setTimeout(handler: js.Function0[Any], timeout: Double): Int = js.native - /** Cancels repeated action which was set up using setInterval. - */ + /** Cancels repeated action which was set up using setInterval. */ def clearInterval(handle: Int): Unit = js.native /** Calls a function or executes a code snippet repeatedly, with a fixed time delay between each call to that @@ -360,12 +349,10 @@ class DOMRect extends js.Object { @JSGlobal class DOMImplementation extends js.Object { - /** « DOM Reference « DOMImplementation - */ + /** « DOM Reference « DOMImplementation */ def createDocumentType(qualifiedName: String, publicId: String, systemId: String): DocumentType = js.native - /** « DOM Reference « DOMImplementation - */ + /** « DOM Reference « DOMImplementation */ def createDocument(namespaceURI: String, qualifiedName: String, doctype: DocumentType): Document = js.native def hasFeature(feature: String, version: String): Boolean = js.native @@ -376,8 +363,7 @@ class DOMImplementation extends js.Object { */ def hasFeature(feature: String): Boolean = js.native - /** Creates and returns an HTML Document. - */ + /** Creates and returns an HTML Document. */ def createHTMLDocument(title: String): Document = js.native } @@ -389,24 +375,19 @@ class DOMImplementation extends js.Object { @js.native trait ParentNode extends js.Object { - /** Returns a live HTMLCollection containing all objects of type Element that are children of the object. - */ + /** Returns a live HTMLCollection containing all objects of type Element that are children of the object. */ def children: HTMLCollection = js.native - /** Returns the Element that is the first child of the object, or null if there is none. - */ + /** Returns the Element that is the first child of the object, or null if there is none. */ def firstElementChild: Element = js.native - /** Returns the Element that is the last child of the object, or null if there is none. - */ + /** Returns the Element that is the last child of the object, or null if there is none. */ def lastElementChild: Element = js.native - /** Returns an unsigned long giving the amount of children that the object has. - */ + /** Returns an unsigned long giving the amount of children that the object has. */ def childElementCount: Int = js.native - /** Replaces the existing children of a Node with a specified new set of children. - */ + /** Replaces the existing children of a Node with a specified new set of children. */ def replaceChildren(nodes: (Node | String)*): Unit = js.native } @@ -442,12 +423,10 @@ trait NonDocumentTypeChildNode extends js.Object { @JSGlobal abstract class Element extends Node with NodeSelector with ParentNode with NonDocumentTypeChildNode { - /** A DOMString representing the namespace prefix of the element, or null if no prefix is specified. - */ + /** A DOMString representing the namespace prefix of the element, or null if no prefix is specified. */ def prefix: String = js.native - /** scrollTop gets or sets the number of pixels that the content of an element is scrolled upward. - */ + /** scrollTop gets or sets the number of pixels that the content of an element is scrolled upward. */ var scrollTop: Double = js.native /** The width of the left border of an element in pixels. It includes the width of the vertical scrollbar if the text @@ -456,8 +435,7 @@ abstract class Element extends Node with NodeSelector with ParentNode with NonDo */ def clientLeft: Int = js.native - /** scrollLeft gets or sets the number of pixels that an element's content is scrolled to the left. - */ + /** scrollLeft gets or sets the number of pixels that an element's content is scrolled to the left. */ var scrollLeft: Double = js.native /** In XML (and XML-based languages such as XHTML), tagName preserves case. On HTML elements in DOM trees flagged as @@ -489,8 +467,7 @@ abstract class Element extends Node with NodeSelector with ParentNode with NonDo */ def clientTop: Int = js.native - /** Height of the scroll view of an element; it includes the element padding but not its margin. - */ + /** Height of the scroll view of an element; it includes the element padding but not its margin. */ def scrollHeight: Int = js.native /** Gets the markup of the element including its content. When used as a setter, replaces the element with nodes @@ -516,24 +493,20 @@ abstract class Element extends Node with NodeSelector with ParentNode with NonDo */ var oncopy: js.Function1[ClipboardEvent, _] = js.native - /** The cut event is fired when a selection has been removed from the document and added to the clipboard. - */ + /** The cut event is fired when a selection has been removed from the document and added to the clipboard. */ var oncut: js.Function1[ClipboardEvent, _] = js.native - /** The paste event is fired when a selection has been pasted from the clipboard to the document. - */ + /** The paste event is fired when a selection has been pasted from the clipboard to the document. */ var onpaste: js.Function1[ClipboardEvent, _] = js.native var accessKey: String = js.native - /** Supported by FF>3.6, any Opera, any Chrome, any IE, any Safari - */ + /** Supported by FF>3.6, any Opera, any Chrome, any IE, any Safari */ var classList: DOMTokenList = js.native def scrollIntoView(top: Boolean = js.native): Unit = js.native - /** Supported by FF>8, Opera>7, Chrome>1, IE>4, Safari>4 - */ + /** Supported by FF>8, Opera>7, Chrome>1, IE>4, Safari>4 */ def insertAdjacentHTML(where: String, html: String): Unit = js.native /** The insertAdjacentElement() method of the Element interface inserts a given element node at a given position @@ -569,8 +542,7 @@ abstract class Element extends Node with NodeSelector with ParentNode with NonDo */ def getElementsByTagName(name: String): HTMLCollection = js.native - /** Returns a list of elements with the given tag name belonging to the given namespace. - */ + /** Returns a list of elements with the given tag name belonging to the given namespace. */ def getElementsByTagNameNS(namespaceURI: String, localName: String): HTMLCollection = js.native /** Returns an array-like object of all child elements which have all of the given class names. When called on the @@ -580,12 +552,10 @@ abstract class Element extends Node with NodeSelector with ParentNode with NonDo */ def getElementsByClassName(classNames: String): HTMLCollection = js.native - /** hasAttributeNS returns a boolean value indicating whether the current element has the specified attribute. - */ + /** hasAttributeNS returns a boolean value indicating whether the current element has the specified attribute. */ def hasAttributeNS(namespaceURI: String, localName: String): Boolean = js.native - /** Returns a text rectangle object that encloses a group of text rectangles. - */ + /** Returns a text rectangle object that encloses a group of text rectangles. */ def getBoundingClientRect(): DOMRect = js.native /** getAttributeNS returns the string value of the attribute with the specified namespace and name. If the named @@ -593,40 +563,32 @@ abstract class Element extends Node with NodeSelector with ParentNode with NonDo */ def getAttributeNS(namespaceURI: String, localName: String): String = js.native - /** Returns the Attr node for the attribute with the given namespace and name. - */ + /** Returns the Attr node for the attribute with the given namespace and name. */ def getAttributeNodeNS(namespaceURI: String, localName: String): Attr = js.native - /** setAttributeNodeNS adds a new namespaced attribute node to an element. - */ + /** setAttributeNodeNS adds a new namespaced attribute node to an element. */ def setAttributeNodeNS(newAttr: Attr): Attr = js.native /** hasAttribute returns a boolean value indicating whether the specified element has the specified attribute or not. */ def hasAttribute(name: String): Boolean = js.native - /** removeAttribute removes an attribute from the specified element. - */ + /** removeAttribute removes an attribute from the specified element. */ def removeAttribute(name: String): Unit = js.native - /** setAttributeNS adds a new attribute or changes the value of an attribute with the given namespace and name. - */ + /** setAttributeNS adds a new attribute or changes the value of an attribute with the given namespace and name. */ def setAttributeNS(namespaceURI: String, qualifiedName: String, value: String): Unit = js.native - /** Returns the specified attribute of the specified element, as an Attr node. - */ + /** Returns the specified attribute of the specified element, as an Attr node. */ def getAttributeNode(name: String): Attr = js.native - /** Returns a collection of rectangles that indicate the bounding rectangles for each box in a client. - */ + /** Returns a collection of rectangles that indicate the bounding rectangles for each box in a client. */ def getClientRects(): DOMRectList = js.native - /** setAttributeNode() adds a new Attr node to the specified element. - */ + /** setAttributeNode() adds a new Attr node to the specified element. */ def setAttributeNode(newAttr: Attr): Attr = js.native - /** removeAttributeNode removes the specified attribute from the current element. - */ + /** removeAttributeNode removes the specified attribute from the current element. */ def removeAttributeNode(oldAttr: Attr): Attr = js.native /** Adds a new attribute or changes the value of an existing attribute on the specified element. @@ -635,8 +597,7 @@ abstract class Element extends Node with NodeSelector with ParentNode with NonDo */ def setAttribute(name: String, value: String): Unit = js.native - /** removeAttributeNS removes the specified attribute from an element. - */ + /** removeAttributeNS removes the specified attribute from an element. */ def removeAttributeNS(namespaceURI: String, localName: String): Unit = js.native /** The Element.requestFullscreen() method issues an asynchronous request to make the element be displayed in @@ -683,8 +644,7 @@ trait FullscreenOptions extends js.Object { @JSGlobal abstract class Node extends EventTarget { - /** The read-only Node.nodeType property returns an unsigned short integer representing the type of the node. - */ + /** The read-only Node.nodeType property returns an unsigned short integer representing the type of the node. */ def nodeType: Int = js.native /** Returns the node immediately preceding the specified one in its parent's childNodes list, null if the specified @@ -706,8 +666,7 @@ abstract class Node extends EventTarget { */ def namespaceURI: String = js.native - /** Is a DOMString representing the textual content of an element and all its descendants. - */ + /** Is a DOMString representing the textual content of an element and all its descendants. */ var textContent: String = js.native /** Returns a Node that is the parent of this node. If there is no such node, like if this node is the top of the tree @@ -727,8 +686,7 @@ abstract class Node extends EventTarget { */ var nodeValue: String = js.native - /** Returns a Node representing the last direct child node of the node, or null if the node has no child. - */ + /** Returns a Node representing the last direct child node of the node, or null if the node has no child. */ def lastChild: Node = js.native /** Returns a live NodeList containing all the children of this node. NodeList being live means that if the children @@ -742,8 +700,7 @@ abstract class Node extends EventTarget { */ def nodeName: String = js.native - /** Returns the Document that this node belongs to. If no document is associated with it, returns null. - */ + /** Returns the Document that this node belongs to. If no document is associated with it, returns null. */ def ownerDocument: Document = js.native /** .attributes is a collection of all attribute nodes registered to the specified node. It is a NamedNodeMap,not an @@ -760,8 +717,7 @@ abstract class Node extends EventTarget { */ def firstChild: Node = js.native - /** Removes a child node from the current element, which must be a child of the current node. - */ + /** Removes a child node from the current element, which must be a child of the current node. */ def removeChild(oldChild: Node): Node = js.native /** Adds a node to the end of the list of children of a specified parent node. If the node already exists it is @@ -774,8 +730,7 @@ abstract class Node extends EventTarget { */ def isSupported(feature: String, version: String): Boolean = js.native - /** If #targetElm is first div element in document, "true" will be displayed. - */ + /** If #targetElm is first div element in document, "true" will be displayed. */ def isEqualNode(arg: Node): Boolean = js.native /** Returns the prefix for a given namespaceURI if present, and null if not. When multiple prefixes are possible, the @@ -788,8 +743,7 @@ abstract class Node extends EventTarget { */ def isDefaultNamespace(namespaceURI: String): Boolean = js.native - /** Compares the position of the current node against another node in any other document. - */ + /** Compares the position of the current node against another node in any other document. */ def compareDocumentPosition(other: Node): Int = js.native /** Puts the specified node and all of its subtree into a "normalized" form. In a normalized subtree, no text nodes in @@ -797,8 +751,7 @@ abstract class Node extends EventTarget { */ def normalize(): Unit = js.native - /** Tests whether two nodes are the same, that is they reference the same object. - */ + /** Tests whether two nodes are the same, that is they reference the same object. */ def isSameNode(other: Node): Boolean = js.native /** Returns a Boolean value indicating whether a node is a descendant of a given node, i.e. the node itself, one of @@ -816,20 +769,16 @@ abstract class Node extends EventTarget { */ def lookupNamespaceURI(prefix: String): String = js.native - /** Clone a Node, and optionally, all of its contents. By default, it clones the content of the node. - */ + /** Clone a Node, and optionally, all of its contents. By default, it clones the content of the node. */ def cloneNode(deep: Boolean = js.native): Node = js.native - /** hasChildNodes returns a Boolean value indicating whether the current Node has child nodes or not. - */ + /** hasChildNodes returns a Boolean value indicating whether the current Node has child nodes or not. */ def hasChildNodes(): Boolean = js.native - /** Replaces one child Node of the current one with the second one given in parameter. - */ + /** Replaces one child Node of the current one with the second one given in parameter. */ def replaceChild(newChild: Node, oldChild: Node): Node = js.native - /** Inserts the first Node given in a parameter immediately before the second, child of this element, Node. - */ + /** Inserts the first Node given in a parameter immediately before the second, child of this element, Node. */ def insertBefore(newChild: Node, refChild: Node): Node = js.native /** Represents the "rendered" text content of a node and its descendants. As a getter, it approximates the text the @@ -888,20 +837,16 @@ trait ModifierKeyEventInit extends js.Object { @js.native trait ModifierKeyEvent extends js.Object { - /** The metaKey property indicates if the meta key was pressed (true) or not (false) when the event occurred. - */ + /** The metaKey property indicates if the meta key was pressed (true) or not (false) when the event occurred. */ def metaKey: Boolean = js.native - /** The altKey property indicates if the alt key was pressed (true) or not (false) when the event occurred. - */ + /** The altKey property indicates if the alt key was pressed (true) or not (false) when the event occurred. */ def altKey: Boolean = js.native - /** A Boolean value indicating whether or not the control key was down when the touch event was fired. Read only. - */ + /** A Boolean value indicating whether or not the control key was down when the touch event was fired. Read only. */ def ctrlKey: Boolean = js.native - /** A Boolean value indicating whether or not the shift key was down when the touch event was fired. Read only. - */ + /** A Boolean value indicating whether or not the shift key was down when the touch event was fired. Read only. */ def shiftKey: Boolean = js.native } @@ -911,12 +856,10 @@ trait ModifierKeyEvent extends js.Object { @js.native trait HashChangeEvent extends Event { - /** The new URL to which the window is navigating. - */ + /** The new URL to which the window is navigating. */ def newURL: String = js.native - /** The previous URL from which the window was navigated. - */ + /** The previous URL from which the window was navigated. */ def oldURL: String = js.native } @@ -945,8 +888,7 @@ trait MouseEventInit extends UIEventInit with ModifierKeyEventInit { class MouseEvent(typeArg: String, init: js.UndefOr[MouseEventInit]) extends UIEvent(typeArg, init) with ModifierKeyEvent { - /** The screenX property provides the X coordinate of the mouse pointer in global (screen) coordinates. - */ + /** The screenX property provides the X coordinate of the mouse pointer in global (screen) coordinates. */ def screenX: Double = js.native /** The pageX property is an integer value in pixels for the X coordinate of the mouse pointer, relative to the whole @@ -959,28 +901,22 @@ class MouseEvent(typeArg: String, init: js.UndefOr[MouseEventInit]) */ def pageY: Double = js.native - /** The clientY property provides the Y coordinate of the mouse pointer in local (DOM content) coordinates. - */ + /** The clientY property provides the Y coordinate of the mouse pointer in local (DOM content) coordinates. */ def clientY: Double = js.native - /** The screenY property provides the Y coordinate of the mouse pointer in global (screen) coordinates. - */ + /** The screenY property provides the Y coordinate of the mouse pointer in global (screen) coordinates. */ def screenY: Double = js.native - /** The relatedTarget property is the secondary target for the event, if there is one. - */ + /** The relatedTarget property is the secondary target for the event, if there is one. */ def relatedTarget: EventTarget = js.native - /** The button property indicates which button was pressed on the mouse to trigger the event. - */ + /** The button property indicates which button was pressed on the mouse to trigger the event. */ def button: Int = js.native - /** The buttons property indicates which buttons were pressed on the mouse to trigger the event. - */ + /** The buttons property indicates which buttons were pressed on the mouse to trigger the event. */ def buttons: Int = js.native - /** The clientX property provides the X coordinate of the mouse pointer in local (DOM content) coordinates. - */ + /** The clientX property provides the X coordinate of the mouse pointer in local (DOM content) coordinates. */ def clientX: Double = js.native /** Returns the current state of the specified modifier key. See the KeyboardEvent.getModifierState() documentation @@ -1099,44 +1035,34 @@ class PointerEvent(typeArg: String, pointerEventInit: js.UndefOr[PointerEventIni trait PointerEventInit extends MouseEventInit { - /** Sets value of MouseEvent.pointerId. Defaults to 0. - */ + /** Sets value of MouseEvent.pointerId. Defaults to 0. */ var pointerId: js.UndefOr[Double] = js.undefined - /** Sets value of MouseEvent.width. Defaults to 1. - */ + /** Sets value of MouseEvent.width. Defaults to 1. */ var width: js.UndefOr[Double] = js.undefined - /** Sets value of MouseEvent.height. Defaults to 0. - */ + /** Sets value of MouseEvent.height. Defaults to 0. */ var height: js.UndefOr[Double] = js.undefined - /** Sets value of MouseEvent.pressure. Defaults to 0. - */ + /** Sets value of MouseEvent.pressure. Defaults to 0. */ var pressure: js.UndefOr[Double] = js.undefined - /** Sets value of MouseEvent.tangentialPressure. Defaults to 0. - */ + /** Sets value of MouseEvent.tangentialPressure. Defaults to 0. */ var tangentialPressure: js.UndefOr[Double] = js.undefined - /** Sets value of MouseEvent.tiltX. Defaults to 0. - */ + /** Sets value of MouseEvent.tiltX. Defaults to 0. */ var tiltX: js.UndefOr[Double] = js.undefined - /** Sets value of MouseEvent.tiltY. Defaults to 0. - */ + /** Sets value of MouseEvent.tiltY. Defaults to 0. */ var tiltY: js.UndefOr[Double] = js.undefined - /** Sets value of MouseEvent.twist. Defaults to 0. - */ + /** Sets value of MouseEvent.twist. Defaults to 0. */ var twist: js.UndefOr[Double] = js.undefined - /** Sets value of MouseEvent.pointerType. Defaults to 0. - */ + /** Sets value of MouseEvent.pointerType. Defaults to 0. */ var pointerType: js.UndefOr[String] = js.undefined - /** Sets value of MouseEvent.isPrimary. Defaults to 0. - */ + /** Sets value of MouseEvent.isPrimary. Defaults to 0. */ var isPrimary: js.UndefOr[Boolean] = js.undefined } @@ -1184,16 +1110,13 @@ trait StyleMedia extends js.Object { @JSGlobal class Selection extends js.Object { - /** Returns a boolean indicating whether the selection's start and end points are at the same position. - */ + /** Returns a boolean indicating whether the selection's start and end points are at the same position. */ def isCollapsed: Boolean = js.native - /** Returns the node in which the selection begins. - */ + /** Returns the node in which the selection begins. */ def anchorNode: Node = js.native - /** Returns the node in which the selection ends. - */ + /** Returns the node in which the selection ends. */ def focusNode: Node = js.native /** Returns a number representing the offset of the selection's anchor within the anchorNode. If anchorNode is a text @@ -1208,12 +1131,10 @@ class Selection extends js.Object { */ def focusOffset: Int = js.native - /** Returns the number of ranges in the selection. - */ + /** Returns the number of ranges in the selection. */ def rangeCount: Int = js.native - /** A range object that will be added to the selection. - */ + /** A range object that will be added to the selection. */ def addRange(range: Range): Unit = js.native /** Collapses the selection to the end of the last range in the selection.  If the content the selection is in is @@ -1221,12 +1142,10 @@ class Selection extends js.Object { */ def collapseToEnd(): Unit = js.native - /** Adds all the children of the specified node to the selection. Previous selection is lost. - */ + /** Adds all the children of the specified node to the selection. Previous selection is lost. */ def selectAllChildren(parentNode: Node): Unit = js.native - /** Returns a range object representing one of the ranges currently selected. - */ + /** Returns a range object representing one of the ranges currently selected. */ def getRangeAt(index: Int): Range = js.native /** Collapses the current selection to a single point. The document is not modified. If the content is focused and @@ -1244,16 +1163,13 @@ class Selection extends js.Object { */ def collapseToStart(): Unit = js.native - /** Deletes the actual text being represented by a selection object from the document's DOM. - */ + /** Deletes the actual text being represented by a selection object from the document's DOM. */ def deleteFromDocument(): Unit = js.native - /** Removes a range from the selection. - */ + /** Removes a range from the selection. */ def removeRange(range: Range): Unit = js.native - /** Indicates if the node is part of the selection - */ + /** Indicates if the node is part of the selection */ def containsNode(node: Node, partialContainment: Boolean = false): Boolean = js.native /** Moves the focus of the selection to a specified point. The anchor of the selection does not move. The selection @@ -1343,31 +1259,25 @@ class Window with WindowConsole { var ondragend: js.Function1[DragEvent, _] = js.native - /** An event handler property for keydown events on the window. - */ + /** An event handler property for keydown events on the window. */ var onkeydown: js.Function1[KeyboardEvent, _] = js.native var ondragover: js.Function1[DragEvent, _] = js.native - /** An event handler property for keyup events on the window. - */ + /** An event handler property for keyup events on the window. */ var onkeyup: js.Function1[KeyboardEvent, _] = js.native - /** An event handler property for reset events on the window. - */ + /** An event handler property for reset events on the window. */ var onreset: js.Function1[Event, _] = js.native - /** An event handler property for mouseup events on the window. - */ + /** An event handler property for mouseup events on the window. */ var onmouseup: js.Function1[MouseEvent, _] = js.native var ondragstart: js.Function1[DragEvent, _] = js.native var ondrag: js.Function1[DragEvent, _] = js.native - /** Returns the horizontal distance of the left border of the user's browser from the left side of the screen. - */ + /** Returns the horizontal distance of the left border of the user's browser from the left side of the screen. */ var screenX: Int = js.native - /** An event handler property for mouseover events on the window. - */ + /** An event handler property for mouseover events on the window. */ var onmouseover: js.Function1[MouseEvent, _] = js.native var ondragleave: js.Function1[DragEvent, _] = js.native @@ -1376,8 +1286,7 @@ class Window */ def history: History = js.native - /** Returns the number of pixels that the document has already been scrolled horizontally. - */ + /** Returns the number of pixels that the document has already been scrolled horizontally. */ def pageXOffset: Double = js.native /** The name of the window is used primarily for setting targets for hyperlinks and forms. Windows do not need to have @@ -1385,26 +1294,21 @@ class Window */ var name: String = js.native - /** The onafterprint property sets and returns the onafterprint event handler code for the current window. - */ + /** The onafterprint property sets and returns the onafterprint event handler code for the current window. */ var onafterprint: js.Function1[Event, _] = js.native var onpause: js.Function1[Event, _] = js.native - /** The onbeforeprint property sets and returns the onbeforeprint event handler code for the current window. - */ + /** The onbeforeprint property sets and returns the onbeforeprint event handler code for the current window. */ var onbeforeprint: js.Function1[Event, _] = js.native - /** Returns a reference to the topmost window in the window hierarchy. This property is read only. - */ + /** Returns a reference to the topmost window in the window hierarchy. This property is read only. */ def top: Window = js.native - /** An event handler property for mousedown events on the window. - */ + /** An event handler property for mousedown events on the window. */ var onmousedown: js.Function1[MouseEvent, _] = js.native var onseeked: js.Function1[Event, _] = js.native - /** Returns a reference to the window that opened this current window. - */ + /** Returns a reference to the window that opened this current window. */ var opener: Window = js.native /** Called when the user clicks the mouse button while the cursor is in the window. This event is fired for any mouse @@ -1412,20 +1316,17 @@ class Window */ var onclick: js.Function1[MouseEvent, _] = js.native - /** Gets the width of the content area of the browser window including, if rendered, the vertical scrollbar. - */ + /** Gets the width of the content area of the browser window including, if rendered, the vertical scrollbar. */ def innerWidth: Double = js.native - /** Gets the height of the content area of the browser window including, if rendered, the horizontal scrollbar. - */ + /** Gets the height of the content area of the browser window including, if rendered, the horizontal scrollbar. */ def innerHeight: Double = js.native var onwaiting: js.Function1[Event, _] = js.native var ononline: js.Function1[Event, _] = js.native var ondurationchange: js.Function1[Event, _] = js.native - /** Returns the window itself, which is an array-like object, listing the direct sub-frames of the current window. - */ + /** Returns the window itself, which is an array-like object, listing the direct sub-frames of the current window. */ def frames: Window = js.native /** The onblur property can be used to set the blur handler on the window, which is triggered when the window loses @@ -1443,14 +1344,12 @@ class Window var onstalled: js.Function1[Event, _] = js.native - /** An event handler property for mousemove events on the window. - */ + /** An event handler property for mousemove events on the window. */ var onmousemove: js.Function1[MouseEvent, _] = js.native var onoffline: js.Function1[Event, _] = js.native - /** Returns the number of frames (either frame or iframe elements) in the window. - */ + /** Returns the number of frames (either frame or iframe elements) in the window. */ def length: Int = js.native /** Specifies the height of the screen, in pixels, minus permanent or semipermanent user interface features displayed @@ -1472,42 +1371,34 @@ class Window */ var ondragenter: js.Function1[DragEvent, _] = js.native - /** An event handler property for submits on window forms. - */ + /** An event handler property for submits on window forms. */ var onsubmit: js.Function1[Event, _] = js.native - /** Returns an object reference to the window object itself. - */ + /** Returns an object reference to the window object itself. */ def self: Window = js.native - /** Returns a reference to the document that the window contains. - */ + /** Returns a reference to the document that the window contains. */ def document: HTMLDocument = js.native var onprogress: js.Function1[js.Any, _] = js.native var ondblclick: js.Function1[MouseEvent, _] = js.native - /** Returns the number of pixels that the document has already been scrolled vertically. - */ + /** Returns the number of pixels that the document has already been scrolled vertically. */ def pageYOffset: Double = js.native - /** An event handler property for right-click events on the window. - */ + /** An event handler property for right-click events on the window. */ var oncontextmenu: js.Function1[MouseEvent, _] = js.native - /** An event handler property for change events on the window. - */ + /** An event handler property for change events on the window. */ var onchange: js.Function1[Event, _] = js.native var onloadedmetadata: js.Function1[Event, _] = js.native var onplay: js.Function1[Event, _] = js.native - /** An event handler property for errors raised on the window. - */ + /** An event handler property for errors raised on the window. */ var onerror: js.Function5[Event, String, Int, Int, Any, _] = js.native var onplaying: js.Function1[Event, _] = js.native - /** Returns a reference to the parent of the current window or subframe. - */ + /** Returns a reference to the parent of the current window or subframe. */ def parent: Window = js.native /** The Window.location property returns a Location object with information about the current location of the @@ -1516,8 +1407,7 @@ class Window var location: Location = js.native var oncanplaythrough: js.Function1[Event, _] = js.native - /** An event handler property for abort events on the window. - */ + /** An event handler property for abort events on the window. */ var onabort: js.Function1[UIEvent, _] = js.native var onreadystatechange: js.Function1[Event, _] = js.native @@ -1526,8 +1416,7 @@ class Window */ def outerHeight: Int = js.native - /** An event handler property for keypress events on the window. - */ + /** An event handler property for keypress events on the window. */ var onkeypress: js.Function1[KeyboardEvent, _] = js.native /** Returns the element (such as <iframe> or <object>) in which the window is embedded, or null if the @@ -1538,22 +1427,18 @@ class Window var onloadeddata: js.Function1[Event, _] = js.native var onsuspend: js.Function1[Event, _] = js.native - /** The window property of a window object points to the window object itself. - */ + /** The window property of a window object points to the window object itself. */ def window: Window = js.native - /** An event handler property for focus events on the window. - */ + /** An event handler property for focus events on the window. */ var onfocus: js.Function1[FocusEvent, _] = js.native var onmessage: js.Function1[MessageEvent, _] = js.native var ontimeupdate: js.Function1[Event, _] = js.native - /** An event handler for the resize event on the window. - */ + /** An event handler for the resize event on the window. */ var onresize: js.Function1[UIEvent, _] = js.native - /** An event handler property for window selection. - */ + /** An event handler property for window selection. */ var onselect: js.Function1[UIEvent, _] = js.native /** The Window.navigator read-only property returns a reference to the Navigator object, which can be queried for @@ -1565,8 +1450,7 @@ class Window var ondrop: js.Function1[DragEvent, _] = js.native - /** An event handler property for mouseout events on the window. - */ + /** An event handler property for mouseout events on the window. */ var onmouseout: js.Function1[MouseEvent, _] = js.native var onended: js.Function1[Event, _] = js.native @@ -1580,20 +1464,17 @@ class Window */ var onunload: js.Function1[Event, _] = js.native - /** Specifies the function to be called when the window is scrolled. - */ + /** Specifies the function to be called when the window is scrolled. */ var onscroll: js.Function1[UIEvent, _] = js.native - /** Returns the vertical distance of the top border of the user's browser from the top edge of the screen. - */ + /** Returns the vertical distance of the top border of the user's browser from the top edge of the screen. */ def screenY: Int = js.native var onmousewheel: js.Function1[WheelEvent, _] = js.native var onwheel: js.Function1[WheelEvent, _] = js.native - /** An event handler property for window loading. - */ + /** An event handler property for window loading. */ var onload: js.Function1[Event, _] = js.native var onvolumechange: js.Function1[Event, _] = js.native var oninput: js.Function1[Event, _] = js.native @@ -1605,12 +1486,10 @@ class Window def alert(message: String): Unit = js.native - /** The Window.alert() method displays an alert dialog with the optional specified content and an OK button. - */ + /** The Window.alert() method displays an alert dialog with the optional specified content and an OK button. */ def alert(): Unit = js.native - /** Scrolls the window to a particular place in the document. - */ + /** Scrolls the window to a particular place in the document. */ def scroll(x: Int, y: Int): Unit = js.native /** Makes a request to bring the window to the front. It may fail due to user settings and the window isn't guaranteed @@ -1618,35 +1497,28 @@ class Window */ def focus(): Unit = js.native - /** Scrolls to a particular set of coordinates in the document. - */ + /** Scrolls to a particular set of coordinates in the document. */ def scrollTo(x: Int, y: Int): Unit = js.native - /** Opens the Print Dialog to print the current document. - */ + /** Opens the Print Dialog to print the current document. */ def print(): Unit = js.native def prompt(message: String, default: String = js.native): String = js.native - /** The Window.prompt() displays a dialog with an optional message prompting the user to input some text. - */ + /** The Window.prompt() displays a dialog with an optional message prompting the user to input some text. */ def prompt(): String = js.native - /** Loads a resource in a new browsing context or an existing one. - */ + /** Loads a resource in a new browsing context or an existing one. */ def open(url: String = js.native, target: String = js.native, features: String = js.native, replace: Boolean = js.native): Window = js.native - /** Scrolls the document in the window by the given amount. - */ + /** Scrolls the document in the window by the given amount. */ def scrollBy(x: Int, y: Int): Unit = js.native - /** The Window.confirm() method displays a modal dialog with an optional message and two buttons, OK and Cancel. - */ + /** The Window.confirm() method displays a modal dialog with an optional message and two buttons, OK and Cancel. */ def confirm(message: String = js.native): Boolean = js.native - /** Closes the current window, or a referenced window. - */ + /** Closes the current window, or a referenced window. */ def close(): Unit = js.native def closed: Boolean = js.native @@ -1676,14 +1548,12 @@ class Window */ def blur(): Unit = js.native - /** Returns a selection object representing the range of text selected by the user. - */ + /** Returns a selection object representing the range of text selected by the user. */ def getSelection(): Selection = js.native def getComputedStyle(elt: Element, pseudoElt: String = js.native): CSSStyleDeclaration = js.native - /** An OfflineResourceList object providing access to the offline resources for the window. - */ + /** An OfflineResourceList object providing access to the offline resources for the window. */ def applicationCache: ApplicationCache = js.native /** An event handler property for popstate events, which are fired when navigating to a session history entry @@ -1708,12 +1578,10 @@ class Window */ var onpageshow: js.Function1[PageTransitionEvent, _] = js.native - /** Returns a new MediaQueryList object representing the parsed results of the specified media query string. - */ + /** Returns a new MediaQueryList object representing the parsed results of the specified media query string. */ def matchMedia(mediaQuery: String): MediaQueryList = js.native - /** Cancels an animation frame request previously scheduled through a call to window.requestAnimationFrame(). - */ + /** Cancels an animation frame request previously scheduled through a call to window.requestAnimationFrame(). */ def cancelAnimationFrame(handle: Int): Unit = js.native /** The window.requestAnimationFrame() method tells the browser that you wish to perform an animation and requests @@ -1727,8 +1595,7 @@ class Window */ def devicePixelRatio: Double = js.native - /** fired when a pointing device is moved into an element's hit test boundaries. - */ + /** fired when a pointing device is moved into an element's hit test boundaries. */ var onpointerover: js.Function1[PointerEvent, _] = js.native /** fired when a pointing device is moved into the hit test boundaries of an element or one of its descendants, @@ -1736,16 +1603,13 @@ class Window */ var onpointerenter: js.Function1[PointerEvent, _] = js.native - /** fired when a pointer becomes active. - */ + /** fired when a pointer becomes active. */ var onpointerdown: js.Function1[PointerEvent, _] = js.native - /** fired when a pointer changes coordinates. - */ + /** fired when a pointer changes coordinates. */ var onpointermove: js.Function1[PointerEvent, _] = js.native - /** fired when a pointer is no longer active. - */ + /** fired when a pointer is no longer active. */ var onpointerup: js.Function1[PointerEvent, _] = js.native /** a browser fires this event if it concludes the pointer will no longer be able to generate events (for example the @@ -1764,28 +1628,22 @@ class Window */ var onpointerleave: js.Function1[PointerEvent, _] = js.native - /** fired when an element receives pointer capture. - */ + /** fired when an element receives pointer capture. */ var gotpointercapture: js.Function1[PointerEvent, _] = js.native - /** Fired after pointer capture is released for a pointer. - */ + /** Fired after pointer capture is released for a pointer. */ var lostpointercapture: js.Function1[PointerEvent, _] = js.native - /** Moves the window to the specified coordinates. - */ + /** Moves the window to the specified coordinates. */ def moveTo(x: Int, y: Int): Unit = js.native - /** Moves the current window by a specified amount. - */ + /** Moves the current window by a specified amount. */ def moveBy(deltaX: Int, deltaY: Int): Unit = js.native - /** Dynamically resizes window. - */ + /** Dynamically resizes window. */ def resizeTo(width: Int, height: Int): Unit = js.native - /** Resizes the current window by a certain amount. - */ + /** Resizes the current window by a certain amount. */ def resizeBy(deltaX: Int, deltaY: Int): Unit = js.native /** The read-only scrollX property of the Window interface returns the number of pixels that the document is currently @@ -1801,8 +1659,7 @@ class Window def scrollY: Double = js.native } -/** An options object that specifies characteristics about the event listener. - */ +/** An options object that specifies characteristics about the event listener. */ trait EventListenerOptions extends js.Object { /** A Boolean indicating that events of this type will be dispatched to the registered listener before being @@ -1834,8 +1691,7 @@ trait EventListenerOptions extends js.Object { @JSGlobal class EventTarget extends js.Object { - /** Removes the event listener previously registered with EventTarget.addEventListener. - */ + /** Removes the event listener previously registered with EventTarget.addEventListener. */ def removeEventListener[T <: Event](`type`: String, listener: js.Function1[T, _], useCapture: Boolean = js.native): Unit = js.native @@ -1948,12 +1804,10 @@ class Touch extends js.Object { */ def identifier: Double = js.native - /** The X coordinate of the touch point relative to the left edge of the screen. Read only. - */ + /** The X coordinate of the touch point relative to the left edge of the screen. Read only. */ def screenX: Double = js.native - /** The Y coordinate of the touch point relative to the top edge of the screen. Read only. - */ + /** The Y coordinate of the touch point relative to the top edge of the screen. Read only. */ def screenY: Double = js.native /** The X coordinate of the touch point relative to the left edge of the browser viewport, not including any scroll @@ -2047,39 +1901,31 @@ class KeyboardEvent(typeArg: String, init: js.UndefOr[KeyboardEventInit]) */ def key: String = js.native - /** true if the key is being held down such that it is automatically repeating - */ + /** true if the key is being held down such that it is automatically repeating */ def repeat: Boolean = js.native - /** Returns the current state of the specified modifier key. - */ + /** Returns the current state of the specified modifier key. */ def getModifierState(keyArg: String): Boolean = js.native } trait KeyboardEventInit extends UIEventInit with ModifierKeyEventInit { - /** Sets value of KeyboardEvent.charCode. Defaults to 0. - */ + /** Sets value of KeyboardEvent.charCode. Defaults to 0. */ var charCode: js.UndefOr[Int] = js.undefined - /** Sets value of KeyboardEvent.keyCode. Defaults to 0. - */ + /** Sets value of KeyboardEvent.keyCode. Defaults to 0. */ var keyCode: js.UndefOr[Int] = js.undefined - /** Sets value of KeyboardEvent.location. Defaults to 0. - */ + /** Sets value of KeyboardEvent.location. Defaults to 0. */ var location: js.UndefOr[Int] = js.undefined - /** Sets value of KeyboardEvent.locale. Defaults to empty string. - */ + /** Sets value of KeyboardEvent.locale. Defaults to empty string. */ var locale: js.UndefOr[String] = js.undefined - /** Sets value of KeyboardEvent.key. Defaults to empty string. - */ + /** Sets value of KeyboardEvent.key. Defaults to empty string. */ var key: js.UndefOr[String] = js.undefined - /** Sets value of KeyboardEvent.repeat. Defaults to false. - */ + /** Sets value of KeyboardEvent.repeat. Defaults to false. */ var repeat: js.UndefOr[Boolean] = js.undefined } @@ -2124,12 +1970,10 @@ object KeyboardEvent extends js.Object { @JSGlobal abstract class Document extends Node with NodeSelector with DocumentEvent with ParentNode with PageVisibility { - /** Returns a DOMImplementation object associated with the current document. - */ + /** Returns a DOMImplementation object associated with the current document. */ def implementation: DOMImplementation = js.native - /** Returns the character encoding of the current document. - */ + /** Returns the character encoding of the current document. */ def characterSet: String = js.native /** Returns the Document Type Declaration (DTD) associated with current document. The returned object implements the @@ -2144,20 +1988,16 @@ abstract class Document extends Node with NodeSelector with DocumentEvent with P def documentURI: String = js.native - /** Returns a list of StyleSheet objects for stylesheets explicitly linked into or embedded in a document. - */ + /** Returns a list of StyleSheet objects for stylesheets explicitly linked into or embedded in a document. */ def styleSheets: StyleSheetList = js.native - /** Returns a string containing the date and time on which the current document was last modified. - */ + /** Returns a string containing the date and time on which the current document was last modified. */ def lastModified: String = js.native - /** Returns an object reference to the identified element. - */ + /** Returns an object reference to the identified element. */ def getElementById(elementId: String): Element = js.native - /** Returns a list of elements with a given name in the (X)HTML document. - */ + /** Returns a list of elements with a given name in the (X)HTML document. */ def getElementsByName(elementName: String): NodeList[Node] = js.native /** Returns a HTMLCollection of elements with the given tag name. The complete document is searched, including the @@ -2231,8 +2071,7 @@ abstract class Document extends Node with NodeSelector with DocumentEvent with P */ def createNSResolver(node: Node): XPathNSResolver = js.native - /** Creates a copy of a node from an external document that can be inserted into the current document. - */ + /** Creates a copy of a node from an external document that can be inserted into the current document. */ def importNode(importedNode: Node, deep: Boolean): Node = js.native /** In an HTML document creates the specified HTML element or HTMLUnknownElement if the element is not known. In a XUL @@ -2240,49 +2079,39 @@ abstract class Document extends Node with NodeSelector with DocumentEvent with P */ def createElement(tagName: String): Element = js.native - /** Creates an element with the specified namespace URI and qualified name. - */ + /** Creates an element with the specified namespace URI and qualified name. */ def createElementNS(namespaceURI: String, qualifiedName: String): Element = js.native - /** createAttribute creates a new attribute node, and returns it. - */ + /** createAttribute creates a new attribute node, and returns it. */ def createAttribute(name: String): Attr = js.native - /** Creates a new attribute node in a given namespace and returns it. - */ + /** Creates a new attribute node in a given namespace and returns it. */ def createAttributeNS(namespaceURI: String, qualifiedName: String): Attr = js.native - /** createProcessingInstruction() creates a new processing instruction node, and returns it. - */ + /** createProcessingInstruction() creates a new processing instruction node, and returns it. */ def createProcessingInstruction(target: String, data: String): ProcessingInstruction = js.native - /** createCDATASection() creates a new CDATA section node, and returns it. - */ + /** createCDATASection() creates a new CDATA section node, and returns it. */ def createCDATASection(data: String): CDATASection = js.native - /** Once a Range is created, you need to set its boundary points before you can make use of most of its methods. - */ + /** Once a Range is created, you need to set its boundary points before you can make use of most of its methods. */ def createRange(): Range = js.native - /** createComment() creates a new comment node, and returns it. - */ + /** createComment() creates a new comment node, and returns it. */ def createComment(data: String): Comment = js.native - /** Creates a new empty DocumentFragment. - */ + /** Creates a new empty DocumentFragment. */ def createDocumentFragment(): DocumentFragment = js.native def createStyleSheet(href: String = js.native, index: Int = js.native): CSSStyleSheet = js.native def createTextNode(data: String): Text = js.native - /** Supported in FF 3.5+, Chrome 1+, Opera 9+, Safari 3+, IE9+ - */ + /** Supported in FF 3.5+, Chrome 1+, Opera 9+, Safari 3+, IE9+ */ def createNodeIterator(root: Node, whatToShow: Int, filter: NodeFilter, entityReferenceExpansion: Boolean): NodeIterator = js.native - /** The Document.createTreeWalker() creator method returns a newly created TreeWalker object. - */ + /** The Document.createTreeWalker() creator method returns a newly created TreeWalker object. */ def createTreeWalker(root: Node, whatToShow: Int, filter: NodeFilter, entityReferenceExpansion: Boolean): TreeWalker = js.native @@ -2353,12 +2182,10 @@ class MessageEvent(typeArg: String, init: js.UndefOr[MessageEventInit]) extends @JSGlobal class CanvasRenderingContext2D extends js.Object { - /** Default 10 - */ + /** Default 10 */ var miterLimit: Double = js.native - /** Default value 10px sans-serif - */ + /** Default value 10px sans-serif */ var font: String = js.native /** With globalAlpha applied this sets how shapes and images are drawn onto the existing bitmap. Possible values: @@ -2367,68 +2194,53 @@ class CanvasRenderingContext2D extends js.Object { */ var globalCompositeOperation: String = js.native - /** Type of endings on the end of lines. Possible values: butt (default), round, square - */ + /** Type of endings on the end of lines. Possible values: butt (default), round, square */ var lineCap: String = js.native - /** Specifies where to start a dasharray on a line. - */ + /** Specifies where to start a dasharray on a line. */ var lineDashOffset: Double = js.native - /** Color of the shadow. Default fully-transparent black. - */ + /** Color of the shadow. Default fully-transparent black. */ var shadowColor: String = js.native - /** Defines the type of corners where two lines meet. Possible values: round, bevel, miter (default) - */ + /** Defines the type of corners where two lines meet. Possible values: round, bevel, miter (default) */ var lineJoin: String = js.native - /** Horizontal distance the shadow will be offset. Default 0. - */ + /** Horizontal distance the shadow will be offset. Default 0. */ var shadowOffsetX: Double = js.native - /** Width of lines. Default 1.0 - */ + /** Width of lines. Default 1.0 */ var lineWidth: Double = js.native - /** Back-reference to the canvas element for which this context was created. Read only. - */ + /** Back-reference to the canvas element for which this context was created. Read only. */ var canvas: HTMLCanvasElement = js.native - /** A CSS color, a CanvasGradient or CanvasPattern, to use as a line around shapes. - */ + /** A CSS color, a CanvasGradient or CanvasPattern, to use as a line around shapes. */ var strokeStyle: js.Any = js.native /** Alpha value that is applied to shapes and images before they are composited onto the canvas. Default 1.0 (opaque). */ var globalAlpha: Double = js.native - /** Vertical distance the shadow will be offset. Default 0. - */ + /** Vertical distance the shadow will be offset. Default 0. */ var shadowOffsetY: Double = js.native - /** A CSS color, a CanvasGradient or CanvasPattern, to use as a fill. - */ + /** A CSS color, a CanvasGradient or CanvasPattern, to use as a fill. */ var fillStyle: js.Any = js.native - /** Specifies the blurring effect. Default 0 - */ + /** Specifies the blurring effect. Default 0 */ var shadowBlur: Double = js.native - /** Possible values: start (default), end, left, right or center. - */ + /** Possible values: start (default), end, left, right or center. */ var textAlign: String = js.native - /** Possible values: top, hanging, middle, alphabetic (default), ideographic, bottom - */ + /** Possible values: top, hanging, middle, alphabetic (default), ideographic, bottom */ var textBaseline: String = js.native - /** A boolean value indicating whether to smooth scaled images or not. The default value is true. - */ + /** A boolean value indicating whether to smooth scaled images or not. The default value is true. */ var imageSmoothingEnabled: Boolean = js.native - /** Restores the drawing style state to the last element on the 'state stack' saved by save(). - */ + /** Restores the drawing style state to the last element on the 'state stack' saved by save(). */ def restore(): Unit = js.native def setTransform(m11: Double, m12: Double, m21: Double, m22: Double, dx: Double, dy: Double): Unit = js.native @@ -2449,8 +2261,7 @@ class CanvasRenderingContext2D extends js.Object { def isPointInPath(x: Double, y: Double, fillRule: String): Boolean = js.native - /** Reports whether or not the specified point is contained in the current path. - */ + /** Reports whether or not the specified point is contained in the current path. */ def isPointInPath(x: Double, y: Double): Boolean = js.native def quadraticCurveTo(cpx: Double, cpy: Double, x: Double, y: Double): Unit = js.native @@ -2462,8 +2273,7 @@ class CanvasRenderingContext2D extends js.Object { def fillText(text: String, x: Double, y: Double, maxWidth: Double = js.native): Unit = js.native - /** Moves the origin point of the context to (x, y). - */ + /** Moves the origin point of the context to (x, y). */ def translate(x: Double, y: Double): Unit = js.native def scale(x: Double, y: Double): Unit = js.native @@ -2471,16 +2281,13 @@ class CanvasRenderingContext2D extends js.Object { def createRadialGradient(x0: Double, y0: Double, r0: Double, x1: Double, y1: Double, r1: Double): CanvasGradient = js.native - /** Connects the last point in the subpath to the x, y coordinates with a straight line. - */ + /** Connects the last point in the subpath to the x, y coordinates with a straight line. */ def lineTo(x: Double, y: Double): Unit = js.native - /** Returns a dash list array containing an even number of non-negative numbers. - */ + /** Returns a dash list array containing an even number of non-negative numbers. */ def getLineDash(): js.Array[Double] = js.native - /** Fills the subpaths with the current fill style. - */ + /** Fills the subpaths with the current fill style. */ def fill(): Unit = js.native /** Creates a new, blank ImageData object with the specified dimensions. All of the pixels in the new object are @@ -2506,8 +2313,7 @@ class CanvasRenderingContext2D extends js.Object { */ def clearRect(x: Double, y: Double, w: Double, h: Double): Unit = js.native - /** Moves the starting point of a new subpath to the (x, y) coordinates. - */ + /** Moves the starting point of a new subpath to the (x, y) coordinates. */ def moveTo(x: Double, y: Double): Unit = js.native /** Returns an ImageData object representing the underlying pixel data for the area of the canvas denoted by the @@ -2515,8 +2321,7 @@ class CanvasRenderingContext2D extends js.Object { */ def getImageData(sx: Double, sy: Double, sw: Double, sh: Double): ImageData = js.native - /** Draws a filled rectangle at (x, y) position whose size is determined by width and height. - */ + /** Draws a filled rectangle at (x, y) position whose size is determined by width and height. */ def fillRect(x: Double, y: Double, w: Double, h: Double): Unit = js.native def bezierCurveTo(cp1x: Double, cp1y: Double, cp2x: Double, cp2y: Double, x: Double, y: Double): Unit = js.native @@ -2530,8 +2335,7 @@ class CanvasRenderingContext2D extends js.Object { def transform(m11: Double, m12: Double, m21: Double, m22: Double, dx: Double, dy: Double): Unit = js.native - /** Strokes the subpaths with the current stroke style. - */ + /** Strokes the subpaths with the current stroke style. */ def stroke(): Unit = js.native /** Paints a rectangle which has a starting point at (x, y) and has a w width and an h height onto the canvas, using @@ -2543,12 +2347,10 @@ class CanvasRenderingContext2D extends js.Object { def strokeText(text: String, x: Double, y: Double, maxWidth: Double = js.native): Unit = js.native - /** Starts a new path by resetting the list of sub-paths. Call this method when you want to create a new path. - */ + /** Starts a new path by resetting the list of sub-paths. Call this method when you want to create a new path. */ def beginPath(): Unit = js.native - /** Adds an arc with the given control points and radius, connected to the previous point by a straight line. - */ + /** Adds an arc with the given control points and radius, connected to the previous point by a straight line. */ def arcTo(x1: Double, y1: Double, x2: Double, y2: Double, radius: Double): Unit = js.native def createLinearGradient(x0: Double, y0: Double, x1: Double, y1: Double): CanvasGradient = js.native @@ -2584,8 +2386,7 @@ class XMLHttpRequest extends EventTarget { */ def readyState: Int = js.native - /** The response to the request as text, or null if the request was unsuccessful or has not yet been sent. - */ + /** The response to the request as text, or null if the request was unsuccessful or has not yet been sent. */ def responseText: String = js.native /** The response to the request as a DOM Document object, or null if the request was unsuccessful, has not yet been @@ -2633,8 +2434,7 @@ class XMLHttpRequest extends EventTarget { */ def send(data: js.Any = js.native): Unit = js.native - /** Aborts the request if it has already been sent. - */ + /** Aborts the request if it has already been sent. */ def abort(): Unit = js.native /** The XMLHttpRequest method overrideMimeType() specifies a MIME type other than the one provided by the server to be @@ -2686,8 +2486,7 @@ class XMLHttpRequest extends EventTarget { var responseType: String = js.native var onloadend: js.Function1[ProgressEvent, _] = js.native - /** The upload process can be tracked by adding an event listener to upload. - */ + /** The upload process can be tracked by adding an event listener to upload. */ var upload: XMLHttpRequestEventTarget = js.native var onerror: js.Function1[ProgressEvent, _] = js.native var onloadstart: js.Function1[ProgressEvent, _] = js.native @@ -2714,24 +2513,19 @@ class Screen extends js.Object { */ def width: Double = js.native - /** Returns the amount of vertical space available to the window on the screen. - */ + /** Returns the amount of vertical space available to the window on the screen. */ def availHeight: Double = js.native - /** Returns the height of the screen in pixels. - */ + /** Returns the height of the screen in pixels. */ def height: Double = js.native - /** Returns the color depth of the screen. - */ + /** Returns the color depth of the screen. */ def colorDepth: Int = js.native - /** Returns the amount of horizontal space in pixels available to the window. - */ + /** Returns the amount of horizontal space in pixels available to the window. */ def availWidth: Double = js.native - /** Returns the bit depth of the screen. - */ + /** Returns the bit depth of the screen. */ def pixelDepth: Int = js.native } @@ -2914,12 +2708,10 @@ trait DataTransfer extends js.Object { trait ClipboardEventInit extends EventInit { - /** The data for this clipboard event. - */ + /** The data for this clipboard event. */ var data: js.UndefOr[String] = js.undefined - /** The MIME type of the data. - */ + /** The MIME type of the data. */ var dataType: js.UndefOr[String] = js.undefined } @@ -2941,8 +2733,7 @@ trait FocusEventInit extends UIEventInit { val relatedTarget: js.UndefOr[EventTarget] = js.undefined } -/** The FocusEvent interface represents focus-related events like focus, blur, focusin, or focusout. - */ +/** The FocusEvent interface represents focus-related events like focus, blur, focusin, or focusout. */ @js.native @JSGlobal class FocusEvent(typeArg: String, init: js.UndefOr[FocusEventInit] = js.undefined) extends UIEvent(typeArg, init) { @@ -2995,8 +2786,7 @@ class Range extends js.Object { */ def commonAncestorContainer: Node = js.native - /** The Range.setStart() method sets the start position of a Range. - */ + /** The Range.setStart() method sets the start position of a Range. */ def setStart(refNode: Node, offset: Int): Unit = js.native /** The Range.setEndBefore() method sets the end position of a Range relative to another Node. The parent Node of end @@ -3025,32 +2815,25 @@ class Range extends js.Object { */ def getBoundingClientRect(): DOMRect = js.native - /** The Range.compareBoundaryPoints() method compares the boundary points of the Range with another one. - */ + /** The Range.compareBoundaryPoints() method compares the boundary points of the Range with another one. */ def compareBoundaryPoints(how: Int, sourceRange: Range): Int = js.native - /** The Range.insertNode() method inserts a node at the start of the Range. - */ + /** The Range.insertNode() method inserts a node at the start of the Range. */ def insertNode(newNode: Node): Unit = js.native - /** The Range.collapse() method collapses the Range to one of its boundary points. - */ + /** The Range.collapse() method collapses the Range to one of its boundary points. */ def collapse(toStart: Boolean): Unit = js.native - /** The Range.selectNodeContents() sets the Range to contain the contents of a Node. - */ + /** The Range.selectNodeContents() sets the Range to contain the contents of a Node. */ def selectNodeContents(refNode: Node): Unit = js.native - /** The Range.cloneContents() returns a DocumentFragment copying the objects of type Node included in the Range. - */ + /** The Range.cloneContents() returns a DocumentFragment copying the objects of type Node included in the Range. */ def cloneContents(): DocumentFragment = js.native - /** The Range.setEnd() method sets the end position of a Range. - */ + /** The Range.setEnd() method sets the end position of a Range. */ def setEnd(refNode: Node, offset: Int): Unit = js.native - /** The Range.cloneRange() method returns a Range object with boundary points identical to the cloned Range. - */ + /** The Range.cloneRange() method returns a Range object with boundary points identical to the cloned Range. */ def cloneRange(): Range = js.native /** The Range.getClientRects() method returns a list of ClientRect objects representing the area of the screen @@ -3064,8 +2847,7 @@ class Range extends js.Object { */ def surroundContents(newParent: Node): Unit = js.native - /** The Range.deleteContents() removes the contents of the Range from the Document. - */ + /** The Range.deleteContents() removes the contents of the Range from the Document. */ def deleteContents(): Unit = js.native /** The Range.setStartAfter() method sets the start position of a Range relative to a Node. The parent Node of the @@ -3073,8 +2855,7 @@ class Range extends js.Object { */ def setStartAfter(refNode: Node): Unit = js.native - /** The Range.extractContents() method moves contents of the Range from the document tree into a DocumentFragment. - */ + /** The Range.extractContents() method moves contents of the Range from the document tree into a DocumentFragment. */ def extractContents(): DocumentFragment = js.native /** The Range.setEndAfter() method sets the end position of a Range relative to another Node. The parent Node of end @@ -3121,8 +2902,7 @@ class Storage extends js.Object { def key(index: Int): String = js.native } -/** The DocumentType interface represents a Node containing a doctype. - */ +/** The DocumentType interface represents a Node containing a doctype. */ @js.native @JSGlobal abstract class DocumentType extends Node { @@ -3140,8 +2920,7 @@ abstract class DocumentType extends Node { @JSGlobal class MutationObserver(callback: js.Function2[js.Array[MutationRecord], MutationObserver, _]) extends js.Object { - /** Registers the MutationObserver instance to receive notifications of DOM mutations on the specified node. - */ + /** Registers the MutationObserver instance to receive notifications of DOM mutations on the specified node. */ def observe(target: Node, options: MutationObserverInit): Unit = js.native /** Stops the MutationObserver instance from receiving notifications of DOM mutations. Until the observe() method is @@ -3149,8 +2928,7 @@ class MutationObserver(callback: js.Function2[js.Array[MutationRecord], Mutation */ def disconnect(): Unit = js.native - /** Empties the MutationObserver instance's record queue and returns what was in there. - */ + /** Empties the MutationObserver instance's record queue and returns what was in there. */ def takeRecords(): js.Array[MutationRecord] = js.native } @@ -3166,24 +2944,19 @@ trait MutationObserverInit extends js.Object { */ var childList: js.UndefOr[Boolean] = js.native - /** Set to true if mutations to target's attributes are to be observed. - */ + /** Set to true if mutations to target's attributes are to be observed. */ var attributes: js.UndefOr[Boolean] = js.native - /** Set to true if mutations to target's data are to be observed. - */ + /** Set to true if mutations to target's data are to be observed. */ var characterData: js.UndefOr[Boolean] = js.native - /** Set to true if mutations to not just target, but also target's descendants are to be observed. - */ + /** Set to true if mutations to not just target, but also target's descendants are to be observed. */ var subtree: js.UndefOr[Boolean] = js.native - /** Set to true if attributes is set to true and target's attribute value before the mutation needs to be recorded. - */ + /** Set to true if attributes is set to true and target's attribute value before the mutation needs to be recorded. */ var attributeOldValue: js.UndefOr[Boolean] = js.native - /** Set to true if characterData is set to true and target's data before the mutation needs to be recorded. - */ + /** Set to true if characterData is set to true and target's data before the mutation needs to be recorded. */ var characterDataOldValue: js.UndefOr[Boolean] = js.native /** Set to an array of attribute local names (without namespace) if not all attribute mutations need to be observed. @@ -3218,8 +2991,7 @@ object MutationObserverInit { } } -/** MutationRecord is the object that will be passed to the observer's callback. It has the following properties: - */ +/** MutationRecord is the object that will be passed to the observer's callback. It has the following properties: */ @js.native trait MutationRecord extends js.Object { @@ -3233,28 +3005,22 @@ trait MutationRecord extends js.Object { */ def target: Node = js.native - /** Return the nodes added. Will be an empty NodeList if no nodes were added. - */ + /** Return the nodes added. Will be an empty NodeList if no nodes were added. */ def addedNodes: NodeList[Node] = js.native - /** Return the nodes removed. Will be an empty NodeList if no nodes were removed. - */ + /** Return the nodes removed. Will be an empty NodeList if no nodes were removed. */ def removedNodes: NodeList[Node] = js.native - /** Return the previous sibling of the added or removed nodes, or null. - */ + /** Return the previous sibling of the added or removed nodes, or null. */ def previousSibling: Node = js.native - /** Return the next sibling of the added or removed nodes, or null. - */ + /** Return the next sibling of the added or removed nodes, or null. */ def nextSibling: Node = js.native - /** Returns the local name of the changed attribute, or null. - */ + /** Returns the local name of the changed attribute, or null. */ def attributeName: String = js.native - /** Returns the namespace of the changed attribute, or null. - */ + /** Returns the namespace of the changed attribute, or null. */ def attributeNamespace: String = js.native /** The return value depends on the type. For attributes, it is the value of the changed attribute before the change. @@ -3268,8 +3034,7 @@ trait DragEvent extends MouseEvent { def dataTransfer: DataTransfer = js.native } -/** The PerformanceTiming interface represents timing-related performance information for the given page. - */ +/** The PerformanceTiming interface represents timing-related performance information for the given page. */ @js.native @JSGlobal class PerformanceTiming extends js.Object { @@ -3400,8 +3165,7 @@ class PerformanceTiming extends js.Object { */ def domContentLoadedEventEnd: Double = js.native - /** Is a jsonizer returning a JSON object representing the specific PerformanceTiming object. - */ + /** Is a jsonizer returning a JSON object representing the specific PerformanceTiming object. */ def toJSON(): js.Dynamic = js.native } @@ -3422,8 +3186,7 @@ object EventException extends js.Object { val UNSPECIFIED_EVENT_TYPE_ERR: Int = js.native } -/** The NavigatorOnLine interface contains methods and properties related to the connectivity status of the browser. - */ +/** The NavigatorOnLine interface contains methods and properties related to the connectivity status of the browser. */ @js.native trait NavigatorOnLine extends js.Object { @@ -3435,8 +3198,7 @@ trait NavigatorOnLine extends js.Object { def onLine: Boolean = js.native } -/** NavigatorLanguage contains methods and properties related to the language of the navigator. - */ +/** NavigatorLanguage contains methods and properties related to the language of the navigator. */ @js.native trait NavigatorLanguage extends js.Object { @@ -3480,36 +3242,28 @@ trait NavigatorVibration extends js.Object { @js.native trait Location extends js.Object { - /** Is a DOMString containing a '#' followed by the fragment identifier of the URL. - */ + /** Is a DOMString containing a '#' followed by the fragment identifier of the URL. */ var hash: String = js.native - /** Is a DOMString containing the protocol scheme of the URL, including the final ':'. - */ + /** Is a DOMString containing the protocol scheme of the URL, including the final ':'. */ var protocol: String = js.native - /** Is a DOMString containing a '?' followed by the parameters of the URL. - */ + /** Is a DOMString containing a '?' followed by the parameters of the URL. */ var search: String = js.native - /** Is a DOMString containing the whole URL. - */ + /** Is a DOMString containing the whole URL. */ var href: String = js.native - /** Is a DOMString containing the domain of the URL. - */ + /** Is a DOMString containing the domain of the URL. */ var hostname: String = js.native - /** Is a DOMString containing the port number of the URL. - */ + /** Is a DOMString containing the port number of the URL. */ var port: String = js.native - /** Is a DOMString containing an initial '/' followed by the path of the URL. - */ + /** Is a DOMString containing an initial '/' followed by the path of the URL. */ var pathname: String = js.native - /** Is a DOMString containing the host, that is the hostname, a ':', and the port of the URL. - */ + /** Is a DOMString containing the host, that is the hostname, a ':', and the port of the URL. */ var host: String = js.native /** The origin read-only property is a String containing the Unicode serialization of the origin of the represented @@ -3533,8 +3287,7 @@ trait Location extends js.Object { */ def replace(url: String): Unit = js.native - /** The Location.assign()method loading the object at the URL providing in parameter. - */ + /** The Location.assign()method loading the object at the URL providing in parameter. */ def assign(url: String): Unit = js.native } @@ -3555,18 +3308,15 @@ trait UIEventInit extends EventInit { val view: js.UndefOr[Window] = js.undefined } -/** The DOM UIEvent represents simple user interface events. - */ +/** The DOM UIEvent represents simple user interface events. */ @js.native @JSGlobal class UIEvent(typeArg: String, init: js.UndefOr[UIEventInit] = js.undefined) extends Event(typeArg, init) { - /** Detail about the event, depending on the type of event. Read only. - */ + /** Detail about the event, depending on the type of event. Read only. */ def detail: Int = js.native - /** A view which generated the event. Read only. - */ + /** A view which generated the event. Read only. */ def view: Window = js.native } @@ -3577,26 +3327,21 @@ trait WheelEventInit extends MouseEventInit { var deltaMode: js.UndefOr[Int] = js.undefined } -/** The DOM WheelEvent represents events that occur due to the user moving a mouse wheel or similar input device. - */ +/** The DOM WheelEvent represents events that occur due to the user moving a mouse wheel or similar input device. */ @js.native @JSGlobal class WheelEvent(typeArg: String, init: js.UndefOr[WheelEventInit]) extends MouseEvent(typeArg, init) { - /** Scroll amount for the z-axis. Read only. - */ + /** Scroll amount for the z-axis. Read only. */ def deltaZ: Double = js.native - /** Horizontal scroll amount. Read only. - */ + /** Horizontal scroll amount. Read only. */ def deltaX: Double = js.native - /** Unit of delta values. See Delta modes for a list of permitted values. Read only. - */ + /** Unit of delta values. See Delta modes for a list of permitted values. Read only. */ def deltaMode: Int = js.native - /** Vertical scroll amount. Read only. - */ + /** Vertical scroll amount. Read only. */ def deltaY: Double = js.native } @@ -3604,16 +3349,13 @@ class WheelEvent(typeArg: String, init: js.UndefOr[WheelEventInit]) extends Mous @JSGlobal object WheelEvent extends js.Object { /* ??? ConstructorMember(FunSignature(List(),List(),Some(TypeRef(TypeName(WheelEvent),List())))) */ - /** The delta values are specified in pixels. - */ + /** The delta values are specified in pixels. */ val DOM_DELTA_PIXEL: Int = js.native - /** The delta values are specified in lines. - */ + /** The delta values are specified in lines. */ val DOM_DELTA_LINE: Int = js.native - /** The delta values are specified in pages. - */ + /** The delta values are specified in pages. */ val DOM_DELTA_PAGE: Int = js.native } @@ -3641,8 +3383,7 @@ class Text extends CharacterData { def splitText(offset: Int): Text = js.native } -/** The PositionError interface represents the reason of an error occuring when using the geolocating device. - */ +/** The PositionError interface represents the reason of an error occuring when using the geolocating device. */ @js.native trait PositionError extends js.Object { @@ -3687,14 +3428,12 @@ trait CustomEventInit extends EventInit { var detail: js.UndefOr[Any] = js.undefined } -/** The DOM CustomEvent are events initialized by an application for any purpose. - */ +/** The DOM CustomEvent are events initialized by an application for any purpose. */ @js.native @JSGlobal class CustomEvent(typeArg: String, init: js.UndefOr[CustomEventInit]) extends Event(typeArg, init) { - /** The data passed when initializing the event. - */ + /** The data passed when initializing the event. */ def detail: Any = js.native } @@ -3713,8 +3452,7 @@ trait Geolocation extends js.Object { def getCurrentPosition(successCallback: js.Function1[Position, _], errorCallback: js.Function1[PositionError, _], options: PositionOptions = js.native): Unit = js.native - /** The Geolocation.getCurrentPosition() method is used to get the current position of the device. - */ + /** The Geolocation.getCurrentPosition() method is used to get the current position of the device. */ def getCurrentPosition(successCallback: js.Function1[Position, _]): Unit = js.native /** The Geolocation.watchPosition() method is used to register a handler function that will be called automatically @@ -3796,16 +3534,13 @@ class History extends js.Object { @JSGlobal class TimeRanges extends js.Object { - /** Returns the number of ranges in the object. - */ + /** Returns the number of ranges in the object. */ def length: Int = js.native - /** Returns the time for the start of the range with the specified index. - */ + /** Returns the time for the start of the range with the specified index. */ def start(index: Int): Double = js.native - /** Returns the time offset at which a specified time range ends. - */ + /** Returns the time offset at which a specified time range ends. */ def end(index: Int): Double = js.native } @@ -3833,12 +3568,10 @@ trait EventInit extends js.Object { @JSGlobal class Event(typeArg: String, init: js.UndefOr[EventInit] = js.undefined) extends js.Object { - /** Returns the time (in milliseconds since the epoch) at which the event was created. - */ + /** Returns the time (in milliseconds since the epoch) at which the event was created. */ def timeStamp: Double = js.native - /** Returns a boolean indicating whether or not event.preventDefault() was called on the event. - */ + /** Returns a boolean indicating whether or not event.preventDefault() was called on the event. */ def defaultPrevented: Boolean = js.native /** Indicates whether or not the event was initiated by the browser (after a user click for instance) or by a script @@ -3852,8 +3585,7 @@ class Event(typeArg: String, init: js.UndefOr[EventInit] = js.undefined) extends */ def currentTarget: EventTarget = js.native - /** A boolean indicating whether the bubbling of the event has been canceled or not. - */ + /** A boolean indicating whether the bubbling of the event has been canceled or not. */ def cancelBubble: Boolean = js.native /** This property of event objects is the object the event was dispatched on. It is different than event.currentTarget @@ -3861,22 +3593,18 @@ class Event(typeArg: String, init: js.UndefOr[EventInit] = js.undefined) extends */ def target: EventTarget = js.native - /** Indicates which phase of the event flow is currently being evaluated. - */ + /** Indicates which phase of the event flow is currently being evaluated. */ def eventPhase: Int = js.native - /** A boolean indicating whether the event is cancelable. - */ + /** A boolean indicating whether the event is cancelable. */ def cancelable: Boolean = js.native def `type`: String = js.native - /** A boolean indicating whether the event bubbles up through the DOM or not. - */ + /** A boolean indicating whether the event bubbles up through the DOM or not. */ def bubbles: Boolean = js.native - /** Stops the propagation of events further along in the DOM. - */ + /** Stops the propagation of events further along in the DOM. */ def stopPropagation(): Unit = js.native /** For this particular event, no other listener will be called. Neither those attached on the same element, nor those @@ -3884,8 +3612,7 @@ class Event(typeArg: String, init: js.UndefOr[EventInit] = js.undefined) extends */ def stopImmediatePropagation(): Unit = js.native - /** Cancels the event if it is cancelable, without stopping further propagation of the event. - */ + /** Cancels the event if it is cancelable, without stopping further propagation of the event. */ def preventDefault(): Unit = js.native } @@ -3907,8 +3634,7 @@ object Event extends js.Object { @JSGlobal class ImageData extends js.Object { - /** Is an unsigned long representing the actual width, in pixels, of the ImageData. - */ + /** Is an unsigned long representing the actual width, in pixels, of the ImageData. */ def width: Int = js.native /** Is a Uint8ClampedArray representing a one-dimensional array containing the data in the RGBA order, with integer @@ -3916,8 +3642,7 @@ class ImageData extends js.Object { */ def data: js.Array[Int] = js.native - /** Is an unsigned long representing the actual height, in pixels, of the ImageData. - */ + /** Is an unsigned long representing the actual height, in pixels, of the ImageData. */ def height: Int = js.native } @@ -4072,32 +3797,25 @@ class DOMParser extends js.Object { @JSGlobal class StyleSheet extends js.Object { - /** Returns a DOMString representing the location of the stylesheet. - */ + /** Returns a DOMString representing the location of the stylesheet. */ def href: String = js.native - /** Is a Boolean representing whether the current stylesheet has been applied or not. - */ + /** Is a Boolean representing whether the current stylesheet has been applied or not. */ def disabled: Boolean = js.native - /** ownerNode returns the node that associates this style sheet with the document. - */ + /** ownerNode returns the node that associates this style sheet with the document. */ def ownerNode: Node = js.native - /** Returns a StyleSheet including this one, if any; returns null if there aren't any. - */ + /** Returns a StyleSheet including this one, if any; returns null if there aren't any. */ def parentStyleSheet: StyleSheet = js.native - /** Returns a MediaList representing the intended destination medium for style information. - */ + /** Returns a MediaList representing the intended destination medium for style information. */ def media: MediaList = js.native - /** Returns a DOMString representing the style sheet language for this style sheet. - */ + /** Returns a DOMString representing the style sheet language for this style sheet. */ def `type`: String = js.native - /** Returns a DOMString representing the advisory title of the current style sheet. - */ + /** Returns a DOMString representing the advisory title of the current style sheet. */ def title: String = js.native } @@ -4192,8 +3910,7 @@ object NodeFilter extends js.Object { val FILTER_REJECT: Int = js.native val SHOW_CDATA_SECTION: Int = js.native - /** Value returned by the NodeFilter.acceptNode() method when a node should be accepted. - */ + /** Value returned by the NodeFilter.acceptNode() method when a node should be accepted. */ val FILTER_ACCEPT: Int = js.native val SHOW_ALL: Int = js.native val SHOW_DOCUMENT_TYPE: Int = js.native @@ -4275,8 +3992,7 @@ trait StorageEventInit extends EventInit { var key: js.UndefOr[String] = js.undefined } -/** A StorageEvent is sent to a window when a storage area changes. - */ +/** A StorageEvent is sent to a window when a storage area changes. */ @js.native @JSGlobal class StorageEvent(typeArg: String, init: js.UndefOr[StorageEventInit]) extends Event(typeArg, init) { @@ -4291,12 +4007,10 @@ class StorageEvent(typeArg: String, init: js.UndefOr[StorageEventInit]) extends */ def newValue: String = js.native - /** The URL of the document whose key changed. Read only. - */ + /** The URL of the document whose key changed. Read only. */ def url: String = js.native - /** Represents the Storage object that was affected. Read only. - */ + /** Represents the Storage object that was affected. Read only. */ def storageArea: Storage = js.native /** Represents the key changed. The key attribute is null when the change is caused by the storage clear() method. @@ -4313,12 +4027,10 @@ class StorageEvent(typeArg: String, init: js.UndefOr[StorageEventInit]) extends @JSGlobal abstract class CharacterData extends Node with NonDocumentTypeChildNode { - /** Returns an unsigned long representing the size of the string contained in CharacterData.data. - */ + /** Returns an unsigned long representing the size of the string contained in CharacterData.data. */ def length: Int = js.native - /** Is a DOMString representing the textual data contained in this object. - */ + /** Is a DOMString representing the textual data contained in this object. */ var data: String = js.native /** Removes the specified amount of characters, starting at the specified offset, from the CharacterData.data string; @@ -4347,18 +4059,15 @@ abstract class CharacterData extends Node with NonDocumentTypeChildNode { def substringData(offset: Int, count: Int): String = js.native } -/** The DOMException interface represents an anormal event happening when a method or a property is used. - */ +/** The DOMException interface represents an anormal event happening when a method or a property is used. */ @js.native @JSGlobal class DOMException extends js.Object { - /** Returns a DOMString representing a message or description associated with the given error name. - */ + /** Returns a DOMString representing a message or description associated with the given error name. */ def message: String = js.native - /** Returns a DOMString that contains one of the strings associated with an error name. - */ + /** Returns a DOMString that contains one of the strings associated with an error name. */ def name: String = js.native } @@ -4401,8 +4110,7 @@ object DOMException extends js.Object { @JSGlobal class Attr extends Node { - /** This property now always returns true. - */ + /** This property now always returns true. */ def specified: Boolean = js.native /** The element holding the attribute. @@ -4415,16 +4123,13 @@ class Attr extends Node { */ def ownerElement: Element = js.native - /** The attribute's value. - */ + /** The attribute's value. */ var value: String = js.native - /** The attribute's name. - */ + /** The attribute's name. */ def name: String = js.native - /** A DOMString representing the namespace prefix of the attribute, or null if no prefix is specified. - */ + /** A DOMString representing the namespace prefix of the attribute, or null if no prefix is specified. */ def prefix: String = js.native } @@ -4441,8 +4146,7 @@ class PerformanceNavigation extends js.Object { def `type`: Int = js.native - /** Is a jsonizer returning a json object representing the PerformanceNavigation object. - */ + /** Is a jsonizer returning a json object representing the PerformanceNavigation object. */ def toJSON(): js.Dynamic = js.native } @@ -4456,13 +4160,11 @@ object PerformanceNavigation extends js.Object { val TYPE_NAVIGATE: Int = js.native } -/** The LinkStyle interface allows to access the associated CSS style sheet of a node. - */ +/** The LinkStyle interface allows to access the associated CSS style sheet of a node. */ @js.native trait LinkStyle extends js.Object { - /** Returns the StyleSheet object associated with the given element, or null if there is none. - */ + /** Returns the StyleSheet object associated with the given element, or null if there is none. */ def sheet: StyleSheet = js.native } @@ -4473,22 +4175,18 @@ class DOMRectList extends DOMList[DOMRect] @js.native trait External extends js.Object -/** The ErrorEvent interface represents events providing information related to errors in scripts or in files. - */ +/** The ErrorEvent interface represents events providing information related to errors in scripts or in files. */ @js.native trait ErrorEvent extends Event { def colno: Int = js.native - /** Is a DOMString containing the name of the script file in which the error occurred. - */ + /** Is a DOMString containing the name of the script file in which the error occurred. */ def filename: String = js.native - /** Is an integer containing the line number of the script file on which the error occurred. - */ + /** Is an integer containing the line number of the script file on which the error occurred. */ def lineno: Int = js.native - /** Is a DOMString containing a human-readable error message describing the problem. - */ + /** Is a DOMString containing a human-readable error message describing the problem. */ def message: String = js.native } @@ -4539,8 +4237,7 @@ class MessageChannel extends js.Object { def port1: MessagePort = js.native } -/** The TransitionEvent interface represents events providing information related to transitions. - */ +/** The TransitionEvent interface represents events providing information related to transitions. */ @js.native trait TransitionEvent extends Event { def propertyName: String = js.native @@ -4557,12 +4254,10 @@ trait TransitionEvent extends Event { @js.native trait MediaQueryList extends js.Object { - /** true if the document currently matches the media query list; otherwise false. Read only. - */ + /** true if the document currently matches the media query list; otherwise false. Read only. */ def matches: Boolean = js.native - /** The serialized media query list - */ + /** The serialized media query list */ var media: String = js.native /** Adds a new listener to the media query list. If the specified listener is already in the list, this method has no @@ -4570,8 +4265,7 @@ trait MediaQueryList extends js.Object { */ def addListener(listener: MediaQueryListListener): Unit = js.native - /** Removes a listener from the media query list. Does nothing if the specified listener isn't already in the list. - */ + /** Removes a listener from the media query list. Does nothing if the specified listener isn't already in the list. */ def removeListener(listener: MediaQueryListListener): Unit = js.native } @@ -4581,8 +4275,7 @@ trait MediaQueryList extends js.Object { @js.native trait CloseEvent extends Event { - /** Indicates whether or not the connection was cleanly closed. - */ + /** Indicates whether or not the connection was cleanly closed. */ def wasClean: Boolean = js.native /** A string indicating the reason the server closed the connection. This is specific to the particular server and @@ -4590,8 +4283,7 @@ trait CloseEvent extends Event { */ def reason: String = js.native - /** The WebSocket connection close code provided by the server. See Close codes for possible values. - */ + /** The WebSocket connection close code provided by the server. See Close codes for possible values. */ def code: Int = js.native } @@ -4609,8 +4301,7 @@ trait CloseEvent extends Event { class WebSocket(var url: String = js.native, var protocol: String = js.native) extends EventTarget { def this(url: String, protocol: js.Array[String]) = this("", "") - /** The current state of the connection; this is one of the Ready state constants. Read only. - */ + /** The current state of the connection; this is one of the Ready state constants. Read only. */ def readyState: Int = js.native /** The number of bytes of data that have been queued using calls to send() but not yet transmitted to the network. @@ -4639,8 +4330,7 @@ class WebSocket(var url: String = js.native, var protocol: String = js.native) e */ var onclose: js.Function1[CloseEvent, _] = js.native - /** An event listener to be called when an error occurs. This is a simple event named "error". - */ + /** An event listener to be called when an error occurs. This is a simple event named "error". */ var onerror: js.Function1[Event, _] = js.native /** A string indicating the type of binary data being transmitted by the connection. This should be either "blob" if @@ -4653,8 +4343,7 @@ class WebSocket(var url: String = js.native, var protocol: String = js.native) e */ def close(code: Int = js.native, reason: String = js.native): Unit = js.native - /** Transmits data to the server over the WebSocket connection. - */ + /** Transmits data to the server over the WebSocket connection. */ def send(data: String): Unit = js.native def send(data: Blob): Unit = js.native def send(data: ArrayBuffer): Unit = js.native @@ -4664,17 +4353,14 @@ class WebSocket(var url: String = js.native, var protocol: String = js.native) e @JSGlobal object WebSocket extends js.Object { - /** The connection is open and ready to communicate. - */ + /** The connection is open and ready to communicate. */ val OPEN: Int = js.native - /** The connection is in the process of closing. - */ + /** The connection is in the process of closing. */ val CLOSING: Int = js.native val CONNECTING: Int = js.native - /** The connection is closed or couldn't be opened. - */ + /** The connection is closed or couldn't be opened. */ val CLOSED: Int = js.native } @@ -4701,8 +4387,7 @@ class EventSource(URL: String, settings: js.Dynamic = null) extends EventTarget */ def withCredentials: Boolean = js.native - /** The readyState attribute represents the state of the connection. W3C 2012 - */ + /** The readyState attribute represents the state of the connection. W3C 2012 */ def readyState: Int = js.native var onopen: js.Function1[Event, _] = js.native @@ -4721,12 +4406,10 @@ class EventSource(URL: String, settings: js.Dynamic = null) extends EventTarget @JSGlobal object EventSource extends js.Object { - /** The connection has not yet been established, or it was closed and the user agent is reconnecting. W3C 2012 - */ + /** The connection has not yet been established, or it was closed and the user agent is reconnecting. W3C 2012 */ val CONNECTING: Int = js.native - /** The user agent has an open connection and is dispatching events as it receives them. W3C 2012 - */ + /** The user agent has an open connection and is dispatching events as it receives them. W3C 2012 */ val OPEN: Int = js.native /** The connection is not open, and the user agent is not trying to reconnect. Either there was a fatal error or the @@ -4784,8 +4467,7 @@ class FileList private[this] () extends DOMList[File] { @JSGlobal abstract class File extends Blob { - /** Returns the name of the file. For security reasons, the path is excluded from this property. - */ + /** Returns the name of the file. For security reasons, the path is excluded from this property. */ def name: String = js.native } @@ -4795,16 +4477,13 @@ abstract class File extends Blob { @js.native trait XMLHttpRequestEventTarget extends EventTarget { - /** A function that is called periodically with information about the progress of the request. - */ + /** A function that is called periodically with information about the progress of the request. */ var onprogress: js.Function1[ProgressEvent, _] = js.native - /** The function to call when a request encounters an error. - */ + /** The function to call when a request encounters an error. */ var onerror: js.Function1[ProgressEvent, _] = js.native - /** The function to call when an HTTP request returns after successfully loading content. - */ + /** The function to call when an HTTP request returns after successfully loading content. */ var onload: js.Function1[ProgressEvent, _] = js.native /** A function that is called if the event times out; this only happens if a timeout has been previously established @@ -4812,16 +4491,13 @@ trait XMLHttpRequestEventTarget extends EventTarget { */ var ontimeout: js.Function1[ProgressEvent, _] = js.native - /** The function to call when a request is aborted. - */ + /** The function to call when a request is aborted. */ var onabort: js.Function1[ProgressEvent, _] = js.native - /** A function that gets called when the HTTP request first begins loading data. - */ + /** A function that gets called when the HTTP request first begins loading data. */ var onloadstart: js.Function1[ProgressEvent, _] = js.native - /** A function that is called when the load is completed, even if the request failed. - */ + /** A function that is called when the load is completed, even if the request failed. */ var onloadend: js.Function1[ProgressEvent, _] = js.native } @@ -4834,8 +4510,7 @@ trait AudioTrackList extends EventTarget with DOMList[AudioTrack] { def getTrackById(id: String): AudioTrack = js.native } -/** The AnimationEvent interface represents events providing information related to animations. - */ +/** The AnimationEvent interface represents events providing information related to animations. */ @js.native trait AnimationEvent extends Event { @@ -4937,8 +4612,7 @@ trait Console extends js.Object { */ def table(data: js.Object | js.Array[_], columns: js.UndefOr[Int] = js.undefined): Unit = js.native - /** Outputs a stack trace to the Web Console. - */ + /** Outputs a stack trace to the Web Console. */ def trace(): Unit = js.native def profileEnd(): Unit = js.native @@ -4949,8 +4623,7 @@ trait Console extends js.Object { */ def time(label: String): Unit = js.native - /** Stops a timer that was previously started by calling console.time(). - */ + /** Stops a timer that was previously started by calling console.time(). */ def timeEnd(label: String): Unit = js.native /** Logs the number of times that this particular call to count() has been called. This function takes an optional @@ -4958,8 +4631,7 @@ trait Console extends js.Object { */ def count(label: String = "default"): Unit = js.native - /** Resets the counter. This function takes an optional argument label. - */ + /** Resets the counter. This function takes an optional argument label. */ def countReset(label: String = "default"): Unit = js.native /** Creates a new inline group in the Web Console log. This indents following console messages by an additional level, @@ -4975,25 +4647,21 @@ trait Console extends js.Object { */ def groupCollapsed(label: js.UndefOr[String] = js.undefined): Unit = js.native - /** Exits the current inline group in the Web Console. - */ + /** Exits the current inline group in the Web Console. */ def groupEnd(): Unit = js.native } @js.native trait WindowBase64 extends js.Object { - /** Creates a base-64 encoded ASCII string from a "string" of binary data. - */ + /** Creates a base-64 encoded ASCII string from a "string" of binary data. */ def btoa(rawString: String): String = js.native - /** Decodes a string of data which has been encoded using base-64 encoding. - */ + /** Decodes a string of data which has been encoded using base-64 encoding. */ def atob(encodedString: String): String = js.native } -/** A type returned by DOMConfiguration.parameterNames which contains a list of DOMString (strings). - */ +/** A type returned by DOMConfiguration.parameterNames which contains a list of DOMString (strings). */ @js.native @JSGlobal class DOMStringList private[this] () extends DOMList[String] { @@ -5056,8 +4724,7 @@ trait MessagePort extends EventTarget { */ var onmessage: js.Function1[MessageEvent, _] = js.native - /** Disconnects the port,so it is no longer active. This stops the flow of messages to that port. - */ + /** Disconnects the port,so it is no longer active. This stops the flow of messages to that port. */ def close(): Unit = js.native /** Sends a message from the port, and optionally, transfers ownership of objects to other browsing contexts. @@ -5078,8 +4745,7 @@ trait MessagePort extends EventTarget { @JSGlobal class FileReader() extends EventTarget { - /** A DOMException representing the error that occurred while reading the file. - */ + /** A DOMException representing the error that occurred while reading the file. */ def error: DOMException = js.native /** A number indicating the state of the FileReader. This will be one of the State constants. EMPTY : 0 : No data has @@ -5093,20 +4759,17 @@ class FileReader() extends EventTarget { */ def result: js.Any = js.native - /** A handler for the abort event. This event is triggered each time the reading operation is aborted. - */ + /** A handler for the abort event. This event is triggered each time the reading operation is aborted. */ var onabort: js.Function1[ProgressEvent, _] = js.native - /** A handler for the error event. This event is triggered each time the reading operation encounter an error. - */ + /** A handler for the error event. This event is triggered each time the reading operation encounter an error. */ var onerror: js.Function1[ProgressEvent, _] = js.native /** A handler for the load event. This event is triggered each time the reading operation is successfully completed. */ var onload: js.Function1[ProgressEvent, _] = js.native - /** A handler for the loadstart event. This event is triggered each time the reading is starting. - */ + /** A handler for the loadstart event. This event is triggered each time the reading is starting. */ var onloadstart: js.Function1[ProgressEvent, _] = js.native /** A handler for the loadend event. This event is triggered each time the reading operation is completed (either in @@ -5114,12 +4777,10 @@ class FileReader() extends EventTarget { */ var onloadend: js.Function1[ProgressEvent, _] = js.native - /** A handler for the progress event. This event is triggered while reading a Blob content. - */ + /** A handler for the progress event. This event is triggered while reading a Blob content. */ var onprogress: js.Function1[ProgressEvent, _] = js.native - /** Aborts the read operation. Upon return, the readyState will be DONE. - */ + /** Aborts the read operation. Upon return, the readyState will be DONE. */ def abort(): Unit = js.native /** The readAsArrayBuffer method is used to starts reading the contents of the specified Blob or File. When the read @@ -5185,8 +4846,7 @@ class Blob(blobParts: js.Array[js.Any] = js.native, options: BlobPropertyBag = j @deprecated("This method seems to have been added in error and not actually exist.", "1.2.0") def close(): Unit = js.native - /** The size, in bytes, of the data contained in the Blob object. - */ + /** The size, in bytes, of the data contained in the Blob object. */ def size: Double = js.native /** A string indicating the MIME type of the data contained in the Blob. If the type is unknown, this string is empty. @@ -5197,8 +4857,7 @@ class Blob(blobParts: js.Array[js.Any] = js.native, options: BlobPropertyBag = j */ def slice(start: Double = js.native, end: Double = js.native, contentType: String = js.native): Blob = js.native - /** Returns a ReadableStream that can be used to read the contents of the blob. - */ + /** Returns a ReadableStream that can be used to read the contents of the blob. */ def stream(): ReadableStream[Uint8Array] = js.native /** Returns a promise that resolves with a USVString containing the entire contents of the blob interpreted as UTF-8 @@ -5209,8 +4868,7 @@ class Blob(blobParts: js.Array[js.Any] = js.native, options: BlobPropertyBag = j */ def text(): js.Promise[String] = js.native - /** Returns a promise that resolves with an ArrayBuffer containing the entire contents of the blob as binary data. - */ + /** Returns a promise that resolves with an ArrayBuffer containing the entire contents of the blob as binary data. */ def arrayBuffer(): js.Promise[ArrayBuffer] = js.native } @@ -5262,8 +4920,7 @@ trait PopStateEvent extends Event { @js.native trait PageTransitionEvent extends Event { - /** Indicates if the document is loading from a cache. - */ + /** Indicates if the document is loading from a cache. */ def persisted: Boolean = js.native } @@ -5280,8 +4937,7 @@ trait DOMSettableTokenList extends DOMTokenList { @JSGlobal class FormData(form: HTMLFormElement = js.native) extends js.Object { - /** Appends a key/value pair to the FormData object. - */ + /** Appends a key/value pair to the FormData object. */ def append(name: js.Any, value: js.Any, blobName: String = js.native): Unit = js.native } @@ -5300,8 +4956,7 @@ trait ValidityState extends js.Object { */ def customError: Boolean = js.native - /** The element has a required attribute, but no value. - */ + /** The element has a required attribute, but no value. */ def valueMissing: Boolean = js.native /** The value does not fit the rules determined by the step attribute (that is, it's not evenly divisible by the step @@ -5309,20 +4964,16 @@ trait ValidityState extends js.Object { */ def stepMismatch: Boolean = js.native - /** The value is less than the minimum specified by the min attribute. - */ + /** The value is less than the minimum specified by the min attribute. */ def rangeUnderflow: Boolean = js.native - /** The value is greater than the maximum specified by the max attribute. - */ + /** The value is greater than the maximum specified by the max attribute. */ def rangeOverflow: Boolean = js.native - /** The value is not in the required syntax (when type is email or url). - */ + /** The value is not in the required syntax (when type is email or url). */ def typeMismatch: Boolean = js.native - /** The value does not match the specified pattern. - */ + /** The value does not match the specified pattern. */ def patternMismatch: Boolean = js.native /** The value exceeds the specified maxlength for HTMLInputElement or HTMLTextAreaElement objects. Note: This will @@ -5330,8 +4981,7 @@ trait ValidityState extends js.Object { */ def tooLong: Boolean = js.native - /** The element meets all constraint validations, and is therefore considered to be valid. - */ + /** The element meets all constraint validations, and is therefore considered to be valid. */ def valid: Boolean = js.native } @@ -5348,8 +4998,7 @@ trait ValidityState extends js.Object { @js.native trait PageVisibility extends js.Object { - /** Returns true if the page is in a state considered to be hidden to the user, and false otherwise. - */ + /** Returns true if the page is in a state considered to be hidden to the user, and false otherwise. */ def hidden: Boolean = js.native /** Is a string denoting the visibility state of the document. @@ -5359,8 +5008,7 @@ trait PageVisibility extends js.Object { */ def visibilityState: VisibilityState | String = js.native - /** The visibilitychange event is fired when the content of a tab has become visible or has been hidden. - */ + /** The visibilitychange event is fired when the content of a tab has become visible or has been hidden. */ var visibilitychange: js.Function1[Event, _] = js.native } @@ -5385,8 +5033,7 @@ object VisibilityState { */ val prerender: VisibilityState = "prerender".asInstanceOf[VisibilityState] - /** The page is being unloaded from memory. Note: browser support is optional. - */ + /** The page is being unloaded from memory. Note: browser support is optional. */ val unloaded: VisibilityState = "unloaded".asInstanceOf[VisibilityState] } @@ -5422,7 +5069,6 @@ trait Clipboard extends EventTarget { */ def write(data: DataTransfer): js.Promise[Unit] = js.native - /** The writeText() method writes the specified text string to the system clipboard. - */ + /** The writeText() method writes the specified text string to the system clipboard. */ def writeText(newClipText: String): js.Promise[Unit] = js.native } diff --git a/src/main/scala/org/scalajs/dom/package.scala b/src/main/scala/org/scalajs/dom/package.scala index a2ef26247..d6603ba70 100644 --- a/src/main/scala/org/scalajs/dom/package.scala +++ b/src/main/scala/org/scalajs/dom/package.scala @@ -18,8 +18,7 @@ package object dom { type BufferSource = ArrayBufferView | ArrayBuffer - /** defined at [[https://fetch.spec.whatwg.org/#request-class ¶6.3 Request class]] of whatwg Fetch spec - */ + /** defined at [[https://fetch.spec.whatwg.org/#request-class ¶6.3 Request class]] of whatwg Fetch spec */ type RequestInfo = String | Request /** defined at [[https://fetch.spec.whatwg.org/#headersinit ¶6.1 Header Class]] in whatwg Fetch spec todo: it should @@ -28,12 +27,10 @@ package object dom { type HeadersInit = Headers | Sequence[Sequence[ByteString]] | OpenEndedDictionary[ByteString] - /** This type should capture strings consisting only of ASCII chars todo: is there a way to capture this type? - */ + /** This type should capture strings consisting only of ASCII chars todo: is there a way to capture this type? */ type ByteString = String - /** defined at [[https://fetch.spec.whatwg.org/#body-mixin ¶6.2 Body mixin]] in whatwg Fetch spec - */ + /** defined at [[https://fetch.spec.whatwg.org/#body-mixin ¶6.2 Body mixin]] in whatwg Fetch spec */ type BodyInit = Blob | BufferSource | FormData | String //todo: add URLSearchParams diff --git a/src/main/scala/org/scalajs/dom/raw.scala b/src/main/scala/org/scalajs/dom/raw.scala index f6d1e8bff..5b76cfd29 100644 --- a/src/main/scala/org/scalajs/dom/raw.scala +++ b/src/main/scala/org/scalajs/dom/raw.scala @@ -920,8 +920,7 @@ object raw { @JSGlobalScope object DedicatedWorkerGlobalScope extends js.Object { - /** Returns an object reference to the DedicatedWorkerGlobalScope object itself. - */ + /** Returns an object reference to the DedicatedWorkerGlobalScope object itself. */ def self: DedicatedWorkerGlobalScope = js.native } } diff --git a/src/main/scala/org/scalajs/dom/svg.scala b/src/main/scala/org/scalajs/dom/svg.scala index bf6d1d019..097e3c666 100644 --- a/src/main/scala/org/scalajs/dom/svg.scala +++ b/src/main/scala/org/scalajs/dom/svg.scala @@ -2,8 +2,7 @@ package org.scalajs.dom import org.scalajs.dom -/** Short aliases of all the dom.SVGThing classes - */ +/** Short aliases of all the dom.SVGThing classes */ object svg { type A = SVGAElement type AnimatedAngle = SVGAnimatedAngle diff --git a/src/main/scala/org/scalajs/dom/webgl.scala b/src/main/scala/org/scalajs/dom/webgl.scala index 92d12c033..87636a562 100644 --- a/src/main/scala/org/scalajs/dom/webgl.scala +++ b/src/main/scala/org/scalajs/dom/webgl.scala @@ -1,7 +1,6 @@ package org.scalajs.dom -/** Short aliases of all the dom.WebGLThing classes - */ +/** Short aliases of all the dom.WebGLThing classes */ object webgl { type ActiveInfo = WebGLActiveInfo type Buffer = WebGLBuffer diff --git a/src/main/scala/org/scalajs/dom/webworkers.scala b/src/main/scala/org/scalajs/dom/webworkers.scala index c910d00f8..9f7cdbc33 100644 --- a/src/main/scala/org/scalajs/dom/webworkers.scala +++ b/src/main/scala/org/scalajs/dom/webworkers.scala @@ -30,8 +30,7 @@ object webworkers { @JSGlobalScope object DedicatedWorkerGlobalScope extends js.Object { - /** Returns an object reference to the DedicatedWorkerGlobalScope object itself. - */ + /** Returns an object reference to the DedicatedWorkerGlobalScope object itself. */ def self: DedicatedWorkerGlobalScope = js.native } }