diginext-utils 2.0.11 → 2.0.12

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "diginext-utils",
3
- "version": "2.0.11",
3
+ "version": "2.0.12",
4
4
  "sideEffects": false,
5
5
  "author": {
6
6
  "name": "TOP GROUP (a.k.a Digitop)",
package/src/index.ts CHANGED
@@ -15,5 +15,3 @@ export * from "./Timer";
15
15
  export * from "./permission/requestCamera";
16
16
  export * from "./permission/requestDeviceOrientationControl";
17
17
  export * from "./console/enableConsole";
18
-
19
- export default this;
package/src/math/index.ts CHANGED
@@ -86,3 +86,14 @@ export const angleBetweenPoints = (cx: number, cy: number, ex: number, ey: numbe
86
86
  theta *= 180 / Math.PI; // rads to degs, range (-180, 180]
87
87
  return theta;
88
88
  };
89
+
90
+ export default {
91
+ rand,
92
+ randInt,
93
+ randRound,
94
+ randFloat,
95
+ randHalt,
96
+ degToRad,
97
+ radToDeg,
98
+ angleBetweenPoints,
99
+ };