ngwr 16.3.0 → 16.5.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 (295) hide show
  1. package/carousel/styles/_index.scss +53 -1
  2. package/charts/bar-chart/styles/_index.scss +494 -305
  3. package/charts/boxplot-chart/styles/_index.scss +114 -48
  4. package/charts/bullet-chart/styles/_index.scss +113 -42
  5. package/charts/calendar-heatmap/styles/_index.scss +111 -20
  6. package/charts/candlestick-chart/styles/_index.scss +61 -26
  7. package/charts/chart-legend/styles/_index.scss +119 -1
  8. package/charts/core/styles/_index.scss +201 -5
  9. package/charts/donut-chart/styles/_index.scss +76 -21
  10. package/charts/funnel-chart/styles/_index.scss +66 -38
  11. package/charts/gauge/styles/_index.scss +12 -1
  12. package/charts/heatmap-chart/styles/_index.scss +90 -53
  13. package/charts/line-chart/styles/_index.scss +143 -139
  14. package/charts/meter-group/styles/_index.scss +87 -25
  15. package/charts/radar-chart/styles/_index.scss +82 -40
  16. package/charts/scatter-chart/styles/_index.scss +117 -44
  17. package/charts/sparkline/styles/_index.scss +7 -1
  18. package/charts/treemap-chart/styles/_index.scss +94 -42
  19. package/charts/waterfall-chart/styles/_index.scss +150 -87
  20. package/color-picker/styles/_index.scss +7 -3
  21. package/copy-value/styles/_index.scss +21 -2
  22. package/date-stamp/styles/_index.scss +2 -1
  23. package/dialog/styles/_index.scss +6 -0
  24. package/drawer/styles/_index.scss +5 -1
  25. package/fesm2022/ngwr-breadcrumbs.mjs +2 -2
  26. package/fesm2022/ngwr-breadcrumbs.mjs.map +1 -1
  27. package/fesm2022/ngwr-carousel-testing.mjs +27 -1
  28. package/fesm2022/ngwr-carousel-testing.mjs.map +1 -1
  29. package/fesm2022/ngwr-carousel.mjs +86 -4
  30. package/fesm2022/ngwr-carousel.mjs.map +1 -1
  31. package/fesm2022/ngwr-cascader-testing.mjs.map +1 -1
  32. package/fesm2022/ngwr-cascader.mjs +56 -25
  33. package/fesm2022/ngwr-cascader.mjs.map +1 -1
  34. package/fesm2022/ngwr-charts-bar-chart-testing.mjs +16 -14
  35. package/fesm2022/ngwr-charts-bar-chart-testing.mjs.map +1 -1
  36. package/fesm2022/ngwr-charts-bar-chart.mjs +399 -141
  37. package/fesm2022/ngwr-charts-bar-chart.mjs.map +1 -1
  38. package/fesm2022/ngwr-charts-boxplot-chart-testing.mjs +19 -5
  39. package/fesm2022/ngwr-charts-boxplot-chart-testing.mjs.map +1 -1
  40. package/fesm2022/ngwr-charts-boxplot-chart.mjs +250 -56
  41. package/fesm2022/ngwr-charts-boxplot-chart.mjs.map +1 -1
  42. package/fesm2022/ngwr-charts-bullet-chart.mjs +118 -18
  43. package/fesm2022/ngwr-charts-bullet-chart.mjs.map +1 -1
  44. package/fesm2022/ngwr-charts-calendar-heatmap.mjs +266 -46
  45. package/fesm2022/ngwr-charts-calendar-heatmap.mjs.map +1 -1
  46. package/fesm2022/ngwr-charts-candlestick-chart-testing.mjs +21 -10
  47. package/fesm2022/ngwr-charts-candlestick-chart-testing.mjs.map +1 -1
  48. package/fesm2022/ngwr-charts-candlestick-chart.mjs +319 -72
  49. package/fesm2022/ngwr-charts-candlestick-chart.mjs.map +1 -1
  50. package/fesm2022/ngwr-charts-chart-legend.mjs +211 -9
  51. package/fesm2022/ngwr-charts-chart-legend.mjs.map +1 -1
  52. package/fesm2022/ngwr-charts-core.mjs +299 -18
  53. package/fesm2022/ngwr-charts-core.mjs.map +1 -1
  54. package/fesm2022/ngwr-charts-donut-chart-testing.mjs.map +1 -1
  55. package/fesm2022/ngwr-charts-donut-chart.mjs +206 -27
  56. package/fesm2022/ngwr-charts-donut-chart.mjs.map +1 -1
  57. package/fesm2022/ngwr-charts-funnel-chart-testing.mjs +4 -4
  58. package/fesm2022/ngwr-charts-funnel-chart-testing.mjs.map +1 -1
  59. package/fesm2022/ngwr-charts-funnel-chart.mjs +113 -10
  60. package/fesm2022/ngwr-charts-funnel-chart.mjs.map +1 -1
  61. package/fesm2022/ngwr-charts-gauge-testing.mjs.map +1 -1
  62. package/fesm2022/ngwr-charts-gauge.mjs +98 -12
  63. package/fesm2022/ngwr-charts-gauge.mjs.map +1 -1
  64. package/fesm2022/ngwr-charts-heatmap-chart.mjs +226 -31
  65. package/fesm2022/ngwr-charts-heatmap-chart.mjs.map +1 -1
  66. package/fesm2022/ngwr-charts-line-chart-testing.mjs +16 -4
  67. package/fesm2022/ngwr-charts-line-chart-testing.mjs.map +1 -1
  68. package/fesm2022/ngwr-charts-line-chart.mjs +407 -172
  69. package/fesm2022/ngwr-charts-line-chart.mjs.map +1 -1
  70. package/fesm2022/ngwr-charts-meter-group-testing.mjs +4 -4
  71. package/fesm2022/ngwr-charts-meter-group-testing.mjs.map +1 -1
  72. package/fesm2022/ngwr-charts-meter-group.mjs +223 -31
  73. package/fesm2022/ngwr-charts-meter-group.mjs.map +1 -1
  74. package/fesm2022/ngwr-charts-radar-chart-testing.mjs +2 -1
  75. package/fesm2022/ngwr-charts-radar-chart-testing.mjs.map +1 -1
  76. package/fesm2022/ngwr-charts-radar-chart.mjs +255 -66
  77. package/fesm2022/ngwr-charts-radar-chart.mjs.map +1 -1
  78. package/fesm2022/ngwr-charts-scatter-chart-testing.mjs +39 -18
  79. package/fesm2022/ngwr-charts-scatter-chart-testing.mjs.map +1 -1
  80. package/fesm2022/ngwr-charts-scatter-chart.mjs +431 -53
  81. package/fesm2022/ngwr-charts-scatter-chart.mjs.map +1 -1
  82. package/fesm2022/ngwr-charts-sparkline.mjs +19 -8
  83. package/fesm2022/ngwr-charts-sparkline.mjs.map +1 -1
  84. package/fesm2022/ngwr-charts-treemap-chart.mjs +253 -44
  85. package/fesm2022/ngwr-charts-treemap-chart.mjs.map +1 -1
  86. package/fesm2022/ngwr-charts-waterfall-chart-testing.mjs +15 -7
  87. package/fesm2022/ngwr-charts-waterfall-chart-testing.mjs.map +1 -1
  88. package/fesm2022/ngwr-charts-waterfall-chart.mjs +151 -23
  89. package/fesm2022/ngwr-charts-waterfall-chart.mjs.map +1 -1
  90. package/fesm2022/ngwr-color-picker.mjs +44 -4
  91. package/fesm2022/ngwr-color-picker.mjs.map +1 -1
  92. package/fesm2022/ngwr-context-menu-testing.mjs.map +1 -1
  93. package/fesm2022/ngwr-context-menu.mjs +60 -17
  94. package/fesm2022/ngwr-context-menu.mjs.map +1 -1
  95. package/fesm2022/ngwr-copy-value-testing.mjs +5 -1
  96. package/fesm2022/ngwr-copy-value-testing.mjs.map +1 -1
  97. package/fesm2022/ngwr-copy-value.mjs +38 -2
  98. package/fesm2022/ngwr-copy-value.mjs.map +1 -1
  99. package/fesm2022/ngwr-date-picker.mjs +56 -8
  100. package/fesm2022/ngwr-date-picker.mjs.map +1 -1
  101. package/fesm2022/ngwr-dialog.mjs +13 -5
  102. package/fesm2022/ngwr-dialog.mjs.map +1 -1
  103. package/fesm2022/ngwr-drawer.mjs +19 -3
  104. package/fesm2022/ngwr-drawer.mjs.map +1 -1
  105. package/fesm2022/ngwr-dropdown-testing.mjs.map +1 -1
  106. package/fesm2022/ngwr-dropdown.mjs +49 -6
  107. package/fesm2022/ngwr-dropdown.mjs.map +1 -1
  108. package/fesm2022/ngwr-editor.mjs +1 -0
  109. package/fesm2022/ngwr-editor.mjs.map +1 -1
  110. package/fesm2022/ngwr-file-upload.mjs +7 -3
  111. package/fesm2022/ngwr-file-upload.mjs.map +1 -1
  112. package/fesm2022/ngwr-graph-testing.mjs +27 -0
  113. package/fesm2022/ngwr-graph-testing.mjs.map +1 -1
  114. package/fesm2022/ngwr-graph.mjs +643 -14
  115. package/fesm2022/ngwr-graph.mjs.map +1 -1
  116. package/fesm2022/ngwr-i18n-ar.mjs +13 -4
  117. package/fesm2022/ngwr-i18n-ar.mjs.map +1 -1
  118. package/fesm2022/ngwr-i18n-cs.mjs +13 -4
  119. package/fesm2022/ngwr-i18n-cs.mjs.map +1 -1
  120. package/fesm2022/ngwr-i18n-de.mjs +13 -4
  121. package/fesm2022/ngwr-i18n-de.mjs.map +1 -1
  122. package/fesm2022/ngwr-i18n-en.mjs +13 -4
  123. package/fesm2022/ngwr-i18n-en.mjs.map +1 -1
  124. package/fesm2022/ngwr-i18n-es.mjs +13 -4
  125. package/fesm2022/ngwr-i18n-es.mjs.map +1 -1
  126. package/fesm2022/ngwr-i18n-fr.mjs +13 -4
  127. package/fesm2022/ngwr-i18n-fr.mjs.map +1 -1
  128. package/fesm2022/ngwr-i18n-he.mjs +13 -4
  129. package/fesm2022/ngwr-i18n-he.mjs.map +1 -1
  130. package/fesm2022/ngwr-i18n-hi.mjs +13 -4
  131. package/fesm2022/ngwr-i18n-hi.mjs.map +1 -1
  132. package/fesm2022/ngwr-i18n-id.mjs +13 -4
  133. package/fesm2022/ngwr-i18n-id.mjs.map +1 -1
  134. package/fesm2022/ngwr-i18n-it.mjs +13 -4
  135. package/fesm2022/ngwr-i18n-it.mjs.map +1 -1
  136. package/fesm2022/ngwr-i18n-ja.mjs +13 -4
  137. package/fesm2022/ngwr-i18n-ja.mjs.map +1 -1
  138. package/fesm2022/ngwr-i18n-ko.mjs +13 -4
  139. package/fesm2022/ngwr-i18n-ko.mjs.map +1 -1
  140. package/fesm2022/ngwr-i18n-nl.mjs +13 -4
  141. package/fesm2022/ngwr-i18n-nl.mjs.map +1 -1
  142. package/fesm2022/ngwr-i18n-pl.mjs +13 -4
  143. package/fesm2022/ngwr-i18n-pl.mjs.map +1 -1
  144. package/fesm2022/ngwr-i18n-pt.mjs +13 -4
  145. package/fesm2022/ngwr-i18n-pt.mjs.map +1 -1
  146. package/fesm2022/ngwr-i18n-ru.mjs +13 -4
  147. package/fesm2022/ngwr-i18n-ru.mjs.map +1 -1
  148. package/fesm2022/ngwr-i18n-sv.mjs +13 -4
  149. package/fesm2022/ngwr-i18n-sv.mjs.map +1 -1
  150. package/fesm2022/ngwr-i18n-tr.mjs +13 -4
  151. package/fesm2022/ngwr-i18n-tr.mjs.map +1 -1
  152. package/fesm2022/ngwr-i18n-uk.mjs +13 -4
  153. package/fesm2022/ngwr-i18n-uk.mjs.map +1 -1
  154. package/fesm2022/ngwr-i18n-vi.mjs +13 -4
  155. package/fesm2022/ngwr-i18n-vi.mjs.map +1 -1
  156. package/fesm2022/ngwr-i18n-zh-tw.mjs +13 -4
  157. package/fesm2022/ngwr-i18n-zh-tw.mjs.map +1 -1
  158. package/fesm2022/ngwr-i18n-zh.mjs +13 -4
  159. package/fesm2022/ngwr-i18n-zh.mjs.map +1 -1
  160. package/fesm2022/ngwr-lightbox.mjs +22 -5
  161. package/fesm2022/ngwr-lightbox.mjs.map +1 -1
  162. package/fesm2022/ngwr-list.mjs +2 -2
  163. package/fesm2022/ngwr-list.mjs.map +1 -1
  164. package/fesm2022/ngwr-overlay.mjs +21 -2
  165. package/fesm2022/ngwr-overlay.mjs.map +1 -1
  166. package/fesm2022/ngwr-pagination.mjs +1 -0
  167. package/fesm2022/ngwr-pagination.mjs.map +1 -1
  168. package/fesm2022/ngwr-popconfirm-testing.mjs +4 -1
  169. package/fesm2022/ngwr-popconfirm-testing.mjs.map +1 -1
  170. package/fesm2022/ngwr-popconfirm.mjs +41 -5
  171. package/fesm2022/ngwr-popconfirm.mjs.map +1 -1
  172. package/fesm2022/ngwr-popover.mjs +67 -12
  173. package/fesm2022/ngwr-popover.mjs.map +1 -1
  174. package/fesm2022/ngwr-schema-form.mjs +3 -0
  175. package/fesm2022/ngwr-schema-form.mjs.map +1 -1
  176. package/fesm2022/ngwr-select.mjs +100 -3
  177. package/fesm2022/ngwr-select.mjs.map +1 -1
  178. package/fesm2022/ngwr-sortable-list.mjs +2 -2
  179. package/fesm2022/ngwr-sortable-list.mjs.map +1 -1
  180. package/fesm2022/ngwr-table-testing.mjs +71 -3
  181. package/fesm2022/ngwr-table-testing.mjs.map +1 -1
  182. package/fesm2022/ngwr-table.mjs +173 -11
  183. package/fesm2022/ngwr-table.mjs.map +1 -1
  184. package/fesm2022/ngwr-tour-testing.mjs +13 -1
  185. package/fesm2022/ngwr-tour-testing.mjs.map +1 -1
  186. package/fesm2022/ngwr-tour.mjs +25 -16
  187. package/fesm2022/ngwr-tour.mjs.map +1 -1
  188. package/fesm2022/ngwr-tree-testing.mjs.map +1 -1
  189. package/fesm2022/ngwr-tree.mjs +52 -8
  190. package/fesm2022/ngwr-tree.mjs.map +1 -1
  191. package/fesm2022/ngwr-utils.mjs +64 -1
  192. package/fesm2022/ngwr-utils.mjs.map +1 -1
  193. package/fesm2022/ngwr-version.mjs +1 -1
  194. package/fesm2022/ngwr-version.mjs.map +1 -1
  195. package/fesm2022/ngwr-window.mjs +16 -9
  196. package/fesm2022/ngwr-window.mjs.map +1 -1
  197. package/graph/styles/_index.scss +87 -0
  198. package/i18n/ar.json +13 -4
  199. package/i18n/cs.json +13 -4
  200. package/i18n/de.json +13 -4
  201. package/i18n/en.json +13 -4
  202. package/i18n/es.json +13 -4
  203. package/i18n/fr.json +13 -4
  204. package/i18n/he.json +13 -4
  205. package/i18n/hi.json +13 -4
  206. package/i18n/id.json +13 -4
  207. package/i18n/it.json +13 -4
  208. package/i18n/ja.json +13 -4
  209. package/i18n/ko.json +13 -4
  210. package/i18n/nl.json +13 -4
  211. package/i18n/pl.json +13 -4
  212. package/i18n/pt.json +13 -4
  213. package/i18n/ru.json +13 -4
  214. package/i18n/sv.json +13 -4
  215. package/i18n/tr.json +13 -4
  216. package/i18n/uk.json +13 -4
  217. package/i18n/vi.json +13 -4
  218. package/i18n/zh-TW.json +13 -4
  219. package/i18n/zh.json +13 -4
  220. package/llms-full.txt +12 -12
  221. package/llms.txt +64 -27
  222. package/package.json +1 -1
  223. package/popconfirm/styles/_index.scss +6 -0
  224. package/popover/styles/_index.scss +24 -13
  225. package/schematics/collection.json +5 -0
  226. package/schematics/eject/index.js +158 -0
  227. package/schematics/eject/schema.js +8 -0
  228. package/schematics/eject/schema.json +24 -0
  229. package/schematics/eject/source.js +295 -0
  230. package/schematics/use/symbol-map.json +2 -0
  231. package/select/styles/_index.scss +13 -0
  232. package/skills/ngwr/SKILL.md +30 -3
  233. package/skills/ngwr/references/catalog.md +2 -2
  234. package/table/styles/_index.scss +24 -0
  235. package/theme/styles/_focus.scss +11 -1
  236. package/tour/styles/_index.scss +6 -0
  237. package/types/ngwr-carousel-testing.d.ts +29 -6
  238. package/types/ngwr-carousel.d.ts +52 -5
  239. package/types/ngwr-cascader-testing.d.ts +4 -3
  240. package/types/ngwr-cascader.d.ts +29 -7
  241. package/types/ngwr-charts-bar-chart-testing.d.ts +15 -13
  242. package/types/ngwr-charts-bar-chart.d.ts +220 -48
  243. package/types/ngwr-charts-boxplot-chart-testing.d.ts +9 -2
  244. package/types/ngwr-charts-boxplot-chart.d.ts +110 -19
  245. package/types/ngwr-charts-bullet-chart.d.ts +72 -12
  246. package/types/ngwr-charts-calendar-heatmap.d.ts +119 -15
  247. package/types/ngwr-charts-candlestick-chart-testing.d.ts +19 -9
  248. package/types/ngwr-charts-candlestick-chart.d.ts +195 -62
  249. package/types/ngwr-charts-chart-legend.d.ts +142 -5
  250. package/types/ngwr-charts-core.d.ts +259 -21
  251. package/types/ngwr-charts-donut-chart-testing.d.ts +11 -5
  252. package/types/ngwr-charts-donut-chart.d.ts +124 -16
  253. package/types/ngwr-charts-funnel-chart.d.ts +62 -6
  254. package/types/ngwr-charts-gauge-testing.d.ts +5 -1
  255. package/types/ngwr-charts-gauge.d.ts +72 -10
  256. package/types/ngwr-charts-heatmap-chart.d.ts +103 -20
  257. package/types/ngwr-charts-line-chart-testing.d.ts +16 -2
  258. package/types/ngwr-charts-line-chart.d.ts +215 -86
  259. package/types/ngwr-charts-meter-group.d.ts +96 -7
  260. package/types/ngwr-charts-radar-chart-testing.d.ts +14 -3
  261. package/types/ngwr-charts-radar-chart.d.ts +148 -28
  262. package/types/ngwr-charts-scatter-chart-testing.d.ts +22 -10
  263. package/types/ngwr-charts-scatter-chart.d.ts +188 -18
  264. package/types/ngwr-charts-sparkline.d.ts +26 -4
  265. package/types/ngwr-charts-treemap-chart.d.ts +121 -23
  266. package/types/ngwr-charts-waterfall-chart-testing.d.ts +8 -1
  267. package/types/ngwr-charts-waterfall-chart.d.ts +108 -21
  268. package/types/ngwr-color-picker.d.ts +27 -0
  269. package/types/ngwr-context-menu-testing.d.ts +10 -9
  270. package/types/ngwr-context-menu.d.ts +19 -0
  271. package/types/ngwr-copy-value.d.ts +8 -0
  272. package/types/ngwr-date-picker.d.ts +34 -2
  273. package/types/ngwr-dialog.d.ts +30 -10
  274. package/types/ngwr-drawer.d.ts +32 -1
  275. package/types/ngwr-dropdown-testing.d.ts +8 -5
  276. package/types/ngwr-dropdown.d.ts +31 -6
  277. package/types/ngwr-file-upload.d.ts +8 -2
  278. package/types/ngwr-graph-testing.d.ts +28 -0
  279. package/types/ngwr-graph.d.ts +263 -91
  280. package/types/ngwr-lightbox.d.ts +15 -0
  281. package/types/ngwr-overlay.d.ts +16 -1
  282. package/types/ngwr-popconfirm-testing.d.ts +11 -2
  283. package/types/ngwr-popconfirm.d.ts +28 -1
  284. package/types/ngwr-popover.d.ts +59 -9
  285. package/types/ngwr-select.d.ts +37 -0
  286. package/types/ngwr-table-testing.d.ts +52 -1
  287. package/types/ngwr-table.d.ts +102 -10
  288. package/types/ngwr-tour-testing.d.ts +10 -0
  289. package/types/ngwr-tour.d.ts +32 -4
  290. package/types/ngwr-tree-testing.d.ts +1 -2
  291. package/types/ngwr-tree.d.ts +35 -2
  292. package/types/ngwr-utils.d.ts +79 -1
  293. package/types/ngwr-version.d.ts +1 -1
  294. package/types/ngwr-window.d.ts +14 -11
  295. package/window/styles/_index.scss +5 -10
