Nathan Adams
11f68b90f9
web: Switch to using commonjs style require/exports
...
It looks like things still don't play nice with modules yet :(
2020-05-19 11:42:55 +02:00
Nathan Adams
b2cc178d8e
web: We don't need to specify npx here I think
2020-05-19 11:42:54 +02:00
Nathan Adams
b8e63045b2
web: Moved source of core into core/src, to prep for tests
2020-05-19 11:42:54 +02:00
Nathan Adams
55c9672921
web: Simplified export interface of ruffle-core
2020-05-19 11:42:54 +02:00
Nathan Adams
0ab3c9f69b
web: Made demo use ruffle-selfhosted
2020-05-19 11:42:54 +02:00
Nathan Adams
e9a394ac27
web: Only core will build ruffle, the other packages will use that
2020-05-19 11:42:54 +02:00
Nathan Adams
8436c1f9d9
web: Update package-lock
2020-05-19 11:42:53 +02:00
Nathan Adams
cdbad55512
chore: Check all web deps with dependabot
2020-05-19 11:42:53 +02:00
Nathan Adams
7b8a4ffed1
web: Switch to using lerna for package management
2020-05-19 11:42:53 +02:00
Nathan Adams
b6523324ed
web: Move each web package into a packages/ directory
2020-05-19 11:42:53 +02:00
Nathan Adams
df341959b3
web: Convert js-src to its own package that's depended on by selfhosted/extension/demo
2020-05-19 11:42:53 +02:00
Justin-CB
5d56d6b489
extension: Remove unneded code from lv0.js
...
Co-authored-by: JustinCB <JustinCB@opmbx.org>
2020-05-19 02:41:44 -07:00
dependabot-preview[bot]
6134ae091f
build(deps): bump generational-arena from 0.2.7 to 0.2.8
...
Bumps [generational-arena](https://github.com/fitzgen/generational-arena ) from 0.2.7 to 0.2.8.
- [Release notes](https://github.com/fitzgen/generational-arena/releases )
- [Changelog](https://github.com/fitzgen/generational-arena/blob/master/CHANGELOG.md )
- [Commits](https://github.com/fitzgen/generational-arena/compare/0.2.7...0.2.8 )
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-05-18 23:54:45 -07:00
dependabot-preview[bot]
41a8b01fe7
build(deps): bump quote from 1.0.5 to 1.0.6
...
Bumps [quote](https://github.com/dtolnay/quote ) from 1.0.5 to 1.0.6.
- [Release notes](https://github.com/dtolnay/quote/releases )
- [Commits](https://github.com/dtolnay/quote/compare/1.0.5...1.0.6 )
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-05-18 08:38:24 +00:00
dependabot-preview[bot]
ba43b3d50b
build(deps): bump winit from 0.22.1 to 0.22.2
...
Bumps [winit](https://github.com/rust-windowing/winit ) from 0.22.1 to 0.22.2.
- [Release notes](https://github.com/rust-windowing/winit/releases )
- [Changelog](https://github.com/rust-windowing/winit/blob/master/CHANGELOG.md )
- [Commits](https://github.com/rust-windowing/winit/compare/v0.22.1...v0.22.2 )
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-05-17 08:01:55 +00:00
dependabot-preview[bot]
3b163c2b6e
build(deps): bump syn from 1.0.21 to 1.0.22
...
Bumps [syn](https://github.com/dtolnay/syn ) from 1.0.21 to 1.0.22.
- [Release notes](https://github.com/dtolnay/syn/releases )
- [Commits](https://github.com/dtolnay/syn/compare/1.0.21...1.0.22 )
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-05-16 09:46:08 +00:00
Nathan Adams
b9eee4e5ed
chore: Check javascript style on PRs
...
This fixes #570
2020-05-16 01:58:18 -07:00
Nathan Adams
a4b705c731
web: Reformatted all javascript with prettier
2020-05-16 01:58:18 -07:00
Nathan Adams
56e467b557
web: Add prettier, not yet ran on codebase
2020-05-16 01:58:18 -07:00
Nathan Adams
0bb188ad0b
web: Fix bug where we didn't properly catch when custom elements weren't registering
2020-05-16 01:58:18 -07:00
Nathan Adams
6ec77e0ca2
web: Fixed construction of SourceAPI ignoring the provided name
2020-05-16 01:58:18 -07:00
Nathan Adams
077c3ec973
web: Fix broken version comparison logic
2020-05-16 01:58:18 -07:00
Nathan Adams
18d747d5fa
web: Fix eslint: Unexpected duplicate 'super()' (constructor-super)
2020-05-16 01:58:18 -07:00
Nathan Adams
efe33e1631
web: Fix eslint: Don't access Object.prototype method directly (no-prototype-builtins)
2020-05-16 01:58:18 -07:00
Nathan Adams
2c0b12a93f
web: Fix eslint: Variable is defined but not used (no-unused-vars)
2020-05-16 01:58:18 -07:00
Nathan Adams
0b445bee1c
web: Fix eslint: Unnecessary semicolon (no-extra-semi)
2020-05-16 01:58:18 -07:00
Nathan Adams
43ee0e499e
web: Add eslint to web projects, mostly unopinionated
2020-05-16 01:58:18 -07:00
Nathan Adams
1bb7b49411
web: Add root npm project for web
2020-05-16 01:58:18 -07:00
Mike Welsh
3b550a111f
wgpu: Hook up gradient spread mode and focal point
2020-05-15 00:13:36 -07:00
Mike Welsh
d15a4ed994
web: Fallback to canvas render backend in more cases ( fix #545 )
2020-05-14 22:36:19 -07:00
Nathan Adams
4cbae59947
render: Give a useful error message if running without a compatible graphics device ( #588 )
2020-05-14 21:38:12 -07:00
Nathan Adams
0047546074
render: Ensure that the wgpu device is compatible with the window we're
...
going to render to
2020-05-14 21:38:12 -07:00
dependabot-preview[bot]
1f0e695465
build(deps): bump fnv from 1.0.6 to 1.0.7
...
Bumps [fnv](https://github.com/servo/rust-fnv ) from 1.0.6 to 1.0.7.
- [Release notes](https://github.com/servo/rust-fnv/releases )
- [Commits](https://github.com/servo/rust-fnv/compare/v1.0.6...v1.0.7 )
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-05-14 19:05:48 +00:00
Nathan Adams
4f5e9cca1f
render: Fix wgpu captures being the wrong image format
2020-05-14 01:19:23 -07:00
dependabot-preview[bot]
1641d05d00
build(deps): bump syn from 1.0.20 to 1.0.21
...
Bumps [syn](https://github.com/dtolnay/syn ) from 1.0.20 to 1.0.21.
- [Release notes](https://github.com/dtolnay/syn/releases )
- [Commits](https://github.com/dtolnay/syn/compare/1.0.20...1.0.21 )
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-05-13 17:18:29 +00:00
dependabot-preview[bot]
e22da9ac4c
build(deps): bump quote from 1.0.4 to 1.0.5
...
Bumps [quote](https://github.com/dtolnay/quote ) from 1.0.4 to 1.0.5.
- [Release notes](https://github.com/dtolnay/quote/releases )
- [Commits](https://github.com/dtolnay/quote/compare/1.0.4...1.0.5 )
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-05-13 14:42:48 +00:00
Mike Welsh
081f6a556a
swf: Avoid undefined behavior in write_fbits
2020-05-13 02:41:50 -07:00
Mike Welsh
031f5d6501
core: Avoid undefined behavior in f64_to_wrapping functions
2020-05-13 02:41:50 -07:00
Mike Welsh
deef891c30
swf: Don't error if both libflate and flate2 features are enabled
...
Fixes errors I was getting from rust-analyzer checking with all
features enabled.
2020-05-13 00:16:50 -07:00
Mike Welsh
b59140ee01
render: Add support for GIF decoding in DefineBitsJPEG tags
2020-05-13 00:15:09 -07:00
Mike Welsh
5d84d33710
render: Handle PNG data in DefineBitsJPEG tags ( fix #530 )
2020-05-13 00:15:09 -07:00
Mike Welsh
f034471e2e
desktop: Set viewport dimensions based on physical size
...
When creating the viewport on desktop, the window DPI was not taken
into account, which may result in a blank screen until resized
(reported in #548 ). The window dimensions are now converted to
physical coordinates before passing them to the renderer.
2020-05-12 00:24:38 -07:00
dependabot-preview[bot]
f68edb37b5
build(deps): bump syn from 1.0.19 to 1.0.20
...
Bumps [syn](https://github.com/dtolnay/syn ) from 1.0.19 to 1.0.20.
- [Release notes](https://github.com/dtolnay/syn/releases )
- [Commits](https://github.com/dtolnay/syn/compare/1.0.19...1.0.20 )
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-05-12 00:10:19 -07:00
Justin-CB
ee69f77126
web: Don't polyfill elements with no src or data attributes (fix #542 )
...
* Don't polyfill elements with no src or data attributes
* Move elem.src check to ruffle-embed and add param check to ruffle-object
Co-authored-by: Toad06 <toad06@foo.bar>
Co-authored-by: JustinCB <JustinCB@opmbx.org>
2020-05-11 23:33:46 -07:00
Nathan Adams
fe4676a185
renderer: Don't crash when encountering unknown bitmap_fills
2020-05-11 01:09:07 -07:00
Nathan Adams
b82b869950
core: Don't panic when NullNavigatorBackend can't do futures
2020-05-11 01:09:07 -07:00
Nathan Adams
1bde973615
render: Use Rc<> for wgpu device and queue, so we can reuse them
2020-05-11 01:09:07 -07:00
Nathan Adams
1effedde2c
exporter: Add progress bar
2020-05-11 01:09:07 -07:00
Nathan Adams
07e4b1a224
exporter: Allow exporting of multiple swfs
2020-05-11 01:09:07 -07:00
Nathan Adams
9ab03b4da6
exporter: Added exporter tool for capturing images of swfs (related to #523 )
2020-05-11 01:09:07 -07:00