Skip to content

Commit

Permalink
rebuild
Browse files Browse the repository at this point in the history
  • Loading branch information
williamngan committed Oct 9, 2018
1 parent 0e1ce79 commit 87e334e
Show file tree
Hide file tree
Showing 14 changed files with 673 additions and 407 deletions.
63 changes: 50 additions & 13 deletions dist/es2015/Physics.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

74 changes: 59 additions & 15 deletions dist/es5.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

16 changes: 9 additions & 7 deletions dist/files/Physics.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,8 @@ export declare class World {
protected _bound: Bound;
protected _particles: Particle[];
protected _bodies: Body[];
protected _names: {
p: {};
b: {};
};
protected _pnames: string[];
protected _bnames: string[];
protected _drawParticles: (p: Particle, i: number) => void;
protected _drawBodies: (p: Body, i: number) => void;
constructor(bound: Group, friction?: number, gravity?: PtLike | number);
Expand All @@ -21,13 +19,17 @@ export declare class World {
damping: number;
readonly bodyCount: number;
readonly particleCount: number;
body(id: number | string): Body;
particle(id: number | string): Particle;
body(id: number | string): any;
particle(id: number | string): any;
bodyIndex(name: string): number;
particleIndex(name: string): number;
update(ms: number): void;
drawParticles(fn: (p: Particle, i: number) => void): void;
drawBodies(fn: (p: Body, i: number) => void): void;
add(p: Particle | Body, name?: string): this;
remove(which: "body" | "particle", index: number, count?: number): this;
private _index;
removeBody(from: number | string, count?: number): this;
removeParticle(from: number | string, count?: number): this;
static edgeConstraint(p1: Particle, p2: Particle, dist: number, stiff?: number, precise?: boolean): Particle;
static boundConstraint(p: Particle, rect: Group, damping?: number): void;
protected integrate(p: Particle, dt: number, prevDt?: number): Particle;
Expand Down
63 changes: 50 additions & 13 deletions dist/files/Physics.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 87e334e

Please sign in to comment.