@@ -38,17 +38,17 @@ interface WrCandlestickDatum {
38
38
  */
39
39
  readonly close: number;
40
40
  }
41
- /** One candle as the chart draws it: its prices and where it sits. */
41
+ /** One candle as the chart draws it: where it sits, and what it stands for. */
42
42
  interface DrawnCandle {
43
- /** Its position in `data`, which is its slot on the x axis and what it is tracked by. */
43
+ /**
44
+ * The position in `data` of its period, or of the first of the periods merged into it:
45
+ * its slot on the x axis and what it is tracked by.
46
+ */
44
47
  readonly index: number;
45
- readonly label: string;
46
- readonly open: number;
47
- readonly high: number;
48
- readonly low: number;
49
- readonly close: number;
50
- /** Whether it closed at or above its open: drawn hollow in the increase colour, else filled in the decrease one. */
51
- readonly increase: boolean;
48
+ /** Its classes, by its direction: the increase colour for a close at or above the open, else the decrease one. */
49
+ readonly classes: string;
50
+ /** Its position and its four prices, `index open high low close`: what the test harness reads. */
51
+ readonly figures: string;
52
52
  /** Its centre, as a percentage of the drawing's width from the left. */
53
53
  readonly left: number;
54
54
  /** Its top — the higher of the high and the body — as a percentage of the drawing's height from the top. */
@@ -77,28 +77,34 @@ interface DrawnCandle {
77
77
  * />
78
78
  * ```
79
79
  *
80
- * **A rise and a fall are told apart twice.** A rising candle, one that closed at or
81
- * above its open, is drawn HOLLOW in the increase colour, success by default; a falling
82
- * one FILLED in the decrease colour, danger by default — the words, the modifiers and
83
- * the hooks the waterfall chart uses for a change up and a change down. The two intents
84
- * sit within 1.004:1 of each other in luminance, so the fill is what a reader without
85
- * red-green vision reads, and what survives greyscale and print. `increaseColor` and
86
- * `decreaseColor` swap the colours — for a market that draws rises in red — and leave
87
- * the fill alone. So the fill always has room
88
- * to show, every body is drawn at least tall enough to hold it: its two edges and a 2px
89
- * inside (4px at the default edge), or two dashes and the gap between them while dense
90
- * (5px). It grows into its own wicks, so the high and the low stay put. A candle that
91
- * barely moved is drawn a few pixels taller than its prices, in both directions alike,
92
- * rather than as a line whose direction only its colour would tell.
80
+ * **A rise and a fall.** A rising candle, one that closed at or above its open, is drawn
81
+ * in the increase colour, success by default; a falling one in the decrease colour,
82
+ * danger by default - the words, the modifiers and the hooks the waterfall chart uses
83
+ * for a change up and a change down. Both bodies are SOLID: a hollow rising body was two
84
+ * 1px edges, which read thin beside every other chart's marks. The two intents sit
85
+ * within 1.004:1 of each other in luminance, so on the drawing alone the direction is
86
+ * colour; the tooltip gives the open and the close, `dataTable` gives every price, and
87
+ * `hollow` draws a rising body as an outline again, the cue that survives greyscale and
88
+ * print. `increaseColor` and `decreaseColor` swap the colours, for a market that draws
89
+ * rises in red. Every body is drawn at least 4px tall (5px while dense), growing into its
90
+ * own wicks, so the high and the low stay put and a candle that barely moved is still a
91
+ * body rather than a line.
93
92
  *
94
93
  * **Many candles thin out rather than pile up.** A body takes 70% of its slot, between
95
94
  * 1px and `--wr-candlestick-chart-body-max-width`, so the gaps close as the candles
96
- * crowd. Once a body is under 4px wide it has no inside to leave hollow, and the chart
97
- * is drawn `--dense`: a rising body is dotted rather than outlined, so the second
98
- * channel holds. The x labels are thinned to every n-th, the smallest n that keeps the
99
- * widest label clear of its neighbours. Both are decided on the drawing's measured
100
- * width, after render, so the server and the first paint assume a 560px drawing. Past a
101
- * candle per pixel the candles overlap; aggregate the periods first.
95
+ * crowd. Once a body is under 4px wide the chart is drawn `--dense`, which under
96
+ * `hollow` dots a rising body rather than outlining it. Past two candles a pixel the
97
+ * periods are merged (`decimate`, on by default): each drawn candle then stands for a
98
+ * run of periods - the open of the first, the close of the last, the highest high and
99
+ * the lowest low - one every two pixels, while the tooltip and the data table keep every
100
+ * period. The x labels are thinned to every n-th, the smallest n that keeps the widest
101
+ * label clear of its neighbours. All of it is decided on the drawing's measured width,
102
+ * after render, so the server and the first paint assume a 560px drawing.
103
+ *
104
+ * **Grid, axis and states.** Gridlines cross the plot at every tick of the price axis
105
+ * (`showGrid`) with the scale beside it (`showAxis`), both on by default. With nothing
106
+ * to draw the chart keeps that frame and says "No data"; `loading` and `error` put
107
+ * their own message there in place of the candles.
102
108
  *
103
109
  * The y axis is fitted to the lows and highs shown with no zero forced in, since a price
104
110
  * has no baseline, and snapped outward to a readable step, so no wick ends on the frame.
@@ -125,14 +131,14 @@ export declare class WrCandlestickChart {
125
131
  protected readonly resolvedAriaLabel: import("@angular/core").Signal<string>;
126
132
  /**
127
133
  * The colour of a rising candle, any CSS colour. `null` keeps
128
- * `--wr-candlestick-chart-increase-color`, which is `var(--wr-color-success)`. A rising
129
- * candle is hollow whatever its colour. @default null
134
+ * `--wr-candlestick-chart-increase-color`, which is `var(--wr-color-success)`.
135
+ * @default null
130
136
  */
131
137
  readonly increaseColor: import("@angular/core").InputSignal<string | null>;
132
138
  /**
133
139
  * The colour of a falling candle, any CSS colour. `null` keeps
134
- * `--wr-candlestick-chart-decrease-color`, which is `var(--wr-color-danger)`. A falling
135
- * candle is filled whatever its colour. @default null
140
+ * `--wr-candlestick-chart-decrease-color`, which is `var(--wr-color-danger)`.
141
+ * @default null
136
142
  */
137
143
  readonly decreaseColor: import("@angular/core").InputSignal<string | null>;
138
144
  /**
@@ -149,12 +155,59 @@ export declare class WrCandlestickChart {
149
155
  /** The plot's height in px, at least 80. @default 240 */
150
156
  readonly height: import("@angular/core").InputSignalWithTransform<number, unknown>;
151
157
  /**
152
- * Show the gridlines and the y-axis ticks. The period labels under the candles are the
153
- * time axis, so they stay either way, as the line chart's `xLabels` do. @default true
158
+ * Draw the gridlines: one across the plot at every tick of the price axis. Their colour
159
+ * is `--wr-candlestick-chart-grid-color`, which defaults to the chart theme's
160
+ * `--wr-chart-grid`. @default true
154
161
  */
155
162
  readonly showGrid: import("@angular/core").InputSignalWithTransform<boolean, any>;
156
- /** Show a tooltip with the period's open, high, low and close under the pointer. Pointer only. @default true */
157
- readonly tooltip: import("@angular/core").InputSignalWithTransform<boolean, any>;
163
+ /**
164
+ * Draw the price axis' scale: a number beside the plot at every tick. The period labels
165
+ * under the candles are the time axis, so they stay either way, as the line chart's
166
+ * `xLabels` do. @default true
167
+ */
168
+ readonly showAxis: import("@angular/core").InputSignalWithTransform<boolean, any>;
169
+ /**
170
+ * Draw a rising body as an outline rather than solid, so a rise and a fall are told
171
+ * apart by fill as well as by colour: the cue that survives greyscale, print and
172
+ * red-green colour blindness. A body too narrow to show an inside (under 4px) is dotted
173
+ * instead. A falling body is solid either way. @default false
174
+ */
175
+ readonly hollow: import("@angular/core").InputSignalWithTransform<boolean, any>;
176
+ /**
177
+ * Merge the periods once there are more than two a pixel of the drawing: each drawn
178
+ * candle then stands for a run of them, with the open of the first, the close of the
179
+ * last, the highest high and the lowest low, so the chart's extremes, its first open
180
+ * and its last close are all still drawn, at one candle every two pixels instead of
181
+ * two elements a period. The tooltip reads the period under the pointer and the data
182
+ * table lists every one, merged or not. Off draws a candle per period whatever their
183
+ * number. @default true
184
+ */
185
+ readonly decimate: import("@angular/core").InputSignalWithTransform<boolean, any>;
186
+ /**
187
+ * A request for the chart's data is in flight: the candles give way to the loading
188
+ * message, over the grid and the axis the chart keeps. @default false
189
+ */
190
+ readonly loading: import("@angular/core").InputSignalWithTransform<boolean, any>;
191
+ /**
192
+ * The chart's data failed to load: the candles give way to the error message. `loading`
193
+ * comes first when both are set. @default false
194
+ */
195
+ readonly error: import("@angular/core").InputSignalWithTransform<boolean, any>;
196
+ /** The message shown with nothing to draw. Falls back to `chart.empty`, then `'No data'`. */
197
+ readonly emptyLabel: import("@angular/core").InputSignal<string | null>;
198
+ /** The message shown while `loading`. Falls back to `chart.loading`, then `'Loading…'`. */
199
+ readonly loadingLabel: import("@angular/core").InputSignal<string | null>;
200
+ /** The message shown on `error`. Falls back to `chart.error`, then `'Could not load'`. */
201
+ readonly errorLabel: import("@angular/core").InputSignal<string | null>;
202
+ /**
203
+ * Show a tooltip with the period's open, high, low and close under the pointer.
204
+ * Pointer only.
205
+ *
206
+ * By default the pointer passes under the chip to the chart, so the next section
207
+ * answers at once and the chip closes off the chart; `'hoverable'` lets the pointer
208
+ * rest on the chip instead, as WCAG 1.4.13 asks of a hint. @default true
209
+ */
210
+ readonly tooltip: import("@angular/core").InputSignalWithTransform<boolean | "hoverable", unknown>;
158
211
  /**
159
212
  * Render every period's prices as a table only assistive technology reaches, beside
160
213
  * the drawing: a row per period, headed by its label, and a column each for the open,
@@ -177,10 +230,25 @@ export declare class WrCandlestickChart {
177
230
  * render, which decide against {@link ASSUMED_WIDTH} instead.
178
231
  */
179
232
  private readonly measured;
233
+ /** The drawing's box, on the observer every chart shares: what a resize re-measures on. */
234
+ private readonly drawingSize;
180
235
  constructor();
181
236
  /** How many slots the x axis has: one per period, drawn or not. */
182
237
  protected readonly slots: import("@angular/core").Signal<number>;
183
- /** One slot's share of the drawing's width, in percent: what the stylesheet sizes a body against. */
238
+ /**
239
+ * How many periods one drawn candle stands for: 1 until there are more than two a pixel
240
+ * of the drawing, measured or assumed, and `decimate` is on. A number of periods rather
241
+ * than the width, so a resize that leaves it alone rebuilds no candle.
242
+ */
243
+ private readonly per;
244
+ /** The candles to draw, each one period or a run of `per` merged: every one whose prices are finite. */
245
+ private readonly merged;
246
+ /** How many slots the candles drawn share the axis among: the periods, or the runs they are merged into. */
247
+ private readonly drawnSlots;
248
+ /**
249
+ * One drawn candle's share of the drawing's width, in percent: what the stylesheet sizes
250
+ * a body and the hover band against.
251
+ */
184
252
  protected readonly slot: import("@angular/core").Signal<number>;
185
253
  /**
186
254
  * The y axis, from `wrChartAxis` over every candle drawn: fitted from the lowest of the
@@ -190,35 +258,44 @@ export declare class WrCandlestickChart {
190
258
  * nothing to draw, the 0 to 1 frame.
191
259
  *
192
260
  * A high below the body or a low above it counts as the body's edge, so nothing is
193
- * drawn outside the frame.
261
+ * drawn outside the frame. Read off the merged candles, which keep the data's extremes.
194
262
  */
195
263
  protected readonly axis: import("@angular/core").Signal<import("ngwr/charts/core").WrChartAxis>;
196
264
  /**
197
- * The candles as drawn: every period whose four prices are finite, placed on its slot
198
- * and on the axis, with its wicks as shares of its own height so the stylesheet can
199
- * draw both and the body between them.
265
+ * The candles as drawn: placed on the middle of the slots each stands for and on the
266
+ * axis, with its wicks as shares of its own height so the stylesheet can draw both and
267
+ * the body between them.
200
268
  */
201
269
  protected readonly candles: import("@angular/core").Signal<readonly DrawnCandle[]>;
202
- /** Each drawn candle's position in {@link candles}, by its slot: how the tooltip finds a candle's element. */
270
+ /**
271
+ * Where the candle of each drawn slot is in {@link candles}, or -1 for a slot that draws
272
+ * none: how the tooltip finds the element of the candle a period is drawn in.
273
+ */
203
274
  private readonly positions;
204
- /** One slot's width in px: measured, or against the assumed drawing. */
275
+ /** The position in {@link candles} of the candle period `index` is drawn in, or -1 where it has none of its own. */
276
+ private drawnAt;
277
+ /** One drawn slot's width in px: measured, or against the assumed drawing. */
205
278
  private readonly slotPx;
279
+ /** One period's width in px, merged or not: what the x labels are spaced against. */
280
+ private readonly periodPx;
206
281
  /**
207
- * Whether a body is too narrow to leave hollow — under 4px wide, measured off the
282
+ * Whether a body is too narrow to show an inside - under 4px wide, measured off the
208
283
  * first candle, or worked out from the assumed drawing before a browser has measured
209
- * it. A dense chart dots its rising bodies instead (see the stylesheet). A chart with
210
- * no candle is never dense.
284
+ * it. Under `hollow` a dense chart dots its rising bodies instead (see the stylesheet).
285
+ * A chart with no candle is never dense.
211
286
  */
212
287
  protected readonly dense: import("@angular/core").Signal<boolean>;
213
288
  /** The longest period label, by its characters: what the room for the x labels is estimated from before a browser has measured. */
214
289
  private readonly longestLabel;
215
290
  /**
216
- * Every period label once, a line each: the hidden copy the x labels' room is measured
217
- * against. Laid out as wide as its widest line, so it measures the widest label rather
218
- * than the one with the most characters — `WWWWWWW` is wider than `iiiiiiii`. A line
219
- * break inside a label is a space here, as the printed label shows it.
291
+ * The longest few period labels, a line each: the hidden copy the x labels' room is
292
+ * measured against. Laid out as wide as its widest line, so among those few it measures
293
+ * the widest rather than the one with the most characters - `WWWWWWW` is wider than
294
+ * `iiiiiiii`. A few and not every label: ten thousand periods were ten thousand lines
295
+ * to shape on every change to the labels. A line break inside a label is a space here,
296
+ * as the printed label shows it.
220
297
  */
221
- protected readonly probeText: import("@angular/core").Signal<string>;
298
+ protected readonly probes: import("@angular/core").Signal<string>;
222
299
  /**
223
300
  * How wide a period label is taken to be, in px: the widest one as a browser measured
224
301
  * it, or seven pixels a character of the longest before it has. Every label is spaced as
@@ -250,11 +327,18 @@ export declare class WrCandlestickChart {
250
327
  }[]>;
251
328
  /** The room each printed label has, as a percentage of the drawing's width: `labelEvery` slots, at most all of it. */
252
329
  protected readonly xSlot: import("@angular/core").Signal<number>;
253
- /** The y ticks, top to bottom: each value's label and its gridline's distance from the top, in percent. */
330
+ /**
331
+ * The y ticks, top to bottom: each value's label, its gridline's distance from the top
332
+ * in percent, and whether it is zero, whose line is drawn stronger. The labels are
333
+ * written only for the scale: with `showAxis` off nothing prints them.
334
+ */
254
335
  protected readonly yTicks: import("@angular/core").Signal<{
255
336
  label: string;
256
337
  top: number;
338
+ zero: boolean;
257
339
  }[]>;
340
+ /** How many fraction digits the axis step is written with. */
341
+ private readonly stepDigits;
258
342
  /**
259
343
  * How many fraction digits an exact price is written with, at most: as many as the
260
344
  * most precise finite price in `data` has, and at least as many as the axis step,
@@ -277,10 +361,17 @@ export declare class WrCandlestickChart {
277
361
  * be reached by moving onto it.
278
362
  */
279
363
  protected readonly tip: import("ngwr/popover").WrChartTooltip;
280
- /** The slot the tooltip is reading, marked by a band behind its candle. */
364
+ /**
365
+ * The slot the tooltip is reading, marked by a band behind its candle: the period's
366
+ * own slot, or the whole of the run it is merged into.
367
+ */
281
368
  protected readonly activeSlot: import("@angular/core").Signal<{
282
369
  left: number;
283
370
  } | null>;
371
+ /** Whether the chart has nothing to draw: no period, or none whose four prices are finite. */
372
+ private readonly empty;
373
+ /** What the chart shows in place of its candles, or `null` while it draws them. */
374
+ protected readonly state: import("@angular/core").Signal<import("ngwr/charts/core").WrChartStateView | null>;
284
375
  /**
285
376
  * The figures for `dataTable`: the chart's name as the caption, a row per period headed
286
377
  * by its label, and the open, high, low and close written as the tooltip writes them.
@@ -289,22 +380,24 @@ export declare class WrCandlestickChart {
289
380
  */
290
381
  protected readonly tableData: import("@angular/core").Signal<WrChartTableData>;
291
382
  /**
292
- * The candle under the pointer. A MOUSE event, as every chart's is: a tap fires the
293
- * compatibility `mousemove` and no `pointermove`. Over a slot with no candle, the open
294
- * tooltip starts its grace period.
383
+ * The pointer over the plot, while no chip is up: an open chip follows the pointer by
384
+ * itself, through `slotAt`, so each move is measured once. A MOUSE event, as every
385
+ * chart's is: a tap fires the compatibility `mousemove` and no `pointermove`. Over a
386
+ * slot with no candle, the open tooltip starts its grace period.
295
387
  */
296
- protected onPointerMove(event: MouseEvent): void;
388
+ private onPointerMove;
297
389
  /**
298
390
  * The slot under a viewport position, if a candle is drawn there: across the drawing's
299
391
  * width, and anywhere down the plot, its padding included. A drawing with no box
300
- * (nothing laid out yet) answers nothing.
392
+ * (nothing laid out yet) answers nothing. One layout read: the plot's box is the
393
+ * drawing's, taller by the padding last measured.
301
394
  */
302
395
  private slotAt;
303
396
  /**
304
- * Read the drawing's width, the widest label's and one body's off the layout. A
305
- * hidden chart measures 0 and keeps its last reading rather than thin to nothing; a
306
- * label or a body with nothing to measure — no period, no candle — reads 0 and leaves
307
- * the estimate in charge of what it decides.
397
+ * Read the drawing's width, the widest label's, one body's and the plot's padding off
398
+ * the layout. A hidden chart measures 0 and keeps its last reading rather than thin to
399
+ * nothing; a label or a body with nothing to measure - no period, no candle - reads 0
400
+ * and leaves the estimate in charge of what it decides.
308
401
  */
309
402
  private measure;
310
403
  /** Whether a period can be drawn: all four prices finite. */
@@ -346,6 +439,46 @@ export declare class WrCandlestickChart {
346
439
  "required": false;
347
440
  "isSignal": true;
348
441
  };
442
+ "showAxis": {
443
+ "alias": "showAxis";
444
+ "required": false;
445
+ "isSignal": true;
446
+ };
447
+ "hollow": {
448
+ "alias": "hollow";
449
+ "required": false;
450
+ "isSignal": true;
451
+ };
452
+ "decimate": {
453
+ "alias": "decimate";
454
+ "required": false;
455
+ "isSignal": true;
456
+ };
457
+ "loading": {
458
+ "alias": "loading";
459
+ "required": false;
460
+ "isSignal": true;
461
+ };
462
+ "error": {
463
+ "alias": "error";
464
+ "required": false;
465
+ "isSignal": true;
466
+ };
467
+ "emptyLabel": {
468
+ "alias": "emptyLabel";
469
+ "required": false;
470
+ "isSignal": true;
471
+ };
472
+ "loadingLabel": {
473
+ "alias": "loadingLabel";
474
+ "required": false;
475
+ "isSignal": true;
476
+ };
477
+ "errorLabel": {
478
+ "alias": "errorLabel";
479
+ "required": false;
480
+ "isSignal": true;
481
+ };
349
482
  "tooltip": {
350
483
  "alias": "tooltip";
351
484
  "required": false;
@@ -11,6 +11,11 @@ import { InjectionToken } from "@angular/core";
11
11
  * Every shape has the area of the circle at the same size, so none reads heavier.
12
12
  */
13
13
  type WrChartMarker = 'circle' | 'square' | 'triangle' | 'diamond' | 'cross' | 'triangle-down';
14
+ /**
15
+ * Where a legend sits beside its chart: above or below it as a wrapping row, at inline
16
+ * start or end as a column, or `none` to draw nothing.
17
+ */
18
+ type WrChartLegendPosition = 'top' | 'bottom' | 'start' | 'end' | 'none';
14
19
  /** One row of a `ul[wr-chart-legend]`: the key, the name, and optionally a value. */
15
20
  interface WrChartLegendItem {
16
21
  /** The series' name. Printed as the row's text, and the toggle's name when the legend is `toggleable`. */
@@ -42,6 +47,24 @@ interface WrChartLegendToggle {
42
47
  /** Whether the series is hidden now. */
43
48
  readonly hidden: boolean;
44
49
  }
50
+ /** Which of the three keys a row draws. */
51
+ type Key = 'line' | 'marker' | 'dot';
52
+ /**
53
+ * One row as the template draws it: everything it binds, worked out once per change of
54
+ * `items`. The template reads nothing off the item itself.
55
+ */
56
+ interface Row {
57
+ readonly label: string;
58
+ readonly color: string;
59
+ readonly key: Key;
60
+ /** The dash of a line key, `null` for a solid line or another key. */
61
+ readonly dash: string | null;
62
+ readonly marker: WrChartMarker | null;
63
+ /** The marker's path at the size its key draws it, `null` with no marker. */
64
+ readonly path: string | null;
65
+ /** The value printed after the label, `null` for none. */
66
+ readonly value: string | null;
67
+ }
45
68
  /**
46
69
  * A chart's key: one row per series, each a swatch, a name and an optional value.
47
70
  * It stands on its own for a key that several charts share — one legend above a row
@@ -55,6 +78,16 @@ interface WrChartLegendToggle {
55
78
  * inline background, a line or a marker is an SVG, and every key is `aria-hidden`:
56
79
  * the row's text is its name.
57
80
  *
81
+ * **`position` says where the legend sits beside its chart**: `top`, `bottom`, `start`
82
+ * or `end`, or `none` to draw nothing. Above and below it is a wrapping row; at inline
83
+ * start or end it is a column. A chart that draws its own legend forwards its
84
+ * `legendPosition` here and places the list; a legend that stands alone is placed by
85
+ * the app, and `position` only picks the row or the column.
86
+ *
87
+ * **Hovering a row dims the rest of its chart.** Every row carries `data-wr-series`
88
+ * with its position, the attribute a chart puts on that series' marks, so the chart's
89
+ * hover fades every other series while the pointer is on a row.
90
+ *
58
91
  * **Toggling is opt-in.** With `toggleable`, every row is a
59
92
  * `<button type="button" aria-pressed>` that shows and hides its series: pressed
60
93
  * means shown, and `hiddenSeries` holds the positions of the hidden ones. The rows
@@ -90,6 +123,13 @@ export declare class WrChartLegend {
90
123
  constructor();
91
124
  /** One row per series, in the chart's order. */
92
125
  readonly items: import("@angular/core").InputSignal<readonly WrChartLegendItem[]>;
126
+ /**
127
+ * Where the legend sits beside its chart. `top` and `bottom` lay the rows out in a
128
+ * wrapping line, `start` and `end` in a column, and `none` draws nothing - the
129
+ * list stays in the DOM, hidden, so `hiddenSeries` keeps working from outside.
130
+ * @default 'bottom'
131
+ */
132
+ readonly position: import("@angular/core").InputSignal<WrChartLegendPosition>;
93
133
  /**
94
134
  * Make each row a toggle button that shows and hides its series, through
95
135
  * `hiddenSeries` and `toggled`. @default false
@@ -127,10 +167,24 @@ export declare class WrChartLegend {
127
167
  private readonly hidden;
128
168
  /** Whether the series at `index` is hidden. */
129
169
  protected isHidden(index: number): boolean;
130
- /** The host chart's own class for one part of a row, or nothing outside a chart. */
131
- protected part(name: 'legend-item' | 'swatch' | 'legend-label' | 'legend-value'): string;
132
- /** A marker's path, as large as a circle of radius `r` in the swatch's own units. */
133
- protected markerPath(shape: WrChartMarker, r: number): string;
170
+ /**
171
+ * The host chart's own class for each part of a row, or nothing outside a chart. Fixed
172
+ * for the legend's life, so they are written once: asked for in the template, each was
173
+ * built again for every part of every row on every pass over the chart, which a chart
174
+ * makes whenever its own view is checked.
175
+ */
176
+ protected readonly parts: {
177
+ item: string;
178
+ swatch: string;
179
+ label: string;
180
+ value: string;
181
+ };
182
+ /**
183
+ * The rows as drawn, one per item: which key each draws and its marker's path, built
184
+ * when `items` changes rather than on every pass. A path is a string of a dozen
185
+ * numbers, and fifty series built fifty of them for every hover of their chart.
186
+ */
187
+ protected readonly rows: import("@angular/core").Signal<readonly Row[]>;
134
188
  /** Shows or hides the series at `index`, then says so. */
135
189
  protected toggle(index: number): void;
136
190
  static ɵfac: i0.ɵɵFactoryDeclaration<WrChartLegend, never>;
@@ -140,6 +194,11 @@ export declare class WrChartLegend {
140
194
  "required": false;
141
195
  "isSignal": true;
142
196
  };
197
+ "position": {
198
+ "alias": "position";
199
+ "required": false;
200
+ "isSignal": true;
201
+ };
143
202
  "toggleable": {
144
203
  "alias": "toggleable";
145
204
  "required": false;
@@ -165,6 +224,84 @@ export declare class WrChartLegend {
165
224
  "toggled": "toggled";
166
225
  }, never, never, true, never>;
167
226
  }
227
+ /**
228
+ * The key of a colour scale: its steps side by side, lowest first, between the labels of
229
+ * its two ends. What a heatmap and a calendar heatmap draw where a categorical chart
230
+ * draws `ul[wr-chart-legend]`, and it stands on its own for a key several charts share.
231
+ *
232
+ * Not a mode of the legend: a legend is a list of series, each a row a reader can name,
233
+ * hover and toggle, and a scale is one ramp with two ends and no rows. It lives beside
234
+ * the legend because it takes the legend's place: the same `position`, the same room
235
+ * from its chart (`--wr-chart-legend-space`), the same type.
236
+ *
237
+ * Each step is painted by an inline background, any CSS colour, so a chart hands over the
238
+ * paints it draws its own cells with. Whatever the chart projects into it follows the
239
+ * ramp: a heatmap adds the key of an empty cell there.
240
+ *
241
+ * `block` adds the host chart's own classes to the parts, as `WR_CHART_LEGEND_BLOCK`
242
+ * does for a legend: `<block>__legend-label`, `<block>__scale` and `<block>__swatch`,
243
+ * the classes the heatmap drew its key with before it drew it through this.
244
+ *
245
+ * It announces nothing of its own: where the figures it keys are in text elsewhere, as a
246
+ * chart's are in its data table, hide it with `aria-hidden`.
247
+ *
248
+ * @example
249
+ * ```html
250
+ * <wr-chart-scale aria-hidden="true" minLabel="0" maxLabel="120" [steps]="paints" />
251
+ * ```
252
+ *
253
+ * @see https://ngwr.dev/charts/chart-legend
254
+ */
255
+ export declare class WrChartScale {
256
+ constructor();
257
+ /** The paint of each step, lowest first: any CSS colour, `var(--wr-…)` included. */
258
+ readonly steps: import("@angular/core").InputSignal<readonly string[]>;
259
+ /** What the lowest step stands for, written before the ramp. `null` writes nothing. */
260
+ readonly minLabel: import("@angular/core").InputSignal<string | null>;
261
+ /** What the highest step stands for, written after the ramp. `null` writes nothing. */
262
+ readonly maxLabel: import("@angular/core").InputSignal<string | null>;
263
+ /**
264
+ * Where the key sits beside its chart, as a legend's `position`: it picks the margin
265
+ * that keeps it off the chart, and `none` draws nothing. @default 'bottom'
266
+ */
267
+ readonly position: import("@angular/core").InputSignal<WrChartLegendPosition>;
268
+ /** The host chart's block, for its own class on each part. `null` adds none. */
269
+ readonly block: import("@angular/core").InputSignal<string | null>;
270
+ /** The host chart's own class for each part, or nothing outside a chart. */
271
+ protected readonly parts: import("@angular/core").Signal<{
272
+ label: string;
273
+ ramp: string;
274
+ step: string;
275
+ }>;
276
+ static ɵfac: i0.ɵɵFactoryDeclaration<WrChartScale, never>;
277
+ static ɵcmp: i0.ɵɵComponentDeclaration<WrChartScale, "wr-chart-scale", never, {
278
+ "steps": {
279
+ "alias": "steps";
280
+ "required": false;
281
+ "isSignal": true;
282
+ };
283
+ "minLabel": {
284
+ "alias": "minLabel";
285
+ "required": false;
286
+ "isSignal": true;
287
+ };
288
+ "maxLabel": {
289
+ "alias": "maxLabel";
290
+ "required": false;
291
+ "isSignal": true;
292
+ };
293
+ "position": {
294
+ "alias": "position";
295
+ "required": false;
296
+ "isSignal": true;
297
+ };
298
+ "block": {
299
+ "alias": "block";
300
+ "required": false;
301
+ "isSignal": true;
302
+ };
303
+ }, {}, never, ["*"], true, never>;
304
+ }
168
305
  /**
169
306
  * The BEM block of the chart a legend is drawn inside, provided by that chart:
170
307
  * `'wr-donut-chart'` makes every row also carry `.wr-donut-chart__legend-item`,
@@ -181,4 +318,4 @@ export declare class WrChartLegend {
181
318
  * @internal
182
319
  */
183
320
  export declare const WR_CHART_LEGEND_BLOCK: InjectionToken<string>;
184
- export type { WrChartLegendItem, WrChartLegendToggle, WrChartMarker };
321
+ export type { WrChartLegendItem, WrChartLegendPosition, WrChartLegendToggle, WrChartMarker };