@sarmal/core 0.17.0 → 0.17.1

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.
Files changed (74) hide show
  1. package/README.md +4 -4
  2. package/dist/auto-init.cjs +88 -109
  3. package/dist/auto-init.cjs.map +1 -1
  4. package/dist/auto-init.js +87 -108
  5. package/dist/auto-init.js.map +1 -1
  6. package/dist/curves/artemis2.cjs +7 -10
  7. package/dist/curves/artemis2.d.cts +1 -1
  8. package/dist/curves/artemis2.d.ts +1 -1
  9. package/dist/curves/artemis2.js +6 -9
  10. package/dist/curves/astroid.cjs +4 -4
  11. package/dist/curves/astroid.d.cts +1 -1
  12. package/dist/curves/astroid.d.ts +1 -1
  13. package/dist/curves/astroid.js +3 -3
  14. package/dist/curves/deltoid.cjs +4 -4
  15. package/dist/curves/deltoid.d.cts +1 -1
  16. package/dist/curves/deltoid.d.ts +1 -1
  17. package/dist/curves/deltoid.js +3 -3
  18. package/dist/curves/epicycloid3.cjs +4 -4
  19. package/dist/curves/epicycloid3.d.cts +1 -1
  20. package/dist/curves/epicycloid3.d.ts +1 -1
  21. package/dist/curves/epicycloid3.js +3 -3
  22. package/dist/curves/epitrochoid7.cjs +5 -5
  23. package/dist/curves/epitrochoid7.d.cts +1 -1
  24. package/dist/curves/epitrochoid7.d.ts +1 -1
  25. package/dist/curves/epitrochoid7.js +4 -4
  26. package/dist/curves/index.cjs +40 -53
  27. package/dist/curves/index.d.cts +29 -29
  28. package/dist/curves/index.d.ts +29 -29
  29. package/dist/curves/index.js +40 -69
  30. package/dist/curves/lame.cjs +5 -6
  31. package/dist/curves/lame.d.cts +1 -1
  32. package/dist/curves/lame.d.ts +1 -1
  33. package/dist/curves/lame.js +4 -5
  34. package/dist/curves/lissajous32.cjs +4 -4
  35. package/dist/curves/lissajous32.d.cts +1 -1
  36. package/dist/curves/lissajous32.d.ts +1 -1
  37. package/dist/curves/lissajous32.js +3 -3
  38. package/dist/curves/lissajous43.cjs +4 -4
  39. package/dist/curves/lissajous43.d.cts +1 -1
  40. package/dist/curves/lissajous43.d.ts +1 -1
  41. package/dist/curves/lissajous43.js +3 -3
  42. package/dist/curves/rose3.cjs +4 -4
  43. package/dist/curves/rose3.d.cts +1 -1
  44. package/dist/curves/rose3.d.ts +1 -1
  45. package/dist/curves/rose3.js +3 -3
  46. package/dist/curves/rose5.cjs +4 -4
  47. package/dist/curves/rose5.d.cts +1 -1
  48. package/dist/curves/rose5.d.ts +1 -1
  49. package/dist/curves/rose5.js +3 -3
  50. package/dist/curves/rose52.cjs +5 -5
  51. package/dist/curves/rose52.d.cts +1 -1
  52. package/dist/curves/rose52.d.ts +1 -1
  53. package/dist/curves/rose52.js +4 -4
  54. package/dist/curves/star.cjs +5 -8
  55. package/dist/curves/star.d.cts +1 -1
  56. package/dist/curves/star.d.ts +1 -1
  57. package/dist/curves/star.js +4 -7
  58. package/dist/curves/star4.cjs +5 -8
  59. package/dist/curves/star4.d.cts +1 -1
  60. package/dist/curves/star4.d.ts +1 -1
  61. package/dist/curves/star4.js +4 -7
  62. package/dist/curves/star7.cjs +5 -8
  63. package/dist/curves/star7.d.cts +1 -1
  64. package/dist/curves/star7.d.ts +1 -1
  65. package/dist/curves/star7.js +4 -7
  66. package/dist/index.cjs +82 -105
  67. package/dist/index.cjs.map +1 -1
  68. package/dist/index.d.cts +39 -76
  69. package/dist/index.d.ts +39 -76
  70. package/dist/index.js +82 -123
  71. package/dist/index.js.map +1 -1
  72. package/dist/types-BL9HhEmk.d.cts +246 -259
  73. package/dist/types-BL9HhEmk.d.ts +246 -259
  74. package/package.json +1 -1
@@ -1,19 +1,19 @@
1
1
  // src/curves/rose52.ts
2
2
  var FOUR_PI = Math.PI * 4;
3
3
  function rose52Fn(t, _time, _params) {
4
- const r = Math.cos((5 / 2) * t);
4
+ const r = Math.cos(5 / 2 * t);
5
5
  return {
6
6
  x: r * Math.cos(t),
7
- y: r * Math.sin(t),
7
+ y: r * Math.sin(t)
8
8
  };
9
9
  }
