@sarmal/core 0.37.0 → 0.37.4

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 (48) hide show
  1. package/README.md +4 -4
  2. package/dist/auto-init.cjs.map +1 -1
  3. package/dist/auto-init.js.map +1 -1
  4. package/dist/cli.js.map +1 -1
  5. package/dist/curves/artemis2.d.cts +1 -1
  6. package/dist/curves/artemis2.d.ts +1 -1
  7. package/dist/curves/astroid.d.cts +1 -1
  8. package/dist/curves/astroid.d.ts +1 -1
  9. package/dist/curves/deltoid.d.cts +1 -1
  10. package/dist/curves/deltoid.d.ts +1 -1
  11. package/dist/curves/epicycloid3.d.cts +1 -1
  12. package/dist/curves/epicycloid3.d.ts +1 -1
  13. package/dist/curves/epitrochoid7.d.cts +1 -1
  14. package/dist/curves/epitrochoid7.d.ts +1 -1
  15. package/dist/curves/index.d.cts +1 -1
  16. package/dist/curves/index.d.ts +1 -1
  17. package/dist/curves/lame.d.cts +1 -1
  18. package/dist/curves/lame.d.ts +1 -1
  19. package/dist/curves/lissajous32.d.cts +1 -1
  20. package/dist/curves/lissajous32.d.ts +1 -1
  21. package/dist/curves/lissajous43.d.cts +1 -1
  22. package/dist/curves/lissajous43.d.ts +1 -1
  23. package/dist/curves/rose3.d.cts +1 -1
  24. package/dist/curves/rose3.d.ts +1 -1
  25. package/dist/curves/rose5.d.cts +1 -1
  26. package/dist/curves/rose5.d.ts +1 -1
  27. package/dist/curves/rose52.d.cts +1 -1
  28. package/dist/curves/rose52.d.ts +1 -1
  29. package/dist/curves/star.d.cts +1 -1
  30. package/dist/curves/star.d.ts +1 -1
  31. package/dist/curves/star4.d.cts +1 -1
  32. package/dist/curves/star4.d.ts +1 -1
  33. package/dist/curves/star7.d.cts +1 -1
  34. package/dist/curves/star7.d.ts +1 -1
  35. package/dist/index.cjs.map +1 -1
  36. package/dist/index.d.cts +12 -53
  37. package/dist/index.d.ts +12 -53
  38. package/dist/index.js.map +1 -1
  39. package/dist/{renderer-shared-BDDSZhB6.d.cts → renderer-shared-9Xf6sIlx.d.cts} +1 -1
  40. package/dist/{renderer-shared-D7ZDFZqK.d.ts → renderer-shared-DElz98PT.d.ts} +1 -1
  41. package/dist/terminal.cjs.map +1 -1
  42. package/dist/terminal.d.cts +2 -2
  43. package/dist/terminal.d.ts +2 -2
  44. package/dist/terminal.js.map +1 -1
  45. package/dist/{types-DS2VYCEa.d.cts → types-D_ERoVvi.d.cts} +124 -4
  46. package/dist/{types-DS2VYCEa.d.ts → types-D_ERoVvi.d.ts} +124 -4
  47. package/package.json +5 -5
  48. package/skills/core/SKILL.md +8 -8
package/dist/index.d.cts CHANGED
@@ -1,7 +1,7 @@
1
- import { B as BaseRendererOptions, E as Engine, S as SarmalInstance, C as CurveDef, T as TrailColor, a as TrailStyle, D as DotMatrixRuntimeRenderOptions, R as RendererOptions, b as ControlPoint, P as Point, c as SarmalOptions } from './types-DS2VYCEa.cjs';
2
- export { d as BaseRuntimeRenderOptions, J as JumpOptions, e as RuntimeRenderOptions, f as SeekOptions } from './types-DS2VYCEa.cjs';
1
+ import { B as BaseRendererOptions, E as Engine, S as SarmalInstance, C as CurveDef, R as RendererOptions, D as DotMatrixSarmalOptions, a as DotMatrixRuntimeRenderOptions, b as ControlPoint, P as Point, c as SarmalOptions } from './types-D_ERoVvi.cjs';
2
+ export { d as BaseDotMatrixOptions, e as BaseInit, f as BaseRuntimeRenderOptions, g as BaseSarmalOptions, h as CanvasInit, i as DotMatrixInit, J as JumpOptions, M as MorphStrategy, j as RuntimeRenderOptions, k as SeekOptions, T as TrailColor, l as TrailStyle } from './types-D_ERoVvi.cjs';
3
3
  export { CurveName, curves } from './curves/index.cjs';
