@kymoscope/sdk 0.20.0 → 0.22.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.
Files changed (48) hide show
  1. package/dist/assets/importer.worker-jzXF4fDD.js +1040 -0
  2. package/dist/importer-DhJq-CnQ.js +12 -0
  3. package/dist/importers-C8Byhb42.js +1036 -0
  4. package/dist/kymoscope-embed.js +128 -96
  5. package/dist/kymoscope-sdk.js +86 -86
  6. package/dist/styles/charts.css +409 -403
  7. package/dist/types/analysis/aiCheck.d.ts +14 -0
  8. package/dist/types/analysis/index.d.ts +1 -1
  9. package/dist/types/analysis/presets.d.ts +1 -1
  10. package/dist/types/charts/runtime.d.ts +4 -0
  11. package/dist/types/charts/touchGestures.d.ts +1 -0
  12. package/dist/types/charts/useWorksheetData.d.ts +7 -0
  13. package/dist/types/components/HistogramChart.d.ts +2 -0
  14. package/dist/types/components/MultiBandCanvasChart.d.ts +23 -0
  15. package/dist/types/components/SpectrogramChart.d.ts +19 -1
  16. package/dist/types/components/dashboardGridLayout.d.ts +5 -2
  17. package/dist/types/engine/createEngine.d.ts +2 -0
  18. package/dist/types/engine/types.d.ts +2 -0
  19. package/dist/types/index.d.ts +1 -1
  20. package/dist/types/lib/beacon.d.ts +6 -0
  21. package/dist/types/lib/data/xyColumns.d.ts +8 -1
  22. package/dist/types/lib/importers/ccsds/format.d.ts +2 -0
  23. package/dist/types/lib/importers/ccsds/frames.d.ts +67 -0
  24. package/dist/types/lib/importers/ccsds/importer.d.ts +2 -0
  25. package/dist/types/lib/importers/ccsds/packets.d.ts +49 -0
  26. package/dist/types/lib/importers/ccsds/xtce.d.ts +79 -0
  27. package/dist/types/lib/importers/ch10/format.d.ts +10 -0
  28. package/dist/types/lib/importers/ch10/importer.d.ts +2 -0
  29. package/dist/types/lib/importers/ch10/packets.d.ts +46 -0
  30. package/dist/types/lib/importers/ch10/pcm.d.ts +59 -0
  31. package/dist/types/lib/importers/ch10/tmats.d.ts +93 -0
  32. package/dist/types/lib/importers/combine.d.ts +2 -1
  33. package/dist/types/lib/importers/formats.d.ts +2 -0
  34. package/dist/types/lib/importers/iena/format.d.ts +9 -0
  35. package/dist/types/lib/importers/iena/importer.d.ts +2 -0
  36. package/dist/types/lib/importers/iena/layout.d.ts +58 -0
  37. package/dist/types/lib/importers/iena/pcap.d.ts +48 -0
  38. package/dist/types/lib/importers/iena/xidml.d.ts +29 -0
  39. package/dist/types/lib/importers/pqdif/records.d.ts +29 -9
  40. package/dist/types/lib/importers/table/long.d.ts +7 -0
  41. package/dist/types/lib/importers/table/table.d.ts +7 -0
  42. package/dist/types/lib/importers/types.d.ts +7 -1
  43. package/dist/types/lib/render/offscreenLineRenderer.d.ts +2 -0
  44. package/dist/types/types/loadedDataset.d.ts +4 -0
  45. package/package.json +3 -1
  46. package/dist/assets/importer.worker-B4rzpZKn.js +0 -1006
  47. package/dist/importer-D_Rxf-9b.js +0 -12
  48. package/dist/importers-D4cCElZQ.js +0 -1004
