0
0
Fork 0
mirror of https://github.com/liabru/matter-js.git synced 2024-11-27 09:50:52 -05:00

added version targets for examples

This commit is contained in:
liabru 2020-12-30 23:18:38 +00:00
parent 31d0ace631
commit 142b7de720
43 changed files with 172 additions and 86 deletions

View file

@ -80,6 +80,8 @@ Example.airFriction = function() {
}; };
}; };
Example.airFriction.for = '>=0.14.2';
if (typeof module !== 'undefined') { if (typeof module !== 'undefined') {
module.exports = Example[Object.keys(Example)[0]]; module.exports = Example.airFriction;
} }

View file

@ -91,6 +91,8 @@ Example.avalanche = function() {
}; };
}; };
Example.avalanche.for = '>=0.14.2';
if (typeof module !== 'undefined') { if (typeof module !== 'undefined') {
module.exports = Example[Object.keys(Example)[0]]; module.exports = Example.avalanche;
} }

View file

@ -99,6 +99,8 @@ Example.ballPool = function() {
}; };
}; };
Example.ballPool.for = '>=0.14.2';
if (typeof module !== 'undefined') { if (typeof module !== 'undefined') {
module.exports = Example[Object.keys(Example)[0]]; module.exports = Example.ballPool;
} }

View file

@ -124,6 +124,8 @@ Example.bridge = function() {
}; };
}; };
Example.bridge.for = '>=0.14.2';
if (typeof module !== 'undefined') { if (typeof module !== 'undefined') {
module.exports = Example[Object.keys(Example)[0]]; module.exports = Example.bridge;
} }

View file

@ -95,6 +95,8 @@ Example.broadphase = function() {
}; };
}; };
Example.broadphase.for = '>=0.14.2';
if (typeof module !== 'undefined') { if (typeof module !== 'undefined') {
module.exports = Example[Object.keys(Example)[0]]; module.exports = Example.broadphase;
} }

View file

@ -89,6 +89,8 @@ Example.car = function() {
}; };
}; };
Example.car.for = '>=0.14.2';
if (typeof module !== 'undefined') { if (typeof module !== 'undefined') {
module.exports = Example[Object.keys(Example)[0]]; module.exports = Example.car;
} }

View file

@ -96,6 +96,8 @@ Example.catapult = function() {
}; };
}; };
Example.catapult.for = '>=0.14.2';
if (typeof module !== 'undefined') { if (typeof module !== 'undefined') {
module.exports = Example[Object.keys(Example)[0]]; module.exports = Example.catapult;
} }

View file

@ -122,6 +122,8 @@ Example.chains = function() {
}; };
}; };
Example.chains.for = '>=0.14.2';
if (typeof module !== 'undefined') { if (typeof module !== 'undefined') {
module.exports = Example[Object.keys(Example)[0]]; module.exports = Example.chains;
} }

View file

@ -81,6 +81,8 @@ Example.circleStack = function() {
}; };
}; };
Example.circleStack.for = '>=0.14.2';
if (typeof module !== 'undefined') { if (typeof module !== 'undefined') {
module.exports = Example[Object.keys(Example)[0]]; module.exports = Example.circleStack;
} }

View file

@ -84,6 +84,8 @@ Example.cloth = function() {
}; };
}; };
Example.cloth.for = '>=0.14.2';
if (typeof module !== 'undefined') { if (typeof module !== 'undefined') {
module.exports = Example[Object.keys(Example)[0]]; module.exports = Example.cloth;
} }

View file

@ -154,6 +154,8 @@ Example.collisionFiltering = function() {
}; };
}; };
Example.collisionFiltering.for = '>=0.14.2';
if (typeof module !== 'undefined') { if (typeof module !== 'undefined') {
module.exports = Example[Object.keys(Example)[0]]; module.exports = Example.collisionFiltering;
} }

View file

@ -107,6 +107,8 @@ Example.compositeManipulation = function() {
}; };
}; };
Example.compositeManipulation.for = '>=0.14.2';
if (typeof module !== 'undefined') { if (typeof module !== 'undefined') {
module.exports = Example[Object.keys(Example)[0]]; module.exports = Example.compositeManipulation;
} }

View file

@ -106,6 +106,8 @@ Example.compound = function() {
}; };
}; };
Example.compound.for = '>=0.14.2';
if (typeof module !== 'undefined') { if (typeof module !== 'undefined') {
module.exports = Example[Object.keys(Example)[0]]; module.exports = Example.compound;
} }

View file

@ -89,6 +89,8 @@ Example.compoundStack = function() {
}; };
}; };
Example.compoundStack.for = '>=0.14.2';
if (typeof module !== 'undefined') { if (typeof module !== 'undefined') {
module.exports = Example[Object.keys(Example)[0]]; module.exports = Example.compoundStack;
} }

