@inflexa-ai/harness 0.42.2 → 0.43.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 (199) hide show
  1. package/README.md +2 -2
  2. package/dist/agents/sandbox/shared.d.ts +1 -6
  3. package/dist/agents/sandbox/shared.js +0 -15
  4. package/dist/app/chat-turn.js +13 -1
  5. package/dist/config/environment-stores.d.ts +4 -2
  6. package/dist/contracts/chat-events.d.ts +9 -1
  7. package/dist/contracts/chat-frame.d.ts +3 -3
  8. package/dist/contracts/chat-frame.js +8 -3
  9. package/dist/contracts/chat-parts.d.ts +4 -1
  10. package/dist/contracts/data-profile.d.ts +4 -6
  11. package/dist/contracts/index.d.ts +1 -1
  12. package/dist/contracts/report-blocks.d.ts +1364 -75
  13. package/dist/contracts/report-blocks.js +221 -29
  14. package/dist/contracts/report-reference.js +1 -1
  15. package/dist/contracts/schemas/chat-events.d.ts +13 -0
  16. package/dist/contracts/schemas/chat-events.js +5 -0
  17. package/dist/contracts/schemas/chat-parts.d.ts +2 -2
  18. package/dist/contracts/schemas/index.d.ts +1 -1
  19. package/dist/contracts/schemas/index.js +1 -1
  20. package/dist/execution/input-signature.d.ts +7 -13
  21. package/dist/execution/input-signature.js +0 -0
  22. package/dist/execution/run-canceler.d.ts +3 -2
  23. package/dist/execution/run-canceler.js +3 -2
  24. package/dist/execution/run-event-stream.d.ts +16 -2
  25. package/dist/execution/run-event-stream.js +54 -3
  26. package/dist/index.d.ts +1 -8
  27. package/dist/index.js +5 -16
  28. package/dist/input-scan/enrich.d.ts +0 -2
  29. package/dist/input-scan/enrich.js +0 -1
  30. package/dist/lib/metrics.js +6 -7
  31. package/dist/lib/otel-spans.d.ts +4 -9
  32. package/dist/lib/otel-spans.js +3 -8
  33. package/dist/loop/run-agent.d.ts +4 -2
  34. package/dist/loop/run-agent.js +38 -23
  35. package/dist/memory/thread-history.d.ts +1 -1
  36. package/dist/prompts/report-session.d.ts +1 -1
  37. package/dist/prompts/report-session.js +17 -0
  38. package/dist/provenance/exec-frame.d.ts +1 -1
  39. package/dist/report-model/authoring-grammar.d.ts +416 -17
  40. package/dist/report-model/authoring-grammar.js +25 -4
  41. package/dist/report-model/block-walk.d.ts +20 -4
  42. package/dist/report-model/block-walk.js +64 -7
  43. package/dist/report-model/draft-finish.d.ts +6 -2
  44. package/dist/report-model/draft-finish.js +6 -1
  45. package/dist/report-model/production-resolver.d.ts +8 -0
  46. package/dist/report-model/production-resolver.js +1 -1
  47. package/dist/report-model/validate.d.ts +20 -10
  48. package/dist/report-model/validate.js +29 -13
  49. package/dist/report-render/chart-export.d.ts +52 -0
  50. package/dist/report-render/chart-export.js +192 -0
  51. package/dist/report-render/chart-presets.d.ts +46 -47
  52. package/dist/report-render/chart-presets.js +31 -101
  53. package/dist/report-render/chart-renderers.d.ts +163 -0
  54. package/dist/report-render/chart-renderers.js +1055 -0
  55. package/dist/report-render/chart-toolbox.d.ts +124 -0
  56. package/dist/report-render/chart-toolbox.js +595 -0
  57. package/dist/report-render/chart.d.ts +60 -27
  58. package/dist/report-render/chart.js +2323 -524
  59. package/dist/report-render/design.d.ts +476 -16
  60. package/dist/report-render/design.js +390 -56
  61. package/dist/report-render/figures/common.d.ts +321 -0
  62. package/dist/report-render/figures/common.js +759 -0
  63. package/dist/report-render/figures/dendrogram.d.ts +36 -0
  64. package/dist/report-render/figures/dendrogram.js +130 -0
  65. package/dist/report-render/figures/dense.d.ts +111 -0
  66. package/dist/report-render/figures/dense.js +204 -0
  67. package/dist/report-render/figures/dotplot.d.ts +28 -0
  68. package/dist/report-render/figures/dotplot.js +234 -0
  69. package/dist/report-render/figures/embedding.d.ts +43 -0
  70. package/dist/report-render/figures/embedding.js +360 -0
  71. package/dist/report-render/figures/equal-units.d.ts +101 -0
  72. package/dist/report-render/figures/equal-units.js +215 -0
  73. package/dist/report-render/figures/forest.d.ts +20 -0
  74. package/dist/report-render/figures/forest.js +398 -0
  75. package/dist/report-render/figures/gsea.d.ts +30 -0
  76. package/dist/report-render/figures/gsea.js +391 -0
  77. package/dist/report-render/figures/heatmap.d.ts +40 -0
  78. package/dist/report-render/figures/heatmap.js +395 -0
  79. package/dist/report-render/figures/index.d.ts +135 -0
  80. package/dist/report-render/figures/index.js +100 -0
  81. package/dist/report-render/figures/km.d.ts +16 -0
  82. package/dist/report-render/figures/km.js +406 -0
  83. package/dist/report-render/figures/label-room.d.ts +130 -0
  84. package/dist/report-render/figures/label-room.js +341 -0
  85. package/dist/report-render/figures/locuszoom.d.ts +50 -0
  86. package/dist/report-render/figures/locuszoom.js +675 -0
  87. package/dist/report-render/figures/lollipop.d.ts +16 -0
  88. package/dist/report-render/figures/lollipop.js +247 -0
  89. package/dist/report-render/figures/ma.d.ts +20 -0
  90. package/dist/report-render/figures/ma.js +114 -0
  91. package/dist/report-render/figures/manhattan.d.ts +60 -0
  92. package/dist/report-render/figures/manhattan.js +343 -0
  93. package/dist/report-render/figures/oncoprint.d.ts +41 -0
  94. package/dist/report-render/figures/oncoprint.js +420 -0
  95. package/dist/report-render/figures/pca.d.ts +37 -0
  96. package/dist/report-render/figures/pca.js +241 -0
  97. package/dist/report-render/figures/qq.d.ts +30 -0
  98. package/dist/report-render/figures/qq.js +182 -0
  99. package/dist/report-render/figures/roc.d.ts +17 -0
  100. package/dist/report-render/figures/roc.js +116 -0
  101. package/dist/report-render/figures/sankey.d.ts +48 -0
  102. package/dist/report-render/figures/sankey.js +353 -0
  103. package/dist/report-render/figures/upset.d.ts +60 -0
  104. package/dist/report-render/figures/upset.js +316 -0
  105. package/dist/report-render/figures/volcano.d.ts +25 -0
  106. package/dist/report-render/figures/volcano.js +166 -0
  107. package/dist/report-render/hybrid-svg.d.ts +75 -0
  108. package/dist/report-render/hybrid-svg.js +504 -0
  109. package/dist/report-render/number-format.d.ts +19 -0
  110. package/dist/report-render/number-format.js +25 -1
  111. package/dist/report-render/page.d.ts +41 -4
  112. package/dist/report-render/page.js +247 -12
  113. package/dist/report-render/render.d.ts +13 -4
  114. package/dist/report-render/render.js +37 -6
  115. package/dist/report-render/types.d.ts +23 -2
  116. package/dist/report-render/value-bridge.d.ts +38 -3
  117. package/dist/report-render/value-bridge.js +137 -6
  118. package/dist/report-render/views/chart-view.d.ts +42 -6
  119. package/dist/report-render/views/chart-view.js +70 -9
  120. package/dist/report-render/views/page-view.js +9 -10
  121. package/dist/runtime/assemble.js +2 -2
  122. package/dist/sandbox/client.d.ts +23 -32
  123. package/dist/sandbox/client.js +3 -11
  124. package/dist/sandbox/create-sandbox.d.ts +9 -24
  125. package/dist/sandbox/create-sandbox.js +15 -30
  126. package/dist/sandbox/docker-client.d.ts +12 -22
  127. package/dist/sandbox/docker-client.js +29 -43
  128. package/dist/sandbox/exec.d.ts +58 -0
  129. package/dist/sandbox/exec.js +197 -0
  130. package/dist/sandbox/identity.d.ts +5 -5
  131. package/dist/sandbox/identity.js +7 -10
  132. package/dist/sandbox/k8s-client.d.ts +4 -10
  133. package/dist/sandbox/k8s-client.js +5 -12
  134. package/dist/sandbox/liveness.d.ts +5 -12
  135. package/dist/sandbox/liveness.js +5 -12
  136. package/dist/sandbox/notification-sweep.d.ts +4 -7
  137. package/dist/sandbox/notification-sweep.js +4 -7
  138. package/dist/sandbox/reaper.d.ts +3 -3
  139. package/dist/sandbox/reaper.js +3 -3
  140. package/dist/sandbox/sandbox-error.d.ts +10 -11
  141. package/dist/sandbox/sandbox-error.js +10 -11
  142. package/dist/sandbox/sandbox-step-translate.d.ts +1 -1
  143. package/dist/sandbox/sandbox-step-translate.js +1 -1
  144. package/dist/sandbox/types.d.ts +31 -99
  145. package/dist/sandbox/types.js +17 -84
  146. package/dist/state/active-sandboxes.d.ts +7 -32
  147. package/dist/state/active-sandboxes.js +11 -46
  148. package/dist/state/index.d.ts +1 -2
  149. package/dist/state/index.js +1 -1
  150. package/dist/state/migrations/20261005120000_drop_the_active_exec_tracking.d.ts +7 -0
  151. package/dist/state/migrations/20261005120000_drop_the_active_exec_tracking.js +12 -0
  152. package/dist/state/migrations/index.js +2 -0
  153. package/dist/state/schema.d.ts +1 -5
  154. package/dist/state/schema.js +1 -6
  155. package/dist/state/step-executions.js +1 -2
  156. package/dist/tasks/data-profile.js +7 -20
  157. package/dist/tasks/derive-table-exec.d.ts +4 -14
  158. package/dist/tasks/derive-table-exec.js +9 -24
  159. package/dist/tasks/extract-values.d.ts +2 -2
  160. package/dist/tasks/extract-values.js +4 -7
  161. package/dist/tools/define-tool.d.ts +56 -13
  162. package/dist/tools/define-tool.js +28 -1
  163. package/dist/tools/execute-analysis.js +3 -3
  164. package/dist/tools/report-session/derive-table.d.ts +8 -9
  165. package/dist/tools/report-session/derive-table.js +3 -4
  166. package/dist/tools/report-session/preview-report.js +4 -49
  167. package/dist/tools/sandbox/list-available-packages.d.ts +1 -1
  168. package/dist/tools/sandbox/list-available-packages.js +5 -4
  169. package/dist/tools/workspace/edit-file.d.ts +5 -4
  170. package/dist/tools/workspace/edit-file.js +10 -13
  171. package/dist/tools/workspace/execute-command.d.ts +27 -42
  172. package/dist/tools/workspace/execute-command.js +42 -38
  173. package/dist/tools/workspace/index.d.ts +5 -6
  174. package/dist/tools/workspace/index.js +5 -6
  175. package/dist/tools/workspace/mutator.d.ts +43 -8
  176. package/dist/tools/workspace/mutator.js +45 -34
  177. package/dist/tools/workspace/run-exec.d.ts +3 -12
  178. package/dist/tools/workspace/run-exec.js +7 -24
  179. package/dist/tools/workspace/scan-inputs.d.ts +0 -3
  180. package/dist/tools/workspace/scan-inputs.js +0 -1
  181. package/dist/tools/workspace/write-file.d.ts +12 -3
  182. package/dist/tools/workspace/write-file.js +17 -13
  183. package/dist/workflows/sandbox-step.d.ts +7 -11
  184. package/dist/workflows/sandbox-step.js +24 -27
  185. package/package.json +3 -1
  186. package/dist/sandbox/await-exec.d.ts +0 -143
  187. package/dist/sandbox/await-exec.js +0 -417
  188. package/dist/sandbox/deliver-exec-event.d.ts +0 -25
  189. package/dist/sandbox/deliver-exec-event.js +0 -29
  190. package/dist/sandbox/digest.d.ts +0 -14
  191. package/dist/sandbox/digest.js +0 -17
  192. package/dist/sandbox/exec-id.d.ts +0 -12
  193. package/dist/sandbox/exec-id.js +0 -20
  194. package/dist/sandbox/hmac.d.ts +0 -62
  195. package/dist/sandbox/hmac.js +0 -72
  196. package/dist/sandbox/submit-exec.d.ts +0 -38
  197. package/dist/sandbox/submit-exec.js +0 -80
  198. package/dist/sandbox/watchdog.d.ts +0 -71
  199. package/dist/sandbox/watchdog.js +0 -161
