ruffle/web/packages/core
dependabot[bot] 512f733131 build(deps): bump the npm-minor group in /web with 6 updates
Bumps the npm-minor group in /web with 6 updates:

| Package | From | To |
| --- | --- | --- |
| [chai](https://github.com/chaijs/chai) | `5.1.0` | `5.1.1` |
| [chromedriver](https://github.com/giggio/node-chromedriver) | `124.0.1` | `124.0.3` |
| [eslint-plugin-jsdoc](https://github.com/gajus/eslint-plugin-jsdoc) | `48.2.3` | `48.2.4` |
| [@types/react](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/react) | `18.3.1` | `18.3.2` |
| [eslint-plugin-react-refresh](https://github.com/ArnaudBarre/eslint-plugin-react-refresh) | `0.4.6` | `0.4.7` |
| [@types/chrome](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/chrome) | `0.0.267` | `0.0.268` |


Updates `chai` from 5.1.0 to 5.1.1
- [Release notes](https://github.com/chaijs/chai/releases)
- [Changelog](https://github.com/chaijs/chai/blob/main/History.md)
- [Commits](https://github.com/chaijs/chai/compare/v5.1.0...v5.1.1)

Updates `chromedriver` from 124.0.1 to 124.0.3
- [Commits](https://github.com/giggio/node-chromedriver/compare/124.0.1...124.0.3)

Updates `eslint-plugin-jsdoc` from 48.2.3 to 48.2.4
- [Release notes](https://github.com/gajus/eslint-plugin-jsdoc/releases)
- [Changelog](https://github.com/gajus/eslint-plugin-jsdoc/blob/main/.releaserc)
- [Commits](https://github.com/gajus/eslint-plugin-jsdoc/compare/v48.2.3...v48.2.4)

Updates `@types/react` from 18.3.1 to 18.3.2
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/react)

Updates `eslint-plugin-react-refresh` from 0.4.6 to 0.4.7
- [Release notes](https://github.com/ArnaudBarre/eslint-plugin-react-refresh/releases)
- [Changelog](https://github.com/ArnaudBarre/eslint-plugin-react-refresh/blob/main/CHANGELOG.md)
- [Commits](https://github.com/ArnaudBarre/eslint-plugin-react-refresh/compare/v0.4.6...v0.4.7)

Updates `@types/chrome` from 0.0.267 to 0.0.268
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/chrome)

---
updated-dependencies:
- dependency-name: chai
  dependency-type: direct:development
  update-type: version-update:semver-patch
  dependency-group: npm-minor
- dependency-name: chromedriver
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: npm-minor
- dependency-name: eslint-plugin-jsdoc
  dependency-type: direct:development
  update-type: version-update:semver-patch
  dependency-group: npm-minor
- dependency-name: "@types/react"
  dependency-type: direct:development
  update-type: version-update:semver-patch
  dependency-group: npm-minor
- dependency-name: eslint-plugin-react-refresh
  dependency-type: direct:development
  update-type: version-update:semver-patch
  dependency-group: npm-minor
- dependency-name: "@types/chrome"
  dependency-type: direct:development
  update-type: version-update:semver-patch
  dependency-group: npm-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-05-13 15:20:20 +02:00
..
src web: Don't append and subsequently remove link just to download files 2024-05-02 18:05:54 -04:00
test web: Compare build ident if all else fails, when finding best versions 2023-08-06 23:55:39 +02:00
texts chore: Update translations from Crowdin 2024-05-02 18:07:40 +02:00
tools web: No longer set the `web_sys_unstable_apis` config variable 2024-03-02 16:13:43 +01:00
.gitignore web: Use TypeScript project references 2023-02-25 02:00:23 +02:00
.mocharc.yaml web: Convert more files from JSON to YAML 2022-01-16 11:07:00 -08:00
README.md docs: Update `streamSwfUrl` to `load` 2020-12-07 15:22:51 -08:00
package.json build(deps): bump the npm-minor group in /web with 6 updates 2024-05-13 15:20:20 +02:00
tsconfig.json web: Use TypeScript project references 2023-02-25 02:00:23 +02:00
typedoc.json web/docs: Display enums in source order 2023-04-24 08:49:06 +03:00

README.md

ruffle-core

ruffle-core is the core javascript bindings to the Wasm ruffle-web binary, and contains the actual public API.

Using ruffle-core

For more examples and in-depth documentation on how to use Ruffle on your website, please check out our wiki.

Host Ruffle

The core package is configured for websites that build and bundle their files themselves. Simply add ruffle to an npm package, and use something like Webpack to actually bundle and serve the files.

If you wish to use Ruffle on a website that doesn't use npm, we have a pre-bundled version which we call 'selfhosted'. Please refer to its documentation.

Please note that the .wasm file must be served properly, and some web servers may not do that correctly out of the box. Please see our wiki for instructions on how to configure this, if you encounter a Incorrect response MIME type error.

"Plug and Play"

If you have an existing website with flash content, you can simply include Ruffle as a script and our polyfill magic will replace everything for you. No fuss, no mess.

<script src="path/to/ruffle/ruffle.js"></script>

Javascript API

If you want to control the Ruffle player, you may use our Javascript API.

<script>
    window.RufflePlayer = window.RufflePlayer || {};

    window.addEventListener("DOMContentLoaded", () => {
        let ruffle = window.RufflePlayer.newest();
        let player = ruffle.createPlayer();
        let container = document.getElementById("container");
        container.appendChild(player);
        player.load("movie.swf");
    });
</script>
<script src="path/to/ruffle/ruffle.js"></script>

Building, testing or contributing

Please see the ruffle-web README.