View file

@ -95,6 +95,8 @@ Example.concave = function() {
}; };
}; };
Example.concave.for = '>=0.14.2';
if (typeof module !== 'undefined') { if (typeof module !== 'undefined') {
module.exports = Example[Object.keys(Example)[0]]; module.exports = Example.concave;
} }

View file

@ -179,6 +179,8 @@ Example.constraints = function() {
}; };
}; };
Example.constraints.for = '>=0.14.2';
if (typeof module !== 'undefined') { if (typeof module !== 'undefined') {
module.exports = Example[Object.keys(Example)[0]]; module.exports = Example.constraints;
} }

View file

@ -148,6 +148,8 @@ Example.doublePendulum = function() {
}; };
}; };
Example.doublePendulum.for = '>=0.14.2';
if (typeof module !== 'undefined') { if (typeof module !== 'undefined') {
module.exports = Example[Object.keys(Example)[0]]; module.exports = Example.doublePendulum;
} }

View file

@ -178,6 +178,8 @@ Example.events = function() {
}; };
}; };
Example.events.for = '>=0.14.2';
if (typeof module !== 'undefined') { if (typeof module !== 'undefined') {
module.exports = Example[Object.keys(Example)[0]]; module.exports = Example.events;
} }

View file

@ -90,6 +90,8 @@ Example.friction = function() {
}; };
}; };
Example.friction.for = '>=0.14.2';
if (typeof module !== 'undefined') { if (typeof module !== 'undefined') {
module.exports = Example[Object.keys(Example)[0]]; module.exports = Example.friction;
} }

View file

@ -96,6 +96,8 @@ Example.gravity = function() {
}; };
}; };
Example.gravity.for = '>=0.14.2';
if (typeof module !== 'undefined') { if (typeof module !== 'undefined') {
module.exports = Example[Object.keys(Example)[0]]; module.exports = Example.gravity;
} }

View file

@ -130,6 +130,8 @@ Example.gyro = function() {
}; };
}; };
Example.gyro.for = '>=0.14.2';
if (typeof module !== 'undefined') { if (typeof module !== 'undefined') {
module.exports = Example[Object.keys(Example)[0]]; module.exports = Example.gyro;
} }

View file

@ -140,6 +140,8 @@ Example.manipulation = function() {
}; };
}; };
Example.manipulation.for = '>=0.14.2';
if (typeof module !== 'undefined') { if (typeof module !== 'undefined') {
module.exports = Example[Object.keys(Example)[0]]; module.exports = Example.manipulation;
} }

View file

@ -105,6 +105,8 @@ Example.mixed = function() {
}; };
}; };
Example.mixed.for = '>=0.14.2';
if (typeof module !== 'undefined') { if (typeof module !== 'undefined') {
module.exports = Example[Object.keys(Example)[0]]; module.exports = Example.mixed;
} }

View file

@ -76,6 +76,8 @@ Example.newtonsCradle = function() {
}; };
}; };
Example.newtonsCradle.for = '>=0.14.2';
if (typeof module !== 'undefined') { if (typeof module !== 'undefined') {
module.exports = Example[Object.keys(Example)[0]]; module.exports = Example.newtonsCradle;
} }

View file

@ -81,6 +81,8 @@ Example.pyramid = function() {
}; };
}; };
Example.pyramid.for = '>=0.14.2';
if (typeof module !== 'undefined') { if (typeof module !== 'undefined') {
module.exports = Example[Object.keys(Example)[0]]; module.exports = Example.pyramid;
} }

View file

@ -498,6 +498,8 @@ Example.ragdoll.ragdoll = function(x, y, scale, options) {
return person; return person;
}; };
Example.ragdoll.for = '>=0.14.2';
if (typeof module !== 'undefined') { if (typeof module !== 'undefined') {
module.exports = Example[Object.keys(Example)[0]]; module.exports = Example.ragdoll;
} }

View file

@ -135,6 +135,8 @@ Example.raycasting = function() {
}; };
}; };
Example.raycasting.for = '>=0.14.2';
if (typeof module !== 'undefined') { if (typeof module !== 'undefined') {
module.exports = Example[Object.keys(Example)[0]]; module.exports = Example.raycasting;
} }

View file

@ -85,6 +85,8 @@ Example.restitution = function() {
}; };
}; };
Example.restitution.for = '>=0.14.2';
if (typeof module !== 'undefined') { if (typeof module !== 'undefined') {
module.exports = Example[Object.keys(Example)[0]]; module.exports = Example.restitution;
} }

View file

