@keroway/tdsl-wasm 1.22.0 → 1.23.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.
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@keroway/tdsl-wasm",
3
3
  "type": "module",
4
4
  "description": "WebAssembly bindings for the Timeline DSL compiler (static compile + SVG/HTML render)",
5
- "version": "1.22.0",
5
+ "version": "1.23.0",
6
6
  "license": "MIT",
7
7
  "repository": {
8
8
  "type": "git",
package/tdsl_wasm.d.ts CHANGED
@@ -14,6 +14,7 @@
14
14
  * | `grid` | `"none"`, `"decade"`, `"year"`, `"month"` | `"none"` |
15
15
  * | `theme` | `"default"`, `"dark"`, `"print"`, `"pastel"` | `"default"` |
16
16
  * | `show_table` | `true`, `false` | `false` |
17
+ * | `show_legend` | `true`, `false` | `false` |
17
18
  * | `show_event_labels` | `true`, `false` | `false` |
18
19
  * | `lane_height` | px per lane; `0` = renderer default (60) | `0` |
19
20
  *
@@ -35,7 +36,11 @@ export class JsRenderOptions {
35
36
  */
36
37
  show_event_labels: boolean;
37
38
  /**
38
- * `"horizontal"` (default) or `"vertical"`
39
+ * When true, render a static legend panel showing lane and tag colors.
40
+ */
41
+ show_legend: boolean;
42
+ /**
43
+ * When true, append an item listing table.
39
44
  */
40
45
  show_table: boolean;
41
46
  grid: string;
@@ -145,10 +150,12 @@ export interface InitOutput {
145
150
  readonly memory: WebAssembly.Memory;
146
151
  readonly __wbg_get_jsrenderoptions_lane_height: (a: number) => number;
147
152
  readonly __wbg_get_jsrenderoptions_show_event_labels: (a: number) => number;
153
+ readonly __wbg_get_jsrenderoptions_show_legend: (a: number) => number;
148
154
  readonly __wbg_get_jsrenderoptions_show_table: (a: number) => number;
149
155
  readonly __wbg_jsrenderoptions_free: (a: number, b: number) => void;
150
156
  readonly __wbg_set_jsrenderoptions_lane_height: (a: number, b: number) => void;
151
157
  readonly __wbg_set_jsrenderoptions_show_event_labels: (a: number, b: number) => void;
158
+ readonly __wbg_set_jsrenderoptions_show_legend: (a: number, b: number) => void;
152
159
  readonly __wbg_set_jsrenderoptions_show_table: (a: number, b: number) => void;
153
160
  readonly check_source: (a: number, b: number, c: number) => void;
154
161
  readonly compile_to_ir: (a: number, b: number, c: number) => void;
package/tdsl_wasm.js CHANGED
@@ -13,6 +13,7 @@
13
13
  * | `grid` | `"none"`, `"decade"`, `"year"`, `"month"` | `"none"` |
14
14
  * | `theme` | `"default"`, `"dark"`, `"print"`, `"pastel"` | `"default"` |
15
15
  * | `show_table` | `true`, `false` | `false` |
16
+ * | `show_legend` | `true`, `false` | `false` |
16
17
  * | `show_event_labels` | `true`, `false` | `false` |
17
18
  * | `lane_height` | px per lane; `0` = renderer default (60) | `0` |
18
19
  *
@@ -49,7 +50,15 @@ export class JsRenderOptions {
49
50
  return ret !== 0;
50
51
  }
51
52
  /**
52
- * `"horizontal"` (default) or `"vertical"`
53
+ * When true, render a static legend panel showing lane and tag colors.
54
+ * @returns {boolean}
55
+ */
56
+ get show_legend() {
57
+ const ret = wasm.__wbg_get_jsrenderoptions_show_legend(this.__wbg_ptr);
58
+ return ret !== 0;
59
+ }
60
+ /**
61
+ * When true, append an item listing table.
53
62
  * @returns {boolean}
54
63
  */
55
64
  get show_table() {
@@ -159,7 +168,14 @@ export class JsRenderOptions {
159
168
  wasm.__wbg_set_jsrenderoptions_show_event_labels(this.__wbg_ptr, arg0);
160
169
  }
161
170
  /**
162
- * `"horizontal"` (default) or `"vertical"`
171
+ * When true, render a static legend panel showing lane and tag colors.
172
+ * @param {boolean} arg0
173
+ */
174
+ set show_legend(arg0) {
175
+ wasm.__wbg_set_jsrenderoptions_show_legend(this.__wbg_ptr, arg0);
176
+ }
177
+ /**
178
+ * When true, append an item listing table.
163
179
  * @param {boolean} arg0
164
180
  */
165
181
  set show_table(arg0) {
package/tdsl_wasm_bg.wasm CHANGED
Binary file