diff --git a/api-reports/2_12.txt b/api-reports/2_12.txt index ec001e53..5043750e 100644 --- a/api-reports/2_12.txt +++ b/api-reports/2_12.txt @@ -15655,6 +15655,8 @@ ImageData[JC] def data: Uint8ClampedArray ImageData[JC] def height: Int ImageData[JC] def width: Int ImageSettings[JT] var colorSpace: js.UndefOr[String] +ImageSettings[SO] lazy val displayP3: ImageSettings +ImageSettings[SO] lazy val sRGB: ImageSettings InputEvent[JC] def bubbles: Boolean InputEvent[JC] def cancelBubble: Boolean InputEvent[JC] def cancelable: Boolean diff --git a/dom/src/main/scala/org/scalajs/dom/ImageSettings.scala b/dom/src/main/scala/org/scalajs/dom/ImageSettings.scala index 4e18a417..e4a2555e 100644 --- a/dom/src/main/scala/org/scalajs/dom/ImageSettings.scala +++ b/dom/src/main/scala/org/scalajs/dom/ImageSettings.scala @@ -5,3 +5,8 @@ import scala.scalajs.js trait ImageSettings extends js.Object { var colorSpace: js.UndefOr[String] = js.undefined } + +object ImageSettings { + lazy val sRGB: ImageSettings = js.Dynamic.literal(colorSpace = "srgb").asInstanceOf[ImageSettings] + lazy val displayP3: ImageSettings = js.Dynamic.literal(colorSpace = "display-p3").asInstanceOf[ImageSettings] +}