mirror of
https://github.com/liabru/matter-js.git
synced 2024-12-26 13:49:01 -05:00
move require statements below module export
This commit is contained in:
parent
9e3438f359
commit
99c3bb3273
24 changed files with 112 additions and 112 deletions
|
@ -1,11 +1,3 @@
|
||||||
var Vertices = require('../geometry/Vertices');
|
|
||||||
var Vector = require('../geometry/Vector');
|
|
||||||
var Sleeping = require('../core/Sleeping');
|
|
||||||
var Render = require('../render/Render');
|
|
||||||
var Common = require('../core/Common');
|
|
||||||
var Bounds = require('../geometry/Bounds');
|
|
||||||
var Axes = require('../geometry/Axes');
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* The `Matter.Body` module contains methods for creating and manipulating body models.
|
* The `Matter.Body` module contains methods for creating and manipulating body models.
|
||||||
* A `Matter.Body` is a rigid body that can be simulated by a `Matter.Engine`.
|
* A `Matter.Body` is a rigid body that can be simulated by a `Matter.Engine`.
|
||||||
|
@ -21,6 +13,14 @@ var Body = {};
|
||||||
|
|
||||||
module.exports = Body;
|
module.exports = Body;
|
||||||
|
|
||||||
|
var Vertices = require('../geometry/Vertices');
|
||||||
|
var Vector = require('../geometry/Vector');
|
||||||
|
var Sleeping = require('../core/Sleeping');
|
||||||
|
var Render = require('../render/Render');
|
||||||
|
var Common = require('../core/Common');
|
||||||
|
var Bounds = require('../geometry/Bounds');
|
||||||
|
var Axes = require('../geometry/Axes');
|
||||||
|
|
||||||
(function() {
|
(function() {
|
||||||
|
|
||||||
Body._inertiaScale = 4;
|
Body._inertiaScale = 4;
|
||||||
|
|
|
@ -1,7 +1,3 @@
|
||||||
var Events = require('../core/Events');
|
|
||||||
var Common = require('../core/Common');
|
|
||||||
var Body = require('./Body');
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* The `Matter.Composite` module contains methods for creating and manipulating composite bodies.
|
* The `Matter.Composite` module contains methods for creating and manipulating composite bodies.
|
||||||
* A composite body is a collection of `Matter.Body`, `Matter.Constraint` and other `Matter.Composite`, therefore composites form a tree structure.
|
* A composite body is a collection of `Matter.Body`, `Matter.Constraint` and other `Matter.Composite`, therefore composites form a tree structure.
|
||||||
|
@ -18,6 +14,10 @@ var Composite = {};
|
||||||
|
|
||||||
module.exports = Composite;
|
module.exports = Composite;
|
||||||
|
|
||||||
|
var Events = require('../core/Events');
|
||||||
|
var Common = require('../core/Common');
|
||||||
|
var Body = require('./Body');
|
||||||
|
|
||||||
(function() {
|
(function() {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -1,7 +1,3 @@
|
||||||
var Composite = require('./Composite');
|
|
||||||
var Constraint = require('../constraint/Constraint');
|
|
||||||
var Common = require('../core/Common');
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* The `Matter.World` module contains methods for creating and manipulating the world composite.
|
* The `Matter.World` module contains methods for creating and manipulating the world composite.
|
||||||
* A `Matter.World` is a `Matter.Composite` body, which is a collection of `Matter.Body`, `Matter.Constraint` and other `Matter.Composite`.
|
* A `Matter.World` is a `Matter.Composite` body, which is a collection of `Matter.Body`, `Matter.Constraint` and other `Matter.Composite`.
|
||||||
|
@ -20,6 +16,10 @@ var World = {};
|
||||||
|
|
||||||
module.exports = World;
|
module.exports = World;
|
||||||
|
|
||||||
|
var Composite = require('./Composite');
|
||||||
|
var Constraint = require('../constraint/Constraint');
|
||||||
|
var Common = require('../core/Common');
|
||||||
|
|
||||||
(function() {
|
(function() {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -1,7 +1,3 @@
|
||||||
var SAT = require('./SAT');
|
|
||||||
var Pair = require('./Pair');
|
|
||||||
var Bounds = require('../geometry/Bounds');
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* _Internal Class_, not generally used outside of the engine's internals.
|
* _Internal Class_, not generally used outside of the engine's internals.
|
||||||
*
|
*
|
||||||
|
@ -14,6 +10,10 @@ var Detector = {};
|
||||||
|
|
||||||
module.exports = Detector;
|
module.exports = Detector;
|
||||||
|
|
||||||
|
var SAT = require('./SAT');
|
||||||
|
var Pair = require('./Pair');
|
||||||
|
var Bounds = require('../geometry/Bounds');
|
||||||
|
|
||||||
(function() {
|
(function() {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -1,7 +1,3 @@
|
||||||
var Pair = require('./Pair');
|
|
||||||
var Detector = require('./Detector');
|
|
||||||
var Common = require('../core/Common');
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* See [Demo.js](https://github.com/liabru/matter-js/blob/master/demo/js/Demo.js)
|
* See [Demo.js](https://github.com/liabru/matter-js/blob/master/demo/js/Demo.js)
|
||||||
* and [DemoMobile.js](https://github.com/liabru/matter-js/blob/master/demo/js/DemoMobile.js) for usage examples.
|
* and [DemoMobile.js](https://github.com/liabru/matter-js/blob/master/demo/js/DemoMobile.js) for usage examples.
|
||||||
|
@ -13,6 +9,10 @@ var Grid = {};
|
||||||
|
|
||||||
module.exports = Grid;
|
module.exports = Grid;
|
||||||
|
|
||||||
|
var Pair = require('./Pair');
|
||||||
|
var Detector = require('./Detector');
|
||||||
|
var Common = require('../core/Common');
|
||||||
|
|
||||||
(function() {
|
(function() {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -1,5 +1,3 @@
|
||||||
var Contact = require('./Contact');
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* _Internal Class_, not generally used outside of the engine's internals.
|
* _Internal Class_, not generally used outside of the engine's internals.
|
||||||
*
|
*
|
||||||
|
@ -10,6 +8,8 @@ var Pair = {};
|
||||||
|
|
||||||
module.exports = Pair;
|
module.exports = Pair;
|
||||||
|
|
||||||
|
var Contact = require('./Contact');
|
||||||
|
|
||||||
(function() {
|
(function() {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -1,6 +1,3 @@
|
||||||
var Pair = require('./Pair');
|
|
||||||
var Common = require('../core/Common');
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* _Internal Class_, not generally used outside of the engine's internals.
|
* _Internal Class_, not generally used outside of the engine's internals.
|
||||||
*
|
*
|
||||||
|
@ -11,6 +8,9 @@ var Pairs = {};
|
||||||
|
|
||||||
module.exports = Pairs;
|
module.exports = Pairs;
|
||||||
|
|
||||||
|
var Pair = require('./Pair');
|
||||||
|
var Common = require('../core/Common');
|
||||||
|
|
||||||
(function() {
|
(function() {
|
||||||
|
|
||||||
var _pairMaxIdleLife = 1000;
|
var _pairMaxIdleLife = 1000;
|
||||||
|
|
|
@ -1,9 +1,3 @@
|
||||||
var Vector = require('../geometry/Vector');
|
|
||||||
var SAT = require('./SAT');
|
|
||||||
var Bounds = require('../geometry/Bounds');
|
|
||||||
var Bodies = require('../factory/Bodies');
|
|
||||||
var Vertices = require('../geometry/Vertices');
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* The `Matter.Query` module contains methods for performing collision queries.
|
* The `Matter.Query` module contains methods for performing collision queries.
|
||||||
*
|
*
|
||||||
|
@ -14,6 +8,12 @@ var Query = {};
|
||||||
|
|
||||||
module.exports = Query;
|
module.exports = Query;
|
||||||
|
|
||||||
|
var Vector = require('../geometry/Vector');
|
||||||
|
var SAT = require('./SAT');
|
||||||
|
var Bounds = require('../geometry/Bounds');
|
||||||
|
var Bodies = require('../factory/Bodies');
|
||||||
|
var Vertices = require('../geometry/Vertices');
|
||||||
|
|
||||||
(function() {
|
(function() {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -1,8 +1,3 @@
|
||||||
var Vertices = require('../geometry/Vertices');
|
|
||||||
var Vector = require('../geometry/Vector');
|
|
||||||
var Common = require('../core/Common');
|
|
||||||
var Bounds = require('../geometry/Bounds');
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* _Internal Class_, not generally used outside of the engine's internals.
|
* _Internal Class_, not generally used outside of the engine's internals.
|
||||||
*
|
*
|
||||||
|
@ -13,6 +8,11 @@ var Resolver = {};
|
||||||
|
|
||||||
module.exports = Resolver;
|
module.exports = Resolver;
|
||||||
|
|
||||||
|
var Vertices = require('../geometry/Vertices');
|
||||||
|
var Vector = require('../geometry/Vector');
|
||||||
|
var Common = require('../core/Common');
|
||||||
|
var Bounds = require('../geometry/Bounds');
|
||||||
|
|
||||||
(function() {
|
(function() {
|
||||||
|
|
||||||
Resolver._restingThresh = 4;
|
Resolver._restingThresh = 4;
|
||||||
|
|
|
@ -1,6 +1,3 @@
|
||||||
var Vertices = require('../geometry/Vertices');
|
|
||||||
var Vector = require('../geometry/Vector');
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* _Internal Class_, not generally used outside of the engine's internals.
|
* _Internal Class_, not generally used outside of the engine's internals.
|
||||||
*
|
*
|
||||||
|
@ -13,6 +10,9 @@ var SAT = {};
|
||||||
|
|
||||||
module.exports = SAT;
|
module.exports = SAT;
|
||||||
|
|
||||||
|
var Vertices = require('../geometry/Vertices');
|
||||||
|
var Vector = require('../geometry/Vector');
|
||||||
|
|
||||||
(function() {
|
(function() {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -1,10 +1,3 @@
|
||||||
var Vertices = require('../geometry/Vertices');
|
|
||||||
var Vector = require('../geometry/Vector');
|
|
||||||
var Sleeping = require('../core/Sleeping');
|
|
||||||
var Bounds = require('../geometry/Bounds');
|
|
||||||
var Axes = require('../geometry/Axes');
|
|
||||||
var Common = require('../core/Common');
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* The `Matter.Constraint` module contains methods for creating and manipulating constraints.
|
* The `Matter.Constraint` module contains methods for creating and manipulating constraints.
|
||||||
* Constraints are used for specifying that a fixed distance must be maintained between two bodies (or a body and a fixed world-space position).
|
* Constraints are used for specifying that a fixed distance must be maintained between two bodies (or a body and a fixed world-space position).
|
||||||
|
@ -28,6 +21,13 @@ var Constraint = {};
|
||||||
|
|
||||||
module.exports = Constraint;
|
module.exports = Constraint;
|
||||||
|
|
||||||
|
var Vertices = require('../geometry/Vertices');
|
||||||
|
var Vector = require('../geometry/Vector');
|
||||||
|
var Sleeping = require('../core/Sleeping');
|
||||||
|
var Bounds = require('../geometry/Bounds');
|
||||||
|
var Axes = require('../geometry/Axes');
|
||||||
|
var Common = require('../core/Common');
|
||||||
|
|
||||||
(function() {
|
(function() {
|
||||||
|
|
||||||
var _minLength = 0.000001,
|
var _minLength = 0.000001,
|
||||||
|
|
|
@ -1,13 +1,3 @@
|
||||||
var Vertices = require('../geometry/Vertices');
|
|
||||||
var Sleeping = require('../core/Sleeping');
|
|
||||||
var Mouse = require('../core/Mouse');
|
|
||||||
var Events = require('../core/Events');
|
|
||||||
var Detector = require('../collision/Detector');
|
|
||||||
var Constraint = require('./Constraint');
|
|
||||||
var Composite = require('../body/Composite');
|
|
||||||
var Common = require('../core/Common');
|
|
||||||
var Bounds = require('../geometry/Bounds');
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* The `Matter.MouseConstraint` module contains methods for creating mouse constraints.
|
* The `Matter.MouseConstraint` module contains methods for creating mouse constraints.
|
||||||
* Mouse constraints are used for allowing user interaction, providing the ability to move bodies via the mouse or touch.
|
* Mouse constraints are used for allowing user interaction, providing the ability to move bodies via the mouse or touch.
|
||||||
|
@ -22,6 +12,16 @@ var MouseConstraint = {};
|
||||||
|
|
||||||
module.exports = MouseConstraint;
|
module.exports = MouseConstraint;
|
||||||
|
|
||||||
|
var Vertices = require('../geometry/Vertices');
|
||||||
|
var Sleeping = require('../core/Sleeping');
|
||||||
|
var Mouse = require('../core/Mouse');
|
||||||
|
var Events = require('../core/Events');
|
||||||
|
var Detector = require('../collision/Detector');
|
||||||
|
var Constraint = require('./Constraint');
|
||||||
|
var Composite = require('../body/Composite');
|
||||||
|
var Common = require('../core/Common');
|
||||||
|
var Bounds = require('../geometry/Bounds');
|
||||||
|
|
||||||
(function() {
|
(function() {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -1,16 +1,3 @@
|
||||||
var World = require('../body/World');
|
|
||||||
var Sleeping = require('./Sleeping');
|
|
||||||
var Resolver = require('../collision/Resolver');
|
|
||||||
var Render = require('../render/Render');
|
|
||||||
var Pairs = require('../collision/Pairs');
|
|
||||||
var Metrics = require('./Metrics');
|
|
||||||
var Grid = require('../collision/Grid');
|
|
||||||
var Events = require('./Events');
|
|
||||||
var Composite = require('../body/Composite');
|
|
||||||
var Constraint = require('../constraint/Constraint');
|
|
||||||
var Common = require('./Common');
|
|
||||||
var Body = require('../body/Body');
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* The `Matter.Engine` module contains methods for creating and manipulating engines.
|
* The `Matter.Engine` module contains methods for creating and manipulating engines.
|
||||||
* An engine is a controller that manages updating the simulation of the world.
|
* An engine is a controller that manages updating the simulation of the world.
|
||||||
|
@ -26,6 +13,19 @@ var Engine = {};
|
||||||
|
|
||||||
module.exports = Engine;
|
module.exports = Engine;
|
||||||
|
|
||||||
|
var World = require('../body/World');
|
||||||
|
var Sleeping = require('./Sleeping');
|
||||||
|
var Resolver = require('../collision/Resolver');
|
||||||
|
var Render = require('../render/Render');
|
||||||
|
var Pairs = require('../collision/Pairs');
|
||||||
|
var Metrics = require('./Metrics');
|
||||||
|
var Grid = require('../collision/Grid');
|
||||||
|
var Events = require('./Events');
|
||||||
|
var Composite = require('../body/Composite');
|
||||||
|
var Constraint = require('../constraint/Constraint');
|
||||||
|
var Common = require('./Common');
|
||||||
|
var Body = require('../body/Body');
|
||||||
|
|
||||||
(function() {
|
(function() {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -1,5 +1,3 @@
|
||||||
var Common = require('./Common');
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* See [Demo.js](https://github.com/liabru/matter-js/blob/master/demo/js/Demo.js)
|
* See [Demo.js](https://github.com/liabru/matter-js/blob/master/demo/js/Demo.js)
|
||||||
* and [DemoMobile.js](https://github.com/liabru/matter-js/blob/master/demo/js/DemoMobile.js) for usage examples.
|
* and [DemoMobile.js](https://github.com/liabru/matter-js/blob/master/demo/js/DemoMobile.js) for usage examples.
|
||||||
|
@ -11,6 +9,8 @@ var Events = {};
|
||||||
|
|
||||||
module.exports = Events;
|
module.exports = Events;
|
||||||
|
|
||||||
|
var Common = require('./Common');
|
||||||
|
|
||||||
(function() {
|
(function() {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -1,7 +1,4 @@
|
||||||
// @if DEBUG
|
// @if DEBUG
|
||||||
var Composite = require('../body/Composite');
|
|
||||||
var Common = require('./Common');
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* _Internal Class_, not generally used outside of the engine's internals.
|
* _Internal Class_, not generally used outside of the engine's internals.
|
||||||
*
|
*
|
||||||
|
@ -11,6 +8,9 @@ var Metrics = {};
|
||||||
|
|
||||||
module.exports = Metrics;
|
module.exports = Metrics;
|
||||||
|
|
||||||
|
var Composite = require('../body/Composite');
|
||||||
|
var Common = require('./Common');
|
||||||
|
|
||||||
(function() {
|
(function() {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -1,5 +1,3 @@
|
||||||
var Common = require('../core/Common');
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* _Internal Class_, not generally used outside of the engine's internals.
|
* _Internal Class_, not generally used outside of the engine's internals.
|
||||||
*
|
*
|
||||||
|
@ -10,6 +8,8 @@ var Mouse = {};
|
||||||
|
|
||||||
module.exports = Mouse;
|
module.exports = Mouse;
|
||||||
|
|
||||||
|
var Common = require('../core/Common');
|
||||||
|
|
||||||
(function() {
|
(function() {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -1,7 +1,3 @@
|
||||||
var Events = require('./Events');
|
|
||||||
var Engine = require('./Engine');
|
|
||||||
var Common = require('./Common');
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* The `Matter.Runner` module is an optional utility which provides a game loop,
|
* The `Matter.Runner` module is an optional utility which provides a game loop,
|
||||||
* that handles updating and rendering a `Matter.Engine` for you within a browser.
|
* that handles updating and rendering a `Matter.Engine` for you within a browser.
|
||||||
|
@ -20,6 +16,10 @@ var Runner = {};
|
||||||
|
|
||||||
module.exports = Runner;
|
module.exports = Runner;
|
||||||
|
|
||||||
|
var Events = require('./Events');
|
||||||
|
var Engine = require('./Engine');
|
||||||
|
var Common = require('./Common');
|
||||||
|
|
||||||
(function() {
|
(function() {
|
||||||
|
|
||||||
if (typeof window === 'undefined') {
|
if (typeof window === 'undefined') {
|
||||||
|
|
|
@ -1,5 +1,3 @@
|
||||||
var Events = require('./Events');
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* _Internal Class_, not generally used outside of the engine's internals.
|
* _Internal Class_, not generally used outside of the engine's internals.
|
||||||
*
|
*
|
||||||
|
@ -10,6 +8,8 @@ var Sleeping = {};
|
||||||
|
|
||||||
module.exports = Sleeping;
|
module.exports = Sleeping;
|
||||||
|
|
||||||
|
var Events = require('./Events');
|
||||||
|
|
||||||
(function() {
|
(function() {
|
||||||
|
|
||||||
Sleeping._motionWakeThreshold = 0.18;
|
Sleeping._motionWakeThreshold = 0.18;
|
||||||
|
|
|
@ -1,9 +1,3 @@
|
||||||
var Vertices = require('../geometry/Vertices');
|
|
||||||
var Common = require('../core/Common');
|
|
||||||
var Body = require('../body/Body');
|
|
||||||
var Bounds = require('../geometry/Bounds');
|
|
||||||
var Vector = require('../geometry/Vector');
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* The `Matter.Bodies` module contains factory methods for creating rigid body models
|
* The `Matter.Bodies` module contains factory methods for creating rigid body models
|
||||||
* with commonly used body configurations (such as rectangles, circles and other polygons).
|
* with commonly used body configurations (such as rectangles, circles and other polygons).
|
||||||
|
@ -20,6 +14,12 @@ var Bodies = {};
|
||||||
|
|
||||||
module.exports = Bodies;
|
module.exports = Bodies;
|
||||||
|
|
||||||
|
var Vertices = require('../geometry/Vertices');
|
||||||
|
var Common = require('../core/Common');
|
||||||
|
var Body = require('../body/Body');
|
||||||
|
var Bounds = require('../geometry/Bounds');
|
||||||
|
var Vector = require('../geometry/Vector');
|
||||||
|
|
||||||
(function() {
|
(function() {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -1,9 +1,3 @@
|
||||||
var Composite = require('../body/Composite');
|
|
||||||
var Constraint = require('../constraint/Constraint');
|
|
||||||
var Common = require('../core/Common');
|
|
||||||
var Body = require('../body/Body');
|
|
||||||
var Bodies = require('./Bodies');
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* See [Demo.js](https://github.com/liabru/matter-js/blob/master/demo/js/Demo.js)
|
* See [Demo.js](https://github.com/liabru/matter-js/blob/master/demo/js/Demo.js)
|
||||||
* and [DemoMobile.js](https://github.com/liabru/matter-js/blob/master/demo/js/DemoMobile.js) for usage examples.
|
* and [DemoMobile.js](https://github.com/liabru/matter-js/blob/master/demo/js/DemoMobile.js) for usage examples.
|
||||||
|
@ -15,6 +9,12 @@ var Composites = {};
|
||||||
|
|
||||||
module.exports = Composites;
|
module.exports = Composites;
|
||||||
|
|
||||||
|
var Composite = require('../body/Composite');
|
||||||
|
var Constraint = require('../constraint/Constraint');
|
||||||
|
var Common = require('../core/Common');
|
||||||
|
var Body = require('../body/Body');
|
||||||
|
var Bodies = require('./Bodies');
|
||||||
|
|
||||||
(function() {
|
(function() {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -1,6 +1,3 @@
|
||||||
var Vector = require('../geometry/Vector');
|
|
||||||
var Common = require('../core/Common');
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* _Internal Class_, not generally used outside of the engine's internals.
|
* _Internal Class_, not generally used outside of the engine's internals.
|
||||||
*
|
*
|
||||||
|
@ -11,6 +8,9 @@ var Axes = {};
|
||||||
|
|
||||||
module.exports = Axes;
|
module.exports = Axes;
|
||||||
|
|
||||||
|
var Vector = require('../geometry/Vector');
|
||||||
|
var Common = require('../core/Common');
|
||||||
|
|
||||||
(function() {
|
(function() {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -1,5 +1,3 @@
|
||||||
var Bounds = require('../geometry/Bounds');
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* The `Matter.Svg` module contains methods for converting SVG images into an array of vector points.
|
* The `Matter.Svg` module contains methods for converting SVG images into an array of vector points.
|
||||||
*
|
*
|
||||||
|
@ -13,6 +11,8 @@ var Svg = {};
|
||||||
|
|
||||||
module.exports = Svg;
|
module.exports = Svg;
|
||||||
|
|
||||||
|
var Bounds = require('../geometry/Bounds');
|
||||||
|
|
||||||
(function() {
|
(function() {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -1,6 +1,3 @@
|
||||||
var Vector = require('../geometry/Vector');
|
|
||||||
var Common = require('../core/Common');
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* The `Matter.Vertices` module contains methods for creating and manipulating sets of vertices.
|
* The `Matter.Vertices` module contains methods for creating and manipulating sets of vertices.
|
||||||
* A set of vertices is an array of `Matter.Vector` with additional indexing properties inserted by `Vertices.create`.
|
* A set of vertices is an array of `Matter.Vector` with additional indexing properties inserted by `Vertices.create`.
|
||||||
|
@ -16,6 +13,9 @@ var Vertices = {};
|
||||||
|
|
||||||
module.exports = Vertices;
|
module.exports = Vertices;
|
||||||
|
|
||||||
|
var Vector = require('../geometry/Vector');
|
||||||
|
var Common = require('../core/Common');
|
||||||
|
|
||||||
(function() {
|
(function() {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -1,9 +1,3 @@
|
||||||
var Common = require('../core/Common');
|
|
||||||
var Composite = require('../body/Composite');
|
|
||||||
var Bounds = require('../geometry/Bounds');
|
|
||||||
var Events = require('../core/Events');
|
|
||||||
var Grid = require('../collision/Grid');
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* The `Matter.Render` module is the default `render.controller` used by a `Matter.Engine`.
|
* The `Matter.Render` module is the default `render.controller` used by a `Matter.Engine`.
|
||||||
* This renderer is HTML5 canvas based and supports a number of drawing options including sprites and viewports.
|
* This renderer is HTML5 canvas based and supports a number of drawing options including sprites and viewports.
|
||||||
|
@ -20,6 +14,12 @@ var Render = {};
|
||||||
|
|
||||||
module.exports = Render;
|
module.exports = Render;
|
||||||
|
|
||||||
|
var Common = require('../core/Common');
|
||||||
|
var Composite = require('../body/Composite');
|
||||||
|
var Bounds = require('../geometry/Bounds');
|
||||||
|
var Events = require('../core/Events');
|
||||||
|
var Grid = require('../collision/Grid');
|
||||||
|
|
||||||
(function() {
|
(function() {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Reference in a new issue