From a91cac0f56e9d33d0f208babd89bfd6b6dae3bbe Mon Sep 17 00:00:00 2001 From: Arseny Kapoulkine Date: Mon, 22 Jul 2024 10:40:31 -0700 Subject: [PATCH] js: Reformat all sources with Prettier --- demo/demo.html | 105 +++++++------- demo/index.html | 57 ++++---- demo/simplify.html | 139 ++++++++++-------- gltf/cli.js | 3 +- gltf/library.js | 80 +++++------ js/benchmark.js | 55 ++++---- js/index.js | 2 +- js/meshopt_decoder.js | 101 +++++++------ js/meshopt_decoder.module.js | 88 +++++++----- js/meshopt_decoder.test.js | 227 +++++++++++------------------- js/meshopt_decoder_reference.js | 185 ++++++++++++------------ js/meshopt_encoder.js | 68 ++++----- js/meshopt_encoder.module.d.ts | 8 +- js/meshopt_encoder.module.js | 55 ++++---- js/meshopt_encoder.test.js | 130 ++++------------- js/meshopt_simplifier.js | 179 ++++++++++++++++++----- js/meshopt_simplifier.module.d.ts | 33 ++++- js/meshopt_simplifier.module.js | 166 ++++++++++++++++++---- js/meshopt_simplifier.test.js | 143 +++++-------------- 19 files changed, 951 insertions(+), 873 deletions(-) diff --git a/demo/demo.html b/demo/demo.html index 3b32876a..7c871e74 100644 --- a/demo/demo.html +++ b/demo/demo.html @@ -1,66 +1,67 @@ - + - - + + - meshoptimizer - demo + meshoptimizer - demo - - + + - - - - - - + // Resize + window.addEventListener('resize', function () { + engine.resize(); + }); + + diff --git a/demo/index.html b/demo/index.html index c0aaf6c5..d177bb29 100644 --- a/demo/index.html +++ b/demo/index.html @@ -1,9 +1,9 @@ - + meshoptimizer - demo - - + + @@ -37,7 +43,7 @@
- meshoptimizer + meshoptimizer
diff --git a/demo/simplify.html b/demo/simplify.html index d4b95344..5987d1fe 100644 --- a/demo/simplify.html +++ b/demo/simplify.html @@ -1,9 +1,9 @@ - + meshoptimizer - demo - - + + @@ -37,7 +43,7 @@
- meshoptimizer + meshoptimizer