@@ -15,6 +15,8 @@
15
15
  * The token block is the exception to the first invariant. The token set is the contract of the identity,
16
16
  * thus it stays complete even where no current rule reads a token.
17
17
  */
18
+ /** The height of the chart body on the page, in pixels, for a chart that states no height of its own. */
19
+ export declare const CHART_BODY_PX = 400;
18
20
  /** The style rules of the page. The renderer inlines them in one `<style>` block. */
19
21
  export declare const DESIGN_CSS: string;
20
22
  /**
@@ -88,6 +90,164 @@ export declare const GRID_THEME_PARAMS: {
88
90
  * reads it. One source prevents a silent mismatch between the two sites.
89
91
  */
90
92
  export declare const ECHARTS_THEME_NAME = "inflexa";
93
+ /**
94
+ * The font stack of the chart text: the journal sans stack. A figure keeps its own typography on the page
95
+ * and in the paper, thus the chart text never reads the page fonts.
96
+ *
97
+ * No family name takes quotes. The server render of the chart runtime writes the stack into a double-quoted
98
+ * `style` attribute with no escape, and a double quote there breaks the SVG file.
99
+ */
100
+ export declare const CHART_FONT_STACK = "Helvetica, Arial, sans-serif";
101
+ /**
102
+ * The text sizes of a chart, in pixels: on the page, in the SVG and the column PNG, and in the slide PNG.
103
+ *
104
+ * The print size is 7 points at the column width, which is the upper bound of the Nature guide (5 to 7
105
+ * points), at 96 pixels for each inch. The slide size reads from the back of a room at the full width of a
106
+ * slide.
107
+ */
108
+ export declare const CHART_PAGE_TEXT_PX = 12;
109
+ export declare const CHART_PRINT_TEXT_PX = 9.33;
110
+ export declare const CHART_SLIDE_TEXT_PX = 24;
111
+ /** The names of the two export themes. The registration script and the export read the same names. */
112
+ export declare const CHART_PRINT_THEME_NAME = "inflexa-print";
113
+ export declare const CHART_SLIDE_THEME_NAME = "inflexa-slide";
114
+ /** The size of one chart export: the name of its theme, the CSS pixel box, and the millimeter box of a column. */
115
+ export interface ChartExportSize {
116
+ readonly theme: string;
117
+ readonly textPx: number;
118
+ readonly widthPx: number;
119
+ readonly heightPx: number;
120
+ readonly widthMm?: number;
121
+ readonly heightMm?: number;
122
+ readonly pixelRatio: number;
123
+ readonly label: string;
124
+ }
125
+ /**
126
+ * The export sizes of a chart: the single journal column, the double journal column, and a 16:9 slide.
127
+ *
128
+ * A column states its box in millimeters and in CSS pixels at 96 pixels for each inch: 89 × 67 mm is 336 ×
129
+ * 253 px, and 183 × 92 mm is 692 × 348 px. The column PNG draws at a pixel ratio of 3.125, which is 300 DPI,
130
+ * thus the single column is 1050 px wide. The slide draws at 1920 × 1080 px at a ratio of one. The columns
131
+ * read the print text size, and the slide reads the slide text size.
132
+ */
133
+ export declare const CHART_EXPORT_SIZES: {
134
+ readonly single: {
135
+ readonly theme: "inflexa-print";
136
+ readonly textPx: 9.33;
137
+ readonly widthPx: 336;
138
+ readonly heightPx: 253;
139
+ readonly widthMm: 89;
140
+ readonly heightMm: 67;
141
+ readonly pixelRatio: number;
142
+ readonly label: "89 mm";
143
+ };
144
+ readonly double: {
145
+ readonly theme: "inflexa-print";
146
+ readonly textPx: 9.33;
147
+ readonly widthPx: 692;
148
+ readonly heightPx: 348;
149
+ readonly widthMm: 183;
150
+ readonly heightMm: 92;
151
+ readonly pixelRatio: number;
152
+ readonly label: "183 mm";
153
+ };
154
+ readonly slide: {
155
+ readonly theme: "inflexa-slide";
156
+ readonly textPx: 24;
157
+ readonly widthPx: 1920;
158
+ readonly heightPx: 1080;
159
+ readonly pixelRatio: 1;
160
+ readonly label: "16:9";
161
+ };
162
+ };
163
+ /** The height that each further row of facet panels adds to the chart body, in pixels. */
164
+ export declare const FACET_ROW_PX = 360;
165
+ /** The largest chart body, in pixels. A figure of more rows than this height holds hides a name that overlaps its neighbor. */
166
+ export declare const CHART_BODY_MAX_PX = 1480;
167
+ /**
168
+ * The width of the chart body on a page at a window 1280 pixels wide, in pixels. A derivation that fits its
169
+ * category labels to the page measures them against this width.
170
+ */
171
+ export declare const CHART_PAGE_WIDTH_PX = 900;
172
+ /** The largest height of a journal figure: 170 mm, the full page depth of the Nature guide. */
173
+ export declare const CHART_EXPORT_MAX_HEIGHT_MM = 170;
174
+ /**
175
+ * The export size of a chart whose body is taller than the default body.
176
+ *
177
+ * A column export keeps its width, and its height grows in the ratio of the body to the default body, thus a
178
+ * row of the figure keeps its share of the height in the export. The height stops at the journal maximum. A
179
+ * slide keeps its 16:9 box, and a chart of the default body keeps each size.
180
+ */
181
+ export declare function exportSizeFor(size: ChartExportSize, bodyPx: number): ChartExportSize;
182
+ /**
183
+ * The near-black ink of a chart: the text, the two axis lines, and the stroke of an interval.
184
+ *
185
+ * A journal figure draws its frame and its text in one dark ink, thus the page and the export read alike.
186
+ */
187
+ export declare const CHART_INK = "#222222";
188
+ /**
189
+ * The categorical palette of a chart: the Okabe-Ito set, in the order blue, vermilion, bluish green,
190
+ * orange, reddish purple, sky blue, yellow, and black.
191
+ *
192
+ * The set is public and colorblind-safe: no two hues differ by a red-green difference alone. A series that
193
+ * names no color takes the next hue of this order.
194
+ */
195
+ export declare const CHART_PALETTE: readonly ["#0072b2", "#d55e00", "#009e73", "#e69f00", "#cc79a7", "#56b4e9", "#f0e442", "#000000"];
196
+ /**
197
+ * The categorical palette of a chart that draws more than eight categories: the eight hues of the Okabe-Ito
198
+ * set in their order, then sixteen more hues. Each hue differs from its neighbors in hue or in lightness, and
199
+ * no hue is near white. The order is fixed, thus one category count gives one set of colors on every chart.
200
+ *
201
+ * Past eight categories no palette stays safe for each color-vision deficiency, thus the colors carry the
202
+ * categories and the legend names them.
203
+ */
204
+ export declare const CHART_WIDE_PALETTE: readonly ["#0072b2", "#d55e00", "#009e73", "#e69f00", "#cc79a7", "#56b4e9", "#f0e442", "#000000", "#875692", "#8db600", "#be0032", "#a1caf1", "#882d17", "#17becf", "#f99379", "#604e97", "#dcd300", "#b3446c", "#2b3d26", "#e68fac", "#654522", "#c2b280", "#e7298a", "#7fc97f"];
205
+ /**
206
+ * The stroke of a guide line: a thin gray dash. A guide is a reference and never a plotted value, thus it
207
+ * reads behind the data.
208
+ */
209
+ export declare const GUIDE_LINE_COLOR = "#8c8c8c";
210
+ export declare const GUIDE_LINE_WIDTH_PX = 1;
211
+ /** The one focus color of a chart. It is the first hue of the palette, thus a focus reads as the lead series. */
212
+ export declare const FOCUS_CHART_COLOR: "#0072b2";
213
+ /**
214
+ * The sequential ramp of a continuous color: the ten stops of viridis, dark to light. A continuous scale maps
215
+ * the low value to `#440154` and the high value to `#fde725`.
216
+ */
217
+ export declare const SEQUENTIAL_RAMP: readonly ["#440154", "#482777", "#3e4989", "#31688e", "#26828e", "#1f9e89", "#35b779", "#6ece58", "#b5de2b", "#fde725"];
218
+ /**
219
+ * The diverging ramp of a continuous color: the palette blue through a near-white to the palette vermilion.
220
+ * The derivation centers the ramp on zero, thus the near-white stop marks no change.
221
+ */
222
+ export declare const DIVERGING_RAMP: readonly ["#0072b2", "#f7f7f7", "#d55e00"];
223
+ /** The smallest and the largest symbol of a `size` channel, in pixels. */
224
+ export declare const SIZE_CHANNEL_RANGE_PX: readonly [6, 24];
225
+ /**
226
+ * The band at the right edge of a chart that a continuous color scale takes, in percent of the width. The plot
227
+ * leaves the band free, and the title of the scale in an export wraps into it.
228
+ */
229
+ export declare const COLOR_SCALE_BAND_PCT = 18;
230
+ /**
231
+ * The largest count of slots of one chart, where a slot is one pair of a category and a group. A stacked form,
232
+ * a radar, a violin, and a heatmap lay out one slot for each pair, thus the bound holds their grids to a size
233
+ * that a reader reads and that the render holds in memory.
234
+ */
235
+ export declare const CHART_SLOT_LIMIT = 100000;
236
+ /**
237
+ * The largest count of bars that carry a value label, counted across the series of one chart.
238
+ *
239
+ * A label on each of a few bars reads as the exact value beside the bar. Past this count the labels crowd
240
+ * each other, and the axis reads better alone.
241
+ */
242
+ export declare const BAR_VALUE_LABEL_LIMIT = 12;
243
+ /**
244
+ * The largest count of facet panels of one chart, and the count of panels in one row.
245
+ *
246
+ * A small multiple compares its panels at a glance. Past twelve panels each panel is too small to read, and
247
+ * a derived table of fewer groups serves the reader better.
248
+ */
249
+ export declare const FACET_PANEL_LIMIT = 12;
250
+ export declare const FACET_COLUMNS = 3;
91
251
  /**
92
252
  * The muted chart color, beside the palette of the theme.
93
253
  *
@@ -122,12 +282,19 @@ export declare const SCATTER_CROWD_OPACITY = 0.5;
122
282
  */
