Skip to content

Commit

Permalink
17.3.0 dist files
Browse files Browse the repository at this point in the history
  • Loading branch information
obiot committed Jun 4, 2024
1 parent 5d52e00 commit 0bf3386
Show file tree
Hide file tree
Showing 551 changed files with 2,345 additions and 2,300 deletions.
2 changes: 1 addition & 1 deletion dist/melonjs.mjs/_virtual/_commonjsHelpers.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*!
* melonJS Game Engine - v17.2.0
* melonJS Game Engine - v17.3.0
* http://www.melonjs.org
* melonjs is licensed under the MIT License.
* http://www.opensource.org/licenses/mit-license
Expand Down
2 changes: 1 addition & 1 deletion dist/melonjs.mjs/_virtual/earcut.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*!
* melonJS Game Engine - v17.2.0
* melonJS Game Engine - v17.3.0
* http://www.melonjs.org
* melonjs is licensed under the MIT License.
* http://www.opensource.org/licenses/mit-license
Expand Down
2 changes: 1 addition & 1 deletion dist/melonjs.mjs/_virtual/howler.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*!
* melonJS Game Engine - v17.2.0
* melonJS Game Engine - v17.3.0
* http://www.melonjs.org
* melonjs is licensed under the MIT License.
* http://www.opensource.org/licenses/mit-license
Expand Down
2 changes: 1 addition & 1 deletion dist/melonjs.mjs/_virtual/index.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*!
* melonJS Game Engine - v17.2.0
* melonJS Game Engine - v17.3.0
* http://www.melonjs.org
* melonjs is licensed under the MIT License.
* http://www.opensource.org/licenses/mit-license
Expand Down
2 changes: 1 addition & 1 deletion dist/melonjs.mjs/_virtual/re.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*!
* melonJS Game Engine - v17.2.0
* melonJS Game Engine - v17.3.0
* http://www.melonjs.org
* melonjs is licensed under the MIT License.
* http://www.opensource.org/licenses/mit-license
Expand Down
12 changes: 6 additions & 6 deletions dist/melonjs.mjs/application/application.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*!
* melonJS Game Engine - v17.2.0
* melonJS Game Engine - v17.3.0
* http://www.melonjs.org
* melonjs is licensed under the MIT License.
* http://www.opensource.org/licenses/mit-license
Expand All @@ -14,7 +14,7 @@ import timer from '../system/timer.js';
import state from '../state/state.js';
import World from '../physics/world.js';
import { onresize } from './resize.js';
import { defaultSettings } from './settings.js';
import { ApplicationSettings } from './settings.js';
import { consoleHeader } from './header.js';
import { WEBGL, CANVAS, AUTO } from '../const.js';

Expand All @@ -27,7 +27,7 @@ class Application {
/**
* @param {number} width - The width of the canvas viewport
* @param {number} height - The height of the canvas viewport
* @param {Application.Settings} [options] - The optional parameters for the application and default renderer
* @param {ApplicationSettings} [options] - The optional parameters for the application and default renderer
* @throws Will throw an exception if it fails to instantiate a renderer
*/
constructor(width, height, options) {
Expand Down Expand Up @@ -83,7 +83,7 @@ class Application {

/**
* the given settings used when creating this application
* @type {Application.settings}
* @type {ApplicationSettings}
*/
this.settings = undefined;

Expand Down Expand Up @@ -144,11 +144,11 @@ class Application {
* init the game instance (create a physic world, update starting time, etc..)
* @param {number} width - The width of the canvas viewport
* @param {number} height - The height of the canvas viewport
* @param {Application.Settings} [options] - The optional parameters for the application and default renderer
* @param {ApplicationSettings} [options] - The optional parameters for the application and default renderer
*/
init(width, height, options) {

this.settings = Object.assign(defaultSettings, options || {});
this.settings = Object.assign(ApplicationSettings, options || {});

// sanitize potential given parameters
this.settings.width = width;
Expand Down
2 changes: 1 addition & 1 deletion dist/melonjs.mjs/application/header.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*!
* melonJS Game Engine - v17.2.0
* melonJS Game Engine - v17.3.0
* http://www.melonjs.org
* melonjs is licensed under the MIT License.
* http://www.opensource.org/licenses/mit-license
Expand Down
2 changes: 1 addition & 1 deletion dist/melonjs.mjs/application/resize.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*!
* melonJS Game Engine - v17.2.0
* melonJS Game Engine - v17.3.0
* http://www.melonjs.org
* melonjs is licensed under the MIT License.
* http://www.opensource.org/licenses/mit-license
Expand Down
61 changes: 29 additions & 32 deletions dist/melonjs.mjs/application/settings.js
Original file line number Diff line number Diff line change
@@ -1,36 +1,13 @@
/*!
* melonJS Game Engine - v17.2.0
* melonJS Game Engine - v17.3.0
* http://www.melonjs.org
* melonjs is licensed under the MIT License.
* http://www.opensource.org/licenses/mit-license
* @copyright (C) 2011 - 2024 Olivier Biot (AltByte Pte Ltd)
*/
// default settings
const defaultSettings = {
parent : undefined,
renderer : 2, // AUTO
autoScale : false,
scale : 1.0,
scaleMethod : "manual",
scaleTarget : undefined,
transparent : false,
premultipliedAlpha: true,
blendMode : "normal",
physic : "builtin",
antiAlias : false,
failIfMajorPerformanceCaveat : true,
subPixel : false,
preferWebGL1 : false,
powerPreference : "default",
verbose : false,
consoleHeader : true,
legacy : false,
canvas : undefined
};

/**
* Application & Renderer Settings definition.
* @typedef {object} Settings
* @typedef {Object} ApplicationSettings
* @property {string|HTMLElement} [parent=document.body] - the DOM parent element to hold the canvas in the HTML file
* @property {HTMLCanvasElement} [canvas] - an existing canvas element to use as the renderer target (by default melonJS will create its own canvas based on given parameters)
* @property {number|Renderer} [renderer=AUTO] - renderer to use (CANVAS, WEBGL, AUTO), or a custom renderer class
Expand All @@ -57,12 +34,32 @@ const defaultSettings = {
* @property {boolean} [transparent=false] - whether to allow transparent pixels in the front buffer (screen).
* @property {boolean} [antiAlias=false] - whether to enable or not video scaling interpolation
* @property {boolean} [consoleHeader=true] - whether to display melonJS version and basic device information in the console
* @param {number} [options.zoomX=width] - The actual width of the canvas with scaling applied
* @param {number} [options.zoomY=height] - The actual height of the canvas with scaling applied
* @param {Compositor} [options.compositor] - a custom compositor class (WebGL only)
* @param {string} [option.physic="builtin"] - the physic system to use (default: "builtin", or "none" to disable builtin physic)
* @see Application
* @memberof Application
* @property {number} [zoomX=width] - The actual width of the canvas with scaling applied
* @property {number} [zoomY=height] - The actual height of the canvas with scaling applied
* @property {Compositor} [compositor] - a custom compositor class (WebGL only)
* @property {string} [physic="builtin"] - the physic system to use (default: "builtin", or "none" to disable builtin physic)
*/
const ApplicationSettings = {
parent : undefined,
canvas : undefined,
renderer : 2, // AUTO
autoScale : false,
scale : 1.0,
scaleMethod : "manual",
scaleTarget : undefined,
preferWebGL1 : false,
depthTest: "sorting",
powerPreference : "default",
transparent : false,
antiAlias : false,
consoleHeader : true,
premultipliedAlpha: true,
blendMode : "normal",
physic : "builtin",
failIfMajorPerformanceCaveat : true,
subPixel : false,
verbose : false,
legacy : false
};

export { defaultSettings };
export { ApplicationSettings };
2 changes: 1 addition & 1 deletion dist/melonjs.mjs/audio/audio.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*!
* melonJS Game Engine - v17.2.0
* melonJS Game Engine - v17.3.0
* http://www.melonjs.org
* melonjs is licensed under the MIT License.
* http://www.opensource.org/licenses/mit-license
Expand Down
2 changes: 1 addition & 1 deletion dist/melonjs.mjs/camera/camera2d.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*!
* melonJS Game Engine - v17.2.0
* melonJS Game Engine - v17.3.0
* http://www.melonjs.org
* melonjs is licensed under the MIT License.
* http://www.opensource.org/licenses/mit-license
Expand Down
2 changes: 1 addition & 1 deletion dist/melonjs.mjs/const.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*!
* melonJS Game Engine - v17.2.0
* melonJS Game Engine - v17.3.0
* http://www.melonjs.org
* melonjs is licensed under the MIT License.
* http://www.opensource.org/licenses/mit-license
Expand Down
2 changes: 1 addition & 1 deletion dist/melonjs.mjs/geometries/ellipse.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*!
* melonJS Game Engine - v17.2.0
* melonJS Game Engine - v17.3.0
* http://www.melonjs.org
* melonjs is licensed under the MIT License.
* http://www.opensource.org/licenses/mit-license
Expand Down
2 changes: 1 addition & 1 deletion dist/melonjs.mjs/geometries/line.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*!
* melonJS Game Engine - v17.2.0
* melonJS Game Engine - v17.3.0
* http://www.melonjs.org
* melonjs is licensed under the MIT License.
* http://www.opensource.org/licenses/mit-license
Expand Down
2 changes: 1 addition & 1 deletion dist/melonjs.mjs/geometries/path2d.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*!
* melonJS Game Engine - v17.2.0
* melonJS Game Engine - v17.3.0
* http://www.melonjs.org
* melonjs is licensed under the MIT License.
* http://www.opensource.org/licenses/mit-license
Expand Down
2 changes: 1 addition & 1 deletion dist/melonjs.mjs/geometries/point.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*!
* melonJS Game Engine - v17.2.0
* melonJS Game Engine - v17.3.0
* http://www.melonjs.org
* melonjs is licensed under the MIT License.
* http://www.opensource.org/licenses/mit-license
Expand Down
2 changes: 1 addition & 1 deletion dist/melonjs.mjs/geometries/poly.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*!
* melonJS Game Engine - v17.2.0
* melonJS Game Engine - v17.3.0
* http://www.melonjs.org
* melonjs is licensed under the MIT License.
* http://www.opensource.org/licenses/mit-license
Expand Down
2 changes: 1 addition & 1 deletion dist/melonjs.mjs/geometries/rectangle.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*!
* melonJS Game Engine - v17.2.0
* melonJS Game Engine - v17.3.0
* http://www.melonjs.org
* melonjs is licensed under the MIT License.
* http://www.opensource.org/licenses/mit-license
Expand Down
2 changes: 1 addition & 1 deletion dist/melonjs.mjs/geometries/roundrect.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*!
* melonJS Game Engine - v17.2.0
* melonJS Game Engine - v17.3.0
* http://www.melonjs.org
* melonjs is licensed under the MIT License.
* http://www.opensource.org/licenses/mit-license
Expand Down
10 changes: 6 additions & 4 deletions dist/melonjs.mjs/geometries/toarccanvas.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*!
* melonJS Game Engine - v17.2.0
* melonJS Game Engine - v17.3.0
* http://www.melonjs.org
* melonjs is licensed under the MIT License.
* http://www.opensource.org/licenses/mit-license
Expand Down Expand Up @@ -60,7 +60,7 @@ function endpointToCenterParameterization(x1, y1, x2, y2, largeArcFlag, sweepFla

const [rx, ry] = correctRadii(srx, sry, x1p, y1p);

const sign = -1;
const sign = largeArcFlag !== sweepFlag ? 1 : -1;
const n = pow(rx) * pow(ry) - pow(rx) * pow(y1p) - pow(ry) * pow(x1p);
const d = pow(rx) * pow(y1p) + pow(ry) * pow(x1p);

Expand All @@ -80,9 +80,11 @@ function endpointToCenterParameterization(x1, y1, x2, y2, largeArcFlag, sweepFla
const deltaAngle0 = vec2Angle(a, b) % (2 * Math.PI);

const deltaAngle =
deltaAngle0 > 0
!sweepFlag && deltaAngle0 > 0
? deltaAngle0 - 2 * Math.PI
: deltaAngle0;
: sweepFlag && deltaAngle0 < 0
? deltaAngle0 + 2 * Math.PI
: deltaAngle0;

const endAngle = startAngle + deltaAngle;

Expand Down
4 changes: 2 additions & 2 deletions dist/melonjs.mjs/index.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*!
* melonJS Game Engine - v17.2.0
* melonJS Game Engine - v17.3.0
* http://www.melonjs.org
* melonjs is licensed under the MIT License.
* http://www.opensource.org/licenses/mit-license
Expand Down Expand Up @@ -112,7 +112,7 @@ import { initKeyboardEvent } from './input/keyboard.js';
* @name version
* @type {string}
*/
const version = "17.2.0";
const version = "17.3.0";

/**
* a flag indicating that melonJS is fully initialized
Expand Down
2 changes: 1 addition & 1 deletion dist/melonjs.mjs/input/gamepad.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*!
* melonJS Game Engine - v17.2.0
* melonJS Game Engine - v17.3.0
* http://www.melonjs.org
* melonjs is licensed under the MIT License.
* http://www.opensource.org/licenses/mit-license
Expand Down
2 changes: 1 addition & 1 deletion dist/melonjs.mjs/input/input.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*!
* melonJS Game Engine - v17.2.0
* melonJS Game Engine - v17.3.0
* http://www.melonjs.org
* melonjs is licensed under the MIT License.
* http://www.opensource.org/licenses/mit-license
Expand Down
2 changes: 1 addition & 1 deletion dist/melonjs.mjs/input/keyboard.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*!
* melonJS Game Engine - v17.2.0
* melonJS Game Engine - v17.3.0
* http://www.melonjs.org
* melonjs is licensed under the MIT License.
* http://www.opensource.org/licenses/mit-license
Expand Down
2 changes: 1 addition & 1 deletion dist/melonjs.mjs/input/pointer.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*!
* melonJS Game Engine - v17.2.0
* melonJS Game Engine - v17.3.0
* http://www.melonjs.org
* melonjs is licensed under the MIT License.
* http://www.opensource.org/licenses/mit-license
Expand Down
2 changes: 1 addition & 1 deletion dist/melonjs.mjs/input/pointerevent.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*!
* melonJS Game Engine - v17.2.0
* melonJS Game Engine - v17.3.0
* http://www.melonjs.org
* melonjs is licensed under the MIT License.
* http://www.opensource.org/licenses/mit-license
Expand Down
2 changes: 1 addition & 1 deletion dist/melonjs.mjs/lang/console.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*!
* melonJS Game Engine - v17.2.0
* melonJS Game Engine - v17.3.0
* http://www.melonjs.org
* melonjs is licensed under the MIT License.
* http://www.opensource.org/licenses/mit-license
Expand Down
31 changes: 29 additions & 2 deletions dist/melonjs.mjs/lang/deprecated.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*!
* melonJS Game Engine - v17.2.0
* melonJS Game Engine - v17.3.0
* http://www.melonjs.org
* melonjs is licensed under the MIT License.
* http://www.opensource.org/licenses/mit-license
Expand All @@ -12,6 +12,8 @@ import { DropTarget } from '../renderable/dragndrop.js';
import UISpriteElement from '../renderable/ui/uispriteelement.js';
import { warning } from './console.js';
import CanvasRenderTarget from '../video/rendertarget/canvasrendertarget.js';
import CanvasRenderer from '../video/canvas/canvas_renderer.js';
import WebGLRenderer from '../video/webgl/webgl_renderer.js';

/*
* placeholder for all deprecated classes and corresponding alias for backward compatibility
Expand Down Expand Up @@ -139,7 +141,6 @@ Renderer.prototype.getWidth = function() {
* return the height of the system Canvas
* @public
* @name getHeight
* @class
* @memberof Renderer#
* @deprecated since 15.12.0
* @see height
Expand Down Expand Up @@ -170,4 +171,30 @@ class CanvasTexture extends CanvasRenderTarget {
}
}

/**
* return the height of the system Canvas
* @public
* @name setLineWidth
* @memberof CanvasRenderer#
* @deprecated since 17.3.0
* @see lineWidth
*/
CanvasRenderer.prototype.setLineWidth = function(width) {
warning("setLineWidth", "lineWidth", "17.3.0");
this.lineWidth = width;
};

/**
* return the height of the system Canvas
* @public
* @name setLineWidth
* @memberof WebGLRenderer#
* @deprecated since 17.3.0
* @see lineWidth
*/
WebGLRenderer.prototype.setLineWidth = function(width) {
warning("setLineWidth", "lineWidth", "17.3.0");
this.lineWidth = width;
};

export { CanvasTexture, DraggableEntity, DroptargetEntity, GUI_Object };
2 changes: 1 addition & 1 deletion dist/melonjs.mjs/level/level.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*!
* melonJS Game Engine - v17.2.0
* melonJS Game Engine - v17.3.0
* http://www.melonjs.org
* melonjs is licensed under the MIT License.
* http://www.opensource.org/licenses/mit-license
Expand Down
Loading

0 comments on commit 0bf3386

Please sign in to comment.