scala-js-dom
scala-js-dom copied to clipboard
Statically typed DOM API for Scala.js
Another compatibility hold-out. Details in https://github.com/scala-js/scala-js-dom/issues/597.
I don't think we can change these binary-compatibly, but the current designations are causing all sorts of friction in #628.
The readme project currently depends on [scalatex](https://github.com/lihaoyi/scalatex) which unfortunately no longer seems to be maintained. Thus the docs should migrate to another framework, e.g. [mdoc supports Scala.js](https://scalameta.org/mdoc/docs/js.html) although it's not...
Particularly the constructor: https://developer.mozilla.org/en-US/docs/Web/API/File/File Noticed while browsing https://github.com/softwaremill/sttp/blob/master/core/src/main/scalajs/sttp/client3/dom/experimental/File.scala.
https://github.com/scala-js/scala-js-dom/blob/35fed55fc8aec203c43402a10161ef090ef7f5fc/src/main/scala/org/scalajs/dom/raw/lib.scala#L814 From lib.dom.d.ts: ```typescript scrollIntoView(arg?: boolean | ScrollIntoViewOptions): void; interface ScrollIntoViewOptions extends ScrollOptions { block?: ScrollLogicalPosition; inline?: ScrollLogicalPosition; } interface ScrollOptions { behavior?: ScrollBehavior; } type ScrollBehavior = "auto" |...
There appears to be two API, synchronous and the more modern, Promise-based one. We shall support the latter. Can be done post-2.0, once this api is more than 95% supported....
As proposed in https://github.com/scala-js/scala-js-dom/pull/380#issuecomment-905130204. The idea is to use @japgolly's API report machinery to automatically generate exclusions for known binary-compatible changes for facades as delineated in https://github.com/scala-js/scala-js-dom/pull/461#issuecomment-894829615. This would enable...
This is a slightly lazy issue, apologies for that, but I caught the new maintainer announcement and thought I'd get in quick! :-) [Indigo](https://github.com/PurpleKingdomGames/indigo) uses Scala-js-dom a lot as you...
Although in [draft status](https://www.w3.org/TR/web-animations-1/), the upcoming [web animation API](https://developer.mozilla.org/de/docs/Web/API/Web_Animations_API) is already partially supported in the [most browsers](https://caniuse.com/#feat=web-animation). - Extend `org.scalajs.dom.raw.Element` and add a `animate` method - Create the new `Animation`...
Hello, it would be great if Scala JS would also have a Shadow DOM implementation, i.e. provide a way to access Shadow DOM's. Currently the Spec is in Draft: https://w3c.github.io/webcomponents/spec/shadow/#widl-Element-attachShadow-ShadowRoot-ShadowRootInit-shadowRootInitDict...