David Wendt
66bf03908b
avm1: Implement `TextFormat.getTextExtent`
2022-11-20 17:13:48 -07:00
David Wendt
83db53202e
core: Add empty boxes for empty lines *without* breaking multiple-format lines.
2022-11-20 17:13:48 -07:00
David Wendt
6590f58efe
tests: Make `edittext_getlinemetrics` an approximate test with a tolerance of a quarter pixel.
2022-11-20 17:13:48 -07:00
David Wendt
88c3cf0c72
core: The leading for a given line is stated using the text format's leading, not the font's leading.
2022-11-20 17:13:48 -07:00
David Wendt
59f01a40f1
core: Empty lines should also generate a layout box.
2022-11-20 17:13:48 -07:00
David Wendt
1952870ed1
tests: Include tests for empty newlines in the `as3_edittext_getlinemetrics` test.
2022-11-20 17:13:48 -07:00
David Wendt
5f7344259a
avm2: Impl `TextField.numLines` and `.getLineMetrics`
2022-11-20 17:13:48 -07:00
David Wendt
1efa29baa6
core: Add methods for introspecting text metrics on an `EditText`.
2022-11-20 17:13:48 -07:00
David Wendt
c0b6496b96
tests: Add tests for AVM1 `gettextextent` and AVM2 `TextField.getLineMetrics`.
2022-11-20 17:13:48 -07:00
Adrian Wielgosik
7e2b876ab3
avm2: Refactor context menu field bool checks into macro
2022-11-17 22:03:54 -05:00
Adrian Wielgosik
e840d1f71c
core: Support AVM2 context menu (sans callbacks)
2022-11-17 22:03:54 -05:00
Toad06
182c3b78e4
avm1: onData fails if the loaded data is an empty string
2022-11-17 20:51:11 -05:00
dependabot[bot]
b3debc96af
build(deps): bump clap from 4.0.22 to 4.0.24
...
Bumps [clap](https://github.com/clap-rs/clap ) from 4.0.22 to 4.0.24.
- [Release notes](https://github.com/clap-rs/clap/releases )
- [Changelog](https://github.com/clap-rs/clap/blob/master/CHANGELOG.md )
- [Commits](https://github.com/clap-rs/clap/compare/v4.0.22...v4.0.24 )
---
updated-dependencies:
- dependency-name: clap
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
2022-11-15 09:33:20 +02:00
dependabot[bot]
98aa6014de
build(deps): bump webbrowser from 0.8.1 to 0.8.2
...
Bumps [webbrowser](https://github.com/amodm/webbrowser-rs ) from 0.8.1 to 0.8.2.
- [Release notes](https://github.com/amodm/webbrowser-rs/releases )
- [Changelog](https://github.com/amodm/webbrowser-rs/blob/main/CHANGELOG.md )
- [Commits](https://github.com/amodm/webbrowser-rs/compare/v0.8.1...v0.8.2 )
---
updated-dependencies:
- dependency-name: webbrowser
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
2022-11-15 09:02:49 +02:00
dependabot[bot]
cdf8499685
build(deps): bump indicatif from 0.17.1 to 0.17.2
...
Bumps [indicatif](https://github.com/console-rs/indicatif ) from 0.17.1 to 0.17.2.
- [Release notes](https://github.com/console-rs/indicatif/releases )
- [Commits](https://github.com/console-rs/indicatif/compare/0.17.1...0.17.2 )
---
updated-dependencies:
- dependency-name: indicatif
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
2022-11-15 08:32:44 +02:00
dependabot[bot]
4c34fa361d
build(deps): bump image from 0.24.4 to 0.24.5
...
Bumps [image](https://github.com/image-rs/image ) from 0.24.4 to 0.24.5.
- [Release notes](https://github.com/image-rs/image/releases )
- [Changelog](https://github.com/image-rs/image/blob/master/CHANGES.md )
- [Commits](https://github.com/image-rs/image/compare/v0.24.4...v0.24.5 )
---
updated-dependencies:
- dependency-name: image
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
2022-11-15 08:12:38 +02:00
dependabot[bot]
99a4172e2b
build(deps): bump gc-arena from `081b688` to `24d8aea`
...
Bumps [gc-arena](https://github.com/ruffle-rs/gc-arena ) from `081b688` to `24d8aea`.
- [Release notes](https://github.com/ruffle-rs/gc-arena/releases )
- [Commits](081b6883a5...24d8aea5f0
)
---
updated-dependencies:
- dependency-name: gc-arena
dependency-type: direct:production
...
Signed-off-by: dependabot[bot] <support@github.com>
2022-11-14 22:48:13 +02:00
Toad06
1cb2678013
web: Add `has` and `ownKeys` methods to the `Reflect` polyfill
2022-11-14 21:31:08 +02:00
TÖRÖK Attila
08270efee7
avm2: Implement SoundMixer.computeSpectrum()
2022-11-10 19:11:29 -05:00
TÖRÖK Attila
2b4d8d9c6e
core,desktop: Add and implement AudioBackend::get_sample_history()
2022-11-10 19:11:29 -05:00
Moulins
fb8caad783
core: rename TInteractiveObject::{ibase => raw_interactive}(_mut)
...
To match with TDisplayObjectContainer::raw_container(_mut) introduced
in previous commit.
2022-11-09 23:39:15 -05:00
Moulins
0bc01c239f
core: remove impl_display_object_container! macro
...
It is replaced by two accessor methods on the trait + default
implementations of all other methods.
2022-11-09 23:39:15 -05:00
dependabot[bot]
f31f52f2da
build(deps): bump embed-resource from 1.7.2 to 1.7.4
...
Bumps [embed-resource](https://github.com/nabijaczleweli/rust-embed-resource ) from 1.7.2 to 1.7.4.
- [Release notes](https://github.com/nabijaczleweli/rust-embed-resource/releases )
- [Commits](https://github.com/nabijaczleweli/rust-embed-resource/compare/v1.7.2...v1.7.4 )
---
updated-dependencies:
- dependency-name: embed-resource
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
2022-11-08 09:21:50 +02:00
dependabot[bot]
63a297608e
build(deps): bump lyon from 1.0.0 to 1.0.1
...
Bumps [lyon](https://github.com/nical/lyon ) from 1.0.0 to 1.0.1.
- [Release notes](https://github.com/nical/lyon/releases )
- [Commits](https://github.com/nical/lyon/commits )
---
updated-dependencies:
- dependency-name: lyon
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
2022-11-08 09:00:31 +02:00
dependabot[bot]
9303304e3b
build(deps): bump clap from 4.0.18 to 4.0.22
...
Bumps [clap](https://github.com/clap-rs/clap ) from 4.0.18 to 4.0.22.
- [Release notes](https://github.com/clap-rs/clap/releases )
- [Changelog](https://github.com/clap-rs/clap/blob/master/CHANGELOG.md )
- [Commits](https://github.com/clap-rs/clap/compare/v4.0.18...v4.0.22 )
---
updated-dependencies:
- dependency-name: clap
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
2022-11-08 00:25:12 +02:00
relrelb
c516fef65d
swf: Simplify read of `PlaceObject` tags
...
`tag_length` isn't really necessary since each tag is read using
a dedicated `swf::Reader`, which keeps track of the tag boundary
internally.
As a result, `tag_len` can be avoided passed around many times in
`movie_clip.rs`.
2022-11-08 00:05:41 +02:00
dependabot[bot]
8f214ff9a3
build(deps): bump regex from 1.6.0 to 1.7.0
...
Bumps [regex](https://github.com/rust-lang/regex ) from 1.6.0 to 1.7.0.
- [Release notes](https://github.com/rust-lang/regex/releases )
- [Changelog](https://github.com/rust-lang/regex/blob/master/CHANGELOG.md )
- [Commits](https://github.com/rust-lang/regex/compare/1.6.0...1.7.0 )
---
updated-dependencies:
- dependency-name: regex
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
2022-11-07 23:37:56 +02:00
dependabot[bot]
52f692c0e1
build(deps): bump env_logger from 0.9.1 to 0.9.3
...
Bumps [env_logger](https://github.com/env-logger-rs/env_logger ) from 0.9.1 to 0.9.3.
- [Release notes](https://github.com/env-logger-rs/env_logger/releases )
- [Changelog](https://github.com/env-logger-rs/env_logger/blob/main/CHANGELOG.md )
- [Commits](https://github.com/env-logger-rs/env_logger/compare/v0.9.1...v0.9.3 )
---
updated-dependencies:
- dependency-name: env_logger
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
2022-11-07 23:02:47 +02:00
dependabot[bot]
7ea0dd1221
build(deps): bump bytemuck from 1.12.2 to 1.12.3
...
Bumps [bytemuck](https://github.com/Lokathor/bytemuck ) from 1.12.2 to 1.12.3.
- [Release notes](https://github.com/Lokathor/bytemuck/releases )
- [Changelog](https://github.com/Lokathor/bytemuck/blob/main/changelog.md )
- [Commits](https://github.com/Lokathor/bytemuck/compare/v1.12.2...v1.12.3 )
---
updated-dependencies:
- dependency-name: bytemuck
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
2022-11-07 22:32:10 +02:00
relrelb
2e04ccc8fe
web: Update `package-lock.json`
...
Using `npm audit fix`
2022-11-06 20:36:33 +02:00
relrelb
b52ae03759
extension: Convert tools to ESM
2022-11-06 20:36:33 +02:00
moulins
8cbd527e4c
avm1: Small cleanups in ActionQueue ( #8486 )
...
- Use a fixed-size array instead of a Vec for the queues
- Remove unwanted plurals in methods and types names
2022-11-06 07:39:11 +02:00
relrelb
d16e9e1511
wgpu: Use `Depth24PlusStencil8` again
...
This reverts #8297 . Instead, pin `wgpu-hal` and `wgpu-types` to
include https://github.com/gfx-rs/wgpu/pull/3165 , which fixes
https://github.com/gfx-rs/wgpu/issues/3112 .
2022-11-03 20:42:39 +02:00
relrelb
b3cdd6dda1
Revert "wgpu: Use `Depth32FloatStencil8` over `Depth24PlusStencil8`"
...
This reverts commit 37f171de06
.
2022-11-03 20:42:39 +02:00
Moulins
e121c82b10
avm1: remove manual bit-wrangling in declare_properties! macro
...
Now that the relevant compiler ICE is fixed, we can use the Attribute
constants directly
2022-11-03 09:19:11 +02:00
relrelb
6dbf78ae59
web: Fix `temp-dir` upgrade
...
`temp-dir` 3.0.0 is now pure ESM. As such, it no longer can be `require`d.
To workaround this, use `await import` instead.
In the long-term, it might be worth converting the `sign_xpi.js`
script itself to ESM.
2022-11-03 00:37:08 +02:00
dependabot[bot]
807f1f6690
build(deps-dev): bump mocha from 10.0.0 to 10.1.0 in /web
...
Bumps [mocha](https://github.com/mochajs/mocha ) from 10.0.0 to 10.1.0.
- [Release notes](https://github.com/mochajs/mocha/releases )
- [Changelog](https://github.com/mochajs/mocha/blob/master/CHANGELOG.md )
- [Commits](https://github.com/mochajs/mocha/compare/v10.0.0...v10.1.0 )
---
updated-dependencies:
- dependency-name: mocha
dependency-type: direct:development
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
2022-11-02 15:56:35 +02:00
dependabot[bot]
a9964fa91e
build(deps-dev): bump @wdio/spec-reporter from 7.20.8 to 7.25.4 in /web
...
Bumps [@wdio/spec-reporter](https://github.com/webdriverio/webdriverio ) from 7.20.8 to 7.25.4.
- [Release notes](https://github.com/webdriverio/webdriverio/releases )
- [Changelog](https://github.com/webdriverio/webdriverio/blob/v7.25.4/CHANGELOG.md )
- [Commits](https://github.com/webdriverio/webdriverio/compare/v7.20.8...v7.25.4 )
---
updated-dependencies:
- dependency-name: "@wdio/spec-reporter"
dependency-type: direct:development
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
2022-11-02 14:54:17 +02:00
dependabot[bot]
2f195d1ea1
build(deps-dev): bump typedoc from 0.23.15 to 0.23.19 in /web
...
Bumps [typedoc](https://github.com/TypeStrong/TypeDoc ) from 0.23.15 to 0.23.19.
- [Release notes](https://github.com/TypeStrong/TypeDoc/releases )
- [Changelog](https://github.com/TypeStrong/typedoc/blob/master/CHANGELOG.md )
- [Commits](https://github.com/TypeStrong/TypeDoc/compare/v0.23.15...v0.23.19 )
---
updated-dependencies:
- dependency-name: typedoc
dependency-type: direct:development
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
2022-11-02 14:19:50 +02:00
dependabot[bot]
66a9f25601
build(deps-dev): bump eslint-plugin-prettier from 4.0.0 to 4.2.1 in /web
...
Bumps [eslint-plugin-prettier](https://github.com/prettier/eslint-plugin-prettier ) from 4.0.0 to 4.2.1.
- [Release notes](https://github.com/prettier/eslint-plugin-prettier/releases )
- [Changelog](https://github.com/prettier/eslint-plugin-prettier/blob/master/CHANGELOG.md )
- [Commits](https://github.com/prettier/eslint-plugin-prettier/compare/v4.0.0...v4.2.1 )
---
updated-dependencies:
- dependency-name: eslint-plugin-prettier
dependency-type: direct:development
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
2022-11-02 13:25:48 +02:00
dependabot[bot]
c20f1abeee
build(deps-dev): bump @typescript-eslint/eslint-plugin in /web
...
Bumps [@typescript-eslint/eslint-plugin](https://github.com/typescript-eslint/typescript-eslint/tree/HEAD/packages/eslint-plugin ) from 5.32.0 to 5.42.0.
- [Release notes](https://github.com/typescript-eslint/typescript-eslint/releases )
- [Changelog](https://github.com/typescript-eslint/typescript-eslint/blob/main/packages/eslint-plugin/CHANGELOG.md )
- [Commits](https://github.com/typescript-eslint/typescript-eslint/commits/v5.42.0/packages/eslint-plugin )
---
updated-dependencies:
- dependency-name: "@typescript-eslint/eslint-plugin"
dependency-type: direct:development
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
2022-11-02 13:02:46 +02:00
dependabot[bot]
b339715602
build(deps-dev): bump stylelint from 14.11.0 to 14.14.0 in /web
...
Bumps [stylelint](https://github.com/stylelint/stylelint ) from 14.11.0 to 14.14.0.
- [Release notes](https://github.com/stylelint/stylelint/releases )
- [Changelog](https://github.com/stylelint/stylelint/blob/main/CHANGELOG.md )
- [Commits](https://github.com/stylelint/stylelint/compare/14.11.0...14.14.0 )
---
updated-dependencies:
- dependency-name: stylelint
dependency-type: direct:development
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
2022-11-02 11:55:53 +02:00
dependabot[bot]
b2cd5d9453
build(deps): bump wasm-feature-detect from 1.2.11 to 1.3.0 in /web
...
Bumps [wasm-feature-detect](https://github.com/GoogleChromeLabs/wasm-feature-detect ) from 1.2.11 to 1.3.0.
- [Release notes](https://github.com/GoogleChromeLabs/wasm-feature-detect/releases )
- [Commits](https://github.com/GoogleChromeLabs/wasm-feature-detect/commits/v1.3.0 )
---
updated-dependencies:
- dependency-name: wasm-feature-detect
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
2022-11-02 09:52:51 +02:00
dependabot[bot]
663182cd49
build(deps-dev): bump @wdio/static-server-service in /web
...
Bumps [@wdio/static-server-service](https://github.com/webdriverio/webdriverio ) from 7.25.1 to 7.25.4.
- [Release notes](https://github.com/webdriverio/webdriverio/releases )
- [Changelog](https://github.com/webdriverio/webdriverio/blob/v7.25.4/CHANGELOG.md )
- [Commits](https://github.com/webdriverio/webdriverio/compare/v7.25.1...v7.25.4 )
---
updated-dependencies:
- dependency-name: "@wdio/static-server-service"
dependency-type: direct:development
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
2022-11-02 09:16:05 +02:00
dependabot[bot]
d0989f4261
build(deps-dev): bump @types/chrome from 0.0.197 to 0.0.200 in /web
...
Bumps [@types/chrome](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/chrome ) from 0.0.197 to 0.0.200.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases )
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/chrome )
---
updated-dependencies:
- dependency-name: "@types/chrome"
dependency-type: direct:development
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
2022-11-02 00:46:45 +02:00
dependabot[bot]
804845b524
build(deps-dev): bump temp-dir from 2.0.0 to 3.0.0 in /web
...
Bumps [temp-dir](https://github.com/sindresorhus/temp-dir ) from 2.0.0 to 3.0.0.
- [Release notes](https://github.com/sindresorhus/temp-dir/releases )
- [Commits](https://github.com/sindresorhus/temp-dir/compare/v2.0.0...v3.0.0 )
---
updated-dependencies:
- dependency-name: temp-dir
dependency-type: direct:development
update-type: version-update:semver-major
...
Signed-off-by: dependabot[bot] <support@github.com>
2022-11-02 00:16:26 +02:00
Adrian Wielgosik
3458cd92e4
avm2: Support DO.getBounds, (partial) getRect
2022-11-01 22:46:34 +01:00
relrelb
89f3445d62
swf: Introduce and use `Rectangle::width()` and `Rectangle::height()`
2022-11-01 09:49:04 +02:00
dependabot[bot]
da02dc453d
build(deps): bump winit from 0.27.4 to 0.27.5
...
Bumps [winit](https://github.com/rust-windowing/winit ) from 0.27.4 to 0.27.5.
- [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.27.4...v0.27.5 )
---
updated-dependencies:
- dependency-name: winit
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
2022-11-01 00:40:32 +02:00
dependabot[bot]
f4e7f43d1a
build(deps): bump bytemuck from 1.12.1 to 1.12.2
...
Bumps [bytemuck](https://github.com/Lokathor/bytemuck ) from 1.12.1 to 1.12.2.
- [Release notes](https://github.com/Lokathor/bytemuck/releases )
- [Changelog](https://github.com/Lokathor/bytemuck/blob/main/changelog.md )
- [Commits](https://github.com/Lokathor/bytemuck/compare/v1.12.1...v1.12.2 )
---
updated-dependencies:
- dependency-name: bytemuck
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
2022-11-01 00:17:08 +02:00