Commit Graph

1629 Commits

Author SHA1 Message Date
Mike Welsh 93b5b4801d chore: CI test build 2020-05-24 21:15:04 -07:00
Mike Welsh 52db367704 chore: Install Chrome for CircleCI 2020-05-24 21:11:47 -07:00
Mike Welsh 993421e732 core: Children run an initial frame when changing button states
There was a one-frame-off flicker when a button changed states.
Now children will tick a frame so that they are properly created
immediately when the parent button changes state.
2020-05-24 08:57:30 -07:00
Mike Welsh 932ad30570 core: Flatten ClipActions into a single event per action
Previously a MovieClip's clip action would have a set of events
that would trigger it. Now we flatten these out into a single
event per action, because this is by far the common case. If an
action does happen to have >1 event, it will be duplicated for each.
2020-05-24 08:57:30 -07:00
Mike Welsh c427d55dbb core: Clean up clip event handlers
Remove ButtonEvent and subsume it in ClipEvent. Player now tosses
ClipEvents down the display tree, cleaning up some of the event code.
2020-05-24 08:57:30 -07:00
Mike Welsh 6929cea996 core: Implement button event handlers for movie clips 2020-05-24 08:57:30 -07:00
Nathan Adams d846ed943b web: Split frame/iframe polyfill tests into provided vs injected, as we see issues with one or the other 2020-05-24 08:57:16 -07:00
Nathan Adams 8a32f0d053 web: Add polyfill test for <iframe>s 2020-05-24 08:57:16 -07:00
Nathan Adams a7abdba49c web: Add test for classic <frame>s 2020-05-24 08:57:16 -07:00
Nathan Adams a0bfe72b19 web: Add polyfill tests 2020-05-24 08:57:16 -07:00
Mike Welsh 028774d6f8 chore: Fix CircleCI nightly web build 2020-05-23 10:50:32 -07:00
Nathan Adams 34927583be web: Made VersionRange actually work, and add tests for it 2020-05-23 10:35:53 -07:00
dependabot-preview[bot] daebcbfed5 build(deps-dev): bump eslint from 7.0.0 to 7.1.0 in /web
Bumps [eslint](https://github.com/eslint/eslint) from 7.0.0 to 7.1.0.
- [Release notes](https://github.com/eslint/eslint/releases)
- [Changelog](https://github.com/eslint/eslint/blob/master/CHANGELOG.md)
- [Commits](https://github.com/eslint/eslint/compare/v7.0.0...v7.1.0)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-05-23 17:28:44 +00:00
dependabot-preview[bot] f8062b610f build(deps-dev): bump mocha from 7.1.2 to 7.2.0 in /web
Bumps [mocha](https://github.com/mochajs/mocha) from 7.1.2 to 7.2.0.
- [Release notes](https://github.com/mochajs/mocha/releases)
- [Changelog](https://github.com/mochajs/mocha/blob/v7.2.0/CHANGELOG.md)
- [Commits](https://github.com/mochajs/mocha/compare/v7.1.2...v7.2.0)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-05-23 17:28:03 +00:00
Mike Welsh 92c764cfab canvas: Implement gradient spread modes 2020-05-22 11:03:16 -07:00
Mike Welsh b8b53817c8 canvas: Implement linear RGB gradients 2020-05-22 11:03:16 -07:00
Mike Welsh 103c7a98f0 wgpu: Implement linear RGB gradients 2020-05-22 11:03:16 -07:00
Mike Welsh 09ca11f788 webgl: Implement linear RGB gradients 2020-05-22 11:03:16 -07:00
SimplyMinimal c30453c144
exporter: Add support to skip ahead n-frames for screen capture (#614) 2020-05-22 08:58:51 -07:00
Mike Welsh 97db518fb1
core: First pass of drawing API (merge #611) 2020-05-22 08:54:55 -07:00
Nathan Adams 596da722b3 chore: Fix failing circleci build script (fixes #617) 2020-05-22 07:45:07 -07:00
Nathan Adams 3346accb9c core: More accurate shape_bounds/edge_bounds in drawing api 2020-05-21 20:34:48 +02:00
Nathan Adams 62a1914c3e core: BoundingBox::encompass should properly convert invalid BBs to valid BBs.
This means that encompassing 100,100 on an invalid BB should create a BB of 100,100-100,100, and not 0,0-100,100
2020-05-21 20:19:26 +02:00
Nathan Adams 279c07d9b8 core: Update drawings on render instead of on tick 2020-05-21 18:38:10 +02:00
Nathan Adams 55215273e8 core: Stretch edge & shape bounds separately and avoid a clone, in rendering api 2020-05-21 18:38:10 +02:00
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