@ -109,6 +109,8 @@ Example.rounded = function() {
}; };
}; };
Example.rounded.for = '>=0.14.2';
if (typeof module !== 'undefined') { if (typeof module !== 'undefined') {
module.exports = Example[Object.keys(Example)[0]]; module.exports = Example.rounded;
} }

View file

@ -130,6 +130,8 @@ Example.sensors = function() {
}; };
}; };
Example.sensors.for = '>=0.14.2';
if (typeof module !== 'undefined') { if (typeof module !== 'undefined') {
module.exports = Example[Object.keys(Example)[0]]; module.exports = Example.sensors;
} }

View file

@ -104,6 +104,8 @@ Example.sleeping = function() {
}; };
}; };
Example.sleeping.for = '>=0.14.2';
if (typeof module !== 'undefined') { if (typeof module !== 'undefined') {
module.exports = Example[Object.keys(Example)[0]]; module.exports = Example.sleeping;
} }

View file

@ -100,6 +100,8 @@ Example.slingshot = function() {
}; };
}; };
Example.slingshot.for = '>=0.14.2';
if (typeof module !== 'undefined') { if (typeof module !== 'undefined') {
module.exports = Example[Object.keys(Example)[0]]; module.exports = Example.slingshot;
} }

View file

@ -85,6 +85,8 @@ Example.softBody = function() {
}; };
}; };
Example.softBody.for = '>=0.14.2';
if (typeof module !== 'undefined') { if (typeof module !== 'undefined') {
module.exports = Example[Object.keys(Example)[0]]; module.exports = Example.softBody;
} }

View file

@ -112,6 +112,8 @@ Example.sprites = function() {
}; };
}; };
Example.sprites.for = '>=0.14.2';
if (typeof module !== 'undefined') { if (typeof module !== 'undefined') {
module.exports = Example[Object.keys(Example)[0]]; module.exports = Example.sprites;
} }

View file

@ -81,6 +81,8 @@ Example.stack = function() {
}; };
}; };
Example.stack.for = '>=0.14.2';
if (typeof module !== 'undefined') { if (typeof module !== 'undefined') {
module.exports = Example[Object.keys(Example)[0]]; module.exports = Example.stack;
} }

View file

@ -106,6 +106,8 @@ Example.staticFriction = function() {
}; };
}; };
Example.staticFriction.for = '>=0.14.2';
if (typeof module !== 'undefined') { if (typeof module !== 'undefined') {
module.exports = Example[Object.keys(Example)[0]]; module.exports = Example.staticFriction;
} }

View file

@ -79,6 +79,8 @@ Example.stress = function() {
}; };
}; };
Example.stress.for = '>=0.14.2';
if (typeof module !== 'undefined') { if (typeof module !== 'undefined') {
module.exports = Example[Object.keys(Example)[0]]; module.exports = Example.stress;
} }

View file

@ -79,6 +79,8 @@ Example.stress2 = function() {
}; };
}; };
Example.stress2.for = '>=0.14.2';
if (typeof module !== 'undefined') { if (typeof module !== 'undefined') {
module.exports = Example[Object.keys(Example)[0]]; module.exports = Example.stress2;
} }

View file

@ -124,6 +124,8 @@ Example.svg = function() {
}; };
}; };
Example.svg.for = '>=0.14.2';
if (typeof module !== 'undefined') { if (typeof module !== 'undefined') {
module.exports = Example[Object.keys(Example)[0]]; module.exports = Example.svg;
} }

View file

@ -105,6 +105,8 @@ Example.terrain = function() {
}; };
}; };
Example.terrain.for = '>=0.14.2';
if (typeof module !== 'undefined') { if (typeof module !== 'undefined') {
module.exports = Example[Object.keys(Example)[0]]; module.exports = Example.terrain;
} }

View file

@ -151,6 +151,8 @@ Example.timescale = function() {
}; };
}; };
Example.timescale.for = '>=0.14.2';
if (typeof module !== 'undefined') { if (typeof module !== 'undefined') {
module.exports = Example[Object.keys(Example)[0]]; module.exports = Example.timescale;
} }

View file

@ -182,6 +182,8 @@ Example.views = function() {
}; };
}; };
Example.views.for = '>=0.14.2';
if (typeof module !== 'undefined') { if (typeof module !== 'undefined') {
module.exports = Example[Object.keys(Example)[0]]; module.exports = Example.views;
} }

View file

@ -93,6 +93,8 @@ Example.wreckingBall = function() {
}; };
}; };
Example.wreckingBall.for = '>=0.14.2';
if (typeof module !== 'undefined') { if (typeof module !== 'undefined') {
module.exports = Example[Object.keys(Example)[0]]; module.exports = Example.wreckingBall;
} }