@@ -0,0 +1,93 @@
1
+ /**
2
+ * TMATS (IRIG 106-17 Chapter 9), computer-generated format: `CODE:value;` attributes. Read: G (program, date),
3
+ * R (recorder channels: ids, names, types, analog and discrete measurements), P (PCM formats), D (PCM
4
+ * measurement lists, word-and-frame locations), C (units, binary format, conversions). Everything else ignored.
5
+ */
6
+ /** Setup record text read at most (spec: 1 MB). */
7
+ export declare const MAX_TMATS: number;
8
+ export type Attrs = Map<string, string>;
9
+ export declare function parseTmats(text: string): Attrs;
10
+ /** The year of the setup record's dates (G\OD, else G\UD or G\RD; MM-DD-YYYY): day-of-year time has none. */
11
+ export declare function tmatsYear(a: Attrs): number | null;
12
+ export interface Conversion {
13
+ unit: string;
14
+ /** C-d\BFM (or the R-group's analog format): UNS, TWO, OFF, ONE, SIG, SIM, FPT, BCD, INT... */
15
+ bfm: string | null;
16
+ /** C-d\FPF when the format is FPT. */
17
+ fpf: string | null;
18
+ /** Engineering units from the raw value; null = none. */
19
+ apply: ((x: number) => number) | null;
20
+ /** What could not be applied (conversion or format), for a note. */
21
+ unsupported: string | null;
22
+ }
23
+ /** Conversions by measurement name (C-d\DCN). */
24
+ export declare function conversions(a: Attrs): Map<string, Conversion>;
25
+ /**
26
+ * A raw value of `n` bits in a binary format, as a number (NaN when the format cannot be read). Values above 53
27
+ * bits lose their lowest bits.
28
+ */
29
+ export declare function decodeFormat(v: number, n: number, bfm: string | null, fpf: string | null): number;
30
+ /** Formats `decodeFormat` reads ('FPT' only as IEEE 754 single precision). */
31
+ export declare const formatKnown: (bfm: string | null, fpf: string | null) => boolean;
32
+ export interface Measurement {
33
+ name: string; /** Bits used, from the msb (mask), or null for the full word. */
34
+ mask: string | null;
35
+ }
36
+ export interface RChannel {
37
+ id: number;
38
+ name: string;
39
+ type: string;
40
+ dln: string;
41
+ /** Analog sample rate of the fastest subchannel (R-x\ASR). */
42
+ rate: number | null;
43
+ /** Analog subchannels by number: measurement name and R-group format (R-x\AF as a C-group BFM). */
44
+ analog: Map<number, {
45
+ name: string;
46
+ bfm: string | null;
47
+ }>;
48
+ /** Discrete measurements (R-x\DMN, R-x\DMSK). */
49
+ discrete: Measurement[];
50
+ }
51
+ export declare function recorderChannels(a: Attrs): Map<number, RChannel>;
52
+ /** Where a parameter's value is in one minor frame: its words (most significant fragment first). */
53
+ export interface Occurrence {
54
+ frame: number;
55
+ words: number[];
56
+ }
57
+ export interface Param {
58
+ name: string;
59
+ /** Per fragment, most significant first: bit mask (msb-left, null = full word) and whether sent lsb first. */
60
+ frags: {
61
+ mask: string | null;
62
+ lsbFirst: boolean;
63
+ }[];
64
+ occ: Occurrence[];
65
+ }
66
+ export interface IdCounter {
67
+ word: number;
68
+ shift: number;
69
+ len: number;
70
+ lsbFirst: boolean;
71
+ init: number;
72
+ end: number;
73
+ initFrame: number;
74
+ dec: boolean;
75
+ }
76
+ export interface PcmFormat {
77
+ dln: string;
78
+ /** Minor frames per major frame. */
79
+ mfn: number;
80
+ /** Bit widths: [sync, word 1, ..., word MF1-1]. */
81
+ widths: number[];
82
+ /** Bits per minor frame (P-d\MF2, at least the words' sum). */
83
+ frameBits: number;
84
+ /** Sync pattern, msb first: '0', '1' or 'X'. */
85
+ sync: string;
86
+ bitRate: number | null;
87
+ /** Words sent lsb first by default (P-d\F2). */
88
+ lsbFirst: boolean;
89
+ idc: IdCounter | null;
90
+ params: Param[];
91
+ }
92
+ /** PCM formats by data link name; `skip` collects what was left out, with why. */
93
+ export declare function pcmFormats(a: Attrs, skip: (what: string) => void): Map<string, PcmFormat>;
@@ -21,7 +21,8 @@ export declare function batchTime(b: Batch, g: PlanGroup): Float64Array;
21
21
  /**
22
22
  * Groups onto one time base, streaming: the fastest regular group (most
23
23
  * samples) plus every irregular group (their union) are the time base; the
24
- * others hold their last value (zero-order hold). A chunk covers the rows up to
24
+ * others hold their last value (zero-order hold), and their rows after the
25
+ * time base ends join it. A chunk covers the rows up to
25
26
  * H, the earliest last-buffered time of the time-base groups, so memory stays
26
27
  * at about one batch per group whatever the file size. Returns the row count.
27
28
  */
