Remove extending the Javascript builtin objects

- Remove extending the Math & CanvasRenderingContext2D classes.
  - It was messing up the typescript 4.9+
  - Using the built-in roundRect function
  - Adding global clamp function
- Add some type corrections in litegraph.d.ts
- Fix a couple of build issues

Co-authored-by: Ranuka Perera <premium@sawrc.com>
Co-authored-by: Moritz Ulmer <moritz.ulmer@posteo.de>
This commit is contained in:
Moritz Ulmer
2023-06-30 13:31:00 +02:00
parent 0a4bd193a3
commit aec5d622a9
12 changed files with 51 additions and 129 deletions

View File

@@ -4,7 +4,7 @@ import re, os, sys, time, tempfile, shutil
import argparse
from datetime import date
compiler_path = "../node_modules/google-closure-compiler/compiler.jar"
compiler_path = "../node_modules/google-closure-compiler-java/compiler.jar"
root_path = "./"
#arguments

View File

@@ -1 +1,7 @@
yuidoc ../src -o ../doc
#!/bin/bash
# For migration to JSDoc (YUIDoc was deprecated in 2014): https://github.com/pnstickne/yuidoc-to-jsdoc
cd "$(dirname "$0")" || exit
rm -rf ../docs/*
../node_modules/.bin/yuidoc ../src -o ../docs