From f4d72ba3e44b991e0c6201e08813b4d5f5b61ed5 Mon Sep 17 00:00:00 2001 From: liabru Date: Sun, 7 Feb 2021 23:56:08 +0000 Subject: [PATCH] add title to all examples --- examples/airFriction.js | 1 + examples/avalanche.js | 1 + examples/ballPool.js | 1 + examples/bridge.js | 1 + examples/broadphase.js | 1 + examples/car.js | 1 + examples/catapult.js | 1 + examples/chains.js | 1 + examples/circleStack.js | 1 + examples/cloth.js | 1 + examples/collisionFiltering.js | 1 + examples/compositeManipulation.js | 1 + examples/compound.js | 1 + examples/compoundStack.js | 1 + examples/concave.js | 1 + examples/constraints.js | 1 + examples/doublePendulum.js | 1 + examples/events.js | 1 + examples/friction.js | 1 + examples/gravity.js | 1 + examples/gyro.js | 1 + examples/manipulation.js | 1 + examples/mixed.js | 1 + examples/newtonsCradle.js | 1 + examples/pyramid.js | 1 + examples/ragdoll.js | 1 + examples/raycasting.js | 1 + examples/restitution.js | 1 + examples/rounded.js | 1 + examples/sensors.js | 1 + examples/sleeping.js | 1 + examples/slingshot.js | 1 + examples/softBody.js | 1 + examples/sprites.js | 1 + examples/stack.js | 1 + examples/staticFriction.js | 1 + examples/stress.js | 1 + examples/stress2.js | 1 + examples/svg.js | 1 + examples/terrain.js | 1 + examples/timescale.js | 1 + examples/views.js | 1 + examples/wreckingBall.js | 1 + 43 files changed, 43 insertions(+) diff --git a/examples/airFriction.js b/examples/airFriction.js index eae934b..0c74a0e 100644 --- a/examples/airFriction.js +++ b/examples/airFriction.js @@ -80,6 +80,7 @@ Example.airFriction = function() { }; }; +Example.airFriction.title = 'Air Friction'; Example.airFriction.for = '>=0.14.2'; if (typeof module !== 'undefined') { diff --git a/examples/avalanche.js b/examples/avalanche.js index 07eb744..e8c0a4a 100644 --- a/examples/avalanche.js +++ b/examples/avalanche.js @@ -99,6 +99,7 @@ Example.avalanche = function() { }; }; +Example.avalanche.title = 'Avalanche'; Example.avalanche.for = '>=0.14.2'; if (typeof module !== 'undefined') { diff --git a/examples/ballPool.js b/examples/ballPool.js index 7b34906..f7708c4 100644 --- a/examples/ballPool.js +++ b/examples/ballPool.js @@ -107,6 +107,7 @@ Example.ballPool = function() { }; }; +Example.ballPool.title = 'Ball Pool'; Example.ballPool.for = '>=0.14.2'; if (typeof module !== 'undefined') { diff --git a/examples/bridge.js b/examples/bridge.js index ea4b587..9b23fa6 100644 --- a/examples/bridge.js +++ b/examples/bridge.js @@ -124,6 +124,7 @@ Example.bridge = function() { }; }; +Example.bridge.title = 'Bridge'; Example.bridge.for = '>=0.14.2'; if (typeof module !== 'undefined') { diff --git a/examples/broadphase.js b/examples/broadphase.js index bcd89f0..d56e696 100644 --- a/examples/broadphase.js +++ b/examples/broadphase.js @@ -95,6 +95,7 @@ Example.broadphase = function() { }; }; +Example.broadphase.title = 'Broadphase'; Example.broadphase.for = '>=0.14.2'; if (typeof module !== 'undefined') { diff --git a/examples/car.js b/examples/car.js index a4fb873..179d0bb 100644 --- a/examples/car.js +++ b/examples/car.js @@ -89,6 +89,7 @@ Example.car = function() { }; }; +Example.car.title = 'Car'; Example.car.for = '>=0.14.2'; if (typeof module !== 'undefined') { diff --git a/examples/catapult.js b/examples/catapult.js index 0d5ec72..be765f7 100644 --- a/examples/catapult.js +++ b/examples/catapult.js @@ -96,6 +96,7 @@ Example.catapult = function() { }; }; +Example.catapult.title = 'Catapult'; Example.catapult.for = '>=0.14.2'; if (typeof module !== 'undefined') { diff --git a/examples/chains.js b/examples/chains.js index 2b088ef..93cab24 100644 --- a/examples/chains.js +++ b/examples/chains.js @@ -122,6 +122,7 @@ Example.chains = function() { }; }; +Example.chains.title = 'Chains'; Example.chains.for = '>=0.14.2'; if (typeof module !== 'undefined') { diff --git a/examples/circleStack.js b/examples/circleStack.js index 6ead24a..ef98a28 100644 --- a/examples/circleStack.js +++ b/examples/circleStack.js @@ -81,6 +81,7 @@ Example.circleStack = function() { }; }; +Example.circleStack.title = 'Circle Stack'; Example.circleStack.for = '>=0.14.2'; if (typeof module !== 'undefined') { diff --git a/examples/cloth.js b/examples/cloth.js index 187fd05..320e2ab 100644 --- a/examples/cloth.js +++ b/examples/cloth.js @@ -84,6 +84,7 @@ Example.cloth = function() { }; }; +Example.cloth.title = 'Cloth'; Example.cloth.for = '>=0.14.2'; if (typeof module !== 'undefined') { diff --git a/examples/collisionFiltering.js b/examples/collisionFiltering.js index ad9a953..0cc26b7 100644 --- a/examples/collisionFiltering.js +++ b/examples/collisionFiltering.js @@ -154,6 +154,7 @@ Example.collisionFiltering = function() { }; }; +Example.collisionFiltering.title = 'Collision Filtering'; Example.collisionFiltering.for = '>=0.14.2'; if (typeof module !== 'undefined') { diff --git a/examples/compositeManipulation.js b/examples/compositeManipulation.js index 6be50f4..2d1ed57 100644 --- a/examples/compositeManipulation.js +++ b/examples/compositeManipulation.js @@ -107,6 +107,7 @@ Example.compositeManipulation = function() { }; }; +Example.compositeManipulation.title = 'Composite Manipulation'; Example.compositeManipulation.for = '>=0.14.2'; if (typeof module !== 'undefined') { diff --git a/examples/compound.js b/examples/compound.js index 1d504ff..4aaaa6b 100644 --- a/examples/compound.js +++ b/examples/compound.js @@ -106,6 +106,7 @@ Example.compound = function() { }; }; +Example.compound.title = 'Compound Bodies'; Example.compound.for = '>=0.14.2'; if (typeof module !== 'undefined') { diff --git a/examples/compoundStack.js b/examples/compoundStack.js index cc11a1d..5463467 100644 --- a/examples/compoundStack.js +++ b/examples/compoundStack.js @@ -89,6 +89,7 @@ Example.compoundStack = function() { }; }; +Example.compoundStack.title = 'Compound Stack'; Example.compoundStack.for = '>=0.14.2'; if (typeof module !== 'undefined') { diff --git a/examples/concave.js b/examples/concave.js index 1029463..b7ef410 100644 --- a/examples/concave.js +++ b/examples/concave.js @@ -95,6 +95,7 @@ Example.concave = function() { }; }; +Example.concave.title = 'Concave'; Example.concave.for = '>=0.14.2'; if (typeof module !== 'undefined') { diff --git a/examples/constraints.js b/examples/constraints.js index b8d63aa..851c4bd 100644 --- a/examples/constraints.js +++ b/examples/constraints.js @@ -179,6 +179,7 @@ Example.constraints = function() { }; }; +Example.constraints.title = 'Constraints'; Example.constraints.for = '>=0.14.2'; if (typeof module !== 'undefined') { diff --git a/examples/doublePendulum.js b/examples/doublePendulum.js index 76d8df5..4cf6f2c 100644 --- a/examples/doublePendulum.js +++ b/examples/doublePendulum.js @@ -148,6 +148,7 @@ Example.doublePendulum = function() { }; }; +Example.doublePendulum.title = 'Double Pendulum'; Example.doublePendulum.for = '>=0.14.2'; if (typeof module !== 'undefined') { diff --git a/examples/events.js b/examples/events.js index bd7e0a9..ff4b3e2 100644 --- a/examples/events.js +++ b/examples/events.js @@ -178,6 +178,7 @@ Example.events = function() { }; }; +Example.events.title = 'Events'; Example.events.for = '>=0.14.2'; if (typeof module !== 'undefined') { diff --git a/examples/friction.js b/examples/friction.js index afee05b..1ffcb5b 100644 --- a/examples/friction.js +++ b/examples/friction.js @@ -90,6 +90,7 @@ Example.friction = function() { }; }; +Example.friction.title = 'Friction'; Example.friction.for = '>=0.14.2'; if (typeof module !== 'undefined') { diff --git a/examples/gravity.js b/examples/gravity.js index 0df0b72..adb03b9 100644 --- a/examples/gravity.js +++ b/examples/gravity.js @@ -96,6 +96,7 @@ Example.gravity = function() { }; }; +Example.gravity.title = 'Reverse Gravity'; Example.gravity.for = '>=0.14.2'; if (typeof module !== 'undefined') { diff --git a/examples/gyro.js b/examples/gyro.js index 596bac9..35a7fc1 100644 --- a/examples/gyro.js +++ b/examples/gyro.js @@ -130,6 +130,7 @@ Example.gyro = function() { }; }; +Example.gyro.title = 'Gyroscope'; Example.gyro.for = '>=0.14.2'; if (typeof module !== 'undefined') { diff --git a/examples/manipulation.js b/examples/manipulation.js index e2d45de..37f1136 100644 --- a/examples/manipulation.js +++ b/examples/manipulation.js @@ -140,6 +140,7 @@ Example.manipulation = function() { }; }; +Example.manipulation.title = 'Manipulation'; Example.manipulation.for = '>=0.14.2'; if (typeof module !== 'undefined') { diff --git a/examples/mixed.js b/examples/mixed.js index 0bbbde9..e6c6eb0 100644 --- a/examples/mixed.js +++ b/examples/mixed.js @@ -105,6 +105,7 @@ Example.mixed = function() { }; }; +Example.mixed.title = 'Mixed Shapes'; Example.mixed.for = '>=0.14.2'; if (typeof module !== 'undefined') { diff --git a/examples/newtonsCradle.js b/examples/newtonsCradle.js index 4aab940..e45f94b 100644 --- a/examples/newtonsCradle.js +++ b/examples/newtonsCradle.js @@ -76,6 +76,7 @@ Example.newtonsCradle = function() { }; }; +Example.newtonsCradle.title = 'Newton\'s Cradle'; Example.newtonsCradle.for = '>=0.14.2'; if (typeof module !== 'undefined') { diff --git a/examples/pyramid.js b/examples/pyramid.js index bd5e0d5..521bb06 100644 --- a/examples/pyramid.js +++ b/examples/pyramid.js @@ -81,6 +81,7 @@ Example.pyramid = function() { }; }; +Example.pyramid.title = 'Pyramid'; Example.pyramid.for = '>=0.14.2'; if (typeof module !== 'undefined') { diff --git a/examples/ragdoll.js b/examples/ragdoll.js index 4cb9a1f..172964a 100644 --- a/examples/ragdoll.js +++ b/examples/ragdoll.js @@ -498,6 +498,7 @@ Example.ragdoll.ragdoll = function(x, y, scale, options) { return person; }; +Example.ragdoll.title = 'Ragdoll'; Example.ragdoll.for = '>=0.14.2'; if (typeof module !== 'undefined') { diff --git a/examples/raycasting.js b/examples/raycasting.js index 39bbb6a..a47f4c6 100644 --- a/examples/raycasting.js +++ b/examples/raycasting.js @@ -135,6 +135,7 @@ Example.raycasting = function() { }; }; +Example.raycasting.title = 'Raycasting'; Example.raycasting.for = '>=0.14.2'; if (typeof module !== 'undefined') { diff --git a/examples/restitution.js b/examples/restitution.js index 3fa6ca4..9860a05 100644 --- a/examples/restitution.js +++ b/examples/restitution.js @@ -85,6 +85,7 @@ Example.restitution = function() { }; }; +Example.restitution.title = 'Restitution'; Example.restitution.for = '>=0.14.2'; if (typeof module !== 'undefined') { diff --git a/examples/rounded.js b/examples/rounded.js index 0d041a0..b2767c5 100644 --- a/examples/rounded.js +++ b/examples/rounded.js @@ -109,6 +109,7 @@ Example.rounded = function() { }; }; +Example.rounded.title = 'Rounded Corners (Chamfering)'; Example.rounded.for = '>=0.14.2'; if (typeof module !== 'undefined') { diff --git a/examples/sensors.js b/examples/sensors.js index 750186f..07e560d 100644 --- a/examples/sensors.js +++ b/examples/sensors.js @@ -130,6 +130,7 @@ Example.sensors = function() { }; }; +Example.sensors.title = 'Sensors'; Example.sensors.for = '>=0.14.2'; if (typeof module !== 'undefined') { diff --git a/examples/sleeping.js b/examples/sleeping.js index e8de790..0966da5 100644 --- a/examples/sleeping.js +++ b/examples/sleeping.js @@ -104,6 +104,7 @@ Example.sleeping = function() { }; }; +Example.sleeping.title = 'Sleeping'; Example.sleeping.for = '>=0.14.2'; if (typeof module !== 'undefined') { diff --git a/examples/slingshot.js b/examples/slingshot.js index 1f59829..083f460 100644 --- a/examples/slingshot.js +++ b/examples/slingshot.js @@ -100,6 +100,7 @@ Example.slingshot = function() { }; }; +Example.slingshot.title = 'Slingshot'; Example.slingshot.for = '>=0.14.2'; if (typeof module !== 'undefined') { diff --git a/examples/softBody.js b/examples/softBody.js index f16e3de..fb8d4d7 100644 --- a/examples/softBody.js +++ b/examples/softBody.js @@ -85,6 +85,7 @@ Example.softBody = function() { }; }; +Example.softBody.title = 'Soft Body'; Example.softBody.for = '>=0.14.2'; if (typeof module !== 'undefined') { diff --git a/examples/sprites.js b/examples/sprites.js index 07ecc33..44c14ef 100644 --- a/examples/sprites.js +++ b/examples/sprites.js @@ -112,6 +112,7 @@ Example.sprites = function() { }; }; +Example.sprites.title = 'Sprites'; Example.sprites.for = '>=0.14.2'; if (typeof module !== 'undefined') { diff --git a/examples/stack.js b/examples/stack.js index 94c079e..ecbc96b 100644 --- a/examples/stack.js +++ b/examples/stack.js @@ -81,6 +81,7 @@ Example.stack = function() { }; }; +Example.stack.title = 'Stack'; Example.stack.for = '>=0.14.2'; if (typeof module !== 'undefined') { diff --git a/examples/staticFriction.js b/examples/staticFriction.js index a42b5cc..1f42ef9 100644 --- a/examples/staticFriction.js +++ b/examples/staticFriction.js @@ -106,6 +106,7 @@ Example.staticFriction = function() { }; }; +Example.staticFriction.title = 'Static Friction'; Example.staticFriction.for = '>=0.14.2'; if (typeof module !== 'undefined') { diff --git a/examples/stress.js b/examples/stress.js index b463d9d..5ef6ae6 100644 --- a/examples/stress.js +++ b/examples/stress.js @@ -79,6 +79,7 @@ Example.stress = function() { }; }; +Example.stress.title = 'Stress'; Example.stress.for = '>=0.14.2'; if (typeof module !== 'undefined') { diff --git a/examples/stress2.js b/examples/stress2.js index 19be24e..7af50f3 100644 --- a/examples/stress2.js +++ b/examples/stress2.js @@ -79,6 +79,7 @@ Example.stress2 = function() { }; }; +Example.stress2.title = 'Stress 2'; Example.stress2.for = '>=0.14.2'; if (typeof module !== 'undefined') { diff --git a/examples/svg.js b/examples/svg.js index e035314..457a57c 100644 --- a/examples/svg.js +++ b/examples/svg.js @@ -127,6 +127,7 @@ Example.svg = function() { }; }; +Example.svg.title = 'Concave SVG Paths'; Example.svg.for = '>=0.14.2'; if (typeof module !== 'undefined') { diff --git a/examples/terrain.js b/examples/terrain.js index 49bea7e..8d74b05 100644 --- a/examples/terrain.js +++ b/examples/terrain.js @@ -114,6 +114,7 @@ Example.terrain = function() { }; }; +Example.terrain.title = 'Terrain'; Example.terrain.for = '>=0.14.2'; if (typeof module !== 'undefined') { diff --git a/examples/timescale.js b/examples/timescale.js index 1749a5c..f141a9d 100644 --- a/examples/timescale.js +++ b/examples/timescale.js @@ -151,6 +151,7 @@ Example.timescale = function() { }; }; +Example.timescale.title = 'Time Scaling'; Example.timescale.for = '>=0.14.2'; if (typeof module !== 'undefined') { diff --git a/examples/views.js b/examples/views.js index 4d1785d..3e6ca59 100644 --- a/examples/views.js +++ b/examples/views.js @@ -182,6 +182,7 @@ Example.views = function() { }; }; +Example.views.title = 'Views'; Example.views.for = '>=0.14.2'; if (typeof module !== 'undefined') { diff --git a/examples/wreckingBall.js b/examples/wreckingBall.js index f4086b0..2db3417 100644 --- a/examples/wreckingBall.js +++ b/examples/wreckingBall.js @@ -93,6 +93,7 @@ Example.wreckingBall = function() { }; }; +Example.wreckingBall.title = 'Wrecking Ball'; Example.wreckingBall.for = '>=0.14.2'; if (typeof module !== 'undefined') {