4
- export { B as BoundaryResult, S as SarmalPalette, c as computeBoundaries, p as palettes } from './renderer-shared-BDDSZhB6.cjs';
4
+ export { B as BoundaryResult, S as SarmalPalette, c as computeBoundaries, p as palettes } from './renderer-shared-9Xf6sIlx.cjs';
5
5
  export { artemis2 } from './curves/artemis2.cjs';
6
6
  export { astroid } from './curves/astroid.cjs';
7
7
  export { deltoid } from './curves/deltoid.cjs';
@@ -53,47 +53,14 @@ declare function createSVGRenderer(options: SVGRendererOptions): SarmalInstance;
53
53
  */
54
54
  declare function createSarmalSVG(container: SVGSVGElement, curveDef: CurveDef, options?: SVGSarmalOptions): SarmalInstance;
55
55
 
56
- interface DotMatrixSarmalOptions extends Pick<BaseRendererOptions, "autoStart" | "pauseOnHidden" | "initialPhase" | "skeletonColor"> {
57
- /**
58
- * Number of dot columns in the grid.
59
- * @default 32
60
- */
61
- cols?: number;
62
- /**
63
- * Number of dot rows in the grid.
64
- * @default 32
65
- */
66
- rows?: number;
67
- /**
68
- * Controls the corner rounding of each dot.
69
- * `0` renders as a sharp-cornered square,
70
- * `1` renders as a full circle.
71
- * Values between `0` and `1` give rounded rectangles.
72
- * @default 1
73
- */
74
- roundness?: number;
75
- /**
76
- * Number of trail points to keep.
77
- * Larger values mean the trail extends further back from the head.
78
- * @default cols * 3
79
- */
80
- trailLength?: number;
81
- /**
82
- * Color of lit dots. Single color string for solid mode; array of two or more colors for gradient mode.
83
- * Gradient mode samples a color per dot based on its position in the trail (tail → head).
84
- * Background dots always use the first color at 5% opacity.
85
- * @default '#ffffff'
86
- */
87
- trailColor?: TrailColor;
88
- /**
89
- * Trail rendering style.
90
- * - `'default'` — solid color, alpha varies by intensity.
91
- * - `'gradient-static'` — each dot's color is sampled from the `trailColor` gradient. Requires `trailColor` array.
92
- * - `'gradient-animated'` — same as `gradient-static` but the gradient phase shifts over time.
93
- * @default 'default'
94
- */
95
- trailStyle?: TrailStyle;
96
- }
56
+ declare function createEngine(curveDef: CurveDef, trailLength?: number): Engine;
57
+
58
+ /**
59
+ * Creates a Canvas 2D renderer for sarmal animations
60
+ * Renders the skeleton and the trail
61
+ */
62
+ declare function createRenderer(options: RendererOptions): SarmalInstance;
63
+
97
64
  /**
98
65
  * Creates a dot matrix renderer for a sarmal animation on a canvas element.
99
66
  *
@@ -129,14 +96,6 @@ interface DotMatrixSarmalOptions extends Pick<BaseRendererOptions, "autoStart" |
129
96
  */
130
97
  declare function createSarmalDotMatrix(canvas: HTMLCanvasElement, curveDef: CurveDef, options?: DotMatrixSarmalOptions): SarmalInstance<DotMatrixRuntimeRenderOptions>;
