Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(wasm): replace dart:html and dart:js with package:web and dart:js_interop for WebAssembly support #304

Merged
merged 9 commits into from
Dec 28, 2024

Conversation

hm21
Copy link
Owner

@hm21 hm21 commented Dec 28, 2024

  • Updated dependencies in pubspec.yaml to use package:web and dart:js_interop.
  • Added new constants in editor_web_constants.dart.
  • Refactored threading logic in thread_request_model.dart, web_worker_manager.dart, and related files to enable WebAssembly support.
  • Introduced web_worker.dart.wasm and related files for WebAssembly integration.
  • Updated image utilities (convert_raw_image.dart, encode_image.dart) for compatibility.
  • Adjusted configurations in analysis_options.yaml and added relevant changes to CHANGELOG.md.

These changes enable better performance and compatibility for WebAssembly (Wasm).

hm21 added 9 commits August 26, 2024 18:33
- Created the initial setup for the video combine feature
- Added `combine_video_editor_example.dart` to handle the main logic
- Introduced utility for video image elements in `video_image_element.dart`
- Added widgets for video editing pages and media picking
- Included a bottom bar widget for video sending functionality

Note: The implementation is not yet complete.
- Added a download button to enhance usability in example pages.
- Updated `main.dart` and relevant pages to support the feature.
- Removed unused video-related files and widgets to streamline the codebase.
- Updated generated files and configurations in `linux`, `macOS`, and `Windows` to reflect changes.
Resolved an issue where the layer rotation was calculated incorrectly when the user dragged the rotation button.

Resolve #266
Resolved merge conflicts in `preview_img.dart` and `zoom_example.dart` while merging changes from the `stable` branch into the `dev` branch.
…`dart:js_interop` for WebAssembly support

- Updated dependencies in `pubspec.yaml` to use `package:web` and `dart:js_interop`.
- Added new constants in `editor_web_constants.dart`.
- Refactored threading logic in `thread_request_model.dart`, `web_worker_manager.dart`, and related files to enable WebAssembly support.
- Introduced `web_worker.dart.wasm` and related files for WebAssembly integration.
- Updated image utilities (`convert_raw_image.dart`, `encode_image.dart`) for compatibility.
- Adjusted configurations in `analysis_options.yaml` and added relevant changes to `CHANGELOG.md`.

These changes enable better performance and compatibility for WebAssembly (Wasm).
@hm21 hm21 merged commit 56a4b3e into stable Dec 28, 2024
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant