mirror of
https://github.com/liabru/matter-js.git
synced 2025-02-11 19:24:48 -05:00
update builds
This commit is contained in:
parent
c4a660a959
commit
aa4882337f
2 changed files with 12 additions and 9 deletions
|
@ -4655,8 +4655,10 @@ var Common = __webpack_require__(0);
|
||||||
*/
|
*/
|
||||||
Constraint.pointAWorld = function(constraint) {
|
Constraint.pointAWorld = function(constraint) {
|
||||||
return {
|
return {
|
||||||
x: (constraint.bodyA ? constraint.bodyA.position.x : 0) + constraint.pointA.x,
|
x: (constraint.bodyA ? constraint.bodyA.position.x : 0)
|
||||||
y: (constraint.bodyA ? constraint.bodyA.position.y : 0) + constraint.pointA.y
|
+ (constraint.pointA ? constraint.pointA.x : 0),
|
||||||
|
y: (constraint.bodyA ? constraint.bodyA.position.y : 0)
|
||||||
|
+ (constraint.pointA ? constraint.pointA.y : 0)
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -4668,8 +4670,10 @@ var Common = __webpack_require__(0);
|
||||||
*/
|
*/
|
||||||
Constraint.pointBWorld = function(constraint) {
|
Constraint.pointBWorld = function(constraint) {
|
||||||
return {
|
return {
|
||||||
x: (constraint.bodyB ? constraint.bodyB.position.x : 0) + constraint.pointB.x,
|
x: (constraint.bodyB ? constraint.bodyB.position.x : 0)
|
||||||
y: (constraint.bodyB ? constraint.bodyB.position.y : 0) + constraint.pointB.y
|
+ (constraint.pointB ? constraint.pointB.x : 0),
|
||||||
|
y: (constraint.bodyB ? constraint.bodyB.position.y : 0)
|
||||||
|
+ (constraint.pointB ? constraint.pointB.y : 0)
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -5161,7 +5165,7 @@ var Vector = __webpack_require__(2);
|
||||||
}
|
}
|
||||||
|
|
||||||
parts.push({
|
parts.push({
|
||||||
position: { x: x, y: y },
|
position: Vertices.centre(vertices),
|
||||||
vertices: vertices
|
vertices: vertices
|
||||||
});
|
});
|
||||||
} else {
|
} else {
|
||||||
|
@ -6070,7 +6074,6 @@ var Mouse = __webpack_require__(13);
|
||||||
*/
|
*/
|
||||||
Render.create = function(options) {
|
Render.create = function(options) {
|
||||||
var defaults = {
|
var defaults = {
|
||||||
controller: Render,
|
|
||||||
engine: null,
|
engine: null,
|
||||||
element: null,
|
element: null,
|
||||||
canvas: null,
|
canvas: null,
|
||||||
|
@ -6142,6 +6145,7 @@ var Mouse = __webpack_require__(13);
|
||||||
};
|
};
|
||||||
|
|
||||||
// for temporary back compatibility only
|
// for temporary back compatibility only
|
||||||
|
render.controller = Render;
|
||||||
render.options.showBroadphase = false;
|
render.options.showBroadphase = false;
|
||||||
|
|
||||||
if (render.options.pixelRatio !== 1) {
|
if (render.options.pixelRatio !== 1) {
|
||||||
|
@ -6150,8 +6154,6 @@ var Mouse = __webpack_require__(13);
|
||||||
|
|
||||||
if (Common.isElement(render.element)) {
|
if (Common.isElement(render.element)) {
|
||||||
render.element.appendChild(render.canvas);
|
render.element.appendChild(render.canvas);
|
||||||
} else if (!render.canvas.parentNode) {
|
|
||||||
Common.log('Render.create: options.element was undefined, render.canvas was created but not appended', 'warn');
|
|
||||||
}
|
}
|
||||||
|
|
||||||
return render;
|
return render;
|
||||||
|
@ -7551,6 +7553,7 @@ var Mouse = __webpack_require__(13);
|
||||||
/**
|
/**
|
||||||
* A back-reference to the `Matter.Render` module.
|
* A back-reference to the `Matter.Render` module.
|
||||||
*
|
*
|
||||||
|
* @deprecated
|
||||||
* @property controller
|
* @property controller
|
||||||
* @type render
|
* @type render
|
||||||
*/
|
*/
|
||||||
|
|
2
build/matter.min.js
vendored
2
build/matter.min.js
vendored
File diff suppressed because one or more lines are too long
Loading…
Add table
Reference in a new issue