10
10
  var rose52 = {
11
11
  name: "Rose (n=5/2)",
12
12
  fn: rose52Fn,
13
13
  period: FOUR_PI,
14
- speed: 0.8,
14
+ speed: 0.8
15
15
  };
16
16
 
17
17
  export { rose52 };
18
18
  //# sourceMappingURL=rose52.js.map
19
- //# sourceMappingURL=rose52.js.map
19
+ //# sourceMappingURL=rose52.js.map
@@ -1,24 +1,21 @@
1
- "use strict";
1
+ 'use strict';
2
2
 
3
3
  // src/curves/star.ts
4
4
  var TWO_PI = Math.PI * 2;
5
5
  function starFn(t, _time, _params) {
6
- const r =
7
- Math.abs(Math.cos((5 / 2) * t)) +
8
- 0.35 * Math.abs(Math.cos((15 / 2) * t)) +
9
- 0.15 * Math.abs(Math.cos((25 / 2) * t));
6
+ const r = Math.abs(Math.cos(5 / 2 * t)) + 0.35 * Math.abs(Math.cos(15 / 2 * t)) + 0.15 * Math.abs(Math.cos(25 / 2 * t));
10
7
  return {
11
8
  x: r * Math.cos(t),
12
- y: r * Math.sin(t),
9
+ y: r * Math.sin(t)
13
10
  };
14
11
  }
15
12
  var star = {
16
13
  name: "Star",
17
14
  fn: starFn,
18
15
  period: TWO_PI,
19
- speed: 1,
16
+ speed: 1
20
17
  };
21
18
 
22
19
  exports.star = star;
23
20
  //# sourceMappingURL=star.cjs.map
24
- //# sourceMappingURL=star.cjs.map
21
+ //# sourceMappingURL=star.cjs.map
@@ -1,4 +1,4 @@
1
- import { C as CurveDef } from "../types-BL9HhEmk.cjs";
1
+ import { C as CurveDef } from '../types-BL9HhEmk.cjs';
2
2
 
