Skip to content

Commit

Permalink
chore: rebuild
Browse files Browse the repository at this point in the history
  • Loading branch information
Jacek Pietal committed Aug 21, 2022
1 parent da67c18 commit f8b8936
Show file tree
Hide file tree
Showing 49 changed files with 343 additions and 399 deletions.
12 changes: 6 additions & 6 deletions dist/base-system.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { Ellipse } from "./bodies/ellipse";
import { Line } from "./bodies/line";
import { Point } from "./bodies/point";
import { Polygon } from "./bodies/polygon";
import { Body, BodyOptions, Data, RBush, Vector } from "./model";
import { Body, BodyOptions, Data, PotentialVector, RBush, Vector } from "./model";
/**
* very base collision system
*/
Expand All @@ -23,26 +23,26 @@ export declare class BaseSystem extends RBush<Body> implements Data {
/**
* create point at position with options and add to system
*/
createPoint(position: Vector, options?: BodyOptions): Point;
createPoint(position: PotentialVector, options?: BodyOptions): Point;
/**
* create line at position with options and add to system
*/
createLine(start: Vector, end: Vector, options?: BodyOptions): Line;
/**
* create circle at position with options and add to system
*/
createCircle(position: Vector, radius: number, options?: BodyOptions): Circle;
createCircle(position: PotentialVector, radius: number, options?: BodyOptions): Circle;
/**
* create box at position with options and add to system
*/
createBox(position: Vector, width: number, height: number, options?: BodyOptions): Box;
createBox(position: PotentialVector, width: number, height: number, options?: BodyOptions): Box;
/**
* create ellipse at position with options and add to system
*/
createEllipse(position: Vector, radiusX: number, radiusY?: number, step?: number, options?: BodyOptions): Ellipse;
createEllipse(position: PotentialVector, radiusX: number, radiusY?: number, step?: number, options?: BodyOptions): Ellipse;
/**
* create polygon at position with options and add to system
*/
createPolygon(position: Vector, points: Vector[], options?: BodyOptions): Polygon;
createPolygon(position: PotentialVector, points: PotentialVector[], options?: BodyOptions): Polygon;
}
//# sourceMappingURL=base-system.d.ts.map
2 changes: 1 addition & 1 deletion dist/base-system.d.ts.map

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

2 changes: 1 addition & 1 deletion dist/base-system.js.map

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

6 changes: 3 additions & 3 deletions dist/bodies/ellipse.d.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { BodyOptions, Types, Vector } from "../model";
import { BodyOptions, Types, PotentialVector } from "../model";
import { Polygon } from "./polygon";
/**
* collider - ellipse
Expand All @@ -11,12 +11,12 @@ export declare class Ellipse extends Polygon {
private _step;
/**
* collider - ellipse
* @param {Vector} position {x, y}
* @param {PotentialVector} position {x, y}
* @param {number} radiusX
* @param {number} radiusY defaults to radiusX
* @param {number} step precision division >= 1px
*/
constructor(position: Vector, radiusX: number, radiusY?: number, step?: number, options?: BodyOptions);
constructor(position: PotentialVector, radiusX: number, radiusY?: number, step?: number, options?: BodyOptions);
/**
* get ellipse step number
*/
Expand Down
2 changes: 1 addition & 1 deletion dist/bodies/ellipse.d.ts.map

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

2 changes: 1 addition & 1 deletion dist/bodies/ellipse.js

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

2 changes: 1 addition & 1 deletion dist/bodies/ellipse.js.map

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

2 changes: 1 addition & 1 deletion dist/bodies/polygon.d.ts.map

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

7 changes: 0 additions & 7 deletions dist/bodies/polygon.js

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

Loading

0 comments on commit f8b8936

Please sign in to comment.