0
0
Fork 0
mirror of https://github.com/liabru/matter-js.git synced 2025-01-20 17:10:11 -05:00

add title to all examples

This commit is contained in:
liabru 2021-02-07 23:56:08 +00:00
parent 3f579274c7
commit f4d72ba3e4
43 changed files with 43 additions and 0 deletions

View file

@ -80,6 +80,7 @@ Example.airFriction = function() {
}; };
}; };
Example.airFriction.title = 'Air Friction';
Example.airFriction.for = '>=0.14.2'; Example.airFriction.for = '>=0.14.2';
if (typeof module !== 'undefined') { if (typeof module !== 'undefined') {

View file

@ -99,6 +99,7 @@ Example.avalanche = function() {
}; };
}; };
Example.avalanche.title = 'Avalanche';
Example.avalanche.for = '>=0.14.2'; Example.avalanche.for = '>=0.14.2';
if (typeof module !== 'undefined') { if (typeof module !== 'undefined') {

View file

@ -107,6 +107,7 @@ Example.ballPool = function() {
}; };
}; };
Example.ballPool.title = 'Ball Pool';
Example.ballPool.for = '>=0.14.2'; Example.ballPool.for = '>=0.14.2';
if (typeof module !== 'undefined') { if (typeof module !== 'undefined') {

View file

@ -124,6 +124,7 @@ Example.bridge = function() {
}; };
}; };
Example.bridge.title = 'Bridge';
Example.bridge.for = '>=0.14.2'; Example.bridge.for = '>=0.14.2';
if (typeof module !== 'undefined') { if (typeof module !== 'undefined') {

View file

@ -95,6 +95,7 @@ Example.broadphase = function() {
}; };
}; };
Example.broadphase.title = 'Broadphase';
Example.broadphase.for = '>=0.14.2'; Example.broadphase.for = '>=0.14.2';
if (typeof module !== 'undefined') { if (typeof module !== 'undefined') {

View file

@ -89,6 +89,7 @@ Example.car = function() {
}; };
}; };
Example.car.title = 'Car';
Example.car.for = '>=0.14.2'; Example.car.for = '>=0.14.2';
if (typeof module !== 'undefined') { if (typeof module !== 'undefined') {

View file

@ -96,6 +96,7 @@ Example.catapult = function() {
}; };
}; };
Example.catapult.title = 'Catapult';
Example.catapult.for = '>=0.14.2'; Example.catapult.for = '>=0.14.2';
if (typeof module !== 'undefined') { if (typeof module !== 'undefined') {

View file

@ -122,6 +122,7 @@ Example.chains = function() {
}; };
}; };
Example.chains.title = 'Chains';
Example.chains.for = '>=0.14.2'; Example.chains.for = '>=0.14.2';
if (typeof module !== 'undefined') { if (typeof module !== 'undefined') {

View file

@ -81,6 +81,7 @@ Example.circleStack = function() {
}; };
}; };
Example.circleStack.title = 'Circle Stack';
Example.circleStack.for = '>=0.14.2'; Example.circleStack.for = '>=0.14.2';
if (typeof module !== 'undefined') { if (typeof module !== 'undefined') {

View file

@ -84,6 +84,7 @@ Example.cloth = function() {
}; };
}; };
Example.cloth.title = 'Cloth';
Example.cloth.for = '>=0.14.2'; Example.cloth.for = '>=0.14.2';
if (typeof module !== 'undefined') { if (typeof module !== 'undefined') {

View file

@ -154,6 +154,7 @@ Example.collisionFiltering = function() {
}; };
}; };
Example.collisionFiltering.title = 'Collision Filtering';
Example.collisionFiltering.for = '>=0.14.2'; Example.collisionFiltering.for = '>=0.14.2';
if (typeof module !== 'undefined') { if (typeof module !== 'undefined') {

View file

@ -107,6 +107,7 @@ Example.compositeManipulation = function() {
}; };
}; };
Example.compositeManipulation.title = 'Composite Manipulation';
Example.compositeManipulation.for = '>=0.14.2'; Example.compositeManipulation.for = '>=0.14.2';
if (typeof module !== 'undefined') { if (typeof module !== 'undefined') {

View file

@ -106,6 +106,7 @@ Example.compound = function() {
}; };
}; };
Example.compound.title = 'Compound Bodies';
Example.compound.for = '>=0.14.2'; Example.compound.for = '>=0.14.2';
if (typeof module !== 'undefined') { if (typeof module !== 'undefined') {

View file

@ -89,6 +89,7 @@ Example.compoundStack = function() {
}; };
}; };
Example.compoundStack.title = 'Compound Stack';
Example.compoundStack.for = '>=0.14.2'; Example.compoundStack.for = '>=0.14.2';
if (typeof module !== 'undefined') { if (typeof module !== 'undefined') {

View file

@ -95,6 +95,7 @@ Example.concave = function() {
}; };
}; };
Example.concave.title = 'Concave';
Example.concave.for = '>=0.14.2'; Example.concave.for = '>=0.14.2';
if (typeof module !== 'undefined') { if (typeof module !== 'undefined') {

View file

@ -179,6 +179,7 @@ Example.constraints = function() {
}; };
}; };
Example.constraints.title = 'Constraints';
Example.constraints.for = '>=0.14.2'; Example.constraints.for = '>=0.14.2';
if (typeof module !== 'undefined') { if (typeof module !== 'undefined') {

View file

@ -148,6 +148,7 @@ Example.doublePendulum = function() {
}; };
}; };
Example.doublePendulum.title = 'Double Pendulum';
Example.doublePendulum.for = '>=0.14.2'; Example.doublePendulum.for = '>=0.14.2';
if (typeof module !== 'undefined') { if (typeof module !== 'undefined') {

View file

@ -178,6 +178,7 @@ Example.events = function() {
}; };
}; };
Example.events.title = 'Events';
Example.events.for = '>=0.14.2'; Example.events.for = '>=0.14.2';
if (typeof module !== 'undefined') { if (typeof module !== 'undefined') {

View file

@ -90,6 +90,7 @@ Example.friction = function() {
}; };
}; };
Example.friction.title = 'Friction';
Example.friction.for = '>=0.14.2'; Example.friction.for = '>=0.14.2';
if (typeof module !== 'undefined') { if (typeof module !== 'undefined') {

View file

@ -96,6 +96,7 @@ Example.gravity = function() {
}; };
}; };
Example.gravity.title = 'Reverse Gravity';
Example.gravity.for = '>=0.14.2'; Example.gravity.for = '>=0.14.2';
if (typeof module !== 'undefined') { if (typeof module !== 'undefined') {

View file

@ -130,6 +130,7 @@ Example.gyro = function() {
}; };
}; };
Example.gyro.title = 'Gyroscope';
Example.gyro.for = '>=0.14.2'; Example.gyro.for = '>=0.14.2';
if (typeof module !== 'undefined') { if (typeof module !== 'undefined') {

View file

@ -140,6 +140,7 @@ Example.manipulation = function() {
}; };
}; };
Example.manipulation.title = 'Manipulation';
Example.manipulation.for = '>=0.14.2'; Example.manipulation.for = '>=0.14.2';
if (typeof module !== 'undefined') { if (typeof module !== 'undefined') {

View file

@ -105,6 +105,7 @@ Example.mixed = function() {
}; };
}; };
Example.mixed.title = 'Mixed Shapes';
Example.mixed.for = '>=0.14.2'; Example.mixed.for = '>=0.14.2';
if (typeof module !== 'undefined') { if (typeof module !== 'undefined') {

View file

@ -76,6 +76,7 @@ Example.newtonsCradle = function() {
}; };
}; };
Example.newtonsCradle.title = 'Newton\'s Cradle';
Example.newtonsCradle.for = '>=0.14.2'; Example.newtonsCradle.for = '>=0.14.2';
if (typeof module !== 'undefined') { if (typeof module !== 'undefined') {

View file

@ -81,6 +81,7 @@ Example.pyramid = function() {
}; };
}; };
Example.pyramid.title = 'Pyramid';
Example.pyramid.for = '>=0.14.2'; Example.pyramid.for = '>=0.14.2';
if (typeof module !== 'undefined') { if (typeof module !== 'undefined') {

View file

@ -498,6 +498,7 @@ Example.ragdoll.ragdoll = function(x, y, scale, options) {
return person; return person;
}; };
Example.ragdoll.title = 'Ragdoll';
Example.ragdoll.for = '>=0.14.2'; Example.ragdoll.for = '>=0.14.2';
if (typeof module !== 'undefined') { if (typeof module !== 'undefined') {

View file

@ -135,6 +135,7 @@ Example.raycasting = function() {
}; };
}; };
Example.raycasting.title = 'Raycasting';
Example.raycasting.for = '>=0.14.2'; Example.raycasting.for = '>=0.14.2';
if (typeof module !== 'undefined') { if (typeof module !== 'undefined') {

View file

@ -85,6 +85,7 @@ Example.restitution = function() {
}; };
}; };
Example.restitution.title = 'Restitution';
Example.restitution.for = '>=0.14.2'; Example.restitution.for = '>=0.14.2';
if (typeof module !== 'undefined') { if (typeof module !== 'undefined') {

View file

@ -109,6 +109,7 @@ Example.rounded = function() {
}; };
}; };
Example.rounded.title = 'Rounded Corners (Chamfering)';
Example.rounded.for = '>=0.14.2'; Example.rounded.for = '>=0.14.2';
if (typeof module !== 'undefined') { if (typeof module !== 'undefined') {

View file

@ -130,6 +130,7 @@ Example.sensors = function() {
}; };
}; };
Example.sensors.title = 'Sensors';
Example.sensors.for = '>=0.14.2'; Example.sensors.for = '>=0.14.2';
if (typeof module !== 'undefined') { if (typeof module !== 'undefined') {

View file

@ -104,6 +104,7 @@ Example.sleeping = function() {
}; };
}; };
Example.sleeping.title = 'Sleeping';
Example.sleeping.for = '>=0.14.2'; Example.sleeping.for = '>=0.14.2';
if (typeof module !== 'undefined') { if (typeof module !== 'undefined') {

View file

@ -100,6 +100,7 @@ Example.slingshot = function() {
}; };
}; };
Example.slingshot.title = 'Slingshot';
Example.slingshot.for = '>=0.14.2'; Example.slingshot.for = '>=0.14.2';
if (typeof module !== 'undefined') { if (typeof module !== 'undefined') {

View file

@ -85,6 +85,7 @@ Example.softBody = function() {
}; };
}; };
Example.softBody.title = 'Soft Body';
Example.softBody.for = '>=0.14.2'; Example.softBody.for = '>=0.14.2';
if (typeof module !== 'undefined') { if (typeof module !== 'undefined') {

View file

@ -112,6 +112,7 @@ Example.sprites = function() {
}; };
}; };
Example.sprites.title = 'Sprites';
Example.sprites.for = '>=0.14.2'; Example.sprites.for = '>=0.14.2';
if (typeof module !== 'undefined') { if (typeof module !== 'undefined') {

View file

@ -81,6 +81,7 @@ Example.stack = function() {
}; };
}; };
Example.stack.title = 'Stack';
Example.stack.for = '>=0.14.2'; Example.stack.for = '>=0.14.2';
if (typeof module !== 'undefined') { if (typeof module !== 'undefined') {

View file

@ -106,6 +106,7 @@ Example.staticFriction = function() {
}; };
}; };
Example.staticFriction.title = 'Static Friction';
Example.staticFriction.for = '>=0.14.2'; Example.staticFriction.for = '>=0.14.2';
if (typeof module !== 'undefined') { if (typeof module !== 'undefined') {

View file

@ -79,6 +79,7 @@ Example.stress = function() {
}; };
}; };
Example.stress.title = 'Stress';
Example.stress.for = '>=0.14.2'; Example.stress.for = '>=0.14.2';
if (typeof module !== 'undefined') { if (typeof module !== 'undefined') {

View file

@ -79,6 +79,7 @@ Example.stress2 = function() {
}; };
}; };
Example.stress2.title = 'Stress 2';
Example.stress2.for = '>=0.14.2'; Example.stress2.for = '>=0.14.2';
if (typeof module !== 'undefined') { if (typeof module !== 'undefined') {

View file

@ -127,6 +127,7 @@ Example.svg = function() {
}; };
}; };
Example.svg.title = 'Concave SVG Paths';
Example.svg.for = '>=0.14.2'; Example.svg.for = '>=0.14.2';
if (typeof module !== 'undefined') { if (typeof module !== 'undefined') {

View file

@ -114,6 +114,7 @@ Example.terrain = function() {
}; };
}; };
Example.terrain.title = 'Terrain';
Example.terrain.for = '>=0.14.2'; Example.terrain.for = '>=0.14.2';
if (typeof module !== 'undefined') { if (typeof module !== 'undefined') {

View file

@ -151,6 +151,7 @@ Example.timescale = function() {
}; };
}; };
Example.timescale.title = 'Time Scaling';
Example.timescale.for = '>=0.14.2'; Example.timescale.for = '>=0.14.2';
if (typeof module !== 'undefined') { if (typeof module !== 'undefined') {

View file

@ -182,6 +182,7 @@ Example.views = function() {
}; };
}; };
Example.views.title = 'Views';
Example.views.for = '>=0.14.2'; Example.views.for = '>=0.14.2';
if (typeof module !== 'undefined') { if (typeof module !== 'undefined') {

View file

@ -93,6 +93,7 @@ Example.wreckingBall = function() {
}; };
}; };
Example.wreckingBall.title = 'Wrecking Ball';
Example.wreckingBall.for = '>=0.14.2'; Example.wreckingBall.for = '>=0.14.2';
if (typeof module !== 'undefined') { if (typeof module !== 'undefined') {