Skip to content

Conversation

@exoego
Copy link
Contributor

@exoego exoego commented Jun 25, 2020

This PR adds WindowOrWorkerGlobalScope trait, and let Window and WorkerGlobalScope extends the new trait.
Please refer https://developer.mozilla.org/en-US/docs/Web/API/WindowOrWorkerGlobalScope
Related class/traits, e.g. OffscreenCanva and ImageBitmap, are also added.

Background: I am using these JS APIs in Worker thread in several projects, via my own quick-and-dirty type facade, so supports in official scala-js-dom is highly appreciated.

japgolly added a commit to japgolly/scala-js-dom that referenced this pull request Dec 15, 2020
commit c794a67
Author: exoego <[email protected]>
Date:   Thu Jun 25 12:21:53 2020 +0900

    Add WindowOrWorkerGlobalScope
@exoego
Copy link
Contributor Author

exoego commented Mar 21, 2021

Closing in favor of #430

@exoego exoego closed this Mar 21, 2021
@exoego exoego deleted the windowOrWorkerGlobalScope branch March 21, 2021 13:42
japgolly added a commit to japgolly/scala-js-dom that referenced this pull request Mar 21, 2021
commit c794a67
Author: exoego <[email protected]>
Date:   Thu Jun 25 12:21:53 2020 +0900

    Add WindowOrWorkerGlobalScope
japgolly added a commit to japgolly/scala-js-dom that referenced this pull request Aug 20, 2021
commit c794a67
Author: exoego <[email protected]>
Date:   Thu Jun 25 12:21:53 2020 +0900

    Add WindowOrWorkerGlobalScope
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant