Skip to content

Commit

Permalink
prePR
Browse files Browse the repository at this point in the history
Added ImageSettings Object with static values for sRGB and displayP3.
  • Loading branch information
c committed Mar 18, 2024
1 parent ab2227d commit 773c6ed
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
2 changes: 2 additions & 0 deletions api-reports/2_12.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
5 changes: 5 additions & 0 deletions dom/src/main/scala/org/scalajs/dom/ImageSettings.scala
Original file line number Diff line number Diff line change
Expand Up @@ -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]
}

0 comments on commit 773c6ed

Please sign in to comment.