This is the source code for the emath.js library. It is written in TypeScript and compiled to JavaScript.
If you want to contribute to the library, please read the CONTRIBUTING.md file.
-
/index.ts
: The entry point for the library. This file exports the main classes and functions. -
/hookMain.ts
: The entry point for CDN usage. This file declares theeMath
object and sets it to thewindow
object. -
/common/
: Contains common code used in the library. Currently only contains common types. -
/classes/
: Contains the classes used in the library, exported byemath.js
. Each class is in its own file. -
/E/
: Contains code for theDecimal
class. The code is ported frombreak_eternity.js
and compiled from source. -
/game/
: Contains the code that is exported byemath.js/game
. This includes theGame
class and other classes that are used in the game./index.ts
: The entry point for the game code. This file exports theGame
class and other classes./hookGame.ts
: The entry point for
-
/presets/
: Contains the code that is exported byemath.js/presets
. This includes theeMathPresets
object and other presets.