@msb235/blits-panel 0.8.0 → 1.1.0

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.
@@ -23,6 +23,8 @@ export interface VoiceInfo {
23
23
  id: number;
24
24
  name: string | null;
25
25
  tags: string[];
26
+ /** The track it plays on; null for none. */
27
+ track: string | null;
26
28
  state: string;
27
29
  /** Its weight on the picked subject, NaN with none picked. */
28
30
  weight: number;
@@ -56,6 +58,8 @@ export interface MarkInfo {
56
58
  voice: number | null;
57
59
  name: string | null;
58
60
  tags: string[];
61
+ /** Its voice's track; null for none, or for an announced mark. */
62
+ track: string | null;
59
63
  }
60
64
  export interface HoldInfo {
61
65
  /** `elsewhere`: something other than this panel holds the clock. */
package/dist/ui/Plan.d.ts CHANGED
@@ -7,7 +7,8 @@ export interface PlanProps {
7
7
  width?: number;
8
8
  }
9
9
  /**
10
- * The plan on the plots' time axis: a lane per voice from its start to its end, an arrow where
11
- * no end is known, a tick at each mark, and what the host announced across them all.
10
+ * The plan on the plots' time axis: a lane per track, each of its voices a bar from its start to
11
+ * its end, an arrow where no end is known, a tick at each mark, and what the host announced across
12
+ * them all. A voice with no track has a lane of its own.
12
13
  */
13
14
  export declare function Plan({ marks, voices, range, playhead, width }: PlanProps): import("react").JSX.Element;
@@ -1,18 +1,28 @@
1
1
  import type { MarkInfo, VoiceInfo } from '../protocol.js';
2
- /** One voice's row in the plan. */
3
- export interface Lane {
2
+ /** One voice's stretch of the plan. */
3
+ export interface Span {
4
4
  voice: number;
5
5
  label: string;
6
- hue: number;
7
6
  marks: MarkInfo[];
8
7
  /** Its start, or -Infinity where that lies before what was listed. */
9
8
  from: number;
10
9
  /** Its end, or Infinity where none is known: it loops for good, or ends past the cap. */
11
10
  to: number;
12
11
  }
12
+ /** One row of the plan: a track's voices, or a voice with no track on its own. */
13
+ export interface Lane {
14
+ /** The track's name, or `#` and the voice's id for a voice with none. */
15
+ key: string;
16
+ label: string;
17
+ hue: number;
18
+ spans: Span[];
19
+ /** Where its earliest voice starts. */
20
+ from: number;
21
+ }
13
22
  /**
14
- * The plan by voice, earliest start first: a lane for each voice with a mark listed and each
15
- * playing on with none, and the marks the host announced.
23
+ * The plan by track, earliest start first: a lane for each track, holding its voices, and one for
24
+ * each voice with none, from what the marks list and the voices playing on without one; and the
25
+ * marks the host announced.
16
26
  */
17
27
  export declare function lanesOf(marks: readonly MarkInfo[], voices: readonly VoiceInfo[]): {
18
28
  lanes: Lane[];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@msb235/blits-panel",
3
- "version": "0.8.0",
3
+ "version": "1.1.0",
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,17 +40,17 @@
40
40
  "smoke": "node scripts/smoke.mjs"
41
41
  },
42
42
  "dependencies": {
43
- "@weasel-js/history": "1.12.0",
44
- "@weasel-js/theme": "1.12.0",
45
- "@weasel-js/ui": "1.12.0"
43
+ "@weasel-js/history": "1.16.1",
44
+ "@weasel-js/theme": "1.16.1",
45
+ "@weasel-js/ui": "1.16.1"
46
46
  },
47
47
  "peerDependencies": {
48
- "@msb235/blits": "^0.20.0",
48
+ "@msb235/blits": "^1.1.0",
49
49
  "react": "^19.3.0",
50
50
  "react-dom": "^19.3.0"
51
51
  },
52
52
  "devDependencies": {
53
- "@msb235/blits": "0.20.0",
53
+ "@msb235/blits": "1.1.0",
54
54
  "@types/react": "^19.3.0",
55
55
  "@types/react-dom": "^19.3.0",
56
56
  "@vitejs/plugin-react": "^6.0.0",