summaryrefslogtreecommitdiffstats
path: root/platform/web/js
Commit message (Collapse)AuthorAgeFilesLines
* Rebrand preambles to RedotSpartan3222024-10-1310-0/+20
| | | | | | | | | | | | | | | | | | | | | | | | (cherry picked from commit e8542b06acca3c1bdeee4b528411771f0819f084) Credits: Co-authored-by: Skogi <skogi.b@gmail.com> Co-authored-by: Spartan322 <Megacake1234@gmail.com> Co-authored-by: swashberry <swashdev@pm.me> Co-authored-by: Christoffer Sundbom <christoffer_karlsson@live.se> Co-authored-by: Dubhghlas McLaughlin <103212704+mcdubhghlas@users.noreply.github.com> Co-authored-by: McDubh <103212704+mcdubhghlas@users.noreply.github.com> Co-authored-by: Dubhghlas McLaughlin <103212704+mcdubhghlas@users.noreply.github.com> Co-authored-by: radenthefolf <radenthefolf@gmail.com> Co-authored-by: John Knight <80524176+Tekisasu-JohnK@users.noreply.github.com> Co-authored-by: Adam Vondersaar <adam.vondersaar@uphold.com> Co-authored-by: decryptedchaos <nixgod@gmail.com> Co-authored-by: zaftnotameni <122100803+zaftnotameni@users.noreply.github.com> Co-authored-by: Aaron Benjamin <lifeartstudios@gmail.com> Co-authored-by: wesam <108880473+wesamdev@users.noreply.github.com> Co-authored-by: Mister Puma <MisterPuma80@gmail.com> Co-authored-by: Aaron Benjamin <lifeartstudios@gmail.com> Co-authored-by: SingleError <isaaconeoneone@gmail.com> Co-authored-by: Bioblaze Payne <BioblazePayne@gmail.com>
* Rebrand Godot 4.3 to RedotTrashguy2024-10-133-3/+3
|
* Honor `pitch_scale` value before playing audio sampleAdam Scott2024-09-161-3/+7
| | | | (cherry picked from commit aaafd163b29180090161c0169c70ab2772dfdcd7)
* Fix AudioStreamPlayer get_playback_position() for web buildYahkub-R2024-09-163-3/+158
| | | | (cherry picked from commit bcd776e44174677f1995a49b697f9651f1f692ec)
* Add missing null check before disconnecting sourceAdam Scott2024-07-301-1/+3
|
* [Web] Gracefully handle non-finite audio volumesA Thousand Ships2024-07-291-1/+4
|
* [Web] Enable the closure compiler in CIFabio Alessandrelli2024-07-261-13/+8
| | | | Also fixes some JSDoc annotations in GodotAudio
* Merge pull request #94044 from adamscott/fix-web-sample-playback-finished-signalRémi Verschelde2024-07-071-2/+25
|\ | | | | | | Fix Web samples finished missing signal
| * Fix Web samples finished missing signalAdam Scott2024-07-071-2/+25
| |
* | Fix IME blocking controlsAnni Ryynänen2024-07-071-0/+1
|/
* Merge pull request #93750 from ↵Rémi Verschelde2024-07-041-4/+12
|\ | | | | | | | | | | adamscott/add-bigint-support-on-js-value-conversion Add `bigint` support on JS value conversion
| * Add `bigint` support on JS value conversionAdam Scott2024-07-031-4/+12
| |
* | Fix assignations to non-existing keys and clean-upAdam Scott2024-06-291-6/+4
|/
* Fix pausing issues when using Web Audio samplesAdam Scott2024-06-201-59/+117
|
* Add samples playback supportAdam Scott2024-06-182-31/+1586
|
* [Web] Use the module config to preload GDExtension libraries.Fabio Alessandrelli2024-06-142-16/+13
| | | | | | | | | Instead of calling loadDynamicLibraries ourselves, we add the GDExtension libraries to preload to the "dynamicLibraries" module config property. This seems to fix some threading issue with some browsers during the init phase.
* Merge pull request #91695 from bruvzg/web_ime_posRémi Verschelde2024-05-281-4/+13
|\ | | | | | | [Web IME] Fix suggestion window position in Chromium based browsers.
| * [Web IME] Fix suggestion window position in Chromium based browsers.bruvzg2024-05-091-4/+13
| |
* | Upgrade to eslint 9patwork2024-05-225-17/+17
|/
* [Web] Fix closure compiler typedef annotationFabio Alessandrelli2024-04-261-2/+1
| | | | | The typedef annotation is expected to come bofre a var (or const) since it's most commonly used in externs. Use an inline definition instead.
* Add option to ensure cross-origin isolation headers on web exportAdam Scott2024-02-121-3/+13
|
* Fix various typos with codespellRémi Verschelde2024-02-071-1/+1
| | | | | | | | | | | Using 2.2.7.dev115+g0eb441d6. Had to add `cancelled` to the ignore list, as it's a Wayland signal which we're handling in our code, so we don't want codespell to fix that "typo". Also includes the typo fix from #87927. Co-authored-by: Divyanshu Shekhar <61140213+divshekhar@users.noreply.github.com>
* Add THREADS_ENABLED macro in order to compile Godot to run on the main threadAdam Scott2024-01-172-8/+18
|
* [Web] Add IME input support.bruvzg2023-12-151-1/+134
|
* Add MSAA support for WebXRDavid Snopek2023-12-112-0/+33
|
* Fix various typos with codespellRémi Verschelde2023-11-111-2/+2
| | | | Using 2.2.7.dev51+geb4a58fe.
* [Web] Improve emscripten "locateFile" glue.Fabio Alessandrelli2023-10-111-1/+3
| | | | | Be more selective on what we rewrite, since in recent emscripten versions loading dynamic libraries relies on it.
* Merge pull request #79711 from adamscott/web-non-blocking-main-threadRémi Verschelde2023-10-097-0/+104
|\ | | | | | | Add `proxy_to_pthread` option to `platform=web`
| * Add `proxy_to_pthread` option to `platform=web`Adam Scott2023-10-097-0/+104
| | | | | | | | Co-authored-by: Fabio Alessandrelli <fabio.alessandrelli@gmail.com>
* | Web: Catch using GDExtensions in a non-dlink buildMario Liebisch2023-10-061-0/+4
|/ | | | | Previously this would simply fail with a cryptic `me.rtenv.loadDynamicLibrary is not a function` error.
* Fix godot_js_wrapper_create_cb regressionAdam Scott2023-10-031-1/+1
|
* Fix JavaScript callback memory leak issueSysError992023-09-071-1/+3
| | | | Typo fix
* Fix `JavaScriptBridge.eval()` never returning PackedByteArrayEmmanouil Papadeas2023-08-281-3/+3
| | | | | | It wrongly returned 20 on array buffers, which used to be the enumerator value of Godot 3.x's type PoolByteArray, and now is the value of type Color, while it should return 29 which is the enumerator value for PackedByteArray.
* Fix various typos with codespellRémi Verschelde2023-08-072-5/+5
| | | | | | | | | Also includes typo fixes from #79993, #80068, #80276, and #80303. Co-authored-by: betalars <contact@betalars.de> Co-authored-by: spaceyjase <429978+spaceyjase@users.noreply.github.com> Co-authored-by: Swarkin <102416174+Swarkin@users.noreply.github.com> Co-authored-by: Raul Santos <raulsntos@gmail.com>
* [Web] Update npm packagesFabio Alessandrelli2023-07-311-1/+1
|
* [Web] Always return -1 as body length in HTTPClientWeb.Fabio Alessandrelli2023-07-241-15/+0
| | | | | | | | | | | | | | | Body length cannot be reliably retrieved from the web. Reading the "content-length" value will return a meaningless value when the response is compressed, as reading will return uncompressed chunks in any case, resulting in a mismatch between the detected body size and the actual size returned by repeatedly calling read_response_body_chunk. Additionally, while "content-length" is considered a safe CORS header, "content-encoding" is not, so using the "content-encoding" to decide if "content-length" is meaningful is not an option either. We simply must accept the fact that browsers are awful when it comes to networking APIs.
* Merge pull request #78437 from bruvzg/set_iconYuri Sizov2023-07-121-9/+16
|\ | | | | | | Add error checks and harmonize behavior of the `set_icon` method.
| * Add error checks and harmonize behavior of the set_icon method.bruvzg2023-07-031-9/+16
| |
* | fix typo on TLSOptions.xml and library_godot_display.jsSeptian2023-07-081-1/+1
|/
* Fix `HTTPClient.get_response_body_length()` incorrect on WebZae2023-05-301-0/+5
|
* [Web] Detect host OS and use macOS keys on mac hosts.bruvzg2023-04-111-0/+22
|
* Further refactoring to AudioDriver implementations after #69120.Emmanouil Papadeas2023-02-091-6/+6
| | | | | | | | | | | | - Rename all instances of `capture_start()` and `capture_end()` to their new names. Fixes #72892. - More internal renames to match what was started in #69120. - Use `override` consistently so that such refactoring bugs can be caught. - Harmonize the order of definition of the overridden virtual methods in each audio driver. - Harmonize prototype for `set_output_device` and `set_input_device`. Co-authored-by: Rémi Verschelde <rverschelde@gmail.com>
* One Copyright Update to rule them allRémi Verschelde2023-01-059-260/+261
| | | | | | | | | | | | | | | | | | | | As many open source projects have started doing it, we're removing the current year from the copyright notice, so that we don't need to bump it every year. It seems like only the first year of publication is technically relevant for copyright notices, and even that seems to be something that many companies stopped listing altogether (in a version controlled codebase, the commits are a much better source of date of publication than a hardcoded copyright statement). We also now list Godot Engine contributors first as we're collectively the current maintainers of the project, and we clarify that the "exclusive" copyright of the co-founders covers the timespan before opensourcing (their further contributions are included as part of Godot Engine contributors). Also fixed "cf." Frenchism - it's meant as "refer to / see".
* Rename all gdnative occurences to gdextensionGilles Roudière2022-12-122-4/+4
| | | | | | | | | | | | | Non-exhaustive list of case-sensitive renames: GDExtension -> GDNative GDNATIVE -> GDEXTENSION gdextension -> gdnative ExtensionExtension ->Extension (for where there was GDNativeExtension) EXTENSION_EXTENSION ->EXTENSION (for where there was GDNATIVE_EXTENSION) gdnlib -> gdextension gdn_interface -> gde_interface gdni -> gde_interface
* Merge pull request #68870 from dsnopek/master-webxr-inputRémi Verschelde2022-12-022-2/+39
|\ | | | | | | Get WebXR fully working in Godot 4!
| * Get WebXR fully working in Godot 4!David Snopek2022-12-012-2/+39
| |
* | Merge pull request #67815 from Calinou/html5-improve-feature-errorsRémi Verschelde2022-11-281-5/+5
|\ \ | |/ |/| | | Improve feature errors in HTML5 for easier understanding
| * Improve feature errors in HTML5 for easier understandingHugo Locurcio2022-10-231-5/+5
| |
* | [Web] Improve Godot shutdown and cleanup.Fabio Alessandrelli2022-11-051-1/+1
| |
* | Add multiview to the opengl3 driverDavid Snopek2022-10-211-0/+52
|/