summaryrefslogtreecommitdiff
path: root/platform/javascript
AgeCommit message (Collapse)Author
2022-08-22Replace Array return types with TypedArraykobewi
2022-08-22Merge pull request #64374 from RandomShaper/inheritable_cl_argsRémi Verschelde
2022-08-19Overhaul CLI argument forwarding to processes started by the editorPedro J. Estébanez
2022-08-15Improve performance of screen_get_dpi() in JavascriptJamie Pate
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
2022-08-14Refactor the export checking logic to improve separation of concernsFredia Huya-Kouadio
2022-08-04Add support for multiple virtual keyboard typesBrian Semrau
2022-07-31Extract EditorResourceConversionPlugin into its own source files and clean ↵Yuri Sizov
up editor includes
2022-07-30Merge pull request #63563 from aaronfranke/export-archRémi Verschelde
2022-07-29Make some editor export methods constAaron Franke
2022-07-29Remove Signal connect bindsJuan Linietsky
Remove the optional argument p_binds from `Object::connect` since it was deprecated by Callable.bind(). Changed all uses of it to Callable.bind()
2022-07-27HTML5: Add support for `Input.vibrate_handheld()`pattlebass
2022-07-26Split up editor export code into multiple filesAaron Franke
2022-07-25Code quality: Fix header guards consistencyRémi Verschelde
Adds `header_guards.sh` bash script, used in CI to validate future changes. Can be run locally to fix invalid header guards.
2022-07-15HTML5: Make `OS.get_locale()` match other platformspattlebass
Fixes #63029.
2022-07-08Add static methods for creating Image and ImageTexturekobewi
2022-07-01Default cursor fix for html5 exportRaffaele Picca
2022-06-14refactoring: simplify compiler version checkJiri Suchan
2022-06-14[HTML5] Add GDNative+Threads build.Fabio Alessandrelli
2022-06-08Add readable export errors.bruvzg
2022-05-25HTML5: Run `npm audit fix`Rémi Verschelde
And re-add `node_modules` to `.gitignore` which I mistakenly removed with an earlier cleanup.
2022-05-25HTML5: Enable mbedTLS module for Crypto objectRémi Verschelde
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.
2022-05-20Add a new HashSet templatereduz
* Intended to replace RBSet in most cases. * Optimized for iteration speed
2022-05-19Merge pull request #61020 from timothyqiu/wait-busyRémi Verschelde
2022-05-16Replace most uses of Map by HashMapreduz
* 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!
2022-05-14Swap the meaning of CURSOR_WAIT and CURSOR_BUSYHaoyu Qiu
2022-05-11Fix ZipIO crash when reused (and possible leaks).bruvzg
2022-05-11[HTML5] Limit the returned OS cpu count to 2.Fabio Alessandrelli
Temporarily workaround issues due to godot spawning too many threads.
2022-05-10[HTML5] Fix JS "tools" editor plugin.Fabio Alessandrelli
Needed update after file/dir access refactoring.
2022-05-10[HTML5] Add "webgl/webgl2.h" as OpenGL include.Fabio Alessandrelli
Requires emscripten versions > 2.0.17 .
2022-05-04Merge pull request #51682 from mdavisprog/os-is-process-runningRémi Verschelde
OS::is_process_running function.
2022-05-03Add OS::is_process_running function.mdavisprog
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.
2022-05-03[JS] Add flag to disable weak symbols in ZSTD.Fabio Alessandrelli
Weak symbols are currently broken in upstream emscripten.
2022-05-03Added missing signature.Fabio Alessandrelli
2022-05-03Merge pull request #60714 from Calinou/typedef-remove-refRémi Verschelde
Remove `RES` and `REF` typedefs in favor of spelled out `Ref<>`
2022-05-03Remove `RES` and `REF` typedefs in favor of spelled out `Ref<>`Hugo Locurcio
These typedefs don't save much typing compared to the full `Ref<Resource>` and `Ref<RefCounted>`, yet they sometimes introduce confusion among new contributors.
2022-04-29Add GDNativeInterface::get_library_path to GDExtensionEmmanuel Leblond
2022-04-28Implement text-to-speech support on Android, iOS, HTML5, Linux, macOS and ↵bruvzg
Windows. Implement TextServer word break method.
2022-04-20Fix more issues found by cppcheck.bruvzg
2022-04-12Narrow FileAccess scope to prevent deadlocks.bruvzg
2022-04-11Make FileAccess and DirAccess classes reference counted.bruvzg
2022-04-06Fix some issues found by cppcheck.bruvzg
2022-03-26HTML5: Explain why export templates are missingRémi Verschelde
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).
2022-03-23Bump minimist from 1.2.5 to 1.2.6 in /platform/javascriptdependabot[bot]
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>
2022-03-17Merge pull request #59062 from BastiaanOlij/storagerd_textureRémi Verschelde
2022-03-16Implement GDExtension export plugin.bruvzg
2022-03-16Split dummy renderer classes into separate filesBastiaan Olij
Split canvas_texture_storage and texture_storage from render_storage class
2022-03-11Convert uses of `DirAccess *` to `DirAccessRef` to prevent memleaksRémi Verschelde
`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>
2022-03-10Discern between virtual and abstract class bindingsreduz
* Previous "virtual" classes (which can't be instantiated) are not corretly named "abstract". * Added a new "virtual" category for classes, they can't be instantiated from the editor, but can be inherited from script and extensions. * Converted a large amount of classes from "abstract" to "virtual" where it makes sense. Most classes that make sense have been converted. Missing: * Physics servers * VideoStream * Script* classes. which will go in a separate PR due to the complexity involved.
2022-03-09Remove VARIANT_ARG* macrosreduz
* Very old macros from the time Godot was created. * Limited arguments to 5 (then later changed to 8) in many places. * They were replaced by C++11 Variadic Templates. * Renamed methods that take argument pointers to have a "p" suffix. This was used in some places and not in others, so made it standard. * Also added a dereference check for Variant*. Helped catch a couple of bugs.
2022-03-07Revert "[HTML5] Fetch API now passes credentials."Rémi Verschelde