Commit Graph

1704 Commits

Author SHA1 Message Date
Nathan Adams 04690581ba core: Refactor common code in drawing api 2020-05-21 18:38:10 +02:00
Nathan Adams 1f8abc92fd core: Keep track of cursor position in drawings 2020-05-21 18:38:10 +02:00
Nathan Adams 99574cfa72 core: Move drawing api out from `movie_clip` into `drawing` 2020-05-21 18:38:10 +02:00
Nathan Adams 4f69566f77 tests: Add test coverage for flash.geom.Matrix 2020-05-21 18:38:08 +02:00
Mike Welsh 94f2154514 chore: Bump copy-webpack-plugin to 6.0.1 2020-05-20 23:34:17 -07:00
dependabot-preview[bot] 898232394b build(deps): bump syn from 1.0.22 to 1.0.23
Bumps [syn](https://github.com/dtolnay/syn) from 1.0.22 to 1.0.23.
- [Release notes](https://github.com/dtolnay/syn/releases)
- [Commits](https://github.com/dtolnay/syn/compare/1.0.22...1.0.23)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-05-21 03:49:03 +00:00
Justin-CB cbc2f6a03a
web: Avoid TypeError when instantiating polyfill (fix #607)
Co-authored-by: JustinCB <JustinCB@opmbx.org>
2020-05-20 12:42:54 -07:00
Justin-CB 1582584be8
chore: Run npm audit fix
Co-authored-by: JustinCB <JustinCB@opmbx.org>
2020-05-20 11:30:06 -07:00
Nathan Adams 31b0a5ae76 avm1: Implement gradient matrix types 2020-05-20 14:54:41 +02:00
Nathan Adams 5098eb079d avm1: Implement most of flash.geom.Matrix (#303) 2020-05-20 14:54:41 +02:00
Nathan Adams 14331da71b avm1: Add flash.geom.Matrix and methods to convert between this and swf::Matrix 2020-05-20 14:54:41 +02:00
Nathan Adams eda862c719 swf: Merged core::Matrix into swf::Matrix 2020-05-20 14:54:41 +02:00
Nathan Adams 61e464099c core: Add initial drawing API to MovieClip 2020-05-20 14:54:40 +02:00
Nathan Adams 7ab6703fc9 render: Add RenderBackend::replace_shape method 2020-05-20 14:54:40 +02:00
Nathan Adams 4c80ae150c core: Make DistilledShape use Boundingbox and not Rectangle
Rectangle more represents compressed swf data and isn't suited for performing operations, and the drawing api will be generating these dynamically
2020-05-20 14:54:33 +02:00
dependabot-preview[bot] 6f5f389f7a build(deps-dev): bump html-webpack-plugin from 3.2.0 to 4.3.0 in /web
Bumps [html-webpack-plugin](https://github.com/jantimon/html-webpack-plugin) from 3.2.0 to 4.3.0.
- [Release notes](https://github.com/jantimon/html-webpack-plugin/releases)
- [Changelog](https://github.com/jantimon/html-webpack-plugin/blob/master/CHANGELOG.md)
- [Commits](https://github.com/jantimon/html-webpack-plugin/compare/v3.2.0...v4.3.0)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-05-20 04:10:38 +00:00
Mike Welsh e73eddcebb
web: Restructure packages and introduce tests (merge #601) 2020-05-19 20:38:12 -07:00
Nathan Adams f7b5f14f65 core: Make RenderBack::register_bitmap* methods return a Result (fixes #531) 2020-05-19 07:12:36 -07:00
Nathan Adams 6b464bf80f web: Build core on preparation of the core package 2020-05-19 11:42:57 +02:00
Nathan Adams 82995386e7 chore: Update readme to explain that you need to build demo before running it 2020-05-19 11:42:57 +02:00
Nathan Adams 82c1930c0f web: web doesn't need install before bootstrap now 2020-05-19 11:42:57 +02:00
Nathan Adams ec6363813c chore: Split CI into "rust" and "web" tests to speed up time 2020-05-19 11:42:57 +02:00
Nathan Adams 9f4455f2fb web: Fixed extra </div> in demo 2020-05-19 11:42:56 +02:00
Nathan Adams 3fcb7f08e2 web: Add 'npm run format' command for ease of use 2020-05-19 11:42:56 +02:00
Nathan Adams d1bb3c4e28 web: Array.flat doesn't exist in node10 2020-05-19 11:42:56 +02:00
Nathan Adams 2f9846b05c web: Don't hoist in lerna bootstrap, it seems to cause issues installing CLI dependencies 2020-05-19 11:42:56 +02:00
Nathan Adams bdbb9ec7f7 chore: Run `npm ci` to make sure we have lerna installed 2020-05-19 11:42:56 +02:00
Nathan Adams b0b54b59f9 web: Avoid any issues with parseInt("0...") 2020-05-19 11:42:56 +02:00
Nathan Adams 4ab15855ff chore: Check web tests in CI 2020-05-19 11:42:55 +02:00
Nathan Adams f3690db1bf web: Fixed bug with broken comparisons in Version#is_compatible_with 2020-05-19 11:42:55 +02:00
Nathan Adams bd6ed0b234 web: Add initial tests to core package 2020-05-19 11:42:55 +02:00
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