File tree 3 files changed +11
-11
lines changed
3 files changed +11
-11
lines changed Original file line number Diff line number Diff line change @@ -7,9 +7,9 @@ import scala.scalajs.js
7
7
* [[https://html.spec.whatwg.org/multipage/embedded-content.html#dom-img-loading ]]
8
8
*/
9
9
@ js.native
10
- sealed trait ImageLoadingMode extends js.Any
10
+ sealed trait LazyLoadingState extends js.Any
11
11
12
- object ImageLoadingMode {
13
- val eager : ImageLoadingMode = " eager" .asInstanceOf [ImageLoadingMode ]
14
- val `lazy` : ImageLoadingMode = " lazy" .asInstanceOf [ImageLoadingMode ]
12
+ object LazyLoadingState {
13
+ val eager : LazyLoadingState = " eager" .asInstanceOf [LazyLoadingState ]
14
+ val `lazy` : LazyLoadingState = " lazy" .asInstanceOf [LazyLoadingState ]
15
15
}
Original file line number Diff line number Diff line change @@ -6,9 +6,9 @@ import scala.scalajs.js
6
6
* Possible values for an HTMLImageElement loading attribute
7
7
* [[https://html.spec.whatwg.org/multipage/embedded-content.html#dom-img-loading ]]
8
8
*/
9
- opaque type ImageLoadingMode <: String = String
9
+ opaque type LazyLoadingState <: String = String
10
10
11
- object ImageLoadingMode {
12
- val eager : ImageLoadingMode = " eager"
13
- val `lazy` : ImageLoadingMode = " lazy"
11
+ object LazyLoadingState {
12
+ val eager : LazyLoadingState = " eager"
13
+ val `lazy` : LazyLoadingState = " lazy"
14
14
}
Original file line number Diff line number Diff line change @@ -31,7 +31,7 @@ abstract class HTMLImageElement extends HTMLElement {
31
31
/** A string whose value provides a hint to the user agent on how to handle the loading of the image which is
32
32
* currently outside the window's visual viewport.
33
33
*/
34
- var loading : ImageLoadingMode = js.native
34
+ var loading : LazyLoadingState = js.native
35
35
36
36
/** Reflects the src HTML attribute, containing the URL of the image. */
37
37
var src : String = js.native
@@ -67,8 +67,8 @@ abstract class HTMLImageElement extends HTMLElement {
67
67
var onload : js.Function1 [Event , _] = js.native
68
68
69
69
/** Indicates the x-coordinate of the <img> element's left border edge relative to the root element's origin. */
70
- def x : Long = js.native
70
+ def x : Double = js.native
71
71
72
72
/** Indicates the y-coordinate of the <img> element's top border edge relative to the root element's origin. */
73
- def y : Long = js.native
73
+ def y : Double = js.native
74
74
}
You can’t perform that action at this time.
0 commit comments