123
283
  export declare const CHART_INLINE_OPTION_BOUND = 100000;
124
284
  /**
125
- * The ECharts theme as a plain object. The renderer serializes this object and registers it, thus the theme
126
- * never rides a JSON file and no run-time read is necessary. The palette and the axis styles mirror the
127
- * light design tokens above.
285
+ * The publication theme of a chart, at one text size.
286
+ *
287
+ * The page and the export read one theme, thus a chart on the page is the chart that the paper gets. The
288
+ * left and the bottom axis lines are strong and dark, with ticks outside the plot. There is no grid line, no
289
+ * frame around the legend, and no toolbox, because the chart card adds the toolbox of the page and a file carries
290
+ * none. The text reads in the journal sans stack and in the near-black ink.
291
+ *
292
+ * The chart runtime reads the style of an axis by its type, thus each of the four axis types carries the same
293
+ * style. The text size scales the text alone: the page, the print export, and the slide export each register
294
+ * one theme.
128
295
  */
129
- export declare const ECHARTS_THEME: {
130
- color: string[];
296
+ export declare function chartTheme(textPx: number): {
297
+ color: ("#0072b2" | "#d55e00" | "#009e73" | "#e69f00" | "#cc79a7" | "#56b4e9" | "#f0e442" | "#000000")[];
131
298
  backgroundColor: string;
132
299
  textStyle: {
133
300
  fontFamily: string;
@@ -139,7 +306,9 @@ export declare const ECHARTS_THEME: {
139
306
  };
140
307
  legend: {
141
308
  bottom: number;
309
+ borderWidth: number;
142
310
  textStyle: {
311
+ fontFamily: string;
143
312
  fontSize: number;
144
313
  color: string;
145
314
  };
@@ -163,28 +332,209 @@ export declare const ECHARTS_THEME: {
163
332
  };
164
333
  extraCssText: string;
165
334
  };
166
- toolbox: {
167
- feature: {
168
- saveAsImage: {
169
- title: string;
170
- pixelRatio: number;
335
+ categoryAxis: {
336
+ axisLine: {
337
+ show: boolean;
338
+ lineStyle: {
339
+ color: string;
340
+ width: number;
341
+ };
342
+ };
343
+ axisTick: {
344
+ show: boolean;
345
+ inside: boolean;
346
+ lineStyle: {
347
+ color: string;
348
+ width: number;
349
+ };
350
+ };
351
+ axisLabel: {
352
+ color: string;
353
+ fontSize: number;
354
+ };
355
+ splitLine: {
356
+ show: boolean;
357
+ };
358
+ nameTextStyle: {
359
+ color: string;
360
+ fontSize: number;
361
+ };
362
+ };
363
+ valueAxis: {
364
+ axisLine: {
365
+ onZero: boolean;
366
+ show: boolean;
367
+ lineStyle: {
368
+ color: string;
369
+ width: number;
370
+ };
371
+ };
372
+ axisTick: {
373
+ show: boolean;
374
+ inside: boolean;
375
+ lineStyle: {
376
+ color: string;
377
+ width: number;
378
+ };
379
+ };
380
+ axisLabel: {
381
+ color: string;
382
+ fontSize: number;
383
+ };
384
+ splitLine: {
385
+ show: boolean;
386
+ };
387
+ nameTextStyle: {
388
+ color: string;
389
+ fontSize: number;
390
+ };
391
+ };
392
+ logAxis: {
393
+ axisLine: {
394
+ onZero: boolean;
395
+ show: boolean;
396
+ lineStyle: {
397
+ color: string;
398
+ width: number;
399
+ };
400
+ };
401
+ axisTick: {
402
+ show: boolean;
403
+ inside: boolean;
404
+ lineStyle: {
405
+ color: string;
406
+ width: number;
407
+ };
408
+ };
409
+ axisLabel: {
410
+ color: string;
411
+ fontSize: number;
412
+ };
413
+ splitLine: {
414
+ show: boolean;
415
+ };
416
+ nameTextStyle: {
417
+ color: string;
418
+ fontSize: number;
419
+ };
420
+ };
421
+ timeAxis: {
422
+ axisLine: {
423
+ onZero: boolean;
424
+ show: boolean;
425
+ lineStyle: {
426
+ color: string;
427
+ width: number;
171
428
  };
172
429
  };
173
- iconStyle: {
174
- borderColor: string;
430
+ axisTick: {
431
+ show: boolean;
432
+ inside: boolean;
433
+ lineStyle: {
434
+ color: string;
435
+ width: number;
436
+ };
437
+ };
438
+ axisLabel: {
439
+ color: string;
440
+ fontSize: number;
175
441
  };
442
+ splitLine: {
443
+ show: boolean;
444
+ };
445
+ nameTextStyle: {
446
+ color: string;
447
+ fontSize: number;
448
+ };
449
+ };
450
+ visualMap: {
451
+ textStyle: {
452
+ fontFamily: string;
453
+ fontSize: number;
454
+ color: string;
455
+ };
456
+ };
457
+ radar: {
458
+ axisName: {
459
+ color: string;
460
+ fontSize: number;
461
+ };
462
+ axisLine: {
463
+ lineStyle: {
464
+ color: string;
465
+ };
466
+ };
467
+ splitLine: {
468
+ lineStyle: {
469
+ color: string;
470
+ };
471
+ };
472
+ splitArea: {
473
+ show: boolean;
474
+ };
475
+ };
476
+ };
477
+ /**
478
+ * The colors and the font of the toolbox of a page chart: a quiet icon, the primary accent on hover, and the mono
479
+ * face of the card title for the title of an icon.
480
+ */
481
+ export declare const CHART_TOOLBOX_ICON_COLOR: "#64748b";
482
+ export declare const CHART_TOOLBOX_ACTIVE_COLOR: "#576dea";
483
+ export declare const CHART_TOOLBOX_FONT: "\"IBM Plex Mono\", ui-monospace, monospace";
484
+ /** The theme that the page registers under `ECHARTS_THEME_NAME`, at the page text size. */
485
+ export declare const ECHARTS_THEME: {
486
+ color: ("#0072b2" | "#d55e00" | "#009e73" | "#e69f00" | "#cc79a7" | "#56b4e9" | "#f0e442" | "#000000")[];
487
+ backgroundColor: string;
488
+ textStyle: {
489
+ fontFamily: string;
490
+ fontSize: number;
491
+ color: string;
492
+ };
493
+ title: {
494
+ show: boolean;
495
+ };
496
+ legend: {
497
+ bottom: number;
498
+ borderWidth: number;
499
+ textStyle: {
500
+ fontFamily: string;
501
+ fontSize: number;
502
+ color: string;
503
+ };
504
+ itemGap: number;
505
+ itemWidth: number;
506
+ itemHeight: number;
507
+ };
508
+ grid: {
509
+ left: number;
176
510
  right: number;
177
511
  top: number;
512
+ bottom: number;
513
+ containLabel: boolean;
514
+ };
515
+ tooltip: {
516
+ backgroundColor: string;
517
+ borderColor: string;
518
+ textStyle: {
519
+ color: string;
520
+ fontSize: number;
521
+ };
522
+ extraCssText: string;
178
523
  };
179
- xAxis: {
524
+ categoryAxis: {
180
525
  axisLine: {
526
+ show: boolean;
181
527
  lineStyle: {
182
528
  color: string;
529
+ width: number;
183
530
  };
184
531
  };
185
532
  axisTick: {
533
+ show: boolean;
534
+ inside: boolean;
186
535
  lineStyle: {
187
536
  color: string;
537
+ width: number;
188
538
  };
189
539
  };
190
540
  axisLabel: {
@@ -192,28 +542,138 @@ export declare const ECHARTS_THEME: {
192
542
  fontSize: number;
193
543
  };
194
544
  splitLine: {
545
+ show: boolean;
546
+ };
547
+ nameTextStyle: {
548
+ color: string;
549
+ fontSize: number;
550
+ };
551
+ };
552
+ valueAxis: {
553
+ axisLine: {
554
+ onZero: boolean;
555
+ show: boolean;
195
556
  lineStyle: {
196
557
  color: string;
197
- type: string;
558
+ width: number;
198
559
  };
199
560
  };
561
+ axisTick: {
562
+ show: boolean;
563
+ inside: boolean;
564
+ lineStyle: {
565
+ color: string;
566
+ width: number;
567
+ };
568
+ };
569
+ axisLabel: {
570
+ color: string;
571
+ fontSize: number;
572
+ };
573
+ splitLine: {
574
+ show: boolean;
575
+ };
576
+ nameTextStyle: {
577
+ color: string;
578
+ fontSize: number;
579
+ };
200
580
  };
201
- yAxis: {
581
+ logAxis: {
202
582
  axisLine: {
583
+ onZero: boolean;
203
584
  show: boolean;
585
+ lineStyle: {
586
+ color: string;
587
+ width: number;
588
+ };
204
589
  };
205
590
  axisTick: {
206
591
  show: boolean;
592
+ inside: boolean;
593
+ lineStyle: {
594
+ color: string;
595
+ width: number;
596
+ };
207
597
  };
208
598
  axisLabel: {
209
599
  color: string;
210
600
  fontSize: number;
211
601
  };
212
602
  splitLine: {
603
+ show: boolean;
604
+ };
605
+ nameTextStyle: {
606
+ color: string;
607
+ fontSize: number;
608
+ };
609
+ };
610
+ timeAxis: {
611
+ axisLine: {
612
+ onZero: boolean;
613
+ show: boolean;
614
+ lineStyle: {
615
+ color: string;
616
+ width: number;
617
+ };
618
+ };
619
+ axisTick: {
620
+ show: boolean;
621
+ inside: boolean;
213
622
  lineStyle: {
214
623
  color: string;
215
- type: string;
624
+ width: number;
216
625
  };
217
626
  };
627
+ axisLabel: {
628
+ color: string;
629
+ fontSize: number;
630
+ };
631
+ splitLine: {
632
+ show: boolean;
633
+ };
634
+ nameTextStyle: {
635
+ color: string;
636
+ fontSize: number;
637
+ };
638
+ };
639
+ visualMap: {
640
+ textStyle: {
641
+ fontFamily: string;
642
+ fontSize: number;
643
+ color: string;
644
+ };
645
+ };
646
+ radar: {
647
+ axisName: {
648
+ color: string;
649
+ fontSize: number;
650
+ };
651
+ axisLine: {
652
+ lineStyle: {
653
+ color: string;
654
+ };
655
+ };
656
+ splitLine: {
657
+ lineStyle: {
658
+ color: string;
659
+ };
660
+ };
661
+ splitArea: {
662
+ show: boolean;
663
+ };
218
664
  };
219
665
  };
666
+ /**
667
+ * The registered themes: the page theme, the print theme of the SVG and the column PNG, and the slide theme.
668
+ * The registration script writes each one, and the export reads one by its name.
669
+ */
670
+ export declare const CHART_THEMES: readonly [{
671
+ readonly name: "inflexa";
672
+ readonly textPx: 12;
673
+ }, {
674
+ readonly name: "inflexa-print";
675
+ readonly textPx: 9.33;
676
+ }, {
677
+ readonly name: "inflexa-slide";
678
+ readonly textPx: 24;
679
+ }];