@msb235/blits-panel 1.4.0 → 1.5.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.
package/dist/picking.d.ts CHANGED
@@ -12,5 +12,6 @@ export declare function picking(opts: {
12
12
  }, hooks: Hooks): {
13
13
  arm: (on: boolean) => void;
14
14
  outline: (s: unknown) => void;
15
+ armed: () => boolean;
15
16
  };
16
17
  export {};
@@ -1,5 +1,8 @@
1
1
  import type { MarkInfo, VoiceInfo } from '../protocol.js';
2
2
  import type { Samples } from '../store.js';
3
+ import type { Series } from './path.js';
4
+ /** A line for each voice's weight on the picked subject, keyed by the voice's id and labeled by its name. */
5
+ export declare function weightSeriesFor(weights: ReadonlyMap<number, readonly number[]>, voices: readonly VoiceInfo[]): Series[];
3
6
  /** The plan, then the picked subject's channels and the voices' weights on it, on one time axis. */
4
7
  export declare function Plots({ samples, drawn, voices, marks, playhead, picked, mix, }: {
5
8
  samples: Samples;
package/dist/ui/path.d.ts CHANGED
@@ -1,5 +1,8 @@
1
1
  export interface Series {
2
+ /** Unique among the series one plot draws. */
2
3
  id: string;
4
+ /** What the line is called, shown on hover; the `id` where it is left out. */
5
+ label?: string;
3
6
  hue: number;
4
7
  /** Overrides the color a hue gives. */
5
8
  color?: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@msb235/blits-panel",
3
- "version": "1.4.0",
3
+ "version": "1.5.1",
4
4
  "description": "A debugger window for blits: every mix on the page, its voices and subjects, channels plotted over time, and a clock to pause, step and scrub",
5
5
  "keywords": [
6
6
  "blits",
@@ -40,18 +40,18 @@
40
40
  "smoke": "node scripts/smoke.mjs"
41
41
  },
42
42
  "peerDependencies": {
43
- "@msb235/blits": "1.4.0",
43
+ "@msb235/blits": "1.5.1",
44
44
  "react": "^19.3.0",
45
45
  "react-dom": "^19.3.0"
46
46
  },
47
47
  "devDependencies": {
48
- "@msb235/blits": "1.4.0",
48
+ "@msb235/blits": "1.5.1",
49
49
  "@types/react": "^19.3.0",
50
50
  "@types/react-dom": "^19.3.0",
51
51
  "@vitejs/plugin-react": "^6.0.0",
52
- "@weasel-js/history": "1.18.0",
53
- "@weasel-js/theme": "1.18.0",
54
- "@weasel-js/ui": "1.18.0",
52
+ "@weasel-js/history": "2.0.0",
53
+ "@weasel-js/theme": "2.0.0",
54
+ "@weasel-js/ui": "2.0.0",
55
55
  "happy-dom": "21.0.3",
56
56
  "react": "^19.3.0",
57
57
  "react-dom": "^19.3.0",