@@ -14,6 +14,8 @@ export interface FormatInfo {
14
14
  anyName?: boolean;
15
15
  }[];
16
16
  sniff(head: Uint8Array, name: string): boolean;
17
+ /** Bytes `sniff` needs for a file whose first HEAD_BYTES it is given here (a capture's magic), when more than those. */
18
+ sniffBytes?(head: Uint8Array): number;
17
19
  }
18
20
  /** Bytes read from each file to recognise it. */
19
21
  export declare const HEAD_BYTES = 4096;
@@ -0,0 +1,9 @@
1
+ import type { FormatInfo } from '../formats';
2
+ /** The default IENA end field (Airbus IENA specification RP0701637, 2.5): "unique value for all keys", 0xDEAD. */
3
+ export declare const END = 57005;
4
+ /**
5
+ * An IENA packet filling the datagram b[o, o + n): a 14-byte header and the end field, its size field (16-bit words,
6
+ * header and end included) the datagram's length, its end field 0xDEAD or `end`.
7
+ */
8
+ export declare function isIena(b: Uint8Array, o: number, n: number, end?: number): boolean;
9
+ export declare const IENA_FORMAT: FormatInfo;
@@ -0,0 +1,2 @@
1
+ import { type Importer } from '../types';
2
+ export declare const ienaImporter: Importer;
@@ -0,0 +1,58 @@
1
+ /**
2
+ * The dictionary model both XidML and the collector layout compile to, and the collector layout itself: the format of
3
+ * the collector's `udp` source (kymoscope_collector/udp_source.py: compile_layout, _from_csv, _decode), so one file
4
+ * decodes IENA from a capture and live. Offsets are from the start of the UDP payload, the IENA header included,
5
+ * exactly as the collector reads a datagram; the IENA key and time still come from the IENA header.
6
+ */
7
+ /** IENA parameter types (Airbus IENA specification RP0701637, 2.6). */
8
+ export type Kind = 'P' | 'D' | 'N' | 'M' | 'Q';
9
+ export interface Field {
10
+ name: string;
11
+ unit: string;
12
+ /** Bit offsets of its occurrences from the start of the packet. */
13
+ at: number[];
14
+ /** Occurrences equally spaced over the packet body (XidML Occurrences): at[0] + k * body bits / spread. */
15
+ spread?: number;
16
+ /** Bits read per occurrence. */
17
+ bits: number;
18
+ /** Occurrences are samples this many seconds apart (the collector's sample_rate_hz); else over the packet period. */
19
+ dt?: number;
20
+ /** The occurrence at absolute bit `bit` of `b` (inside the packet: the caller checks). */
21
+ read(b: Uint8Array, dv: DataView, bit: number): number;
22
+ }
23
+ export interface KeyDict {
24
+ name: string | null;
25
+ kind: Kind;
26
+ /** Positional parameters (XidML mappings, layout fields). */
27
+ fields: Field[];
28
+ /** A shorter packet is skipped (the collector drops it as "short packet"); 0: no check. */
29
+ minBytes: number;
30
+ /** Packets per second (XidML PackageRate). */
31
+ rate: number | null;
32
+ /** The end field, when not 0xDEAD. */
33
+ end: number | null;
34
+ }
35
+ export interface Dict {
36
+ source: 'XidML' | 'layout';
37
+ keys: Map<number, KeyDict>;
38
+ /** A layout without packet_id: every key. */
39
+ any: KeyDict | null;
40
+ /**
41
+ * A layout's packet_id: `keys` are its values, read from each datagram (its offset from the UDP payload start, type
42
+ * and endian), as the collector picks the packet; else `keys` are IENA keys.
43
+ */
44
+ pid?: {
45
+ off: number;
46
+ size: number;
47
+ read(dv: DataView, o: number): number;
48
+ };
49
+ notes: string[];
50
+ }
51
+ /** A dictionary file that is not one (or not one Kymoscope can use): noted, the capture read raw. */
52
+ export declare class DictError extends Error {
53
+ }
54
+ /** Parameter occurrences a dictionary may name in all (fields × counts × packets): a values budget per packet set. */
55
+ export declare const MAX_OCCURRENCES = 1000000;
56
+ export declare const tooMany: () => DictError;
57
+ /** A collector layout (.yaml / .yml / .csv) as a dictionary; DictError when it is not one. */
58
+ export declare function parseLayout(text: string, name: string): Dict;
@@ -0,0 +1,48 @@
1
+ import type { BlobReader } from '../blobReader';
2
+ /**
3
+ * UDP datagrams of a packet capture: pcap (both byte orders, µs and ns timestamps) and pcapng (SHB, IDB, EPB, SPB;
4
+ * per-interface link type, timestamp resolution and offset). Link types Ethernet (802.1Q / QinQ tags), Linux cooked
5
+ * (SLL, SLL2) and raw IP; IPv4 (fragments reassembled, bounded) and IPv6; UDP. One sync parser, fed windows of the
6
+ * file (16 MB, larger than any record it accepts) by `datagrams` or the head by the sniff. Deterministic.
7
+ */
8
+ /** Captured bytes per frame (snap length) accepted; a larger record is damage. */
9
+ export declare const MAX_SNAP: number;
10
+ /** One UDP datagram; `b` is valid only during the callback. */
11
+ export interface Datagram {
12
+ /** Capture time, ms since 1970 (NaN for a pcapng simple packet block before any timestamp). */
13
+ time: number;
14
+ sport: number;
15
+ dport: number;
16
+ b: Uint8Array;
17
+ /** Its payload: b[o, o + n). */
18
+ o: number;
19
+ n: number;
20
+ }
21
+ export interface CaptureStats {
22
+ frames: number;
23
+ /** Frames that are not UDP over IPv4/IPv6 (ARP, TCP, other link types). */
24
+ other: number;
25
+ /** Frames captured shorter than their IP/UDP lengths (snap length). */
26
+ truncated: number;
27
+ /** Fragmented datagrams never completed (or dropped from a full buffer). */
28
+ incomplete: number;
29
+ /** The capture ends inside a record. */
30
+ cut: boolean;
31
+ /** A record or block header the format does not allow: the rest of the file is not read. */
32
+ damagedAt: number | null;
33
+ }
34
+ export declare const newStats: () => CaptureStats;
35
+ export type CaptureKind = 'pcap' | 'pcapng';
36
+ export declare function captureKind(b: Uint8Array): CaptureKind | null;
37
+ export declare class Capture {
38
+ #private;
39
+ readonly stats: CaptureStats;
40
+ done: boolean;
41
+ constructor(on: (d: Datagram) => void, stats?: CaptureStats);
42
+ /** Parses the whole records of `b` (which starts at file offset `at`); returns the bytes it consumed. */
43
+ feed(b: Uint8Array, at: number): number;
44
+ /** The end of the file: datagrams still in pieces are incomplete. */
45
+ finish(): void;
46
+ }
47
+ /** Every UDP datagram of the capture, in file order; yields once per window. */
48
+ export declare function datagrams(io: BlobReader, on: (d: Datagram) => void, stats: CaptureStats, signal?: AbortSignal): AsyncGenerator<void>;
@@ -0,0 +1,29 @@
1
+ import { type Dict } from './layout';
2
+ /**
3
+ * XidML 3.x (xidml.org, XidML-3.0.1 schemas) as an IENA dictionary: `IENA` packages (and the older
4
+ * `IENA-Ethernet-UDP-Basic`) with their key, payload type, end word and rate; their mappings (parameter references or
5
+ * inline parameters at Offset_Words or Offset_Bits from the start of the packet, Occurrences equally spaced over the
6
+ * packet or several Location elements, NumberOfDataBits); parameters with size, data format (BitVector, OffsetBinary,
7
+ * TwosComplement, SignedMagnitude, BinaryCodedDecimal, IEEE-754 single and double), endianness, base unit, a
8
+ * ParameterUnit (scale, offset) and a Polynomial algorithm; a mapping's Justification, Mask and Complement. What else
9
+ * it names is noted, not read (Parity and FillValue are not checked).
10
+ */
11
+ export interface Node {
12
+ name: string;
13
+ attrs: string;
14
+ kids: Node[];
15
+ text: string;
16
+ }
17
+ /** A small XML tree (local names, no namespaces, DTDs skipped); linear in the text. */
18
+ export declare function parseXml(s: string): Node;
19
+ export declare const kid: (n: Node | undefined, name: string) => Node | undefined;
20
+ export declare const kidsOf: (n: Node | undefined, name: string) => Node[];
21
+ export declare const text: (n: Node | undefined, name: string) => string | undefined;
22
+ export declare const attr: (n: Node, name: string) => string | undefined;
23
+ /** Every descendant named `name` (iterative). */
24
+ export declare function all(n: Node, name: string): Node[];
25
+ export declare const numberOf: (s: string | undefined) => number | null;
26
+ /** Bits [pos, pos + n) of `b`, most significant first, as an unsigned number (n ≤ 53 exact). */
27
+ export declare function bitsAt(b: Uint8Array, pos: number, n: number): number;
28
+ export declare function parseXidml(xml: string): Dict;
29
+ export declare const hex: (k: number) => string;
@@ -22,20 +22,32 @@ export interface El {
22
22
  /** Values in a vector (1 for a scalar). */
23
23
  size: number;
24
24
  kids: El[];
25
+ /** The value's bytes: a scalar's; a vector's values up to SMALL bytes (larger ones: null until `load`). */
26
+ bytes: Uint8Array | null;
25
27
  }
