convert all indents to tabs

This commit is contained in:
2026-06-30 20:45:33 +02:00
parent 6adefe7210
commit 3b71a72636
30 changed files with 1473 additions and 1477 deletions
-1
View File
@@ -1 +0,0 @@
.vscode/
+5
View File
@@ -0,0 +1,5 @@
{
"editor.tabSize": 2,
"editor.insertSpaces": false,
"editor.detectIndentation": false
}
+6 -13
View File
@@ -41,12 +41,9 @@ function randomBool(probability) {
function clampNearest(n, mul) { function clampNearest(n, mul) {
if(n > 0) if (n > 0) { return Math.ceil(n / mul) * mul }
return Math.ceil(n / mul) * mul else if (n < 0) { return Math.floor(n / mul) * mul }
else if( n < 0) else { return 0 }
return Math.floor(n / mul) * mul
else
return 0
} }
@@ -57,13 +54,7 @@ function lerp(x, y, t) {
function debugPrint(title, value) { function debugPrint(title, value) {
if (!title) { if (!title) {
console.error( console.error("debugPrint() takes 2 arguments")
`error[A0000]: this function takes 1 argument but 0 arguments were supplied
--> unknown:0:0
|
0 | debugPrint()
| ^^^^^^^^^^-- argument #1 of type \`Any\` is missing`
)
return return
} }
@@ -75,6 +66,7 @@ function debugPrint(title, value) {
} }
} }
function toggleGrid(offX = 0, offY = 0) { function toggleGrid(offX = 0, offY = 0) {
if (gridVisible) { if (gridVisible) {
document.getElementById("gridCanvas").remove() document.getElementById("gridCanvas").remove()
@@ -146,6 +138,7 @@ function setVh() {
document.documentElement.style.setProperty("--vh", window.innerHeight * 0.01 + "px") document.documentElement.style.setProperty("--vh", window.innerHeight * 0.01 + "px")
} }
function getEngine() { function getEngine() {
if ("MozAppearance" in document.documentElement.style) if ("MozAppearance" in document.documentElement.style)
{ return "gecko" } { return "gecko" }
-1
View File
@@ -38,7 +38,6 @@
<div id="loadingScreen"></div> <div id="loadingScreen"></div>
<!-- global --> <!-- global -->
<script src="/global/globalScript.js"></script> <script src="/global/globalScript.js"></script>
<script src="/global/pxDensity.js"></script> <script src="/global/pxDensity.js"></script>