Skip to content

Commit 3fbfe87

Browse files
committed
sbt prePR: Re-format everything
1 parent d47967c commit 3fbfe87

File tree

560 files changed

+3813
-8545
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

560 files changed

+3813
-8545
lines changed

example/src/main/scala/example/Alert.scala

-4
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,7 @@
11
package example
22

3-
import scala.scalajs.js
43
import scala.scalajs.js.annotation._
54

6-
import org.scalajs.dom
7-
import dom.html
8-
95
@JSExportTopLevel("ExampleAlert")
106
object Alert {
117
@JSExport

example/src/main/scala/example/Base64.scala

-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
package example
22

3-
import scala.scalajs.js
43
import scala.scalajs.js.annotation._
54

65
import org.scalajs.dom

example/src/main/scala/example/Canvas.scala

-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
package example
22

3-
import scala.scalajs.js
43
import scala.scalajs.js.annotation._
54

65
import org.scalajs.dom

example/src/main/scala/example/ElementStyle.scala

-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
package example
22

3-
import scala.scalajs.js
43
import scala.scalajs.js.annotation._
54

65
import org.scalajs.dom

example/src/main/scala/example/EventHandler.scala

-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
package example
22

3-
import scala.scalajs.js
43
import scala.scalajs.js.annotation._
54

65
import org.scalajs.dom

example/src/main/scala/example/LocalStorage.scala

-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
package example
22

3-
import scala.scalajs.js
43
import scala.scalajs.js.annotation._
54

65
import org.scalajs.dom

example/src/main/scala/example/NodeAppendChild.scala

-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
package example
22

3-
import scala.scalajs.js
43
import scala.scalajs.js.annotation._
54

65
import org.scalajs.dom

example/src/main/scala/example/NodeReplaceChildren.scala

-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
package example
22

3-
import scala.scalajs.js
43
import scala.scalajs.js.annotation._
54

65
import org.scalajs.dom

example/src/main/scala/example/Websocket.scala

-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
package example
22

3-
import scala.scalajs.js
43
import scala.scalajs.js.annotation._
54

65
import org.scalajs.dom

src/main/scala/org/scalajs/dom/AbortSignal.scala

+2-5
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,12 @@
11
package org.scalajs.dom
22

33
import scala.scalajs.js
4-
import scala.scalajs.js.annotation.JSGlobal
54

65
/** Returns a AbortSignal object instance, which can be used to communicate with/abort a DOM request */
76

8-
97
/** Aborts a DOM request before it has completed. This is able to abort fetch requests, consumption of any response
10-
* Body, and streams.
11-
*/
12-
8+
* Body, and streams.
9+
*/
1310

1411
/** The AbortSignal interface represents a signal object that allows you to communicate with a DOM request (such as a
1512
* Fetch) and abort it if required via an AbortController object.

src/main/scala/org/scalajs/dom/AbstractWorker.scala

-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
package org.scalajs.dom
22

33
import scala.scalajs.js
4-
import scala.scalajs.js.annotation._
54

65
/** The AbstractWorker interface abstracts properties and methods common to all kind of workers, being Worker or
76
* SharedWorker.

src/main/scala/org/scalajs/dom/AnalyserNode.scala

+19-31
Original file line numberDiff line numberDiff line change
@@ -5,53 +5,41 @@
55
*/
66
package org.scalajs.dom
77

8-
import org.scalajs.dom.experimental.mediastream.MediaStream
98
import scala.scalajs.js
10-
import scala.scalajs.js.annotation._
11-
12-
/** Returns the associated AudioContext, that is the object representing the processing graph the node is
13-
* participating in.
14-
*/
159

10+
/** Returns the associated AudioContext, that is the object representing the processing graph the node is participating
11+
* in.
12+
*/
1613

1714
/** Returns the number of inputs feeding the node. Source nodes are defined as nodes having a numberOfInputs property
18-
* with a value of 0.
19-
*/
20-
15+
* with a value of 0.
16+
*/
2117

2218
/** Returns the number of outputs coming out of the node. Destination nodes — like AudioDestinationNode — have a value
23-
* of 0 for this attribute.
24-
*/
25-
26-
27-
/** Represents an integer used to determine how many channels are used when up-mixing and down-mixing connections to
28-
* any inputs to the node. Its usage and precise definition depend on the value of AudioNode.channelCountMode.
29-
*/
30-
19+
* of 0 for this attribute.
20+
*/
3121

32-
/** Represents an enumerated value describing the way channels must be matched between the node's inputs and outputs.
33-
*/
22+
/** Represents an integer used to determine how many channels are used when up-mixing and down-mixing connections to any
23+
* inputs to the node. Its usage and precise definition depend on the value of AudioNode.channelCountMode.
24+
*/
3425

26+
/** Represents an enumerated value describing the way channels must be matched between the node's inputs and outputs. */
3527

3628
/** Represents an enumerated value describing the meaning of the channels. This interpretation will define how audio
37-
* up-mixing and down-mixing will happen.
38-
*
39-
* The possible values are "speakers" or "discrete".
40-
*/
41-
29+
* up-mixing and down-mixing will happen.
30+
*
31+
* The possible values are "speakers" or "discrete".
32+
*/
4233

4334
/** Allows us to connect one output of this node to one input of another node. */
4435

45-
4636
/** Allows us to connect one output of this node to one input of an audio parameter. */
4737

48-
4938
/** Allows us to disconnect the current node from another one it is already connected to.
50-
*
51-
* @param output
52-
* The index describing which output of the AudioNode is going to be disconnected.
53-
*/
54-
39+
*
40+
* @param output
41+
* The index describing which output of the AudioNode is going to be disconnected.
42+
*/
5543

5644
/** The AnalyserNode interface represents a node able to provide real-time frequency and time-domain analysis
5745
* information. It is an AudioNode that passes the audio stream unchanged from the input to the output, but allows you

src/main/scala/org/scalajs/dom/AnimationEvent.scala

-5
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,7 @@
66
*/
77
package org.scalajs.dom
88

9-
import scala.collection.mutable
10-
import scala.language.implicitConversions
119
import scala.scalajs.js
12-
import scala.scalajs.js.annotation._
13-
import scala.scalajs.js.typedarray.{ArrayBuffer, Uint8Array}
14-
import scala.scalajs.js.|
1510

1611
/** The AnimationEvent interface represents events providing information related to animations. */
1712
@js.native

src/main/scala/org/scalajs/dom/ApplicationCache.scala

-4
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,8 @@
66
*/
77
package org.scalajs.dom
88

9-
import scala.collection.mutable
10-
import scala.language.implicitConversions
119
import scala.scalajs.js
1210
import scala.scalajs.js.annotation._
13-
import scala.scalajs.js.typedarray.{ArrayBuffer, Uint8Array}
14-
import scala.scalajs.js.|
1511

1612
@js.native
1713
trait ApplicationCache extends EventTarget {

src/main/scala/org/scalajs/dom/Attr.scala

-4
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,8 @@
66
*/
77
package org.scalajs.dom
88

9-
import scala.collection.mutable
10-
import scala.language.implicitConversions
119
import scala.scalajs.js
1210
import scala.scalajs.js.annotation._
13-
import scala.scalajs.js.typedarray.{ArrayBuffer, Uint8Array}
14-
import scala.scalajs.js.|
1511

1612
/** This type represents a DOM element's attribute as an object. In most DOM methods, you will probably directly
1713
* retrieve the attribute as a string (e.g., Element.getAttribute(), but certain functions (e.g.,

src/main/scala/org/scalajs/dom/AudioBuffer.scala

+2-6
Original file line numberDiff line numberDiff line change
@@ -5,17 +5,13 @@
55
*/
66
package org.scalajs.dom
77

8-
import org.scalajs.dom.experimental.mediastream.MediaStream
98
import scala.scalajs.js
10-
import scala.scalajs.js.annotation._
119

1210
/** Is a Float32Array of numbers describing the distortion to apply. */
1311

14-
1512
/** Is an enumerated value indicating if oversampling must be used. Oversampling is a technique for creating more
16-
* samples (up-sampling) before applying the distortion effect to the audio signal.
17-
*/
18-
13+
* samples (up-sampling) before applying the distortion effect to the audio signal.
14+
*/
1915

2016
/** The AudioBuffer interface represents a short audio asset residing in memory, created from an audio file using the
2117
* AudioContext.decodeAudioData() method, or from raw data using AudioContext.createBuffer(). Once put into an

src/main/scala/org/scalajs/dom/AudioBufferSourceNode.scala

+40-51
Original file line numberDiff line numberDiff line change
@@ -5,76 +5,65 @@
55
*/
66
package org.scalajs.dom
77

8-
import org.scalajs.dom.experimental.mediastream.MediaStream
98
import scala.scalajs.js
10-
import scala.scalajs.js.annotation._
119

1210
/** Is an unsigned long value representing the size of the FFT (Fast Fourier Transform) to be used to determine the
13-
* frequency domain.
14-
*/
15-
11+
* frequency domain.
12+
*/
1613

1714
/** Is an unsigned long value half that of the FFT size. This generally equates to the number of data values you will
18-
* have to play with for the visualization.
19-
*/
20-
15+
* have to play with for the visualization.
16+
*/
2117

2218
/** Is a double value representing the minimum power value in the scaling range for the FFT analysis data, for
23-
* conversion to unsigned byte values — basically, this specifies the minimum value for the range of results when
24-
* using getByteFrequencyData().
25-
*/
26-
19+
* conversion to unsigned byte values — basically, this specifies the minimum value for the range of results when using
20+
* getByteFrequencyData().
21+
*/
2722

2823
/** Is a double value representing the maximum power value in the scaling range for the FFT analysis data, for
29-
* conversion to unsigned byte values — basically, this specifies the maximum value for the range of results when
30-
* using getByteFrequencyData().
31-
*/
32-
24+
* conversion to unsigned byte values — basically, this specifies the maximum value for the range of results when using
25+
* getByteFrequencyData().
26+
*/
3327

3428
/** Is a double value representing the averaging constant with the last analysis frame — basically, it makes the
35-
* transition between values over time smoother.
36-
*/
37-
29+
* transition between values over time smoother.
30+
*/
3831

3932
/** Copies the current frequency data into a Float32Array array passed into it.
40-
*
41-
* If the array has fewer elements than the AnalyserNode.frequencyBinCount, excess elements are dropped. If it has
42-
* more elements than needed, excess elements are ignored.
43-
*
44-
* @param array
45-
* The Float32Array that the frequency domain data will be copied to.
46-
*/
47-
33+
*
34+
* If the array has fewer elements than the AnalyserNode.frequencyBinCount, excess elements are dropped. If it has more
35+
* elements than needed, excess elements are ignored.
36+
*
37+
* @param array
38+
* The Float32Array that the frequency domain data will be copied to.
39+
*/
4840

4941
/** Copies the current frequency data into a Uint8Array (unsigned byte array) passed into it.
50-
*
51-
* If the array has fewer elements than the AnalyserNode.frequencyBinCount, excess elements are dropped. If it has
52-
* more elements than needed, excess elements are ignored.
53-
*
54-
* @param array
55-
* The Uint8Array that the frequency domain data will be copied to.
56-
*/
57-
42+
*
43+
* If the array has fewer elements than the AnalyserNode.frequencyBinCount, excess elements are dropped. If it has more
44+
* elements than needed, excess elements are ignored.
45+
*
46+
* @param array
47+
* The Uint8Array that the frequency domain data will be copied to.
48+
*/
5849

5950
/** Copies the current waveform, or time-domain, data into a Float32Array array passed into it.
60-
*
61-
* If the array has fewer elements than the AnalyserNode.fftSize, excess elements are dropped. If it has more
62-
* elements than needed, excess elements are ignored.
63-
*
64-
* @param array
65-
* The Float32Array that the time domain data will be copied to.
66-
*/
67-
51+
*
52+
* If the array has fewer elements than the AnalyserNode.fftSize, excess elements are dropped. If it has more elements
53+
* than needed, excess elements are ignored.
54+
*
55+
* @param array
56+
* The Float32Array that the time domain data will be copied to.
57+
*/
6858

6959
/** Copies the current waveform, or time-domain, data into a Uint8Array (unsigned byte array) passed into it.
70-
*
71-
* If the array has fewer elements than the AnalyserNode.fftSize, excess elements are dropped. If it has more
72-
* elements than needed, excess elements are ignored.
73-
*
74-
* @param array
75-
* The Uint8Array that the time domain data will be copied to.
76-
*/
77-
60+
*
61+
* If the array has fewer elements than the AnalyserNode.fftSize, excess elements are dropped. If it has more elements
62+
* than needed, excess elements are ignored.
63+
*
64+
* @param array
65+
* The Uint8Array that the time domain data will be copied to.
66+
*/
7867

7968
/** AudioBufferSourceNode has no input and exactly one output. The number of channels in the output corresponds to the
8069
* number of channels of the AudioBuffer that is set to the AudioBufferSourceNode.buffer property. If there is no

0 commit comments

Comments
 (0)