3
3
  /**
4
4
  * 5-pointed star based on Fourier harmonics.
@@ -1,4 +1,4 @@
1
- import { C as CurveDef } from "../types-BL9HhEmk.js";
1
+ import { C as CurveDef } from '../types-BL9HhEmk.js';
2
2
 
3
3
  /**
4
4
  * 5-pointed star based on Fourier harmonics.
@@ -1,22 +1,19 @@
1
1
  // src/curves/star.ts
2
2
  var TWO_PI = Math.PI * 2;
3
3
  function starFn(t, _time, _params) {
4
- const r =
5
- Math.abs(Math.cos((5 / 2) * t)) +
6
- 0.35 * Math.abs(Math.cos((15 / 2) * t)) +
7
- 0.15 * Math.abs(Math.cos((25 / 2) * t));
4
+ const r = Math.abs(Math.cos(5 / 2 * t)) + 0.35 * Math.abs(Math.cos(15 / 2 * t)) + 0.15 * Math.abs(Math.cos(25 / 2 * t));
8
5
  return {
9
6
  x: r * Math.cos(t),
10
- y: r * Math.sin(t),
7
+ y: r * Math.sin(t)
11
8
  };
12
9
  }
13
10
  var star = {
14
11
  name: "Star",
15
12
  fn: starFn,
16
13
  period: TWO_PI,
17
- speed: 1,
14
+ speed: 1
18
15
  };
19
16
 
20
17
  export { star };
21
18
  //# sourceMappingURL=star.js.map
22
- //# sourceMappingURL=star.js.map
19
+ //# sourceMappingURL=star.js.map
@@ -1,24 +1,21 @@
1
- "use strict";
1
+ 'use strict';
2
2
 
3
3
  // src/curves/star4.ts
4
4
  var TWO_PI = Math.PI * 2;
5
5
  function star4Fn(t, _time, _params) {
6
- const r =
7
- Math.abs(Math.cos(2 * t)) +
8
- 0.35 * Math.abs(Math.cos(6 * t)) +
9
- 0.15 * Math.abs(Math.cos(10 * t));
6
+ const r = Math.abs(Math.cos(2 * t)) + 0.35 * Math.abs(Math.cos(6 * t)) + 0.15 * Math.abs(Math.cos(10 * t));
10
7
  return {
11
8
  x: r * Math.cos(t),
12
- y: r * Math.sin(t),
9
+ y: r * Math.sin(t)
13
10
  };
14
11
  }
15
12
  var star4 = {
16
13
  name: "Star (4-arm)",
17
14
  fn: star4Fn,
18
15
  period: TWO_PI,
19
- speed: 1,
16
+ speed: 1
20
17
  };
21
18
 
22
19
  exports.star4 = star4;
23
20
  //# sourceMappingURL=star4.cjs.map
24
- //# sourceMappingURL=star4.cjs.map
21
+ //# sourceMappingURL=star4.cjs.map
@@ -1,4 +1,4 @@
1
- import { C as CurveDef } from "../types-BL9HhEmk.cjs";
1
+ import { C as CurveDef } from '../types-BL9HhEmk.cjs';
2
2
 
3
3
  /**
4
4
  * 4-pointed star based on Fourier harmonics.
@@ -1,4 +1,4 @@
1
- import { C as CurveDef } from "../types-BL9HhEmk.js";
1
+ import { C as CurveDef } from '../types-BL9HhEmk.js';
2
2
 
3
3
  /**
4
4
  * 4-pointed star based on Fourier harmonics.
@@ -1,22 +1,19 @@
1
1
  // src/curves/star4.ts
2
2
  var TWO_PI = Math.PI * 2;
3
3
  function star4Fn(t, _time, _params) {
4
- const r =
5
- Math.abs(Math.cos(2 * t)) +
6
- 0.35 * Math.abs(Math.cos(6 * t)) +
7
- 0.15 * Math.abs(Math.cos(10 * t));
4
+ const r = Math.abs(Math.cos(2 * t)) + 0.35 * Math.abs(Math.cos(6 * t)) + 0.15 * Math.abs(Math.cos(10 * t));
8
5
  return {
9
6
  x: r * Math.cos(t),
10
- y: r * Math.sin(t),
7
+ y: r * Math.sin(t)
11
8
  };
12
9
  }
13
10
  var star4 = {
14
11
  name: "Star (4-arm)",
15
12
  fn: star4Fn,
16
13
  period: TWO_PI,
17
- speed: 1,
14
+ speed: 1
18
15
  };
19
16
 
20
17
  export { star4 };
21
18
  //# sourceMappingURL=star4.js.map
22
- //# sourceMappingURL=star4.js.map
19
+ //# sourceMappingURL=star4.js.map
@@ -1,24 +1,21 @@
1
- "use strict";
1
+ 'use strict';
2
2
 
3
3
  // src/curves/star7.ts
4
4
  var TWO_PI = Math.PI * 2;
5
5
  function star7Fn(t, _time, _params) {
6
- const r =
7
- Math.abs(Math.cos((7 / 2) * t)) +
8
- 0.35 * Math.abs(Math.cos((21 / 2) * t)) +
9
- 0.15 * Math.abs(Math.cos((35 / 2) * t));
6
+ const r = Math.abs(Math.cos(7 / 2 * t)) + 0.35 * Math.abs(Math.cos(21 / 2 * t)) + 0.15 * Math.abs(Math.cos(35 / 2 * t));
10
7
  return {
11
8
  x: r * Math.cos(t),
12
- y: r * Math.sin(t),
9
+ y: r * Math.sin(t)
13
10
  };
14
11
  }
15
12
  var star7 = {
16
13
  name: "Star (7-arm)",
17
14
  fn: star7Fn,
18
15
  period: TWO_PI,
19
- speed: 1,
16
+ speed: 1
20
17
  };
21
18
 
22
19
  exports.star7 = star7;
23
20
  //# sourceMappingURL=star7.cjs.map
24
- //# sourceMappingURL=star7.cjs.map
21
+ //# sourceMappingURL=star7.cjs.map
@@ -1,4 +1,4 @@
1
- import { C as CurveDef } from "../types-BL9HhEmk.cjs";
1
+ import { C as CurveDef } from '../types-BL9HhEmk.cjs';
2
2
 
3
3
  /**
4
4
  * 7-pointed star based on Fourier harmonics.
@@ -1,4 +1,4 @@
1
- import { C as CurveDef } from "../types-BL9HhEmk.js";
1
+ import { C as CurveDef } from '../types-BL9HhEmk.js';
2
2
 
3
3
  /**
4
4
  * 7-pointed star based on Fourier harmonics.
@@ -1,22 +1,19 @@
1
1
  // src/curves/star7.ts
2
2
  var TWO_PI = Math.PI * 2;
3
3
  function star7Fn(t, _time, _params) {
4
- const r =
5
- Math.abs(Math.cos((7 / 2) * t)) +
6
- 0.35 * Math.abs(Math.cos((21 / 2) * t)) +
7
- 0.15 * Math.abs(Math.cos((35 / 2) * t));
4
+ const r = Math.abs(Math.cos(7 / 2 * t)) + 0.35 * Math.abs(Math.cos(21 / 2 * t)) + 0.15 * Math.abs(Math.cos(35 / 2 * t));
8
5
  return {
9
6
  x: r * Math.cos(t),
10
- y: r * Math.sin(t),
7
+ y: r * Math.sin(t)
11
8
  };
12
9
  }
13
10
  var star7 = {
14
11
  name: "Star (7-arm)",
15
12
  fn: star7Fn,
16
13
  period: TWO_PI,
17
- speed: 1,
14
+ speed: 1
18
15
  };
19
16
 
20
17
  export { star7 };
21
18
  //# sourceMappingURL=star7.js.map
22
- //# sourceMappingURL=star7.js.map
19
+ //# sourceMappingURL=star7.js.map