26
- /** The element tree of a record body. Every link stays inside the body, depth ≤ 32, elements ≤ body / 28. */
27
- export declare function decodeBody(b: Uint8Array): El[];
28
- export declare const find: (els: El[] | undefined, tag: string) => El | undefined;
29
- export declare const findAll: (els: El[] | undefined, tag: string) => El[];
30
- /** Value `i` of a numeric scalar or vector as a number (NaN for complex, GUID, timestamp). */
31
- export declare function num(v: DataView, e: El, i?: number): number;
28
+ /** Bytes [at, at + length) of a record body. */
29
+ export type Read = (at: number, length: number) => Promise<Uint8Array>;
30
+ /**
31
+ * The element tree of a record body of `size` bytes, read through `read`: collections, scalars and small vectors,
32
+ * never the series values (a body may hold the whole file). Every link stays inside the body, depth ≤ 32,
33
+ * elements ≤ body / 28.
34
+ */
35
+ export declare function decodeBody(read: Read, size: number): Promise<El[]>;
36
+ /** A vector's values, read now if decoding left them (series values). */
37
+ export declare function load(read: Read, e: El): Promise<Uint8Array>;
38
+ /** A value of physical type `phys` at byte `o` of `v` as a number (NaN for complex, GUID, timestamp). */
39
+ export declare function numAt(v: DataView, phys: number, o: number): number;
40
+ /** Value `i` of a numeric scalar or (loaded) vector as a number (NaN for complex, GUID, timestamp). */
41
+ export declare const num: (e: El, i?: number) => number;
32
42
  /** A timestamp scalar or vector value: days since 1900-01-01 (PQDIF's count) and seconds since midnight. */
