Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
40 changes: 20 additions & 20 deletions bun.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 4 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "litecanvas",
"version": "0.302.0",
"version": "0.303.0",
"description": "Lightweight HTML5 canvas 2D game engine suitable for small projects and creative coding. Inspired by PICO-8 and p5.js/Processing.",
"license": "MIT",
"author": "Luiz Bills <luizbills@pm.me>",
Expand Down Expand Up @@ -32,14 +32,14 @@
"creative coding"
],
"devDependencies": {
"@happy-dom/global-registrator": "^20.10.4",
"@happy-dom/global-registrator": "^20.10.6",
"@size-limit/preset-small-lib": "^12.1.0",
"@swc/core": "^1.15.41",
"@swc/core": "^1.15.43",
"ava": "^8.0.1",
"esbuild": "^0.28.1",
"genversion": "^3.2.0",
"gzip-size": "^7.0.0",
"prettier": "^3.8.4",
"prettier": "^3.9.1",
"sinon": "^22.0.0",
"size-limit": "^12.1.0",
"tap-min": "^3.0.0"
Expand Down
2 changes: 1 addition & 1 deletion src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -1427,7 +1427,7 @@ export default function litecanvas(settings = {}) {
}

// prettier-ignore
const mathProps = 'PI,sin,cos,atan2,hypot,tan,abs,ceil,floor,trunc,min,max,pow,sqrt,sign,exp'
const mathProps = 'PI,sin,cos,atan2,hypot,tan,abs,ceil,floor,min,max,pow,sqrt,sign'
for (const k of mathProps.split(',')) {
// import native Math functions
instance[k] = math[k]
Expand Down
2 changes: 1 addition & 1 deletion src/version.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 0 additions & 8 deletions types/global.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -162,10 +162,6 @@ declare global {
* Always rounds down and returns the largest integer less than or equal to a given number.
*/
function floor(n: number): number
/**
* Returns the integer part of a number by removing any fractional digits.
*/
function trunc(n: number): number
/**
* Returns the smallest of the numbers given as input parameters, or `Infinity` if there are no parameters.
*/
Expand All @@ -187,10 +183,6 @@ declare global {
* If the input is 0 or -0, it will be returned as-is.
*/
function sign(n: number): number
/**
* Returns the Euler's number raised to the power of a number.
*/
function exp(exponent: number): number

/** RNG API */
/**
Expand Down
8 changes: 0 additions & 8 deletions types/types.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -156,10 +156,6 @@ type LitecanvasInstance = {
* Always rounds down and returns the largest integer less than or equal to a given number.
*/
floor?(n: number): number
/**
* Returns the integer part of a number by removing any fractional digits.
*/
trunc?(n: number): number
/**
* Returns the smallest of the numbers given as input parameters, or `Infinity` if there are no parameters.
*/
Expand All @@ -181,10 +177,6 @@ type LitecanvasInstance = {
* If the input is 0 or -0, it will be returned as-is.
*/
sign?(n: number): number
/**
* Returns the Euler's number raised to the power of a number.
*/
exp?(exponent: number): number

/** RNG API */
/**
Expand Down
Loading