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.
- package/carousel/styles/_index.scss +53 -1
- package/charts/bar-chart/styles/_index.scss +494 -305
- package/charts/boxplot-chart/styles/_index.scss +114 -48
- package/charts/bullet-chart/styles/_index.scss +113 -42
- package/charts/calendar-heatmap/styles/_index.scss +111 -20
- package/charts/candlestick-chart/styles/_index.scss +61 -26
- package/charts/chart-legend/styles/_index.scss +119 -1
- package/charts/core/styles/_index.scss +201 -5
- package/charts/donut-chart/styles/_index.scss +76 -21
- package/charts/funnel-chart/styles/_index.scss +66 -38
- package/charts/gauge/styles/_index.scss +12 -1
- package/charts/heatmap-chart/styles/_index.scss +90 -53
- package/charts/line-chart/styles/_index.scss +143 -139
- package/charts/meter-group/styles/_index.scss +87 -25
- package/charts/radar-chart/styles/_index.scss +82 -40
- package/charts/scatter-chart/styles/_index.scss +117 -44
- package/charts/sparkline/styles/_index.scss +7 -1
- package/charts/treemap-chart/styles/_index.scss +94 -42
- package/charts/waterfall-chart/styles/_index.scss +150 -87
- package/color-picker/styles/_index.scss +7 -3
- package/copy-value/styles/_index.scss +21 -2
- package/date-stamp/styles/_index.scss +2 -1
- package/dialog/styles/_index.scss +6 -0
- package/drawer/styles/_index.scss +5 -1
- package/fesm2022/ngwr-breadcrumbs.mjs +2 -2
- package/fesm2022/ngwr-breadcrumbs.mjs.map +1 -1
- package/fesm2022/ngwr-carousel-testing.mjs +27 -1
- package/fesm2022/ngwr-carousel-testing.mjs.map +1 -1
- package/fesm2022/ngwr-carousel.mjs +86 -4
- package/fesm2022/ngwr-carousel.mjs.map +1 -1
- package/fesm2022/ngwr-cascader-testing.mjs.map +1 -1
- package/fesm2022/ngwr-cascader.mjs +56 -25
- package/fesm2022/ngwr-cascader.mjs.map +1 -1
- package/fesm2022/ngwr-charts-bar-chart-testing.mjs +16 -14
- package/fesm2022/ngwr-charts-bar-chart-testing.mjs.map +1 -1
- package/fesm2022/ngwr-charts-bar-chart.mjs +399 -141
- package/fesm2022/ngwr-charts-bar-chart.mjs.map +1 -1
- package/fesm2022/ngwr-charts-boxplot-chart-testing.mjs +19 -5
- package/fesm2022/ngwr-charts-boxplot-chart-testing.mjs.map +1 -1
- package/fesm2022/ngwr-charts-boxplot-chart.mjs +250 -56
- package/fesm2022/ngwr-charts-boxplot-chart.mjs.map +1 -1
- package/fesm2022/ngwr-charts-bullet-chart.mjs +118 -18
- package/fesm2022/ngwr-charts-bullet-chart.mjs.map +1 -1
- package/fesm2022/ngwr-charts-calendar-heatmap.mjs +266 -46
- package/fesm2022/ngwr-charts-calendar-heatmap.mjs.map +1 -1
- package/fesm2022/ngwr-charts-candlestick-chart-testing.mjs +21 -10
- package/fesm2022/ngwr-charts-candlestick-chart-testing.mjs.map +1 -1
- package/fesm2022/ngwr-charts-candlestick-chart.mjs +319 -72
- package/fesm2022/ngwr-charts-candlestick-chart.mjs.map +1 -1
- package/fesm2022/ngwr-charts-chart-legend.mjs +211 -9
- package/fesm2022/ngwr-charts-chart-legend.mjs.map +1 -1
- package/fesm2022/ngwr-charts-core.mjs +299 -18
- package/fesm2022/ngwr-charts-core.mjs.map +1 -1
- package/fesm2022/ngwr-charts-donut-chart-testing.mjs.map +1 -1
- package/fesm2022/ngwr-charts-donut-chart.mjs +206 -27
- package/fesm2022/ngwr-charts-donut-chart.mjs.map +1 -1
- package/fesm2022/ngwr-charts-funnel-chart-testing.mjs +4 -4
- package/fesm2022/ngwr-charts-funnel-chart-testing.mjs.map +1 -1
- package/fesm2022/ngwr-charts-funnel-chart.mjs +113 -10
- package/fesm2022/ngwr-charts-funnel-chart.mjs.map +1 -1
- package/fesm2022/ngwr-charts-gauge-testing.mjs.map +1 -1
- package/fesm2022/ngwr-charts-gauge.mjs +98 -12
- package/fesm2022/ngwr-charts-gauge.mjs.map +1 -1
- package/fesm2022/ngwr-charts-heatmap-chart.mjs +226 -31
- package/fesm2022/ngwr-charts-heatmap-chart.mjs.map +1 -1
- package/fesm2022/ngwr-charts-line-chart-testing.mjs +16 -4
- package/fesm2022/ngwr-charts-line-chart-testing.mjs.map +1 -1
- package/fesm2022/ngwr-charts-line-chart.mjs +407 -172
- package/fesm2022/ngwr-charts-line-chart.mjs.map +1 -1
- package/fesm2022/ngwr-charts-meter-group-testing.mjs +4 -4
- package/fesm2022/ngwr-charts-meter-group-testing.mjs.map +1 -1
- package/fesm2022/ngwr-charts-meter-group.mjs +223 -31
- package/fesm2022/ngwr-charts-meter-group.mjs.map +1 -1
- package/fesm2022/ngwr-charts-radar-chart-testing.mjs +2 -1
- package/fesm2022/ngwr-charts-radar-chart-testing.mjs.map +1 -1
- package/fesm2022/ngwr-charts-radar-chart.mjs +255 -66
- package/fesm2022/ngwr-charts-radar-chart.mjs.map +1 -1
- package/fesm2022/ngwr-charts-scatter-chart-testing.mjs +39 -18
- package/fesm2022/ngwr-charts-scatter-chart-testing.mjs.map +1 -1
- package/fesm2022/ngwr-charts-scatter-chart.mjs +431 -53
- package/fesm2022/ngwr-charts-scatter-chart.mjs.map +1 -1
- package/fesm2022/ngwr-charts-sparkline.mjs +19 -8
- package/fesm2022/ngwr-charts-sparkline.mjs.map +1 -1
- package/fesm2022/ngwr-charts-treemap-chart.mjs +253 -44
- package/fesm2022/ngwr-charts-treemap-chart.mjs.map +1 -1
- package/fesm2022/ngwr-charts-waterfall-chart-testing.mjs +15 -7
- package/fesm2022/ngwr-charts-waterfall-chart-testing.mjs.map +1 -1
- package/fesm2022/ngwr-charts-waterfall-chart.mjs +151 -23
- package/fesm2022/ngwr-charts-waterfall-chart.mjs.map +1 -1
- package/fesm2022/ngwr-color-picker.mjs +44 -4
- package/fesm2022/ngwr-color-picker.mjs.map +1 -1
- package/fesm2022/ngwr-context-menu-testing.mjs.map +1 -1
- package/fesm2022/ngwr-context-menu.mjs +60 -17
- package/fesm2022/ngwr-context-menu.mjs.map +1 -1
- package/fesm2022/ngwr-copy-value-testing.mjs +5 -1
- package/fesm2022/ngwr-copy-value-testing.mjs.map +1 -1
- package/fesm2022/ngwr-copy-value.mjs +38 -2
- package/fesm2022/ngwr-copy-value.mjs.map +1 -1
- package/fesm2022/ngwr-date-picker.mjs +56 -8
- package/fesm2022/ngwr-date-picker.mjs.map +1 -1
- package/fesm2022/ngwr-dialog.mjs +13 -5
- package/fesm2022/ngwr-dialog.mjs.map +1 -1
- package/fesm2022/ngwr-drawer.mjs +19 -3
- package/fesm2022/ngwr-drawer.mjs.map +1 -1
- package/fesm2022/ngwr-dropdown-testing.mjs.map +1 -1
- package/fesm2022/ngwr-dropdown.mjs +49 -6
- package/fesm2022/ngwr-dropdown.mjs.map +1 -1
- package/fesm2022/ngwr-editor.mjs +1 -0
- package/fesm2022/ngwr-editor.mjs.map +1 -1
- package/fesm2022/ngwr-file-upload.mjs +7 -3
- package/fesm2022/ngwr-file-upload.mjs.map +1 -1
- package/fesm2022/ngwr-graph-testing.mjs +27 -0
- package/fesm2022/ngwr-graph-testing.mjs.map +1 -1
- package/fesm2022/ngwr-graph.mjs +643 -14
- package/fesm2022/ngwr-graph.mjs.map +1 -1
- package/fesm2022/ngwr-i18n-ar.mjs +13 -4
- package/fesm2022/ngwr-i18n-ar.mjs.map +1 -1
- package/fesm2022/ngwr-i18n-cs.mjs +13 -4
- package/fesm2022/ngwr-i18n-cs.mjs.map +1 -1
- package/fesm2022/ngwr-i18n-de.mjs +13 -4
- package/fesm2022/ngwr-i18n-de.mjs.map +1 -1
- package/fesm2022/ngwr-i18n-en.mjs +13 -4
- package/fesm2022/ngwr-i18n-en.mjs.map +1 -1
- package/fesm2022/ngwr-i18n-es.mjs +13 -4
- package/fesm2022/ngwr-i18n-es.mjs.map +1 -1
- package/fesm2022/ngwr-i18n-fr.mjs +13 -4
- package/fesm2022/ngwr-i18n-fr.mjs.map +1 -1
- package/fesm2022/ngwr-i18n-he.mjs +13 -4
- package/fesm2022/ngwr-i18n-he.mjs.map +1 -1
- package/fesm2022/ngwr-i18n-hi.mjs +13 -4
- package/fesm2022/ngwr-i18n-hi.mjs.map +1 -1
- package/fesm2022/ngwr-i18n-id.mjs +13 -4
- package/fesm2022/ngwr-i18n-id.mjs.map +1 -1
- package/fesm2022/ngwr-i18n-it.mjs +13 -4
- package/fesm2022/ngwr-i18n-it.mjs.map +1 -1
- package/fesm2022/ngwr-i18n-ja.mjs +13 -4
- package/fesm2022/ngwr-i18n-ja.mjs.map +1 -1
- package/fesm2022/ngwr-i18n-ko.mjs +13 -4
- package/fesm2022/ngwr-i18n-ko.mjs.map +1 -1
- package/fesm2022/ngwr-i18n-nl.mjs +13 -4
- package/fesm2022/ngwr-i18n-nl.mjs.map +1 -1
- package/fesm2022/ngwr-i18n-pl.mjs +13 -4
- package/fesm2022/ngwr-i18n-pl.mjs.map +1 -1
- package/fesm2022/ngwr-i18n-pt.mjs +13 -4
- package/fesm2022/ngwr-i18n-pt.mjs.map +1 -1
- package/fesm2022/ngwr-i18n-ru.mjs +13 -4
- package/fesm2022/ngwr-i18n-ru.mjs.map +1 -1
- package/fesm2022/ngwr-i18n-sv.mjs +13 -4
- package/fesm2022/ngwr-i18n-sv.mjs.map +1 -1
- package/fesm2022/ngwr-i18n-tr.mjs +13 -4
- package/fesm2022/ngwr-i18n-tr.mjs.map +1 -1
- package/fesm2022/ngwr-i18n-uk.mjs +13 -4
- package/fesm2022/ngwr-i18n-uk.mjs.map +1 -1
- package/fesm2022/ngwr-i18n-vi.mjs +13 -4
- package/fesm2022/ngwr-i18n-vi.mjs.map +1 -1
- package/fesm2022/ngwr-i18n-zh-tw.mjs +13 -4
- package/fesm2022/ngwr-i18n-zh-tw.mjs.map +1 -1
- package/fesm2022/ngwr-i18n-zh.mjs +13 -4
- package/fesm2022/ngwr-i18n-zh.mjs.map +1 -1
- package/fesm2022/ngwr-lightbox.mjs +22 -5
- package/fesm2022/ngwr-lightbox.mjs.map +1 -1
- package/fesm2022/ngwr-list.mjs +2 -2
- package/fesm2022/ngwr-list.mjs.map +1 -1
- package/fesm2022/ngwr-overlay.mjs +21 -2
- package/fesm2022/ngwr-overlay.mjs.map +1 -1
- package/fesm2022/ngwr-pagination.mjs +1 -0
- package/fesm2022/ngwr-pagination.mjs.map +1 -1
- package/fesm2022/ngwr-popconfirm-testing.mjs +4 -1
- package/fesm2022/ngwr-popconfirm-testing.mjs.map +1 -1
- package/fesm2022/ngwr-popconfirm.mjs +41 -5
- package/fesm2022/ngwr-popconfirm.mjs.map +1 -1
- package/fesm2022/ngwr-popover.mjs +67 -12
- package/fesm2022/ngwr-popover.mjs.map +1 -1
- package/fesm2022/ngwr-schema-form.mjs +3 -0
- package/fesm2022/ngwr-schema-form.mjs.map +1 -1
- package/fesm2022/ngwr-select.mjs +100 -3
- package/fesm2022/ngwr-select.mjs.map +1 -1
- package/fesm2022/ngwr-sortable-list.mjs +2 -2
- package/fesm2022/ngwr-sortable-list.mjs.map +1 -1
- package/fesm2022/ngwr-table-testing.mjs +71 -3
- package/fesm2022/ngwr-table-testing.mjs.map +1 -1
- package/fesm2022/ngwr-table.mjs +173 -11
- package/fesm2022/ngwr-table.mjs.map +1 -1
- package/fesm2022/ngwr-tour-testing.mjs +13 -1
- package/fesm2022/ngwr-tour-testing.mjs.map +1 -1
- package/fesm2022/ngwr-tour.mjs +25 -16
- package/fesm2022/ngwr-tour.mjs.map +1 -1
- package/fesm2022/ngwr-tree-testing.mjs.map +1 -1
- package/fesm2022/ngwr-tree.mjs +52 -8
- package/fesm2022/ngwr-tree.mjs.map +1 -1
- package/fesm2022/ngwr-utils.mjs +64 -1
- package/fesm2022/ngwr-utils.mjs.map +1 -1
- package/fesm2022/ngwr-version.mjs +1 -1
- package/fesm2022/ngwr-version.mjs.map +1 -1
- package/fesm2022/ngwr-window.mjs +16 -9
- package/fesm2022/ngwr-window.mjs.map +1 -1
- package/graph/styles/_index.scss +87 -0
- package/i18n/ar.json +13 -4
- package/i18n/cs.json +13 -4
- package/i18n/de.json +13 -4
- package/i18n/en.json +13 -4
- package/i18n/es.json +13 -4
- package/i18n/fr.json +13 -4
- package/i18n/he.json +13 -4
- package/i18n/hi.json +13 -4
- package/i18n/id.json +13 -4
- package/i18n/it.json +13 -4
- package/i18n/ja.json +13 -4
- package/i18n/ko.json +13 -4
- package/i18n/nl.json +13 -4
- package/i18n/pl.json +13 -4
- package/i18n/pt.json +13 -4
- package/i18n/ru.json +13 -4
- package/i18n/sv.json +13 -4
- package/i18n/tr.json +13 -4
- package/i18n/uk.json +13 -4
- package/i18n/vi.json +13 -4
- package/i18n/zh-TW.json +13 -4
- package/i18n/zh.json +13 -4
- package/llms-full.txt +12 -12
- package/llms.txt +64 -27
- package/package.json +1 -1
- package/popconfirm/styles/_index.scss +6 -0
- package/popover/styles/_index.scss +24 -13
- package/schematics/collection.json +5 -0
- package/schematics/eject/index.js +158 -0
- package/schematics/eject/schema.js +8 -0
- package/schematics/eject/schema.json +24 -0
- package/schematics/eject/source.js +295 -0
- package/schematics/use/symbol-map.json +2 -0
- package/select/styles/_index.scss +13 -0
- package/skills/ngwr/SKILL.md +30 -3
- package/skills/ngwr/references/catalog.md +2 -2
- package/table/styles/_index.scss +24 -0
- package/theme/styles/_focus.scss +11 -1
- package/tour/styles/_index.scss +6 -0
- package/types/ngwr-carousel-testing.d.ts +29 -6
- package/types/ngwr-carousel.d.ts +52 -5
- package/types/ngwr-cascader-testing.d.ts +4 -3
- package/types/ngwr-cascader.d.ts +29 -7
- package/types/ngwr-charts-bar-chart-testing.d.ts +15 -13
- package/types/ngwr-charts-bar-chart.d.ts +220 -48
- package/types/ngwr-charts-boxplot-chart-testing.d.ts +9 -2
- package/types/ngwr-charts-boxplot-chart.d.ts +110 -19
- package/types/ngwr-charts-bullet-chart.d.ts +72 -12
- package/types/ngwr-charts-calendar-heatmap.d.ts +119 -15
- package/types/ngwr-charts-candlestick-chart-testing.d.ts +19 -9
- package/types/ngwr-charts-candlestick-chart.d.ts +195 -62
- package/types/ngwr-charts-chart-legend.d.ts +142 -5
- package/types/ngwr-charts-core.d.ts +259 -21
- package/types/ngwr-charts-donut-chart-testing.d.ts +11 -5
- package/types/ngwr-charts-donut-chart.d.ts +124 -16
- package/types/ngwr-charts-funnel-chart.d.ts +62 -6
- package/types/ngwr-charts-gauge-testing.d.ts +5 -1
- package/types/ngwr-charts-gauge.d.ts +72 -10
- package/types/ngwr-charts-heatmap-chart.d.ts +103 -20
- package/types/ngwr-charts-line-chart-testing.d.ts +16 -2
- package/types/ngwr-charts-line-chart.d.ts +215 -86
- package/types/ngwr-charts-meter-group.d.ts +96 -7
- package/types/ngwr-charts-radar-chart-testing.d.ts +14 -3
- package/types/ngwr-charts-radar-chart.d.ts +148 -28
- package/types/ngwr-charts-scatter-chart-testing.d.ts +22 -10
- package/types/ngwr-charts-scatter-chart.d.ts +188 -18
- package/types/ngwr-charts-sparkline.d.ts +26 -4
- package/types/ngwr-charts-treemap-chart.d.ts +121 -23
- package/types/ngwr-charts-waterfall-chart-testing.d.ts +8 -1
- package/types/ngwr-charts-waterfall-chart.d.ts +108 -21
- package/types/ngwr-color-picker.d.ts +27 -0
- package/types/ngwr-context-menu-testing.d.ts +10 -9
- package/types/ngwr-context-menu.d.ts +19 -0
- package/types/ngwr-copy-value.d.ts +8 -0
- package/types/ngwr-date-picker.d.ts +34 -2
- package/types/ngwr-dialog.d.ts +30 -10
- package/types/ngwr-drawer.d.ts +32 -1
- package/types/ngwr-dropdown-testing.d.ts +8 -5
- package/types/ngwr-dropdown.d.ts +31 -6
- package/types/ngwr-file-upload.d.ts +8 -2
- package/types/ngwr-graph-testing.d.ts +28 -0
- package/types/ngwr-graph.d.ts +263 -91
- package/types/ngwr-lightbox.d.ts +15 -0
- package/types/ngwr-overlay.d.ts +16 -1
- package/types/ngwr-popconfirm-testing.d.ts +11 -2
- package/types/ngwr-popconfirm.d.ts +28 -1
- package/types/ngwr-popover.d.ts +59 -9
- package/types/ngwr-select.d.ts +37 -0
- package/types/ngwr-table-testing.d.ts +52 -1
- package/types/ngwr-table.d.ts +102 -10
- package/types/ngwr-tour-testing.d.ts +10 -0
- package/types/ngwr-tour.d.ts +32 -4
- package/types/ngwr-tree-testing.d.ts +1 -2
- package/types/ngwr-tree.d.ts +35 -2
- package/types/ngwr-utils.d.ts +79 -1
- package/types/ngwr-version.d.ts +1 -1
- package/types/ngwr-window.d.ts +14 -11
- package/window/styles/_index.scss +5 -10
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as i0 from "@angular/core";
|
|
2
|
-
import { WrChartLegendItem } from "ngwr/charts/chart-legend";
|
|
2
|
+
import { WrChartLegendItem, WrChartLegendPosition } from "ngwr/charts/chart-legend";
|
|
3
3
|
import { WrChartTableData } from "ngwr/charts/core";
|
|
4
4
|
/**
|
|
5
5
|
* @license
|
|
@@ -56,10 +56,15 @@ interface Point {
|
|
|
56
56
|
* **The geometry.** The first axis points to twelve o'clock and the rest follow
|
|
57
57
|
* clockwise, evenly spaced. The scale runs from the centre to the outer ring and
|
|
58
58
|
* includes zero, its rings on readable steps (`max` and `rings`), and every series is a
|
|
59
|
-
* polygon in its colour and its own dash:
|
|
60
|
-
* about 1.06:1 of each other in luminance, so a dash is what tells two outlines apart
|
|
59
|
+
* polygon in its colour and its own dash: a dash is what tells two outlines apart
|
|
61
60
|
* without hue, the line chart's remedy. The fills sit under every outline.
|
|
62
61
|
*
|
|
62
|
+
* **The look is the chart theme's.** A series with no `color` takes the next colour of
|
|
63
|
+
* the shared palette (`--wr-chart-1` to `--wr-chart-8`); the web is drawn in
|
|
64
|
+
* `--wr-chart-grid`, the outlines at `--wr-chart-stroke` and the dots at
|
|
65
|
+
* `--wr-chart-marker`, all in pixels at any `size`. Hovering an outline, a dot or a
|
|
66
|
+
* legend row dims every other series.
|
|
67
|
+
*
|
|
63
68
|
* **A missing value is a gap, never a guess.** A `null`, a value that is not a finite
|
|
64
69
|
* number, or one a shorter `data` does not reach, breaks the outline on either side of
|
|
65
70
|
* its axis and the series is drawn OPEN and UNFILLED: closing the polygon across the gap
|
|
@@ -84,8 +89,12 @@ interface Point {
|
|
|
84
89
|
* **Labels are HTML beside the drawing**, so they keep their size at any `size`: the axis
|
|
85
90
|
* names sit outside the outer ring, in a gutter round the drawing, each aligned away from
|
|
86
91
|
* the centre and ellipsised past the room it has — the tooltip and the data table carry
|
|
87
|
-
* the whole name. The ring values sit
|
|
88
|
-
* axis
|
|
92
|
+
* the whole name. The ring values sit on their rings BETWEEN two spokes, where no dot is
|
|
93
|
+
* drawn and no axis name is near — straight down from the centre when the axes are odd in
|
|
94
|
+
* number, between the first two when they are even, and a quarter of a slice past the
|
|
95
|
+
* first axis in the polar-area variant — and are `aria-hidden`, as an axis' ticks are on
|
|
96
|
+
* every chart here. One closer than a line to the last one kept is left out, and its ring
|
|
97
|
+
* still drawn. The drawing keeps its clockwise order under RTL,
|
|
89
98
|
* as every SVG chart here keeps its own — the HTML layouts (bar, bullet, treemap) are the
|
|
90
99
|
* ones that mirror — and the labels follow the drawing.
|
|
91
100
|
*
|
|
@@ -99,9 +108,14 @@ interface Point {
|
|
|
99
108
|
* With fewer than three axes there is no polygon to draw: the chart draws the grid
|
|
100
109
|
* alone and says so in dev mode.
|
|
101
110
|
*
|
|
102
|
-
* The legend is a `ul[wr-chart-legend]` (`ngwr/charts/chart-legend`),
|
|
111
|
+
* **The legend** is a `ul[wr-chart-legend]` (`ngwr/charts/chart-legend`), placed by
|
|
112
|
+
* `legendPosition` and left out for a single series unless `showLegend` asks for it. With
|
|
103
113
|
* `toggleableLegend` its rows show and hide their series through `hiddenSeries`.
|
|
104
114
|
*
|
|
115
|
+
* **Empty, loading, error.** With no value to draw the chart keeps its web and its axis
|
|
116
|
+
* names and says "No data"; `loading` and `error` put their own message there in place of
|
|
117
|
+
* the series.
|
|
118
|
+
*
|
|
105
119
|
* @see https://ngwr.dev/charts/radar-chart
|
|
106
120
|
*/
|
|
107
121
|
export declare class WrRadarChart {
|
|
@@ -111,8 +125,9 @@ export declare class WrRadarChart {
|
|
|
111
125
|
*/
|
|
112
126
|
readonly axes: import("@angular/core").InputSignal<readonly string[]>;
|
|
113
127
|
/**
|
|
114
|
-
* One polygon per series. A series with no `color` takes the next
|
|
115
|
-
*
|
|
128
|
+
* One polygon per series. A series with no `color` takes the next colour of the chart
|
|
129
|
+
* palette, `--wr-chart-1` to `--wr-chart-8`, and each takes the next dash, the first
|
|
130
|
+
* one solid.
|
|
116
131
|
*/
|
|
117
132
|
readonly series: import("@angular/core").InputSignal<readonly WrRadarSeries[]>;
|
|
118
133
|
/**
|
|
@@ -159,8 +174,34 @@ export declare class WrRadarChart {
|
|
|
159
174
|
readonly size: import("@angular/core").InputSignalWithTransform<number, unknown>;
|
|
160
175
|
/** Show the rings, the spokes and the ring values. The axis names stay. @default true */
|
|
161
176
|
readonly showGrid: import("@angular/core").InputSignalWithTransform<boolean, any>;
|
|
162
|
-
/**
|
|
163
|
-
|
|
177
|
+
/**
|
|
178
|
+
* Show the legend. `'auto'` shows it when there is something to tell apart - two
|
|
179
|
+
* series or more - and leaves it out for a single one; `true` shows it for one series
|
|
180
|
+
* too. @default 'auto'
|
|
181
|
+
*/
|
|
182
|
+
readonly showLegend: import("@angular/core").InputSignalWithTransform<boolean | "auto", unknown>;
|
|
183
|
+
/**
|
|
184
|
+
* Where the legend sits: `bottom` or `top` of the chart as a wrapping row, `start` or
|
|
185
|
+
* `end` of it as a column, or `none` for no legend at all - `hiddenSeries` still hides
|
|
186
|
+
* a series from outside. @default 'bottom'
|
|
187
|
+
*/
|
|
188
|
+
readonly legendPosition: import("@angular/core").InputSignal<WrChartLegendPosition>;
|
|
189
|
+
/**
|
|
190
|
+
* A request for the chart's data is in flight: the series give way to the loading
|
|
191
|
+
* message, over the web and the axis names the chart had. @default false
|
|
192
|
+
*/
|
|
193
|
+
readonly loading: import("@angular/core").InputSignalWithTransform<boolean, any>;
|
|
194
|
+
/**
|
|
195
|
+
* The chart's data failed to load: the series give way to the error message. `loading`
|
|
196
|
+
* wins while both are set. @default false
|
|
197
|
+
*/
|
|
198
|
+
readonly error: import("@angular/core").InputSignalWithTransform<boolean, any>;
|
|
199
|
+
/** The message shown when there is nothing to draw. Falls back to `chart.empty`, then `'No data'`. */
|
|
200
|
+
readonly emptyLabel: import("@angular/core").InputSignal<string | null>;
|
|
201
|
+
/** The message shown while `loading`. Falls back to `chart.loading`, then `'Loading…'`. */
|
|
202
|
+
readonly loadingLabel: import("@angular/core").InputSignal<string | null>;
|
|
203
|
+
/** The message shown on `error`. Falls back to `chart.error`, then `'Could not load'`. */
|
|
204
|
+
readonly errorLabel: import("@angular/core").InputSignal<string | null>;
|
|
164
205
|
/**
|
|
165
206
|
* Make each legend row a toggle button that shows and hides its series, through
|
|
166
207
|
* `hiddenSeries`. A row is a `<button aria-pressed>`, pressed while its series is
|
|
@@ -196,9 +237,13 @@ export declare class WrRadarChart {
|
|
|
196
237
|
/**
|
|
197
238
|
* Show a tooltip for the axis nearest the pointer: its name, and every series' value
|
|
198
239
|
* on it; an axis no series shown has a value on opens none. Pointer only — the data
|
|
199
|
-
* table is where the same numbers are for a keyboard or a screen reader.
|
|
240
|
+
* table is where the same numbers are for a keyboard or a screen reader.
|
|
241
|
+
*
|
|
242
|
+
* By default the pointer passes under the chip to the chart, so the next section
|
|
243
|
+
* answers at once and the chip closes off the chart; `'hoverable'` lets the pointer
|
|
244
|
+
* rest on the chip instead, as WCAG 1.4.13 asks of a hint. @default true
|
|
200
245
|
*/
|
|
201
|
-
readonly tooltip: import("@angular/core").InputSignalWithTransform<boolean,
|
|
246
|
+
readonly tooltip: import("@angular/core").InputSignalWithTransform<boolean | "hoverable", unknown>;
|
|
202
247
|
/**
|
|
203
248
|
* Writes every number the chart shows: the ring values, the tooltip and the data
|
|
204
249
|
* table. `null` uses `Intl.NumberFormat` in `LOCALE_ID`, with compact ring values
|
|
@@ -219,11 +264,19 @@ export declare class WrRadarChart {
|
|
|
219
264
|
/** The ring values' compact ticks and the exact figures, in `LOCALE_ID` unless `valueFormat` is given. */
|
|
220
265
|
private readonly numbers;
|
|
221
266
|
private readonly svg;
|
|
222
|
-
|
|
267
|
+
/** The first ring value laid out, whose box is one line of them. */
|
|
268
|
+
private readonly ringLabel;
|
|
269
|
+
/** The drawing's box and one ring value's, on the one observer every chart shares. Both 0 until laid out. */
|
|
270
|
+
private readonly drawingSize;
|
|
271
|
+
private readonly ringLabelSize;
|
|
223
272
|
/**
|
|
224
273
|
* The drawing's laid-out width and a ring value's line box, both in CSS pixels, once a
|
|
225
274
|
* browser has measured them: the drawing shrinks below `size` in a narrow container, and
|
|
226
|
-
* how close two ring values may sit is a question of pixels, not of the viewBox.
|
|
275
|
+
* how close two ring values may sit is a question of pixels, not of the viewBox. `null`
|
|
276
|
+
* on the server and until the first measurement, which assume `size` and a 16px line.
|
|
277
|
+
*
|
|
278
|
+
* A hidden chart measures nothing, and keeps the last reading rather than thin to it;
|
|
279
|
+
* no value laid out — `showGrid` off — measures no line, and keeps the line already known.
|
|
227
280
|
*/
|
|
228
281
|
private readonly measured;
|
|
229
282
|
constructor();
|
|
@@ -265,8 +318,10 @@ export declare class WrRadarChart {
|
|
|
265
318
|
private radius;
|
|
266
319
|
/**
|
|
267
320
|
* The shapes, one per series shown that has at least one value: its outline, whether
|
|
268
|
-
* that outline is closed,
|
|
269
|
-
*
|
|
321
|
+
* that outline is closed, the point at each axis (`null` where the value is missing),
|
|
322
|
+
* and every dot of the series as ONE path, a subpath each - a path per dot was a
|
|
323
|
+
* series' worth of elements for each series, and its `d` a string rebuilt for every
|
|
324
|
+
* dot on every hover. Nothing at all with fewer than three axes.
|
|
270
325
|
*
|
|
271
326
|
* A polygon is closed only with a value on every axis. In the polar-area variant the
|
|
272
327
|
* outline is the silhouette of the series' wedges, which always closes, and the point
|
|
@@ -280,6 +335,7 @@ export declare class WrRadarChart {
|
|
|
280
335
|
points: (Point | null)[];
|
|
281
336
|
closed: boolean;
|
|
282
337
|
d: string;
|
|
338
|
+
dots: string;
|
|
283
339
|
}[]>;
|
|
284
340
|
/**
|
|
285
341
|
* The rings, from the outer one in: a polygon through every axis, or a circle while
|
|
@@ -294,20 +350,39 @@ export declare class WrRadarChart {
|
|
|
294
350
|
*/
|
|
295
351
|
protected readonly spokes: import("@angular/core").Signal<Point[]>;
|
|
296
352
|
/**
|
|
297
|
-
* The ring values
|
|
298
|
-
*
|
|
353
|
+
* The ray the ring values are laid out along: its angle, and how far along it a ring
|
|
354
|
+
* of radius 1 is crossed. Always BETWEEN two spokes, so no value sits on a spoke, on a
|
|
355
|
+
* dot or under an axis name, which is where they sat while they ran up the first axis.
|
|
356
|
+
*
|
|
357
|
+
* - A polygon's rings are polygons too, and the middle of an edge is the point of a
|
|
358
|
+
* ring farthest from its spokes: `cos(π / n)` of the radius out, on the bisector of
|
|
359
|
+
* two axes. Of the bisectors the steepest is taken, so the values stack rather than
|
|
360
|
+
* run sideways into each other: straight down for an odd count of axes, where the
|
|
361
|
+
* bottom edge is level, and between the first two axes for an even one, where straight
|
|
362
|
+
* down is a spoke.
|
|
363
|
+
* - The polar-area rings are circles, and the spokes run between the wedges, so the
|
|
364
|
+
* bisector is taken: the ray is a quarter of a slice past the first axis, half way
|
|
365
|
+
* between the dot on the wedge's arc and the spoke at its edge.
|
|
366
|
+
* - With fewer than three axes there is no polygon: the rings are circles, and the ray
|
|
367
|
+
* is `FREE_RAY`.
|
|
368
|
+
*/
|
|
369
|
+
private readonly labelRay;
|
|
370
|
+
/**
|
|
371
|
+
* The ring values, from the outer ring in, each with the point of its ring it sits on
|
|
372
|
+
* as percentages of the drawing (`x`, `y`), along `labelRay`. Decided for the whole
|
|
299
373
|
* scale, as an axis' ticks are (`useChartNumbers().ticks`).
|
|
300
374
|
*
|
|
301
|
-
*
|
|
302
|
-
* outer ring
|
|
303
|
-
*
|
|
304
|
-
*
|
|
305
|
-
*
|
|
306
|
-
*
|
|
375
|
+
* A value closer than one line to the last one kept is left out, walking inwards from
|
|
376
|
+
* the outer ring — whose value always stays — while its ring is still drawn: the
|
|
377
|
+
* polar-area rings sit at square-root radii, which bunch towards the outer ring, and a
|
|
378
|
+
* polygon's values are closer together along an edge's bisector than its rings are
|
|
379
|
+
* along a spoke. The distance is in pixels of the drawing as laid out (`measured`), or
|
|
380
|
+
* of `size` until a browser has measured it.
|
|
307
381
|
*/
|
|
308
382
|
protected readonly ringLabels: import("@angular/core").Signal<{
|
|
309
383
|
text: string;
|
|
310
384
|
r: number;
|
|
385
|
+
x: number;
|
|
311
386
|
y: number;
|
|
312
387
|
}[]>;
|
|
313
388
|
/**
|
|
@@ -325,6 +400,23 @@ export declare class WrRadarChart {
|
|
|
325
400
|
}[]>;
|
|
326
401
|
/** The legend's rows: every series, hidden ones included, keyed by its own dash. */
|
|
327
402
|
protected readonly legendItems: import("@angular/core").Signal<readonly WrChartLegendItem[]>;
|
|
403
|
+
/**
|
|
404
|
+
* Whether the chart draws its legend: unless `legendPosition` is `none` or `showLegend`
|
|
405
|
+
* is off, and under `showLegend="auto"` only with two series or more, since a single
|
|
406
|
+
* series has nothing to tell apart.
|
|
407
|
+
*/
|
|
408
|
+
protected readonly legendShown: import("@angular/core").Signal<boolean>;
|
|
409
|
+
/** Whether the legend comes before the drawing, in the DOM as on screen: above it, or at inline start. */
|
|
410
|
+
protected readonly legendFirst: import("@angular/core").Signal<boolean>;
|
|
411
|
+
/** Whether the legend sits beside the drawing rather than above or below it. */
|
|
412
|
+
protected readonly legendSide: import("@angular/core").Signal<boolean>;
|
|
413
|
+
/**
|
|
414
|
+
* Whether the chart has nothing to draw: no series, or none with a value on any axis.
|
|
415
|
+
* A series hidden from the legend still counts, so hiding every series is not "No data".
|
|
416
|
+
*/
|
|
417
|
+
private readonly empty;
|
|
418
|
+
/** What the chart shows in place of its series, or `null` while it draws them. */
|
|
419
|
+
protected readonly state: import("@angular/core").Signal<import("ngwr/charts/core").WrChartStateView | null>;
|
|
328
420
|
/**
|
|
329
421
|
* The figures for `dataTable`: the drawing's name as the caption, a column per series
|
|
330
422
|
* shown and a row per axis. Each cell is the series' own value, even where a fixed scale
|
|
@@ -346,8 +438,8 @@ export declare class WrRadarChart {
|
|
|
346
438
|
*/
|
|
347
439
|
protected readonly tip: import("ngwr/popover").WrChartTooltip;
|
|
348
440
|
/**
|
|
349
|
-
* What the open tooltip marks on the drawing: its axis' spoke, and a
|
|
350
|
-
* series' value on it.
|
|
441
|
+
* What the open tooltip marks on the drawing: its axis' spoke, and a ringed dot on every
|
|
442
|
+
* series' value on it. Worked out when the hovered axis changes, never per render.
|
|
351
443
|
*/
|
|
352
444
|
protected readonly hover: import("@angular/core").Signal<{
|
|
353
445
|
end: Point;
|
|
@@ -363,8 +455,6 @@ export declare class WrRadarChart {
|
|
|
363
455
|
* drawing's corners, outside the outer ring and its dots — the tooltip lets go.
|
|
364
456
|
*/
|
|
365
457
|
protected onPointerMove(event: MouseEvent): void;
|
|
366
|
-
/** A zero-length line at a point, which a round cap paints as a dot of the stroke's width. */
|
|
367
|
-
protected dotPath(point: Point): string;
|
|
368
458
|
/**
|
|
369
459
|
* The axis nearest a viewport point by angle, measured from the drawing's centre, or
|
|
370
460
|
* `null` past the outer ring (with room for its dots), with nothing drawn, with no box
|
|
@@ -419,6 +509,36 @@ export declare class WrRadarChart {
|
|
|
419
509
|
"required": false;
|
|
420
510
|
"isSignal": true;
|
|
421
511
|
};
|
|
512
|
+
"legendPosition": {
|
|
513
|
+
"alias": "legendPosition";
|
|
514
|
+
"required": false;
|
|
515
|
+
"isSignal": true;
|
|
516
|
+
};
|
|
517
|
+
"loading": {
|
|
518
|
+
"alias": "loading";
|
|
519
|
+
"required": false;
|
|
520
|
+
"isSignal": true;
|
|
521
|
+
};
|
|
522
|
+
"error": {
|
|
523
|
+
"alias": "error";
|
|
524
|
+
"required": false;
|
|
525
|
+
"isSignal": true;
|
|
526
|
+
};
|
|
527
|
+
"emptyLabel": {
|
|
528
|
+
"alias": "emptyLabel";
|
|
529
|
+
"required": false;
|
|
530
|
+
"isSignal": true;
|
|
531
|
+
};
|
|
532
|
+
"loadingLabel": {
|
|
533
|
+
"alias": "loadingLabel";
|
|
534
|
+
"required": false;
|
|
535
|
+
"isSignal": true;
|
|
536
|
+
};
|
|
537
|
+
"errorLabel": {
|
|
538
|
+
"alias": "errorLabel";
|
|
539
|
+
"required": false;
|
|
540
|
+
"isSignal": true;
|
|
541
|
+
};
|
|
422
542
|
"toggleableLegend": {
|
|
423
543
|
"alias": "toggleableLegend";
|
|
424
544
|
"required": false;
|
|
@@ -51,11 +51,15 @@ interface WrScatterChartTableRow {
|
|
|
51
51
|
* **Points are read off what the component WROTE, never off a layout.** jsdom lays
|
|
52
52
|
* nothing out, so a measured position would read 0 for a working chart and a broken one
|
|
53
53
|
* alike. Every marker is a nested `<svg>` the component places by percentage, and it
|
|
54
|
-
* carries the point's values
|
|
55
|
-
*
|
|
56
|
-
*
|
|
57
|
-
* the
|
|
58
|
-
* rendering detail of each shape.
|
|
54
|
+
* carries the point's values in `data-point` beside that placement, inside a group that
|
|
55
|
+
* carries its series, its shape and its colour — so {@link getPoints} answers both
|
|
56
|
+
* questions a spec has: which point is this, and where did the chart put it. A point at
|
|
57
|
+
* the right value and the wrong percentage is exactly the defect worth catching. The
|
|
58
|
+
* marker's path `d` is not read: its numbers are a rendering detail of each shape.
|
|
59
|
+
*
|
|
60
|
+
* Past two thousand points shown the chart draws ONE path per series rather than an
|
|
61
|
+
* element per point: {@link getPointCount} still counts them, {@link getPoints} has no
|
|
62
|
+
* element to read and answers `[]`, and the data table carries the values.
|
|
59
63
|
*
|
|
60
64
|
* **There is deliberately no hover method.** The tooltip opens on the point nearest the
|
|
61
65
|
* pointer, measured against the drawing's box, which jsdom reports as 0×0 — so every
|
|
@@ -81,7 +85,7 @@ export declare class WrScatterChartHarness extends ComponentHarness {
|
|
|
81
85
|
static with(options?: WrScatterChartHarnessFilters): HarnessPredicate<WrScatterChartHarness>;
|
|
82
86
|
/** The plot's accessible name — the only name the drawing has. */
|
|
83
87
|
getAccessibleName(): Promise<string | null>;
|
|
84
|
-
/** Whether the legend is rendered
|
|
88
|
+
/** Whether the legend is rendered: `showLegend`, `legendPosition`, and under `'auto'` two series or more. */
|
|
85
89
|
hasLegend(): Promise<boolean>;
|
|
86
90
|
/** The series names from the legend, in order — hidden series included, since their rows stay. */
|
|
87
91
|
getSeriesLabels(): Promise<string[]>;
|
|
@@ -89,7 +93,7 @@ export declare class WrScatterChartHarness extends ComponentHarness {
|
|
|
89
93
|
* The legend, as a {@link WrChartLegendHarness}: each row's marker and hidden state
|
|
90
94
|
* and, with `toggleableLegend`, the toggles that show and hide a series.
|
|
91
95
|
*
|
|
92
|
-
* Throws when the chart draws no legend (`showLegend` off,
|
|
96
|
+
* Throws when the chart draws no legend (`showLegend` off, a single series, or none) rather than
|
|
93
97
|
* answering with an empty one: {@link hasLegend} is the question for that.
|
|
94
98
|
*/
|
|
95
99
|
getLegendHarness(): Promise<WrChartLegendHarness>;
|
|
@@ -103,14 +107,22 @@ export declare class WrScatterChartHarness extends ComponentHarness {
|
|
|
103
107
|
* its marker and the percentages the component placed its centre at.
|
|
104
108
|
*
|
|
105
109
|
* Throws on a marker missing any of what the component writes on every one, rather than
|
|
106
|
-
* answering with a `NaN` a spec could compare against.
|
|
110
|
+
* answering with a `NaN` a spec could compare against. `[]` once the chart draws a path
|
|
111
|
+
* per series (past two thousand points shown), which has no element per point.
|
|
107
112
|
*/
|
|
108
113
|
getPoints(): Promise<WrScatterChartHarnessPoint[]>;
|
|
109
114
|
/** Whether the gridlines are drawn (`showGrid`). */
|
|
110
115
|
hasGrid(): Promise<boolean>;
|
|
111
|
-
/**
|
|
116
|
+
/** Whether the axes' scales are printed beside and under the plot (`showAxis`). */
|
|
117
|
+
hasAxis(): Promise<boolean>;
|
|
118
|
+
/**
|
|
119
|
+
* The message the chart shows in place of its points: "No data" with nothing to draw,
|
|
120
|
+
* or the loading or error message. `null` while it draws its points.
|
|
121
|
+
*/
|
|
122
|
+
getStateLabel(): Promise<string | null>;
|
|
123
|
+
/** The x-axis tick labels, left to right; `[]` with `showAxis` off. */
|
|
112
124
|
getXTicks(): Promise<string[]>;
|
|
113
|
-
/** The y-axis tick labels, top to bottom; `[]` with `
|
|
125
|
+
/** The y-axis tick labels, top to bottom; `[]` with `showAxis` off. */
|
|
114
126
|
getYTicks(): Promise<string[]>;
|
|
115
127
|
/**
|
|
116
128
|
* The axes' names as drawn. The chart draws a name only when `xLabel` or `yLabel` is
|