33
- export declare const stamp: (v: DataView, e: El, i?: number) => [number, number];
43
+ export declare const stamp: (e: El, i?: number) => [number, number];
34
44
  /** Seconds since 1970 of a PQDIF timestamp (the standard's 25569-day offset, as Gemstone reads it). */
35
45
  export declare const unixOf: ([days, sec]: [number, number]) => number;
36
46
  /** A Char1 / Char2 vector as text, up to its first NUL. */
37
- export declare function text(b: Uint8Array, e: El | undefined): string;
38
- export declare const guidOf: (b: Uint8Array, e: El | undefined) => string;
47
+ export declare function text(e: El | undefined): string;
48
+ export declare const guidOf: (e: El | undefined) => string;
49
+ export declare const find: (els: El[] | undefined, tag: string) => El | undefined;
50
+ export declare const findAll: (els: El[] | undefined, tag: string) => El[];
39
51
  export interface RecordRef {
40
52
  type: string;
41
53
  body: number;
@@ -48,3 +60,11 @@ export interface RecordRef {
48
60
  export declare function records(io: BlobReader): Promise<RecordRef[]>;
49
61
  /** A record's body bytes, inflated when the file compresses each record (zlib). */
50
62
  export declare function body(io: BlobReader, r: RecordRef, compressed: boolean): Promise<Uint8Array>;
63
+ /**
64
+ * A record body to decode: inflated whole when compressed (ponytail: as `body`), else read from the file as needed
65
+ * (1 MiB cached pages), so a body holding the file's series values is never read whole.
66
+ */
67
+ export declare function bodyReader(io: BlobReader, r: RecordRef, compressed: boolean): Promise<{
68
+ read: Read;
69
+ size: number;
70
+ }>;
@@ -13,9 +13,16 @@ export interface LongScan {
13
13
  tags: string[];
14
14
  units: string[];
15
15
  rows: number;
16
+ /** Distinct times: the rows reading makes (sorted tables; an unsorted one says `rows`, an upper bound). */
17
+ times: number;
16
18
  sorted: boolean;
17
19
  /** The smallest time. */
18
20
  start: number;
21
+ /**
22
+ * Rows repeating a (time, tag) already seen (reading keeps the first). ponytail: counted in a sorted table only (the
23
+ * tag's last time); an unsorted one says 0. A set per tag if unsorted files with repeats matter.
24
+ */
25
+ repeated: number;
19
26
  }
20
27
  /**
21
28
  * The long-form shape of these columns, or null: exactly one time column, one number column and one or two text
@@ -9,6 +9,11 @@ export interface TableColumn {
9
9
  kind: TableKind;
10
10
  /** A 'time' column of dates (Unix seconds); else seconds of the file's own clock. */
11
11
  absolute?: boolean;
12
+ /**
13
+ * Dates as seconds after this Unix second (set by the first read at the latest): sub-second steps stay exact,
14
+ * which Unix seconds as doubles (~0.2 µs apart today) cannot keep.
15
+ */
16
+ origin?: number;
12
17
  }
13
18
  /** Rows of some columns: numbers and times as Float64Array (NaN: empty), text as strings (null: empty). */
14
19
  export interface TableBatch {
@@ -40,5 +45,7 @@ export declare function isoSeconds(s: string): number;
40
45
  * timestamps), in the viewer's time zone. `asUtc`: that wall clock read as if it were UTC.
41
46
  */
42
47
  export declare function wallClock(asUtc: number): number;
48
+ /** Whole seconds a wall clock without a zone is ahead of UTC at this instant (`asUtc` as in `wallClock`). */
49
+ export declare const wallOffset: (asUtc: number) => number;
43
50
  /** The first non-empty value of a number or time column (NaN when it has none). */
44
51
  export declare function firstValue(t: Table, column: number, signal?: AbortSignal): Promise<number>;
@@ -138,10 +138,14 @@ export interface DatasetFileInfo {
138
138
  }[];
139
139
  /** What this dataset holds. */
140
140
  selection: GroupSelection[];
141
- /** Several groups on one time base: how many, and the base rate. */
141
+ /**
142
+ * Several groups on one time base: how many, the base rate, and whether several groups' timestamps make it
143
+ * (irregular groups joined; absent before 2026-11-25).
144
+ */
142
145
  combined: {
143
146
  groups: number;
144
147
  rateHz: number | null;
148
+ merged?: boolean;
145
149
  } | null;
146
150
  /** Datasets split from one file share this key. */
147
151
  splitKey: string | null;
@@ -149,6 +153,8 @@ export interface DatasetFileInfo {
149
153
  notes: string[];
150
154
  meta: Record<string, string>;
151
155
  events: FileEvent[];
156
+ /** The dataset's true first rows, when its rows are a reduced sample (out of core). */
157
+ preview?: Record<string, number | string | null>[];
152
158
  }
153
159
  /** What `chooseChannels` is asked before a large or ambiguous binary file is read. */
154
160
  export interface ChannelRequest {
@@ -52,6 +52,8 @@ export interface OffscreenChartRenderer {
52
52
  export declare function glWorkersAvailable(): boolean;
53
53
  /** Name of the performance mark made when a worker has drawn a canvas's first picture. */
54
54
  export declare const GL_FIRST_FRAME_MARK = "kymoscope-gl-first-frame";
55
+ /** True once `canvas`'s control went to a worker (getContext and a second transfer would throw). */
56
+ export declare function canvasTransferred(canvas: HTMLCanvasElement | null): boolean;
55
57
  export declare function createOffscreenChartRenderer(canvas: HTMLCanvasElement, lineWidth?: number,
56
58
  /** Its context was lost (Chrome dropped it): the caller makes a new canvas and renderer. */
57
59
  onLost?: () => void,
@@ -36,6 +36,10 @@ export interface LoadedDataset {
36
36
  fromColumns?: boolean;
37
37
  /** Arrays a column was replaced from, reused by the next writeColumns (engine internal). */
38
38
  columnSpares?: Map<string, Float64Array>;
39
+ /** Opened as a table from a long-form file (datasets.openAsTable): the importer that reads it as one channel per tag. */
40
+ fromLong?: {
41
+ importer: string;
42
+ };
39
43
  /** Beacon lap split; when set, the dataset is shown/selected as its laps. */
40
44
  beacon?: BeaconConfig;
41
45
  /** Cut into cycles by a rule (datasets.cut): shown and selected as its cycles and their phases, as laps are. Wins over `beacon`. */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kymoscope/sdk",
3
- "version": "0.20.0",
3
+ "version": "0.22.0",
4
4
  "description": "The Kymoscope data engine and charts for the browser: import large measurement files, plot them, stream live data end-to-end encrypted.",
5
5
  "license": "SEE LICENSE IN LICENSE.md",
6
6
  "homepage": "https://kymoscope.com/docs/introduction",
@@ -45,6 +45,7 @@
45
45
  "@foxglove/rosmsg2-serialization": "3.1.2",
46
46
  "@mcap/core": "2.4.0",
47
47
  "@msgpack/msgpack": "^3.1.3",
48
+ "@types/js-yaml": "4.0.9",
48
49
  "apache-arrow": "17.0.0",
49
50
  "delaunator": "^5.1.0",
50
51
  "fflate": "^0.8.3",
@@ -52,6 +53,7 @@
52
53
  "h5wasm": "0.10.3",
53
54
  "hyparquet": "1.33.1",
54
55
  "hyparquet-compressors": "1.1.3",
56
+ "js-yaml": "4.1.1",
55
57
  "mathjs": "^15.2.0"
56
58
  },
57
59
  "scripts": {