131
98
 
132
- declare function createEngine(curveDef: CurveDef, trailLength?: number): Engine;
133
-
134
- /**
135
- * Creates a Canvas 2D renderer for sarmal animations
136
- * Renders the skeleton and the trail
137
- */
138
- declare function createRenderer(options: RendererOptions): SarmalInstance;
139
-
140
99
  /**
141
100
  * Evaluates a closed Catmull-Rom spline through every point in `points`
142
101
  *
@@ -195,4 +154,4 @@ declare function drawCurve(points: Array<ControlPoint>, opts?: {
195
154
  */
196
155
  declare function createSarmal(canvas: HTMLCanvasElement, curveDef: CurveDef, options?: SarmalOptions): SarmalInstance;
197
156
 
198
- export { BaseRendererOptions, CurveDef, DotMatrixRuntimeRenderOptions, type DotMatrixSarmalOptions, Engine, Point, RendererOptions, type SVGRendererOptions, type SVGSarmalOptions, SarmalInstance, SarmalOptions, TrailColor, TrailStyle, createEngine, createRenderer, createSVGRenderer, createSarmal, createSarmalDotMatrix, createSarmalSVG, drawCurve, evaluateCatmullRom };
157
+ export { BaseRendererOptions, CurveDef, DotMatrixRuntimeRenderOptions, DotMatrixSarmalOptions, Engine, Point, RendererOptions, type SVGRendererOptions, type SVGSarmalOptions, SarmalInstance, SarmalOptions, createEngine, createRenderer, createSVGRenderer, createSarmal, createSarmalDotMatrix, createSarmalSVG, drawCurve, evaluateCatmullRom };
package/dist/index.d.ts CHANGED
@@ -1,7 +1,7 @@
1
- import { B as BaseRendererOptions, E as Engine, S as SarmalInstance, C as CurveDef, T as TrailColor, a as TrailStyle, D as DotMatrixRuntimeRenderOptions, R as RendererOptions, b as ControlPoint, P as Point, c as SarmalOptions } from './types-DS2VYCEa.js';
2
- export { d as BaseRuntimeRenderOptions, J as JumpOptions, e as RuntimeRenderOptions, f as SeekOptions } from './types-DS2VYCEa.js';
1
+ import { B as BaseRendererOptions, E as Engine, S as SarmalInstance, C as CurveDef, R as RendererOptions, D as DotMatrixSarmalOptions, a as DotMatrixRuntimeRenderOptions, b as ControlPoint, P as Point, c as SarmalOptions } from './types-D_ERoVvi.js';
2
+ export { d as BaseDotMatrixOptions, e as BaseInit, f as BaseRuntimeRenderOptions, g as BaseSarmalOptions, h as CanvasInit, i as DotMatrixInit, J as JumpOptions, M as MorphStrategy, j as RuntimeRenderOptions, k as SeekOptions, T as TrailColor, l as TrailStyle } from './types-D_ERoVvi.js';
3
3
  export { CurveName, curves } from './curves/index.js';
4
- export { B as BoundaryResult, S as SarmalPalette, c as computeBoundaries, p as palettes } from './renderer-shared-D7ZDFZqK.js';
4
+ export { B as BoundaryResult, S as SarmalPalette, c as computeBoundaries, p as palettes } from './renderer-shared-DElz98PT.js';
5
5
  export { artemis2 } from './curves/artemis2.js';
6
6
  export { astroid } from './curves/astroid.js';
7
7
  export { deltoid } from './curves/deltoid.js';
@@ -53,47 +53,14 @@ declare function createSVGRenderer(options: SVGRendererOptions): SarmalInstance;
53
53
  */
54
54
  declare function createSarmalSVG(container: SVGSVGElement, curveDef: CurveDef, options?: SVGSarmalOptions): SarmalInstance;
55
55
 
