summaryrefslogtreecommitdiffstats
path: root/platform/javascript
Commit message (Collapse)AuthorAgeFilesLines
* [Web] Rename JavaScript platform to Web.Fabio Alessandrelli2022-08-2951-15436/+0
| | | | Also rename export name from "HTML5" to "Web".
* Improve platform-specific READMEs to add useful linksHugo Locurcio2022-08-251-2/+9
| | | | This also adds READMEs for all platforms.
* Unify bits, arch, and android_arch into env["arch"]Aaron Franke2022-08-251-0/+10
| | | | | | Fully removes the `bits` option and adapts the code that relied on it. Co-authored-by: Rémi Verschelde <rverschelde@gmail.com>
* Replace Array return types with TypedArraykobewi2022-08-222-2/+2
|
* Merge pull request #64374 from RandomShaper/inheritable_cl_argsRémi Verschelde2022-08-221-1/+0
|\
| * Overhaul CLI argument forwarding to processes started by the editorPedro J. Estébanez2022-08-191-1/+0
| |
* | Improve performance of screen_get_dpi() in JavascriptJamie Pate2022-08-151-21/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Replace a bisect with a single multiplication when calling screen_get_dpi() in Javascript Tested the value of window.matchMedia(`(resolution:${(window.devicePixelRatio*96).toFixed(100)}dpi)`).matches which is true except for values that cause a lot of rounding errors (e.g. dpr : 0.3 => resolution: 28.799999999999997dpi) Even in these cases the value matches the result of the previous `findDPI()` method. See also: https://github.com/godotengine/godot/commit/6cff589b5bd483b563fe465bde74ca94902aab41#r81273660
* | Refactor the export checking logic to improve separation of concernsFredia Huya-Kouadio2022-08-142-3/+24
|/
* Add support for multiple virtual keyboard typesBrian Semrau2022-08-044-8/+47
|
* Extract EditorResourceConversionPlugin into its own source files and clean ↵Yuri Sizov2022-07-312-0/+2
| | | | up editor includes
* Merge pull request #63563 from aaronfranke/export-archRémi Verschelde2022-07-302-3/+3
|\
| * Make some editor export methods constAaron Franke2022-07-292-3/+3
| |
* | Remove Signal connect bindsJuan Linietsky2022-07-292-6/+6
|/ | | | | Remove the optional argument p_binds from `Object::connect` since it was deprecated by Callable.bind(). Changed all uses of it to Callable.bind()
* HTML5: Add support for `Input.vibrate_handheld()`pattlebass2022-07-274-0/+16
|
* Split up editor export code into multiple filesAaron Franke2022-07-262-2/+1
|
* Code quality: Fix header guards consistencyRémi Verschelde2022-07-259-8/+9
| | | | | Adds `header_guards.sh` bash script, used in CI to validate future changes. Can be run locally to fix invalid header guards.
* HTML5: Make `OS.get_locale()` match other platformspattlebass2022-07-151-0/+1
| | | | Fixes #63029.
* Add static methods for creating Image and ImageTexturekobewi2022-07-081-7/+2
|
* Default cursor fix for html5 exportRaffaele Picca2022-07-011-2/+2
|
* refactoring: simplify compiler version checkJiri Suchan2022-06-141-13/+7
|
* [HTML5] Add GDNative+Threads build.Fabio Alessandrelli2022-06-145-23/+30
|
* Add readable export errors.bruvzg2022-06-081-17/+23
|
* HTML5: Run `npm audit fix`Rémi Verschelde2022-05-252-90/+151
| | | | | And re-add `node_modules` to `.gitignore` which I mistakenly removed with an earlier cleanup.
* HTML5: Enable mbedTLS module for Crypto objectRémi Verschelde2022-05-251-5/+0
| | | | | | | | | | Increases the size of the wasm by around 3% (~300-350 KiB). This enables using the Crypto object for hashing, signing and encryption, and therefore reduces the gap between the features of the HTML5 platform and other platforms. Closes https://github.com/godotengine/godot-proposals/issues/3574.
* Add a new HashSet templatereduz2022-05-201-1/+1
| | | | | * Intended to replace RBSet in most cases. * Optimized for iteration speed
* Merge pull request #61020 from timothyqiu/wait-busyRémi Verschelde2022-05-191-2/+2
|\
| * Swap the meaning of CURSOR_WAIT and CURSOR_BUSYHaoyu Qiu2022-05-141-2/+2
| |
* | Replace most uses of Map by HashMapreduz2022-05-165-9/+9
|/ | | | | | | | | | | | * Map is unnecessary and inefficient in almost every case. * Replaced by the new HashMap. * Renamed Map to RBMap and Set to RBSet for cases that still make sense (order matters) but use is discouraged. There were very few cases where replacing by HashMap was undesired because keeping the key order was intended. I tried to keep those (as RBMap) as much as possible, but might have missed some. Review appreciated!
* Fix ZipIO crash when reused (and possible leaks).bruvzg2022-05-112-2/+4
|
* [HTML5] Limit the returned OS cpu count to 2.Fabio Alessandrelli2022-05-111-1/+3
| | | | Temporarily workaround issues due to godot spawning too many threads.
* [HTML5] Fix JS "tools" editor plugin.Fabio Alessandrelli2022-05-101-1/+1
| | | | Needed update after file/dir access refactoring.
* [HTML5] Add "webgl/webgl2.h" as OpenGL include.Fabio Alessandrelli2022-05-102-0/+39
| | | | Requires emscripten versions > 2.0.17 .
* Merge pull request #51682 from mdavisprog/os-is-process-runningRémi Verschelde2022-05-042-0/+5
|\ | | | | OS::is_process_running function.
| * Add OS::is_process_running function.mdavisprog2022-05-032-0/+5
| | | | | | | | | | | | | | | | Adds the is_process_running function to the native OS class and exposes it to script. This is implemented on Windows and Unix platforms. A stub is provided for other platforms that do not support this function. Documentation is updated to reflect new API function.
* | [JS] Add flag to disable weak symbols in ZSTD.Fabio Alessandrelli2022-05-031-0/+2
| | | | | | | | Weak symbols are currently broken in upstream emscripten.
* | Added missing signature.Fabio Alessandrelli2022-05-031-0/+1
|/
* Merge pull request #60714 from Calinou/typedef-remove-refRémi Verschelde2022-05-033-3/+3
|\ | | | | Remove `RES` and `REF` typedefs in favor of spelled out `Ref<>`
| * Remove `RES` and `REF` typedefs in favor of spelled out `Ref<>`Hugo Locurcio2022-05-033-3/+3
| | | | | | | | | | | | These typedefs don't save much typing compared to the full `Ref<Resource>` and `Ref<RefCounted>`, yet they sometimes introduce confusion among new contributors.
* | Add GDNativeInterface::get_library_path to GDExtensionEmmanuel Leblond2022-04-292-2/+7
|/
* Implement text-to-speech support on Android, iOS, HTML5, Linux, macOS and ↵bruvzg2022-04-284-0/+202
| | | | | | Windows. Implement TextServer word break method.
* Fix more issues found by cppcheck.bruvzg2022-04-201-1/+1
|
* Narrow FileAccess scope to prevent deadlocks.bruvzg2022-04-121-6/+8
|
* Make FileAccess and DirAccess classes reference counted.bruvzg2022-04-113-42/+22
|
* Fix some issues found by cppcheck.bruvzg2022-04-061-1/+1
|
* HTML5: Explain why export templates are missingRémi Verschelde2022-03-261-0/+9
| | | | | | | Same for UWP. This is skipped in DEV_ENABLED builds so contributors can still test the export pipeline (and CI still compiles it on debug builds).
* Bump minimist from 1.2.5 to 1.2.6 in /platform/javascriptdependabot[bot]2022-03-231-6/+6
| | | | | | | | | | | | | Bumps [minimist](https://github.com/substack/minimist) from 1.2.5 to 1.2.6. - [Release notes](https://github.com/substack/minimist/releases) - [Commits](https://github.com/substack/minimist/compare/1.2.5...1.2.6) --- updated-dependencies: - dependency-name: minimist dependency-type: indirect ... Signed-off-by: dependabot[bot] <support@github.com>
* Merge pull request #59062 from BastiaanOlij/storagerd_textureRémi Verschelde2022-03-171-1/+1
|\
| * Split dummy renderer classes into separate filesBastiaan Olij2022-03-161-1/+1
| | | | | | | | Split canvas_texture_storage and texture_storage from render_storage class
* | Implement GDExtension export plugin.bruvzg2022-03-161-1/+1
|/
* Convert uses of `DirAccess *` to `DirAccessRef` to prevent memleaksRémi Verschelde2022-03-112-12/+12
| | | | | | | | `DirAccess *` needs to be deleted manually, and this is often forgotten especially when doing early returns with `ERR_FAIL_COND`. `DirAccessRef` is deleted automatically when it goes out of scope. Co-authored-by: bruvzg <7645683+bruvzg@users.noreply.github.com>