Skip to content

Commit

Permalink
fix: properly export helpers.rotatePoint (#180)
Browse files Browse the repository at this point in the history
* fix: properly export helpers.rotatePoint

* actually fix
  • Loading branch information
straker authored Aug 20, 2020
1 parent ca7a571 commit 91c1da1
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/kontra.defaults.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ import {
radToDeg,
degToRad,
angleToTarget,
rotatePoint,
randInt,
seedRand,
lerp,
Expand Down Expand Up @@ -83,6 +84,7 @@ let kontra = {
degToRad,
radToDeg,
angleToTarget,
rotatePoint,
randInt,
seedRand,
lerp,
Expand Down
1 change: 1 addition & 0 deletions src/kontra.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ export {
degToRad,
radToDeg,
angleToTarget,
rotatePoint,
randInt,
seedRand,
lerp,
Expand Down
1 change: 1 addition & 0 deletions test/unit/helpers.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ describe('helpers', () => {
expect(helpers.degToRad).to.be.an('function');
expect(helpers.radToDeg).to.be.an('function');
expect(helpers.angleToTarget).to.be.an('function');
expect(helpers.rotatePoint).to.be.an('function');
expect(helpers.randInt).to.be.an('function');
expect(helpers.lerp).to.be.an('function');
expect(helpers.inverseLerp).to.be.an('function');
Expand Down
1 change: 1 addition & 0 deletions test/unit/kontra.defaults.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@ describe('kontra.defaults', () => {
expect(kontra.degToRad).to.exist;
expect(kontra.radToDeg).to.exist;
expect(kontra.angleToTarget).to.exist;
expect(kontra.rotatePoint).to.exist;
expect(kontra.randInt).to.exist;
expect(kontra.seedRand).to.exist;
expect(kontra.lerp).to.exist;
Expand Down
1 change: 1 addition & 0 deletions test/unit/kontra.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ describe('kontra', () => {
expect(kontraExports.degToRad).to.exist;
expect(kontraExports.radToDeg).to.exist;
expect(kontraExports.angleToTarget).to.exist;
expect(kontraExports.rotatePoint).to.exist;
expect(kontraExports.randInt).to.exist;
expect(kontraExports.seedRand).to.exist;
expect(kontraExports.lerp).to.exist;
Expand Down

0 comments on commit 91c1da1

Please sign in to comment.