56
- interface DotMatrixSarmalOptions extends Pick<BaseRendererOptions, "autoStart" | "pauseOnHidden" | "initialPhase" | "skeletonColor"> {
57
- /**
58
- * Number of dot columns in the grid.
59
- * @default 32
60
- */
61
- cols?: number;
62
- /**
63
- * Number of dot rows in the grid.
64
- * @default 32
65
- */
66
- rows?: number;
67
- /**
68
- * Controls the corner rounding of each dot.
69
- * `0` renders as a sharp-cornered square,
70
- * `1` renders as a full circle.
71
- * Values between `0` and `1` give rounded rectangles.
72
- * @default 1
73
- */
74
- roundness?: number;
75
- /**
76
- * Number of trail points to keep.
77
- * Larger values mean the trail extends further back from the head.
78
- * @default cols * 3
79
- */
80
- trailLength?: number;
81
- /**
82
- * Color of lit dots. Single color string for solid mode; array of two or more colors for gradient mode.
83
- * Gradient mode samples a color per dot based on its position in the trail (tail → head).
84
- * Background dots always use the first color at 5% opacity.
85
- * @default '#ffffff'
86
- */
87
- trailColor?: TrailColor;
88
- /**
89
- * Trail rendering style.
90
- * - `'default'` — solid color, alpha varies by intensity.
91
- * - `'gradient-static'` — each dot's color is sampled from the `trailColor` gradient. Requires `trailColor` array.
92
- * - `'gradient-animated'` — same as `gradient-static` but the gradient phase shifts over time.
93
- * @default 'default'
94
- */
95
- trailStyle?: TrailStyle;
96
- }
56
+ declare function createEngine(curveDef: CurveDef, trailLength?: number): Engine;
57
+
58
+ /**
59
+ * Creates a Canvas 2D renderer for sarmal animations
60
+ * Renders the skeleton and the trail
61
+ */
62
+ declare function createRenderer(options: RendererOptions): SarmalInstance;
63
+
97
64
  /**
98
65
  * Creates a dot matrix renderer for a sarmal animation on a canvas element.
99
66
  *
@@ -129,14 +96,6 @@ interface DotMatrixSarmalOptions extends Pick<BaseRendererOptions, "autoStart" |
129
96
  */
130
97
  declare function createSarmalDotMatrix(canvas: HTMLCanvasElement, curveDef: CurveDef, options?: DotMatrixSarmalOptions): SarmalInstance<DotMatrixRuntimeRenderOptions>;
131
98
 
132
- declare function createEngine(curveDef: CurveDef, trailLength?: number): Engine;
133
-
134
- /**
135
- * Creates a Canvas 2D renderer for sarmal animations
136
- * Renders the skeleton and the trail
137
- */
138
- declare function createRenderer(options: RendererOptions): SarmalInstance;
139
-
140
99
  /**
141
100
  * Evaluates a closed Catmull-Rom spline through every point in `points`
142
101
  *
@@ -195,4 +154,4 @@ declare function drawCurve(points: Array<ControlPoint>, opts?: {
195
154
  */
196
155
  declare function createSarmal(canvas: HTMLCanvasElement, curveDef: CurveDef, options?: SarmalOptions): SarmalInstance;
197
156
 
198
- export { BaseRendererOptions, CurveDef, DotMatrixRuntimeRenderOptions, type DotMatrixSarmalOptions, Engine, Point, RendererOptions, type SVGRendererOptions, type SVGSarmalOptions, SarmalInstance, SarmalOptions, TrailColor, TrailStyle, createEngine, createRenderer, createSVGRenderer, createSarmal, createSarmalDotMatrix, createSarmalSVG, drawCurve, evaluateCatmullRom };
157
+ export { BaseRendererOptions, CurveDef, DotMatrixRuntimeRenderOptions, DotMatrixSarmalOptions, Engine, Point, RendererOptions, type SVGRendererOptions, type SVGSarmalOptions, SarmalInstance, SarmalOptions, createEngine, createRenderer, createSVGRenderer, createSarmal, createSarmalDotMatrix, createSarmalSVG, drawCurve, evaluateCatmullRom };