ngwr 16.4.0 → 16.6.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/back-top/styles/_index.scss +6 -0
- package/breadcrumbs/styles/_rules.scss +34 -0
- package/cascader/styles/_rules.scss +7 -0
- 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 +120 -10
- 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/counter/styles/_index.scss +1 -8
- package/date-picker/styles/_index.scss +15 -9
- package/date-stamp/styles/_index.scss +2 -1
- package/dialog/styles/_index.scss +43 -0
- package/drawer/styles/_index.scss +5 -1
- package/editor/styles/_index.scss +1 -8
- package/event-calendar/styles/_index.scss +2 -6
- package/fesm2022/ngwr-affix.mjs +1 -1
- package/fesm2022/ngwr-affix.mjs.map +1 -1
- package/fesm2022/ngwr-anchor.mjs +9 -2
- package/fesm2022/ngwr-anchor.mjs.map +1 -1
- package/fesm2022/ngwr-animations-aurora.mjs.map +1 -1
- package/fesm2022/ngwr-animations-blur-reveal.mjs.map +1 -1
- package/fesm2022/ngwr-animations-click-sparks.mjs.map +1 -1
- package/fesm2022/ngwr-animations-confetti.mjs.map +1 -1
- package/fesm2022/ngwr-animations-decode.mjs.map +1 -1
- package/fesm2022/ngwr-animations-destruct.mjs.map +1 -1
- package/fesm2022/ngwr-animations-dot-grid.mjs.map +1 -1
- package/fesm2022/ngwr-animations-falling-letters.mjs.map +1 -1
- package/fesm2022/ngwr-animations-flow-lines.mjs.map +1 -1
- package/fesm2022/ngwr-animations-fluid-cursor.mjs.map +1 -1
- package/fesm2022/ngwr-animations-glitch.mjs.map +1 -1
- package/fesm2022/ngwr-animations-glow-border.mjs.map +1 -1
- package/fesm2022/ngwr-animations-gradient-flow.mjs.map +1 -1
- package/fesm2022/ngwr-animations-marquee.mjs.map +1 -1
- package/fesm2022/ngwr-animations-orbit.mjs.map +1 -1
- package/fesm2022/ngwr-animations-reveal.mjs.map +1 -1
- package/fesm2022/ngwr-animations-ripple-grid.mjs.map +1 -1
- package/fesm2022/ngwr-animations-rotate-reveal.mjs.map +1 -1
- package/fesm2022/ngwr-animations-shimmer.mjs.map +1 -1
- package/fesm2022/ngwr-animations-spotlight.mjs.map +1 -1
- package/fesm2022/ngwr-animations-thread-lines.mjs.map +1 -1
- package/fesm2022/ngwr-animations-tilt.mjs +20 -13
- package/fesm2022/ngwr-animations-tilt.mjs.map +1 -1
- package/fesm2022/ngwr-animations-typewriter.mjs.map +1 -1
- package/fesm2022/ngwr-breadcrumbs.mjs +40 -7
- package/fesm2022/ngwr-breadcrumbs.mjs.map +1 -1
- package/fesm2022/ngwr-button.mjs +12 -3
- package/fesm2022/ngwr-button.mjs.map +1 -1
- package/fesm2022/ngwr-carousel-testing.mjs +4 -1
- package/fesm2022/ngwr-carousel-testing.mjs.map +1 -1
- package/fesm2022/ngwr-carousel.mjs +27 -2
- package/fesm2022/ngwr-carousel.mjs.map +1 -1
- package/fesm2022/ngwr-cascader-testing.mjs.map +1 -1
- package/fesm2022/ngwr-cascader.mjs +72 -8
- 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 +311 -23
- 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 +225 -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-checkbox.mjs +3 -2
- package/fesm2022/ngwr-checkbox.mjs.map +1 -1
- package/fesm2022/ngwr-color-picker.mjs +65 -5
- 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 +51 -24
- 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-testing.mjs.map +1 -1
- package/fesm2022/ngwr-date-picker.mjs +105 -9
- package/fesm2022/ngwr-date-picker.mjs.map +1 -1
- package/fesm2022/ngwr-dialog.mjs +29 -11
- package/fesm2022/ngwr-dialog.mjs.map +1 -1
- package/fesm2022/ngwr-directives.mjs +9 -6
- package/fesm2022/ngwr-directives.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 +35 -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-event-calendar.mjs +20 -9
- package/fesm2022/ngwr-event-calendar.mjs.map +1 -1
- package/fesm2022/ngwr-form.mjs +170 -3
- package/fesm2022/ngwr-form.mjs.map +1 -1
- package/fesm2022/ngwr-graph.mjs +81 -13
- package/fesm2022/ngwr-graph.mjs.map +1 -1
- package/fesm2022/ngwr-i18n-ar.mjs +20 -0
- package/fesm2022/ngwr-i18n-ar.mjs.map +1 -1
- package/fesm2022/ngwr-i18n-cs.mjs +20 -0
- package/fesm2022/ngwr-i18n-cs.mjs.map +1 -1
- package/fesm2022/ngwr-i18n-de.mjs +20 -0
- package/fesm2022/ngwr-i18n-de.mjs.map +1 -1
- package/fesm2022/ngwr-i18n-en.mjs +20 -0
- package/fesm2022/ngwr-i18n-en.mjs.map +1 -1
- package/fesm2022/ngwr-i18n-es.mjs +20 -0
- package/fesm2022/ngwr-i18n-es.mjs.map +1 -1
- package/fesm2022/ngwr-i18n-fr.mjs +20 -0
- package/fesm2022/ngwr-i18n-fr.mjs.map +1 -1
- package/fesm2022/ngwr-i18n-he.mjs +20 -0
- package/fesm2022/ngwr-i18n-he.mjs.map +1 -1
- package/fesm2022/ngwr-i18n-hi.mjs +20 -0
- package/fesm2022/ngwr-i18n-hi.mjs.map +1 -1
- package/fesm2022/ngwr-i18n-id.mjs +20 -0
- package/fesm2022/ngwr-i18n-id.mjs.map +1 -1
- package/fesm2022/ngwr-i18n-it.mjs +20 -0
- package/fesm2022/ngwr-i18n-it.mjs.map +1 -1
- package/fesm2022/ngwr-i18n-ja.mjs +20 -0
- package/fesm2022/ngwr-i18n-ja.mjs.map +1 -1
- package/fesm2022/ngwr-i18n-ko.mjs +20 -0
- package/fesm2022/ngwr-i18n-ko.mjs.map +1 -1
- package/fesm2022/ngwr-i18n-nl.mjs +20 -0
- package/fesm2022/ngwr-i18n-nl.mjs.map +1 -1
- package/fesm2022/ngwr-i18n-pl.mjs +20 -0
- package/fesm2022/ngwr-i18n-pl.mjs.map +1 -1
- package/fesm2022/ngwr-i18n-pt.mjs +20 -0
- package/fesm2022/ngwr-i18n-pt.mjs.map +1 -1
- package/fesm2022/ngwr-i18n-ru.mjs +20 -0
- package/fesm2022/ngwr-i18n-ru.mjs.map +1 -1
- package/fesm2022/ngwr-i18n-sv.mjs +20 -0
- package/fesm2022/ngwr-i18n-sv.mjs.map +1 -1
- package/fesm2022/ngwr-i18n-tr.mjs +20 -0
- package/fesm2022/ngwr-i18n-tr.mjs.map +1 -1
- package/fesm2022/ngwr-i18n-uk.mjs +20 -0
- package/fesm2022/ngwr-i18n-uk.mjs.map +1 -1
- package/fesm2022/ngwr-i18n-vi.mjs +20 -0
- package/fesm2022/ngwr-i18n-vi.mjs.map +1 -1
- package/fesm2022/ngwr-i18n-zh-tw.mjs +20 -0
- package/fesm2022/ngwr-i18n-zh-tw.mjs.map +1 -1
- package/fesm2022/ngwr-i18n-zh.mjs +20 -0
- package/fesm2022/ngwr-i18n-zh.mjs.map +1 -1
- package/fesm2022/ngwr-i18n.mjs +82 -11
- package/fesm2022/ngwr-i18n.mjs.map +1 -1
- package/fesm2022/ngwr-input-number.mjs +24 -1
- package/fesm2022/ngwr-input-number.mjs.map +1 -1
- package/fesm2022/ngwr-input-otp.mjs +2 -2
- package/fesm2022/ngwr-input-otp.mjs.map +1 -1
- package/fesm2022/ngwr-input.mjs +10 -2
- package/fesm2022/ngwr-input.mjs.map +1 -1
- package/fesm2022/ngwr-layout.mjs.map +1 -1
- package/fesm2022/ngwr-lightbox.mjs +20 -3
- package/fesm2022/ngwr-lightbox.mjs.map +1 -1
- package/fesm2022/ngwr-list.mjs +1 -1
- package/fesm2022/ngwr-list.mjs.map +1 -1
- package/fesm2022/ngwr-loading-bar-router.mjs.map +1 -1
- package/fesm2022/ngwr-loading-bar.mjs +2 -2
- package/fesm2022/ngwr-loading-bar.mjs.map +1 -1
- package/fesm2022/ngwr-mention.mjs +8 -0
- package/fesm2022/ngwr-mention.mjs.map +1 -1
- package/fesm2022/ngwr-meta.mjs +9 -6
- package/fesm2022/ngwr-meta.mjs.map +1 -1
- package/fesm2022/ngwr-overlay.mjs +21 -2
- package/fesm2022/ngwr-overlay.mjs.map +1 -1
- package/fesm2022/ngwr-page-header.mjs +21 -0
- package/fesm2022/ngwr-page-header.mjs.map +1 -1
- package/fesm2022/ngwr-pagination.mjs +2 -0
- package/fesm2022/ngwr-pagination.mjs.map +1 -1
- package/fesm2022/ngwr-pipes.mjs +8 -1
- package/fesm2022/ngwr-pipes.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 +43 -6
- package/fesm2022/ngwr-popconfirm.mjs.map +1 -1
- package/fesm2022/ngwr-popover.mjs +114 -15
- package/fesm2022/ngwr-popover.mjs.map +1 -1
- package/fesm2022/ngwr-qr.mjs +6 -2
- package/fesm2022/ngwr-qr.mjs.map +1 -1
- package/fesm2022/ngwr-radio.mjs +71 -5
- package/fesm2022/ngwr-radio.mjs.map +1 -1
- package/fesm2022/ngwr-schema-form.mjs +12 -1
- package/fesm2022/ngwr-schema-form.mjs.map +1 -1
- package/fesm2022/ngwr-scroll.mjs +1 -3
- package/fesm2022/ngwr-scroll.mjs.map +1 -1
- package/fesm2022/ngwr-segmented.mjs +20 -0
- package/fesm2022/ngwr-segmented.mjs.map +1 -1
- package/fesm2022/ngwr-select.mjs +80 -9
- package/fesm2022/ngwr-select.mjs.map +1 -1
- package/fesm2022/ngwr-sortable-list.mjs +16 -4
- package/fesm2022/ngwr-sortable-list.mjs.map +1 -1
- package/fesm2022/ngwr-storage.mjs +1 -1
- package/fesm2022/ngwr-storage.mjs.map +1 -1
- package/fesm2022/ngwr-switch.mjs +2 -2
- package/fesm2022/ngwr-switch.mjs.map +1 -1
- package/fesm2022/ngwr-table.mjs +43 -7
- package/fesm2022/ngwr-table.mjs.map +1 -1
- package/fesm2022/ngwr-tabs-router.mjs.map +1 -1
- package/fesm2022/ngwr-textarea.mjs +2 -2
- package/fesm2022/ngwr-textarea.mjs.map +1 -1
- package/fesm2022/ngwr-toast.mjs +28 -0
- package/fesm2022/ngwr-toast.mjs.map +1 -1
- package/fesm2022/ngwr-tour.mjs +16 -11
- package/fesm2022/ngwr-tour.mjs.map +1 -1
- package/fesm2022/ngwr-tree-testing.mjs.map +1 -1
- package/fesm2022/ngwr-tree.mjs +49 -16
- package/fesm2022/ngwr-tree.mjs.map +1 -1
- package/fesm2022/ngwr-typography.mjs +20 -0
- package/fesm2022/ngwr-typography.mjs.map +1 -1
- package/fesm2022/ngwr-utils-router.mjs.map +1 -1
- package/fesm2022/ngwr-utils.mjs +46 -4
- package/fesm2022/ngwr-utils.mjs.map +1 -1
- package/fesm2022/ngwr-validators.mjs +33 -1
- package/fesm2022/ngwr-validators.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/form/styles/_index.scss +37 -0
- package/graph/styles/_index.scss +1 -9
- package/i18n/ar.json +20 -0
- package/i18n/cs.json +20 -0
- package/i18n/de.json +20 -0
- package/i18n/en.json +20 -0
- package/i18n/es.json +20 -0
- package/i18n/fr.json +20 -0
- package/i18n/he.json +20 -0
- package/i18n/hi.json +20 -0
- package/i18n/id.json +20 -0
- package/i18n/it.json +20 -0
- package/i18n/ja.json +20 -0
- package/i18n/ko.json +20 -0
- package/i18n/nl.json +20 -0
- package/i18n/pl.json +20 -0
- package/i18n/pt.json +20 -0
- package/i18n/ru.json +20 -0
- package/i18n/sv.json +20 -0
- package/i18n/tr.json +20 -0
- package/i18n/uk.json +20 -0
- package/i18n/vi.json +20 -0
- package/i18n/zh-TW.json +20 -0
- package/i18n/zh.json +20 -0
- package/image-cropper/styles/_index.scss +1 -9
- package/input-number/styles/_index.scss +7 -0
- package/layout/styles/_index.scss +13 -1
- package/llms-full.txt +17 -17
- package/llms.txt +7 -3
- package/loading-bar/styles/_rules.scss +6 -0
- package/package.json +2 -2
- package/page-header/styles/_index.scss +18 -0
- package/popconfirm/styles/_index.scss +6 -0
- package/popover/styles/_index.scss +31 -13
- package/schematics/use/symbol-map.json +3 -0
- package/segmented/styles/_index.scss +7 -0
- package/select/styles/_index.scss +7 -0
- package/sidebar/styles/_index.scss +6 -0
- package/skills/ngwr/references/catalog.md +2 -2
- package/sortable-list/styles/_rules.scss +1 -9
- package/speed-dial/styles/_index.scss +6 -0
- package/stepper/styles/_index.scss +1 -9
- package/table/styles/_index.scss +49 -0
- package/theme/_index.scss +12 -1
- package/theme/styles/_colors.scss +11 -0
- package/theme/styles/_contrast.scss +6 -0
- package/theme/styles/_index.scss +1 -0
- package/theme/styles/_mixins.scss +45 -0
- package/theme/styles/_print.scss +17 -0
- package/toast/styles/_index.scss +7 -0
- package/tour/styles/_index.scss +14 -0
- package/tree/styles/_index.scss +1 -9
- package/types/ngwr-anchor.d.ts +3 -0
- package/types/ngwr-animations-aurora.d.ts +6 -0
- package/types/ngwr-animations-blur-reveal.d.ts +6 -0
- package/types/ngwr-animations-click-sparks.d.ts +6 -0
- package/types/ngwr-animations-confetti.d.ts +6 -0
- package/types/ngwr-animations-decode.d.ts +6 -0
- package/types/ngwr-animations-destruct.d.ts +6 -0
- package/types/ngwr-animations-dot-grid.d.ts +6 -0
- package/types/ngwr-animations-falling-letters.d.ts +6 -0
- package/types/ngwr-animations-flow-lines.d.ts +6 -0
- package/types/ngwr-animations-fluid-cursor.d.ts +6 -0
- package/types/ngwr-animations-glitch.d.ts +6 -0
- package/types/ngwr-animations-glow-border.d.ts +6 -0
- package/types/ngwr-animations-gradient-flow.d.ts +6 -0
- package/types/ngwr-animations-marquee.d.ts +6 -0
- package/types/ngwr-animations-orbit.d.ts +6 -0
- package/types/ngwr-animations-reveal.d.ts +6 -0
- package/types/ngwr-animations-ripple-grid.d.ts +6 -0
- package/types/ngwr-animations-rotate-reveal.d.ts +6 -0
- package/types/ngwr-animations-shimmer.d.ts +6 -0
- package/types/ngwr-animations-spotlight.d.ts +6 -0
- package/types/ngwr-animations-thread-lines.d.ts +6 -0
- package/types/ngwr-animations-tilt.d.ts +10 -0
- package/types/ngwr-animations-typewriter.d.ts +6 -0
- package/types/ngwr-breadcrumbs.d.ts +25 -0
- package/types/ngwr-button.d.ts +23 -3
- package/types/ngwr-carousel-testing.d.ts +6 -4
- package/types/ngwr-carousel.d.ts +16 -3
- package/types/ngwr-cascader-testing.d.ts +4 -3
- package/types/ngwr-cascader.d.ts +34 -3
- 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 +275 -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 +98 -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-checkbox.d.ts +1 -0
- package/types/ngwr-color-picker.d.ts +28 -0
- package/types/ngwr-context-menu-testing.d.ts +10 -9
- package/types/ngwr-context-menu.d.ts +18 -1
- package/types/ngwr-copy-value.d.ts +8 -0
- package/types/ngwr-date-picker.d.ts +53 -2
- package/types/ngwr-dialog.d.ts +64 -13
- package/types/ngwr-directives.d.ts +12 -4
- package/types/ngwr-drawer.d.ts +33 -2
- package/types/ngwr-dropdown-testing.d.ts +8 -5
- package/types/ngwr-dropdown.d.ts +29 -6
- package/types/ngwr-event-calendar.d.ts +4 -0
- package/types/ngwr-form.d.ts +85 -1
- package/types/ngwr-graph.d.ts +22 -6
- package/types/ngwr-i18n.d.ts +65 -5
- package/types/ngwr-input-number.d.ts +8 -0
- package/types/ngwr-input.d.ts +7 -0
- package/types/ngwr-layout.d.ts +1 -1
- package/types/ngwr-lightbox.d.ts +15 -0
- package/types/ngwr-loading-bar-router.d.ts +6 -0
- package/types/ngwr-overlay.d.ts +16 -1
- package/types/ngwr-page-header.d.ts +23 -1
- package/types/ngwr-popconfirm-testing.d.ts +11 -2
- package/types/ngwr-popconfirm.d.ts +29 -2
- package/types/ngwr-popover.d.ts +87 -13
- package/types/ngwr-radio.d.ts +47 -5
- package/types/ngwr-segmented.d.ts +7 -0
- package/types/ngwr-select.d.ts +57 -13
- package/types/ngwr-sortable-list.d.ts +20 -7
- package/types/ngwr-table.d.ts +59 -6
- package/types/ngwr-tabs-router.d.ts +6 -0
- package/types/ngwr-toast.d.ts +11 -0
- package/types/ngwr-tour.d.ts +21 -3
- package/types/ngwr-tree-testing.d.ts +1 -2
- package/types/ngwr-tree.d.ts +33 -2
- package/types/ngwr-typography.d.ts +7 -0
- package/types/ngwr-utils-router.d.ts +6 -0
- package/types/ngwr-utils.d.ts +56 -2
- package/types/ngwr-validators.d.ts +49 -1
- package/types/ngwr-version.d.ts +1 -1
- package/types/ngwr-window.d.ts +14 -11
- package/typography/styles/_index.scss +4 -0
- package/window/styles/_index.scss +6 -19
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ngwr-charts-line-chart.mjs","names":["DOCUMENT"],"sources":["../../../projects/lib/charts/line-chart/line-chart.ts","../../../projects/lib/charts/line-chart/line-chart.html"],"sourcesContent":["/**\n * @license\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://github.com/thekhegay/ngwr/blob/main/LICENSE\n */\n\nimport { coerceBooleanProperty, coerceNumberProperty } from '@angular/cdk/coercion';\nimport { DOCUMENT, isPlatformBrowser } from '@angular/common';\nimport {\n Component,\n DestroyRef,\n type ElementRef,\n LOCALE_ID,\n PLATFORM_ID,\n ViewEncapsulation,\n afterNextRender,\n afterRenderEffect,\n computed,\n effect,\n inject,\n input,\n model,\n signal,\n untracked,\n viewChild,\n} from '@angular/core';\n\nimport { WR_CHART_LEGEND_BLOCK, WrChartLegend, type WrChartLegendItem } from 'ngwr/charts/chart-legend';\nimport {\n WrChartTable,\n type WrChartTableData,\n wrChartAxis,\n wrChartColor,\n wrChartDash,\n useChartNumbers,\n} from 'ngwr/charts/core';\nimport { useI18nText } from 'ngwr/i18n';\nimport { wrClamp, wrCheckStyles } from 'ngwr/utils';\n\nimport type { WrLineSeries } from './types';\n\n/**\n * The drawing's width in CSS px, assumed until a browser has measured it: what the server\n * and the first paint thin the x labels against.\n */\nconst ASSUMED_WIDTH = 560;\n\n/** The plot's inline padding in CSS px — `--wr-line-chart-plot-inset-x` — until measured. */\nconst ASSUMED_INSET = 16;\n\n/** How wide a character of an x label is taken to be, in CSS px, before a browser has measured the widest. */\nconst CHAR_WIDTH = 7;\n\n/** The least room between two printed x labels, in CSS px. */\nconst LABEL_GAP = 8;\n\n/** The hover marker's radius in CSS px: half the 12px stroke its ring is drawn with. */\nconst HOVER_RADIUS = 6;\n\n/**\n * How far a readout set beside the crosshair (`--left` / `--right`) keeps from it, in CSS\n * px: the marker's radius and as much again. The stylesheet's `$beside`.\n */\nconst BESIDE = 12;\n\n/**\n * Where the readout sits: over the crosshair at the top of the plot, over it at the bottom,\n * or at the top beside it on either side. Physical, as the drawing's own x is.\n */\ntype TooltipPlacement = 'top' | 'below' | 'left' | 'right';\n\n/** What a browser measured, in CSS px: the drawing's width, the plot's inline padding and the widest x label. */\ninterface Measured {\n readonly width: number;\n readonly inset: number;\n readonly label: number;\n}\n\n/** A series as it is drawn: `tops` is what each x is plotted at, `bases` where its band starts under `stacked`. */\ninterface PlottedSeries {\n readonly index: number;\n readonly label: string;\n readonly dash: string;\n readonly color: string;\n readonly data: readonly (number | null)[];\n readonly tops: readonly (number | null)[];\n readonly bases: readonly (number | null)[] | null;\n}\n\n/**\n * Multi-series line chart with axes, gridlines, and a hover tooltip.\n * SVG-only — no external dependency.\n *\n * @example\n * ```html\n * <wr-line-chart\n * [series]=\"[\n * { label: 'Visits', data: [12, 18, 9, 22, 30, 27, 35] },\n * { label: 'Signups', data: [3, 5, 4, 8, 11, 9, 14], color: 'var(--wr-color-success)' }\n * ]\"\n * [xLabels]=\"['Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat', 'Sun']\"\n * />\n * ```\n *\n * The legend is a `ul[wr-chart-legend]` (`ngwr/charts/chart-legend`), and with\n * `toggleableLegend` its rows show and hide their series through `hiddenSeries`.\n *\n * An AREA chart is this one with `showArea`, which fills under every line down to\n * zero, and `stacked` piles the series on each other so the top line reads the total:\n *\n * ```html\n * <wr-line-chart [series]=\"series\" [xLabels]=\"labels\" showArea stacked />\n * ```\n *\n * The x labels are printed every one while the widest fits between two points, and every\n * n-th otherwise, so a long axis keeps whole labels rather than a row of ellipses; the\n * tooltip and the data table name every x. The drawing keeps time running left to right\n * under RTL, as every SVG chart here does; the y labels move to the right of it.\n *\n * @see https://ngwr.dev/charts/line-chart\n */\n@Component({\n selector: 'wr-line-chart',\n templateUrl: './line-chart.html',\n encapsulation: ViewEncapsulation.None,\n host: {\n class: 'wr-line-chart',\n '[class.wr-line-chart--area]': 'showArea()',\n '[class.wr-line-chart--stacked]': 'stacked()',\n },\n imports: [WrChartLegend, WrChartTable],\n // The legend's rows keep the classes this chart drew before it drew them through\n // `WrChartLegend`: `.wr-line-chart__legend-item`, `__swatch` and `__legend-label`.\n viewProviders: [{ provide: WR_CHART_LEGEND_BLOCK, useValue: 'wr-line-chart' }],\n})\nexport class WrLineChart {\n /**\n * One entry per line. A series with no `color` takes the next entry from the\n * chart's fallback palette, so several lines are distinguishable unconfigured.\n */\n readonly series = input<readonly WrLineSeries[]>([]);\n\n /**\n * Accessible name of the chart. The legend carries the series NAMES only — the numbers\n * are nowhere in text unless `dataTable` puts them there — so without this the plot is\n * nothing at all to a screen reader. Falls back to `lineChart.label`, or to\n * `lineChart.areaLabel` with `showArea`.\n */\n readonly ariaLabel = input<string | null>(null);\n\n private readonly lineLabel = useI18nText(this.ariaLabel, 'lineChart.label', 'Line chart');\n private readonly areaLabel = useI18nText(this.ariaLabel, 'lineChart.areaLabel', 'Area chart');\n\n /** The plot's name, which the data table takes as its caption. */\n protected readonly resolvedAriaLabel = computed(() => (this.showArea() ? this.areaLabel() : this.lineLabel()));\n\n /**\n * Writes every number the chart shows: the y-axis ticks and the tooltip values.\n * `null` uses `Intl.NumberFormat` in `LOCALE_ID`, with compact ticks (`1.2K`, `3.4M`)\n * unless the full numbers are shorter.\n */\n readonly valueFormat = input<((value: number) => string) | null>(null);\n\n /** The tooltip's exact figures and the axis' compact ticks, in `LOCALE_ID` unless `valueFormat` is given. */\n private readonly numbers = useChartNumbers(this.valueFormat);\n\n /**\n * Labels for the X axis (one per data point). Printed every one while the widest fits\n * between two points, and every n-th otherwise. An x past the end of this list is named\n * by its position, counting from 1, in `LOCALE_ID`'s digits, in the tooltip and the data\n * table.\n */\n readonly xLabels = input<readonly string[]>([]);\n\n /** Chart pixel height. @default 240 */\n readonly height = input(240, { transform: (v: unknown): number => Math.max(80, coerceNumberProperty(v, 240)) });\n\n /** Show gridlines + axis ticks. @default true */\n readonly showGrid = input(true, { transform: coerceBooleanProperty });\n\n /** Show the legend above the chart. @default true */\n readonly showLegend = input(true, { transform: coerceBooleanProperty });\n\n /**\n * Make each legend row a toggle button that shows and hides its series, through\n * `hiddenSeries`. A row is a `<button aria-pressed>`, pressed while its series is\n * shown, so the legend becomes one tab stop per series. @default false\n */\n readonly toggleableLegend = input(false, { transform: coerceBooleanProperty });\n\n /**\n * The positions in `series` of the series that are hidden. Positions rather than\n * labels, since two series may share a label. A toggleable legend writes it, and a\n * host may bind it with or without one: `[(hiddenSeries)]`.\n *\n * A hidden series is left out of everything that reads its values. It draws no line\n * and no dots, it has no row or ring in the tooltip, and the y axis is fitted to the\n * series still shown, so hiding a large series lets the small ones fill the plot. The\n * x axis does not change, because its length belongs to the chart (`xLabels`) rather\n * than to one series, and the lines still shown keep their positions. The legend keeps\n * the hidden series' row, struck through, so it can be shown again; the row says\n * \"hidden\" to a screen reader as well, through `aria-pressed` on a toggle and a\n * visually hidden word otherwise. With every series\n * hidden the plot is the empty 0 to 1 frame. A position past the end of `series` is\n * kept and ignored.\n */\n readonly hiddenSeries = model<readonly number[]>([]);\n\n /** Show dots at each data point. @default true */\n readonly showDots = input(true, { transform: coerceBooleanProperty });\n\n /**\n * Fill the space under each line, down to zero, which makes this an area chart.\n *\n * Each unbroken run of a series is one fill (`.wr-line-chart__area`) in the series'\n * colour at `--wr-line-chart-area-opacity`. A hole in the data breaks the fill as it\n * breaks the line, and a lone point between two holes has nothing to fill. Every fill\n * is drawn under every line, so the lines and their dashes stay on top and the series\n * are still told apart by shape where the fills overlap. The y axis takes zero in,\n * since the fills reach it: an all-negative series fills up to a zero at the top of\n * the plot. The plot's name falls back to `lineChart.areaLabel`. @default false\n */\n readonly showArea = input(false, { transform: coerceBooleanProperty });\n\n /**\n * Stack the series on each other in order, so at every x each series is drawn on top\n * of the ones before it and the top line reads the total.\n *\n * Positive values stack up from zero and negative values stack down from it, each sign\n * on its own, so no band crosses another at a point. A hole, or the missing end of a\n * shorter series, adds nothing to the stack and breaks that series' own line. The\n * lines, the dots, the hover markers and the y axis follow the stacked tops; the\n * tooltip and the data table keep each series' own value, which is the figure a reader\n * asks for. A series hidden through `hiddenSeries` leaves the stack. With `showArea`\n * each band fills from the series below to its own line, and the fill is stronger,\n * since the bands do not overlap. @default false\n */\n readonly stacked = input(false, { transform: coerceBooleanProperty });\n\n /**\n * Render the chart's figures as a table that only assistive technology reaches: a row\n * per x, headed by its x label, and a column per series shown, every value written the\n * way the tooltip writes it. A hole is an empty cell.\n *\n * The plot is one named `role=\"img\"`, which hides everything inside it, so without\n * the table the numbers are nowhere a screen reader can walk. It is rendered beside\n * the plot, clipped to nothing: it takes no room, draws nothing and holds no tab stop.\n * A stacked chart's table keeps each series' own values, and a hidden series leaves\n * it. @default false\n */\n readonly dataTable = input(false, { transform: coerceBooleanProperty });\n\n /**\n * Show the hover readout: the crosshair, the point markers and the tooltip. Off\n * drops all three, since a crosshair with no values beside it points at nothing.\n * @default true\n */\n readonly tooltip = input(true, { transform: coerceBooleanProperty });\n\n /**\n * Drawn edge to edge in a 600×300 viewBox that stretches to the plot. Nothing in it is\n * text: the tick labels used to be `<text>` in here, and with\n * `preserveAspectRatio=\"none\"` a glyph stretches with the drawing, while the 36 units\n * kept for them at the left were a different width in pixels at every size. They are\n * HTML beside the drawing now, in a gutter as wide as its longest label, and the space\n * round the lines is CSS padding on the plot.\n */\n protected readonly vbW = 600;\n protected readonly vbH = 300;\n\n private readonly svg = viewChild.required<ElementRef<SVGSVGElement>>('svg');\n\n private readonly plot = viewChild.required<ElementRef<HTMLElement>>('plot');\n\n private readonly probe = viewChild<ElementRef<HTMLElement>>('probe');\n\n private readonly tooltipEl = viewChild<ElementRef<HTMLElement>>('tooltip');\n\n /** An x with no label of its own, by its position from 1 in the reader's own digits. */\n private readonly ordinals = new Intl.NumberFormat(inject(LOCALE_ID));\n\n /** What a browser measured, once it has: `null` on the server and until the first render. */\n private readonly measured = signal<Measured | null>(null);\n\n /**\n * Where the readout sits (see `placeTooltip`): at the top of the plot unless that covers\n * a marker it reads. Decided in a browser, from the readout's own size, each time the\n * hovered x changes.\n */\n protected readonly tooltipPlacement = signal<TooltipPlacement>('top');\n\n /** Hovered point index (across all series) — null when no hover. */\n protected readonly hoveredIndex = signal<number | null>(null);\n\n /** The hovered index while the readout is on, so turning `tooltip` off mid-hover clears it. */\n protected readonly activeIndex = computed(() => (this.tooltip() ? this.hoveredIndex() : null));\n\n /**\n * The index Escape dismissed. It stays shut while the pointer stays on that point —\n * WCAG 1.4.13 asks for dismissal WITHOUT moving the pointer, and every `mousemove`\n * re-reports the point, so a plain close would reopen on the next pixel. The rule\n * the shared chart tooltip follows for the other charts.\n */\n private dismissed: number | null = null;\n\n constructor() {\n if (typeof ngDevMode === 'undefined' || ngDevMode) wrCheckStyles('charts/line-chart');\n // Escape closes the readout wherever focus is, the way it closes every other\n // chart's: nothing in the readout can take focus, so a key handler on the chart\n // would never hear it. Listened for only while the readout is up, which is never\n // on the server.\n const document = inject(DOCUMENT);\n effect(onCleanup => {\n if (this.activeIndex() === null) return;\n const onKeydown = (event: KeyboardEvent): void => {\n if (event.key !== 'Escape') return;\n this.dismissed = this.hoveredIndex();\n this.hoveredIndex.set(null);\n };\n document.addEventListener('keydown', onKeydown);\n onCleanup(() => document.removeEventListener('keydown', onKeydown));\n });\n\n // Measured after render, in a browser: the drawing's width and the widest x label,\n // which decide how many labels print, and the readout's height, which decides where it\n // sits. Never on the server, which thins the labels against `ASSUMED_WIDTH`.\n if (!isPlatformBrowser(inject(PLATFORM_ID))) return;\n const destroyRef = inject(DestroyRef);\n\n afterRenderEffect(() => {\n this.probeText();\n untracked(() => this.measure());\n });\n\n afterRenderEffect(() => {\n const points = this.hoverPoints();\n const tooltip = this.tooltipEl()?.nativeElement;\n if (points.length === 0 || !tooltip) return;\n untracked(() => this.placeTooltip(points, tooltip));\n });\n\n afterNextRender(() => {\n if (typeof ResizeObserver === 'undefined') return;\n const observer = new ResizeObserver(() => this.measure());\n observer.observe(this.svg().nativeElement);\n destroyRef.onDestroy(() => observer.disconnect());\n });\n }\n\n /**\n * Every series, resolved: its palette colour, its dash (`wrChartDash`, so the lines are\n * told apart by shape and not only by hue, the first one solid) and its data with a\n * HOLE at each non-finite point. Hidden ones included, since the legend lists them.\n *\n * A non-finite point becomes a hole at its own index, not a missing element. It\n * cannot stay a number: `Math.min` and `Math.max` over the pooled data are both NaN\n * as soon as one datum is, so every coordinate in EVERY series came out `NaN`, which\n * is invalid path geometry, and the whole chart vanished rather than the one bad\n * point. But filtering it out closed the gap and slid every LATER point one x-slot to\n * the left, so each of them was drawn under, and reported in the tooltip as, the\n * wrong x label. A gap is kept as a gap and the line is broken across it:\n * interpolating would invent a reading the data never took.\n */\n protected readonly resolvedSeries = computed(() =>\n this.series().map((s, i) => ({\n index: i,\n label: s.label,\n dash: wrChartDash(i),\n data: s.data.map(v => (typeof v === 'number' && Number.isFinite(v) ? v : null)),\n color: s.color ?? wrChartColor(i),\n }))\n );\n\n /** The legend's rows: every series, keyed by its own dash. */\n protected readonly legendItems = computed<readonly WrChartLegendItem[]>(() =>\n this.resolvedSeries().map(({ label, color, dash }) => ({ label, color, dash }))\n );\n\n /** The series drawn, read and fitted to: every one `hiddenSeries` does not name. */\n protected readonly visibleSeries = computed(() => {\n const hidden = new Set(this.hiddenSeries());\n return this.resolvedSeries().filter(s => !hidden.has(s.index));\n });\n\n /**\n * The series drawn, each with the value it is PLOTTED at for every x. That is its own\n * value, except under `stacked`, where it is the top of its band, and `bases` holds\n * where the band starts: zero, or the top of the last series before it on the same\n * side of zero. Positive values pile up and negative ones pile down, each sign on its\n * own, so two bands never cross at a point. A hole stays a hole and adds nothing.\n */\n protected readonly plottedSeries = computed<readonly PlottedSeries[]>(() => {\n const visible = this.visibleSeries();\n if (!this.stacked()) return visible.map(s => ({ ...s, tops: s.data, bases: null }));\n\n // Indexed by x, and sparse: an x no series has reached yet starts from zero.\n const up: number[] = [];\n const down: number[] = [];\n return visible.map(s => {\n const tops: (number | null)[] = [];\n const bases: (number | null)[] = [];\n s.data.forEach((v, i) => {\n if (v === null) {\n tops.push(null);\n bases.push(null);\n return;\n }\n const pile = v < 0 ? down : up;\n const base = pile[i] ?? 0;\n pile[i] = base + v;\n bases.push(base);\n tops.push(base + v);\n });\n return { ...s, tops, bases };\n });\n });\n\n /**\n * The y axis, from `wrChartAxis`, over what is plotted for the series still shown. It\n * floors at zero and never lifts to zero from below, so an all-negative series keeps\n * an axis that ends just above its peak, and it snaps to a readable step: seven\n * integers between 3 and 35 read 0 / 10 / 20 / 30 / 40, where \"the data's max plus\n * 10%, divided into four\" read 38.2 / 28.7 / 19.1 / 9.6 / 0. With nothing to fit, it is\n * the empty 0 to 1 frame.\n *\n * With `showArea` or `stacked` it takes zero in on either side instead: zero is the\n * baseline a fill reaches and the floor a stack starts from, so an axis that stopped\n * short of it would cut the fills off and misstate every band.\n */\n protected readonly bounds = computed(() => {\n // A loop rather than `Math.min(...values)`: a spread of every plotted value overflows\n // the stack past about 125k of them, and the chart rendered nothing at all.\n let min = Number.POSITIVE_INFINITY;\n let max = Number.NEGATIVE_INFINITY;\n for (const s of this.plottedSeries()) {\n for (const v of s.tops) {\n if (v === null) continue;\n if (v < min) min = v;\n if (v > max) max = v;\n }\n }\n if (min > max) return wrChartAxis(Number.NaN, Number.NaN);\n if (this.showArea() || this.stacked()) return wrChartAxis(min, max, { includeZero: true });\n return wrChartAxis(Math.min(0, min), max);\n });\n\n protected readonly pointCount = computed(() => {\n const maxLen = this.resolvedSeries().reduce((acc, s) => Math.max(acc, s.data.length), 0);\n return Math.max(maxLen, this.xLabels().length);\n });\n\n /**\n * Y-axis tick marks, one per `step` from the top down — so every label is a\n * whole multiple of a readable number rather than a quarter of whatever the\n * data happened to reach.\n */\n protected readonly yTicks = computed(() => {\n const { min, max, ticks } = this.bounds();\n return ticks.map(value => ({ value, y: ((max - value) / (max - min)) * this.vbH }));\n });\n\n /**\n * The SVG path for a series' plotted values — one subpath per unbroken run, so a hole\n * in the data leaves a hole in the line rather than a straight segment across it.\n */\n protected pathFor(values: readonly (number | null)[]): string {\n const { min, max } = this.bounds();\n\n const commands: string[] = [];\n let run = 0;\n let last = '';\n // A subpath of one `M` is not stroked at all, so a point with a gap on both sides —\n // or the only point of a one-point chart — would simply vanish when `showDots` is off.\n // Repeating it gives the round linecap something to paint.\n const closeRun = (): void => {\n if (run === 1) commands.push(`L ${last}`);\n run = 0;\n };\n\n values.forEach((v, i) => {\n if (v === null) {\n closeRun();\n return;\n }\n const x = this.pointX(i);\n const y = ((max - v) / (max - min)) * this.vbH;\n last = `${x.toFixed(2)} ${y.toFixed(2)}`;\n commands.push(`${run === 0 ? 'M' : 'L'} ${last}`);\n run++;\n });\n closeRun();\n\n return commands.join(' ');\n }\n\n /**\n * Every series shown as the template draws it: its line's path, and with `showDots` one\n * path holding a subpath per dot, empty when there is none to draw. Built once per change\n * to the data or the axis, so moving the pointer from x to x, which re-renders the hover\n * layer, rebuilds no path.\n */\n protected readonly drawn = computed(() => {\n const dots = this.showDots();\n return this.plottedSeries().map(s => ({\n index: s.index,\n color: s.color,\n dash: s.dash,\n d: this.pathFor(s.tops),\n dots: dots ? this.dotsFor(s.tops) : '',\n }));\n });\n\n /** A series' dots as one path, a subpath each. A hole in the data gets none. */\n private dotsFor(values: readonly (number | null)[]): string {\n const { min, max } = this.bounds();\n const commands: string[] = [];\n for (let i = 0; i < values.length; i++) {\n const v = values[i];\n if (v !== null) commands.push(this.dotPath(this.pointX(i), ((max - v) / (max - min)) * this.vbH));\n }\n return commands.join(' ');\n }\n\n /**\n * The fills under the lines with `showArea`: one per unbroken run of two points or\n * more, from the line down to zero, or down to the top of the band below under\n * `stacked`. A run of one point has no width to fill. Keyed by the series' position\n * and the run's first x, so a run that moves is a new fill.\n */\n protected readonly areas = computed(() => {\n if (!this.showArea() || this.pointCount() <= 1) return [];\n return this.plottedSeries().flatMap(s => {\n const fills: { key: string; color: string; d: string }[] = [];\n let start = -1;\n const close = (end: number): void => {\n if (start >= 0 && end - start >= 2) {\n fills.push({ key: `${s.index}:${start}`, color: s.color, d: this.areaPath(s, start, end) });\n }\n start = -1;\n };\n s.tops.forEach((v, i) => {\n if (v === null) close(i);\n else if (start < 0) start = i;\n });\n close(s.tops.length);\n return fills;\n });\n });\n\n /** One fill: along the run's plotted values, then back along its base, from `start` up to `end`. */\n private areaPath(series: PlottedSeries, start: number, end: number): string {\n const at = (i: number, value: number): string => `${this.pointX(i).toFixed(2)} ${this.pointY(value).toFixed(2)}`;\n const commands: string[] = [];\n for (let i = start; i < end; i++) commands.push(`${i === start ? 'M' : 'L'} ${at(i, series.tops[i] ?? 0)}`);\n for (let i = end - 1; i >= start; i--) commands.push(`L ${at(i, series.bases?.[i] ?? 0)}`);\n commands.push('Z');\n return commands.join(' ');\n }\n\n /** A point's x in the viewBox — a lone point in the middle, as the sparkline draws one. */\n protected pointX(index: number): number {\n const count = this.pointCount();\n if (count <= 1) return this.vbW / 2;\n return (index / (count - 1)) * this.vbW;\n }\n\n protected pointY(value: number): number {\n const { min, max } = this.bounds();\n return ((max - value) / (max - min)) * this.vbH;\n }\n\n /**\n * A point's x as a percentage of the drawing's width, which the SVG stretches to. The\n * x labels and the tooltip are placed with it, in a box as wide as the plot: the\n * stylesheet adds the plot's inline padding, so they land on the point at any size.\n */\n protected xPercent(index: number): number {\n return (this.pointX(index) / this.vbW) * 100;\n }\n\n /**\n * How far apart two neighbouring printed labels are, as a percentage of the drawing's\n * width — the room each x label has, half on either side of its point: the distance\n * between two points times the step `xAxis` prints at. The stylesheet bounds a label to\n * it, cut back at the ends of the strip, and ellipsises past that. Centring a label on its\n * point says nothing about its WIDTH, and with no bound at all twelve month names printed\n * over each other and the last one hung outside the chart.\n */\n protected readonly xSlot = computed(() => {\n const count = this.pointCount();\n // A single label has no neighbour to collide with and the whole strip to sit in.\n return count <= 1 ? 100 : Math.min(100, (100 * this.xAxis().every) / (count - 1));\n });\n\n /**\n * Every x label once, a line each: the hidden copy the labels' room is measured against.\n * Laid out as wide as its widest line, so it measures the widest label rather than the\n * one with the most characters — `WWWWW` is wider than `iiiiiii`.\n */\n protected readonly probeText = computed(() =>\n [...new Set(this.xLabels().map(label => label.replace(/\\r\\n?|\\n/g, ' ')))].join('\\n')\n );\n\n /**\n * Which x labels print. Every one while the widest label and a gap fit between two\n * points, as before there was any thinning; otherwise every `every`-th from the first,\n * the smallest step whose labels keep that gap — the first label included, which the\n * strip's start moves inwards when it is wider than the room before its point — and the\n * last one printed is left out if moving it inwards from the strip's end brings it\n * within the gap of the one before. The step is decided in a browser from the widest\n * label as laid out and the drawing's width, and against `ASSUMED_WIDTH` and seven\n * pixels a character before that, so the server thins a long axis too.\n *\n * Only the printed labels render: a label laid out and hidden still costs its share of\n * every resize.\n */\n protected readonly xAxis = computed(() => {\n const labels = this.xLabels();\n const count = this.pointCount();\n const measured = this.measured();\n const width = measured?.width ?? ASSUMED_WIDTH;\n const inset = measured?.inset ?? ASSUMED_INSET;\n const strip = width + 2 * inset;\n const longest = labels.reduce((most, label) => Math.max(most, label.length), 0);\n const label = Math.min(measured && measured.label > 0 ? measured.label : longest * CHAR_WIDTH, strip);\n const step = count <= 1 ? strip : width / (count - 1);\n /** Where a printed label's box starts, in px from the strip's start: centred on its point, moved in at either end. */\n const start = (index: number): number =>\n wrClamp(inset + this.pointX(index) * (width / this.vbW) - label / 2, 0, strip - label);\n // A hair of slack on every comparison, so the regular spacing never fails on a rounding.\n const crowds = (from: number, previousEnd: number): boolean => from + 1e-6 < previousEnd + LABEL_GAP;\n\n let every = count <= 1 ? 1 : Math.max(1, Math.ceil((label + LABEL_GAP - 1e-6) / step));\n while (every < labels.length - 1 && crowds(start(every), start(0) + label)) every++;\n\n const ticks: { readonly index: number; readonly label: string; readonly x: number }[] = [];\n let end = Number.NEGATIVE_INFINITY;\n for (let index = 0; index < labels.length; index += every) {\n const from = start(index);\n if (every > 1 && crowds(from, end)) break;\n ticks.push({ index, label: labels[index], x: this.xPercent(index) });\n end = from + label;\n }\n return { every, ticks };\n });\n\n /**\n * The hovered x's readings, one per series shown that has one. Each marker sits where\n * the series is drawn, which under `stacked` is the top of its band, while the row\n * reads the series' own value.\n */\n protected readonly hoverPoints = computed(() => {\n const i = this.activeIndex();\n if (i === null) return [];\n return this.plottedSeries().flatMap(s => {\n // Past the end of a short series, or on a hole in a longer one — either way there\n // is no reading at this x, so the series contributes neither a marker nor a row.\n const value = s.data[i];\n const plotted = s.tops[i];\n if (value === undefined || value === null || plotted === undefined || plotted === null) return [];\n const text = this.numbers.value(value);\n return [\n { index: s.index, label: s.label, value, text, color: s.color, x: this.pointX(i), y: this.pointY(plotted) },\n ];\n });\n });\n\n protected readonly hoverLabel = computed(() => {\n const i = this.activeIndex();\n if (i === null) return '';\n return this.xLabels()[i] ?? this.ordinals.format(i + 1);\n });\n\n /**\n * The point under the pointer. A MOUSE event, as the sparkline's is: a tap fires\n * `pointerdown`, `pointerup` and `pointerleave` and no `pointermove`, then the\n * compatibility `mousemove`, so a `pointermove` listener never opened the readout on\n * a phone and the `pointerleave` closed whatever it had. Every other chart opens on\n * the compatibility events a tap fires.\n *\n * Heard on the whole plot and measured against the drawing inside it. The drawing\n * runs edge to edge, so the first and last dots overhang it into the plot's padding;\n * listening on the drawing alone closed the readout on the outer half of either dot.\n * Over the padding the nearest point is the end one, so the index is clamped.\n */\n protected onPointerMove(event: MouseEvent): void {\n if (!this.tooltip()) return;\n const count = this.pointCount();\n const box = this.svg().nativeElement.getBoundingClientRect();\n if (count === 0 || box.width <= 0) return;\n const ratio = (event.clientX - box.left) / box.width;\n const i = count === 1 ? 0 : wrClamp(Math.round(ratio * (count - 1)), 0, count - 1);\n if (i === this.dismissed) return;\n this.dismissed = null;\n this.hoveredIndex.set(i);\n }\n\n protected onPointerLeave(): void {\n this.dismissed = null;\n this.hoveredIndex.set(null);\n }\n\n /** A zero-length line at a point, which a round cap paints as a dot. */\n protected dotPath(x: number, y: number): string {\n return `M ${x.toFixed(2)} ${y.toFixed(2)} h 0`;\n }\n\n /**\n * Read the drawing's width, the plot's inline padding and the widest x label off the\n * layout. A hidden chart measures 0 and keeps its last reading rather than thin to\n * nothing; with no label to measure the estimate stays in charge.\n */\n private measure(): void {\n const box = this.svg().nativeElement.getBoundingClientRect();\n if (box.width <= 0) return;\n const inset = box.left - this.plot().nativeElement.getBoundingClientRect().left;\n const label = this.probe()?.nativeElement.getBoundingClientRect().width ?? 0;\n const last = this.measured();\n if (last?.width === box.width && last.inset === inset && last.label === label) return;\n this.measured.set({ width: box.width, inset, label });\n }\n\n /**\n * Place the readout clear of the markers it reads. Over the crosshair at the top of the\n * plot, as it always sat, while that covers none of them; else at the bottom, while that\n * covers none; else beside the crosshair at the top, on the side with more room, which\n * covers none of them as long as it fits there — every marker is on the crosshair. Where\n * each covers some, the one that covers fewest, in that order on a tie.\n *\n * Every candidate is worked out from the readout's own size and from how far inside the\n * drawing's edge it sits, which is the same at the top and, moved below, at the bottom —\n * so the choice never depends on where it is now, and settles in one pass.\n */\n private placeTooltip(points: readonly { readonly x: number; readonly y: number }[], tooltip: HTMLElement): void {\n const box = this.svg().nativeElement.getBoundingClientRect();\n const plot = this.plot().nativeElement.getBoundingClientRect();\n const rect = tooltip.getBoundingClientRect();\n if (box.height <= 0 || rect.height <= 0 || rect.width <= 0) return;\n const current = this.tooltipPlacement();\n const inset = current === 'below' ? box.bottom - rect.bottom : rect.top - box.top;\n const { width, height } = rect;\n // Every marker of one x is on the crosshair.\n const x = box.left + (points[0].x / this.vbW) * box.width;\n const ys = points.map(p => box.top + (p.y / this.vbH) * box.height);\n /** Held inside the plot, as the stylesheet's clamp holds it. */\n const across = (left: number): number => wrClamp(left, plot.left, plot.right - width);\n const top = box.top + inset;\n const candidates: readonly { placement: TooltipPlacement; left: number; top: number }[] = [\n { placement: 'top', left: across(x - width / 2), top },\n { placement: 'below', left: across(x - width / 2), top: box.bottom - inset - height },\n x - plot.left > plot.right - x\n ? { placement: 'left', left: across(x - BESIDE - width), top }\n : { placement: 'right', left: across(x + BESIDE), top },\n ];\n const covers = (c: { left: number; top: number }): number =>\n x + HOVER_RADIUS > c.left && x - HOVER_RADIUS < c.left + width\n ? ys.filter(y => y + HOVER_RADIUS > c.top && y - HOVER_RADIUS < c.top + height).length\n : 0;\n let best = candidates[0];\n let fewest = covers(best);\n for (const candidate of candidates.slice(1)) {\n if (fewest === 0) break;\n const count = covers(candidate);\n if (count < fewest) {\n best = candidate;\n fewest = count;\n }\n }\n if (best.placement !== current) this.tooltipPlacement.set(best.placement);\n }\n\n /**\n * The y-axis labels, top to bottom, in the reader's own language — and decided for\n * the AXIS, not one tick at a time (`useChartNumbers().ticks`).\n *\n * Compact, through `Intl` (`1.2K`, `3.4M`, `4 Mio.`, `5 тыс.`): the abbreviation used\n * to be a `k` from the catalog beside digits from `Intl`, which no locale's own\n * convention matched past the thousands, and `Intl` knows each one's units — German\n * abbreviates no thousands at all, Japanese counts in ten-thousands. Each tick gets\n * exactly the significant digits the STEP needs, and when abbreviating would make the\n * labels LONGER the whole axis is written in full instead, so no axis mixes `-1K`\n * with `-1,025`.\n */\n protected readonly tickLabels = computed<readonly string[]>(() =>\n this.numbers.ticks(\n this.yTicks().map(tick => tick.value),\n this.bounds().step\n )\n );\n\n /**\n * Each y label beside the y of its gridline, as a percentage of the drawing's height.\n * The stylesheet places a label from that number inside the plot's block padding, the\n * way the x labels are placed from `xPercent`, so a label meets its line at any height\n * whatever the labels around it measure.\n */\n protected readonly yAxis = computed(() => {\n const labels = this.tickLabels();\n return this.yTicks().map((tick, i) => ({ label: labels[i], y: (tick.y / this.vbH) * 100 }));\n });\n\n protected readonly viewBox = computed(() => `0 0 ${this.vbW} ${this.vbH}`);\n\n /**\n * The figures for `dataTable`: the plot's name as the caption, a column per series\n * shown and a row per x, headed as the tooltip heads it. Each cell is the series' own\n * value, stacked or not, written as the tooltip writes it, and empty on a hole. With\n * every series hidden there is nothing to tabulate, and no rows.\n */\n protected readonly tableData = computed<WrChartTableData>(() => {\n const series = this.visibleSeries();\n const labels = this.xLabels();\n const rows =\n series.length === 0\n ? []\n : Array.from({ length: this.pointCount() }, (_, i) => ({\n header: labels[i] ?? this.ordinals.format(i + 1),\n cells: series.map(s => {\n const value = s.data[i];\n return value === undefined || value === null ? '' : this.numbers.value(value);\n }),\n }));\n return { caption: this.resolvedAriaLabel(), columns: series.map(s => s.label), groups: [{ rows }] };\n });\n}\n\nexport type { WrLineSeries } from './types';\n","@let hovered = activeIndex();\n@if (showLegend() && resolvedSeries().length > 0) {\n <!-- Every row keys its series by the series' own dash rather than a solid block: a\n coloured square leaves the reader to match it to the LINE, and matching by colour\n is the step the patterns exist to remove. Rows are tracked by position, so two\n series that share a label are two rows. -->\n <ul\n wr-chart-legend\n class=\"wr-line-chart__legend\"\n [items]=\"legendItems()\"\n [toggleable]=\"toggleableLegend()\"\n [(hiddenSeries)]=\"hiddenSeries\"\n ></ul>\n}\n\n<!-- Two columns: the y-axis labels at inline start, the drawing beside them, and the\n x labels under the drawing only, so their percentages are the drawing's. -->\n<div class=\"wr-line-chart__body\">\n @if (showGrid()) {\n <!-- The tick labels are HTML beside the drawing rather than `<text>` inside it: the\n drawing stretches with `preserveAspectRatio=\"none\"` and its type stretched with\n it. In flow, so the column is exactly as wide as the longest label; each one\n hands the stylesheet the y of its own gridline, as the x labels hand it their x.\n Hidden, as they were inside the plot's `img`: the plot's name is what is\n announced. -->\n <div class=\"wr-line-chart__y-axis\" aria-hidden=\"true\">\n @for (tick of yAxis(); track $index) {\n <span class=\"wr-line-chart__tick\" [style.--wr-line-chart-y]=\"tick.y\">{{ tick.label }}</span>\n }\n </div>\n }\n\n <div\n #plot\n class=\"wr-line-chart__plot\"\n role=\"img\"\n [attr.aria-label]=\"resolvedAriaLabel()\"\n [style.height.px]=\"height()\"\n (mousemove)=\"onPointerMove($event)\"\n (mouseleave)=\"onPointerLeave()\"\n >\n <!-- Named, where it was the only unnamed element in the component. The legend\n swatch is an `<svg>` too now, so `querySelector('svg')` no longer means\n \"the chart\" — and a plot that nothing can address by name is one a\n consumer's stylesheet and a spec both have to reach by position. -->\n <svg #svg class=\"wr-line-chart__svg\" [attr.viewBox]=\"viewBox()\" preserveAspectRatio=\"none\">\n @if (showGrid()) {\n @for (tick of yTicks(); track tick.value) {\n <!-- The colour is the stylesheet's, from `--wr-line-chart-grid-color`, so forced\n colors can swap it for the system's own. -->\n <line\n class=\"wr-line-chart__grid-line\"\n x1=\"0\"\n [attr.x2]=\"vbW\"\n [attr.y1]=\"tick.y\"\n [attr.y2]=\"tick.y\"\n stroke-width=\"1\"\n vector-effect=\"non-scaling-stroke\"\n />\n }\n }\n\n <!-- Every fill before every line, so the lines and their dashes stay on top where\n the fills overlap and the series are still told apart by shape. The opacity is\n the stylesheet's, from `--wr-line-chart-area-opacity`. -->\n @for (area of areas(); track area.key) {\n <path class=\"wr-line-chart__area\" [attr.d]=\"area.d\" [attr.fill]=\"area.color\" stroke=\"none\" />\n }\n\n <!-- By position, not by label: two series may share one, and a duplicate key\n makes Angular re-create rows it cannot tell apart. Each is drawn at its\n plotted values, which under `stacked` are the tops of its band. Every path is\n built once per data change (`drawn`), so hovering rebuilds none of them. -->\n @for (s of drawn(); track s.index) {\n <path\n class=\"wr-line-chart__line\"\n [attr.d]=\"s.d\"\n fill=\"none\"\n [attr.stroke]=\"s.color\"\n [attr.stroke-dasharray]=\"s.dash || null\"\n stroke-width=\"2\"\n stroke-linecap=\"round\"\n stroke-linejoin=\"round\"\n vector-effect=\"non-scaling-stroke\"\n />\n <!-- Every dot of the series in one path, a subpath each, so a long series costs\n one element rather than one per point. A hole in the data gets no dot. A dot\n is a zero-length line with a round cap and a non-scaling stroke, which stays\n a 6px circle however the drawing stretches; a `<circle>` scaled with it, into\n a 3 × 5px oval on a phone and a 9 × 5px one at 1920px. -->\n @if (s.dots) {\n <path\n class=\"wr-line-chart__dot\"\n [attr.d]=\"s.dots\"\n fill=\"none\"\n [attr.stroke]=\"s.color\"\n stroke-width=\"6\"\n stroke-linecap=\"round\"\n vector-effect=\"non-scaling-stroke\"\n />\n }\n }\n\n @if (hovered !== null && hoverPoints().length > 0) {\n <line\n class=\"wr-line-chart__crosshair\"\n [attr.x1]=\"pointX(hovered)\"\n [attr.x2]=\"pointX(hovered)\"\n y1=\"0\"\n [attr.y2]=\"vbH\"\n stroke-width=\"1\"\n stroke-dasharray=\"3 3\"\n vector-effect=\"non-scaling-stroke\"\n />\n <!-- A ring of the series' colour round a surface-coloured centre, drawn the way a\n dot is and for the same reason. The centre's colour is the stylesheet's, from\n `--wr-line-chart-hover-center`. -->\n @for (p of hoverPoints(); track p.index) {\n <path\n class=\"wr-line-chart__hover-dot\"\n [attr.d]=\"dotPath(p.x, p.y)\"\n fill=\"none\"\n [attr.stroke]=\"p.color\"\n stroke-width=\"12\"\n stroke-linecap=\"round\"\n vector-effect=\"non-scaling-stroke\"\n />\n <path\n class=\"wr-line-chart__hover-dot-center\"\n [attr.d]=\"dotPath(p.x, p.y)\"\n fill=\"none\"\n stroke-width=\"8\"\n stroke-linecap=\"round\"\n vector-effect=\"non-scaling-stroke\"\n />\n }\n }\n </svg>\n\n @if (hovered !== null && hoverPoints().length > 0) {\n <!-- The layer covers the plot and is what the tooltip's `cqw` measures. It is out of\n flow, so the containment it turns on costs the plot's own sizing nothing. The\n tooltip takes the same `--wr-line-chart-x` the x labels take, and the same\n clamp: centred on its point, never past either end. At the top of the plot, or\n where that would cover a marker it reads, at the bottom (`--below`) or beside the\n crosshair (`--left`, `--right`). -->\n <div class=\"wr-line-chart__tooltip-layer\">\n <div\n #tooltip\n class=\"wr-line-chart__tooltip\"\n [class.wr-line-chart__tooltip--below]=\"tooltipPlacement() === 'below'\"\n [class.wr-line-chart__tooltip--left]=\"tooltipPlacement() === 'left'\"\n [class.wr-line-chart__tooltip--right]=\"tooltipPlacement() === 'right'\"\n [style.--wr-line-chart-x]=\"xPercent(hovered)\"\n >\n <div class=\"wr-line-chart__tooltip-label\">{{ hoverLabel() }}</div>\n @for (p of hoverPoints(); track p.index) {\n <div class=\"wr-line-chart__tooltip-row\">\n <span class=\"wr-line-chart__swatch\" [style.background]=\"p.color\"></span>\n <span class=\"wr-line-chart__tooltip-name\">{{ p.label }}</span>\n <span class=\"wr-line-chart__tooltip-value\">{{ p.text }}</span>\n </div>\n }\n </div>\n </div>\n }\n </div>\n\n @if (xLabels().length > 0) {\n <!-- The strip is as wide as the plot, and hands the stylesheet the distance between\n two printed labels; each label hands it the x of the point it names. Both are\n percentages of the drawing's width, so they track the drawing at any size: the\n stylesheet centres a label on its point and ellipsises it past its slot. Laying the\n labels out as equal centred flex slots instead is bar-chart geometry: only the\n middle label landed on its dot, and the outer ones sat up to half a column away.\n The hidden copy of every label, a line each, is what the room they need is\n measured against: it is as wide as the widest. -->\n <div class=\"wr-line-chart__x-labels\" [style.--wr-line-chart-x-slot]=\"xSlot()\">\n <span #probe class=\"wr-line-chart__x-probe\" aria-hidden=\"true\">{{ probeText() }}</span>\n @for (tick of xAxis().ticks; track tick.index) {\n <span class=\"wr-line-chart__x-label\" [style.--wr-line-chart-x]=\"tick.x\">{{ tick.label }}</span>\n }\n </div>\n }\n</div>\n\n@if (dataTable()) {\n <!-- The figures for a screen reader, beside the plot's `img` and never inside it:\n `img` makes everything it holds presentational. Clipped to nothing by its own\n stylesheet, so it takes no room and draws nothing. -->\n <wr-chart-table [data]=\"tableData()\" />\n}\n"],"mappings":";;;;;;;;;;;;;;AA8CA,MAAM,gBAAgB;AAGtB,MAAM,gBAAgB;AAGtB,MAAM,aAAa;AAGnB,MAAM,YAAY;AAGlB,MAAM,eAAe;AAMrB,MAAM,SAAS;AAwEf,IAAa,cAAb,MAAa,YAAW;CAKb,SAAS,MAA+B,CAAA,GAAG,GAAA,YAAA,CAAA,EAAA,WAAA,SAAA,CAAA,+BAAA,CAAA,CAAA;CAQ3C,YAAY,MAAqB,MAAK,GAAA,YAAA,CAAA,EAAA,WAAA,YAAA,CAAA,+BAAA,CAAA,CAAA;CAE9B,YAAY,YAAY,KAAK,WAAW,mBAAmB,YAAY;CACvE,YAAY,YAAY,KAAK,WAAW,uBAAuB,YAAY;CAGzE,oBAAoB,eAAgB,KAAK,SAAQ,IAAK,KAAK,UAAS,IAAK,KAAK,UAAS,GAAI,GAAA,YAAA,CAAA,EAAA,WAAA,oBAAA,CAAA,+BAAA,CAAA,CAAA;CAOrG,cAAc,MAA0C,MAAK,GAAA,YAAA,CAAA,EAAA,WAAA,cAAA,CAAA,+BAAA,CAAA,CAAA;CAGrD,UAAU,gBAAgB,KAAK,WAAW;CAQlD,UAAU,MAAyB,CAAA,GAAG,GAAA,YAAA,CAAA,EAAA,WAAA,UAAA,CAAA,+BAAA,C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AA;EAAA,CAAA;EAAA,WAAA,CAAA;GAAA,MAAA,GAAA;GAAA,MAAA,CAEH,WAAS,EAAA,UAAA,KAAA,CAAA;EAAA,CAAA;CAAA;AAAA,CAAA"}
|
|
1
|
+
{"version":3,"file":"ngwr-charts-line-chart.mjs","names":[],"sources":["../../../projects/lib/charts/line-chart/internal/decimate.ts","../../../projects/lib/charts/line-chart/line-chart.ts","../../../projects/lib/charts/line-chart/line-chart.html"],"sourcesContent":["/**\n * @license\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://github.com/thekhegay/ngwr/blob/main/LICENSE\n */\n\n/** How many points a pixel column holds before a series is decimated. */\nconst DENSITY = 2;\n\n/** What separates two unbroken runs in the list {@link wrLineChartKeep} returns. */\nexport const WR_LINE_CHART_BREAK = -1;\n\n/**\n * Which points of a series are drawn, as positions in `values`, in order, with\n * {@link WR_LINE_CHART_BREAK} between two unbroken runs: a hole (`null`) breaks the line\n * and is never drawn across.\n *\n * `columns` is how many pixel columns the drawing is wide. While the series has at most\n * two points a column every point is kept. Past that, each column keeps four at the\n * most: the first point in it, the lowest, the highest and the last, in the order they\n * come. A screen cannot show more than that of a column - every stroke inside it lands\n * on the same pixels between its lowest and its highest point - so the line drawn is the\n * one the whole series drew, at a fraction of the path: ten thousand points on a 560px\n * drawing were ten thousand segments, 350 KB of `d` for one series, rebuilt on every\n * data tick. The global minimum and maximum, the first point and the last always\n * survive, since each is the extreme or the end of its own column. A hole starts a new\n * run, and a column is flushed at it, so a gap in the data is still a gap in the line.\n *\n * `columns` at 0 or less - a caller that wants no decimation - keeps every point.\n *\n * @internal\n */\nexport function wrLineChartKeep(values: readonly (number | null)[], columns: number): number[] {\n const count = values.length;\n const cols = Math.floor(columns);\n const every = !(cols > 0) || count <= cols * DENSITY;\n const kept: number[] = [];\n\n let column = -1;\n let first = -1;\n let low = -1;\n let high = -1;\n let last = -1;\n\n const flush = (): void => {\n if (first < 0) return;\n kept.push(first);\n const early = Math.min(low, high);\n const late = Math.max(low, high);\n if (early !== first && early !== last) kept.push(early);\n if (late !== early && late !== first && late !== last) kept.push(late);\n if (last !== first) kept.push(last);\n first = -1;\n };\n\n for (let i = 0; i < count; i++) {\n const value = values[i];\n if (value === null) {\n flush();\n column = -1;\n if (kept.length > 0 && kept[kept.length - 1] !== WR_LINE_CHART_BREAK) kept.push(WR_LINE_CHART_BREAK);\n continue;\n }\n if (every) {\n kept.push(i);\n continue;\n }\n const at = Math.min(cols - 1, Math.floor((i * cols) / count));\n if (at !== column) {\n flush();\n column = at;\n first = low = high = last = i;\n continue;\n }\n if (value < values[low]!) low = i;\n if (value > values[high]!) high = i;\n last = i;\n }\n flush();\n if (kept[kept.length - 1] === WR_LINE_CHART_BREAK) kept.pop();\n return kept;\n}\n\n/**\n * Whether the points of a series of `count` sit closer together than `spacing` px on a\n * drawing `width` px wide: where a dot per point stops being dots. Each dot is as wide\n * as a marker, so once the points are closer than that the dots touch, and a row of\n * touching dots is a thicker line that hides the one under it.\n *\n * @internal\n */\nexport function wrLineChartCrowded(count: number, width: number, spacing: number): boolean {\n return count > 1 && width > 0 && width / (count - 1) < spacing;\n}\n","/**\n * @license\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://github.com/thekhegay/ngwr/blob/main/LICENSE\n */\n\nimport { coerceBooleanProperty, coerceNumberProperty } from '@angular/cdk/coercion';\nimport { NgTemplateOutlet, isPlatformBrowser } from '@angular/common';\nimport {\n Component,\n DestroyRef,\n type ElementRef,\n LOCALE_ID,\n PLATFORM_ID,\n ViewEncapsulation,\n afterNextRender,\n afterRenderEffect,\n computed,\n inject,\n input,\n model,\n signal,\n untracked,\n viewChild,\n} from '@angular/core';\n\nimport {\n WR_CHART_LEGEND_BLOCK,\n WrChartLegend,\n type WrChartLegendItem,\n type WrChartLegendPosition,\n} from 'ngwr/charts/chart-legend';\nimport {\n WrChartState,\n WrChartTable,\n type WrChartTableData,\n useChartHover,\n useChartNumbers,\n useChartSize,\n useChartState,\n wrChartAxis,\n wrChartColor,\n wrChartDash,\n wrChartLongest,\n wrChartNumberFormat,\n} from 'ngwr/charts/core';\nimport { useI18nText } from 'ngwr/i18n';\nimport { type WrChartTooltipTarget, useChartTooltip, wrCoerceChartTooltip } from 'ngwr/popover';\nimport { wrClamp, wrCheckStyles } from 'ngwr/utils';\n\nimport { WR_LINE_CHART_BREAK, wrLineChartCrowded, wrLineChartKeep } from './internal/decimate';\nimport type { WrLineSeries } from './types';\n\n/**\n * The drawing's width in CSS px, assumed until a browser has measured it: what the server\n * and the first paint thin the x labels against.\n */\nconst ASSUMED_WIDTH = 560;\n\n/** The plot's inline padding in CSS px — `--wr-line-chart-plot-inset-x` — until measured. */\nconst ASSUMED_INSET = 16;\n\n/** How wide a character of an x label is taken to be, in CSS px, before a browser has measured the widest. */\nconst CHAR_WIDTH = 7;\n\n/** The least room between two printed x labels, in CSS px. */\nconst LABEL_GAP = 8;\n\n/**\n * How far the hover marker reaches from its point, in CSS px: half the 8px marker and the\n * 2px ring round it, at the stylesheet's defaults. What the tooltip keeps clear of.\n */\nconst HOVER_RADIUS = 6;\n\n/**\n * How close two points may sit, in CSS px, before their dots are left out: a dot's\n * width, `--wr-chart-marker`'s default. Closer than that the dots touch.\n */\nconst DOT_SPACING = 6;\n\n/** How many of the longest x labels the hidden measuring copy holds. */\nconst PROBES = 3;\n\n/** The class the chart's tooltip chip takes beside the shared one, which its own hooks restyle. */\nconst TOOLTIP_CLASS = 'wr-line-chart__tooltip';\n\n/**\n * What a browser measured, in CSS px: the drawing's width, the plot's padding beside it\n * and above it, and the widest x label.\n */\ninterface Measured {\n readonly width: number;\n readonly inset: number;\n readonly insetY: number;\n readonly label: number;\n}\n\n/** A series as it is drawn: `tops` is what each x is plotted at, `bases` where its band starts under `stacked`. */\ninterface PlottedSeries {\n readonly index: number;\n readonly label: string;\n readonly dash: string;\n readonly color: string;\n readonly data: readonly (number | null)[];\n readonly tops: readonly (number | null)[];\n readonly bases: readonly (number | null)[] | null;\n}\n\n/** A plotted series with the points of it that are drawn (see `wrLineChartKeep`). */\ninterface KeptSeries extends PlottedSeries {\n readonly kept: readonly number[];\n}\n\n/** One reading under the crosshair: a series' own value, and where its marker is drawn. */\ninterface HoverPoint {\n readonly index: number;\n readonly label: string;\n readonly value: number;\n readonly text: string;\n readonly color: string;\n readonly x: number;\n readonly y: number;\n}\n\n/**\n * Multi-series line chart on the shared chart theme: gridlines, a y scale, a legend and\n * a hover tooltip. SVG-only — no external dependency.\n *\n * @example\n * ```html\n * <wr-line-chart\n * [series]=\"[\n * { label: 'Visits', data: [12, 18, 9, 22, 30, 27, 35] },\n * { label: 'Signups', data: [3, 5, 4, 8, 11, 9, 14], color: 'var(--wr-color-success)' }\n * ]\"\n * [xLabels]=\"['Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat', 'Sun']\"\n * />\n * ```\n *\n * Each series takes the next colour of the chart palette (`--wr-chart-1` to `-8`) and\n * the next dash. The gridlines (`showGrid`) and the scale beside them (`showAxis`) are\n * each an input; the zero line is drawn stronger. Hovering a line or a legend row dims\n * the other series; the tooltip is the one every chart shares.\n *\n * The legend is a `ul[wr-chart-legend]` (`ngwr/charts/chart-legend`), below the plot\n * unless `legendPosition` says otherwise and left out for a single series; with\n * `toggleableLegend` its rows show and hide their series through `hiddenSeries`.\n *\n * With nothing to draw the chart keeps its frame and says \"No data\"; `loading` and\n * `error` put their own message there in place of the lines.\n *\n * A series with more than two points a pixel is drawn from the first, lowest, highest\n * and last point of every pixel column (`decimate`), which is the same line on screen at\n * a fraction of the path.\n *\n * An AREA chart is this one with `showArea`, which fills under every line down to\n * zero, and `stacked` piles the series on each other so the top line reads the total:\n *\n * ```html\n * <wr-line-chart [series]=\"series\" [xLabels]=\"labels\" showArea stacked />\n * ```\n *\n * The x labels are printed every one while the widest fits between two points, and every\n * n-th otherwise, so a long axis keeps whole labels rather than a row of ellipses; the\n * tooltip and the data table name every x. The drawing keeps time running left to right\n * under RTL, as every SVG chart here does; the y labels move to the right of it.\n *\n * @see https://ngwr.dev/charts/line-chart\n */\n@Component({\n selector: 'wr-line-chart',\n templateUrl: './line-chart.html',\n encapsulation: ViewEncapsulation.None,\n host: {\n // `wr-chart--legend`: the shared rule that keeps the legend's room from the plot.\n class: 'wr-line-chart wr-chart--legend',\n '[class.wr-chart--legend-side]': 'legendShown() && legendSide()',\n '[class.wr-line-chart--axis]': 'showAxis()',\n '[class.wr-line-chart--area]': 'showArea()',\n '[class.wr-line-chart--stacked]': 'stacked()',\n },\n imports: [NgTemplateOutlet, WrChartLegend, WrChartState, WrChartTable],\n // The legend's rows keep the classes this chart drew before it drew them through\n // `WrChartLegend`: `.wr-line-chart__legend-item`, `__swatch` and `__legend-label`.\n viewProviders: [{ provide: WR_CHART_LEGEND_BLOCK, useValue: 'wr-line-chart' }],\n})\nexport class WrLineChart {\n /**\n * One entry per line. A series with no `color` takes the next entry from the\n * chart's fallback palette, so several lines are distinguishable unconfigured.\n */\n readonly series = input<readonly WrLineSeries[]>([]);\n\n /**\n * Accessible name of the chart. The legend carries the series NAMES only — the numbers\n * are nowhere in text unless `dataTable` puts them there — so without this the plot is\n * nothing at all to a screen reader. Falls back to `lineChart.label`, or to\n * `lineChart.areaLabel` with `showArea`.\n */\n readonly ariaLabel = input<string | null>(null);\n\n private readonly lineLabel = useI18nText(this.ariaLabel, 'lineChart.label', 'Line chart');\n private readonly areaLabel = useI18nText(this.ariaLabel, 'lineChart.areaLabel', 'Area chart');\n\n /** The plot's name, which the data table takes as its caption. */\n protected readonly resolvedAriaLabel = computed(() => (this.showArea() ? this.areaLabel() : this.lineLabel()));\n\n /**\n * Writes every number the chart shows: the y-axis ticks and the tooltip values.\n * `null` uses `Intl.NumberFormat` in `LOCALE_ID`, with compact ticks (`1.2K`, `3.4M`)\n * unless the full numbers are shorter.\n */\n readonly valueFormat = input<((value: number) => string) | null>(null);\n\n /** The tooltip's exact figures and the axis' compact ticks, in `LOCALE_ID` unless `valueFormat` is given. */\n private readonly numbers = useChartNumbers(this.valueFormat);\n\n /**\n * Labels for the X axis (one per data point). Printed every one while the widest fits\n * between two points, and every n-th otherwise. An x past the end of this list is named\n * by its position, counting from 1, in `LOCALE_ID`'s digits, in the tooltip and the data\n * table.\n */\n readonly xLabels = input<readonly string[]>([]);\n\n /** Chart pixel height. @default 240 */\n readonly height = input(240, { transform: (v: unknown): number => Math.max(80, coerceNumberProperty(v, 240)) });\n\n /**\n * Draw the gridlines: one across the plot at every tick of the y axis, in\n * `--wr-line-chart-grid-color`, which defaults to the chart theme's `--wr-chart-grid`;\n * the one at zero is drawn in `--wr-line-chart-zero-color`. The scale's numbers are\n * `showAxis`. @default true\n */\n readonly showGrid = input(true, { transform: coerceBooleanProperty });\n\n /**\n * Print the y axis' scale: a number beside the plot at every tick. Off, the gutter\n * goes and the drawing takes its width. The x labels under the plot are `xLabels`.\n * @default true\n */\n readonly showAxis = input(true, { transform: coerceBooleanProperty });\n\n /**\n * Show the legend. `'auto'` shows it when there is something to tell apart - two\n * series or more - and leaves it out for a single series, which has nothing to key;\n * `true` shows it for one series too. @default 'auto'\n */\n readonly showLegend = input<boolean | 'auto', unknown>('auto', {\n transform: (value: unknown): boolean | 'auto' => (value === 'auto' ? 'auto' : coerceBooleanProperty(value)),\n });\n\n /**\n * Where the legend sits: `bottom` or `top` of the chart as a wrapping row, `start` or\n * `end` of it as a column, or `none` for no legend at all - `hiddenSeries` still hides\n * a series from outside. @default 'bottom'\n */\n readonly legendPosition = input<WrChartLegendPosition>('bottom');\n\n /**\n * A request for the chart's data is in flight: the lines give way to the loading\n * message, over the grid and the axis the chart keeps. @default false\n */\n readonly loading = input(false, { transform: coerceBooleanProperty });\n\n /**\n * The chart's data failed to load: the lines give way to the error message. `loading`\n * wins over it. @default false\n */\n readonly error = input(false, { transform: coerceBooleanProperty });\n\n /** The message shown with nothing to draw. Falls back to `chart.empty`, then `'No data'`. */\n readonly emptyLabel = input<string | null>(null);\n\n /** The message shown while `loading`. Falls back to `chart.loading`, then `'Loading…'`. */\n readonly loadingLabel = input<string | null>(null);\n\n /** The message shown on `error`. Falls back to `chart.error`, then `'Could not load'`. */\n readonly errorLabel = input<string | null>(null);\n\n /**\n * Make each legend row a toggle button that shows and hides its series, through\n * `hiddenSeries`. A row is a `<button aria-pressed>`, pressed while its series is\n * shown, so the legend becomes one tab stop per series. @default false\n */\n readonly toggleableLegend = input(false, { transform: coerceBooleanProperty });\n\n /**\n * The positions in `series` of the series that are hidden. Positions rather than\n * labels, since two series may share a label. A toggleable legend writes it, and a\n * host may bind it with or without one: `[(hiddenSeries)]`.\n *\n * A hidden series is left out of everything that reads its values. It draws no line\n * and no dots, it has no row or ring in the tooltip, and the y axis is fitted to the\n * series still shown, so hiding a large series lets the small ones fill the plot. The\n * x axis does not change, because its length belongs to the chart (`xLabels`) rather\n * than to one series, and the lines still shown keep their positions. The legend keeps\n * the hidden series' row, struck through, so it can be shown again; the row says\n * \"hidden\" to a screen reader as well, through `aria-pressed` on a toggle and a\n * visually hidden word otherwise. With every series\n * hidden the plot is the empty 0 to 1 frame. A position past the end of `series` is\n * kept and ignored.\n */\n readonly hiddenSeries = model<readonly number[]>([]);\n\n /**\n * Show dots at each data point. Under `decimate` the dots are left out once the points\n * sit closer than a dot is wide, where they would touch and read as a thicker line.\n * @default true\n */\n readonly showDots = input(true, { transform: coerceBooleanProperty });\n\n /**\n * Draw a dense series from fewer points. Once a series has more than two points for\n * every pixel of the drawing's width, each pixel column keeps its first, lowest,\n * highest and last point and the rest are not drawn: every stroke inside a column\n * lands on the same pixels, so the line on screen is the same and its path is a\n * fraction of the size. The peaks, the first point and the last always survive, and a\n * hole in the data still breaks the line. The dots thin with the line, and go\n * altogether once the points are closer than a dot is wide. The axis, the tooltip and\n * the data table always read every point. Off draws every point as given.\n * @default true\n */\n readonly decimate = input(true, { transform: coerceBooleanProperty });\n\n /**\n * Fill the space under each line, down to zero, which makes this an area chart.\n *\n * Each unbroken run of a series is one fill (`.wr-line-chart__area`) in the series'\n * colour at `--wr-line-chart-area-opacity`. A hole in the data breaks the fill as it\n * breaks the line, and a lone point between two holes has nothing to fill. Every fill\n * is drawn under every line, so the lines and their dashes stay on top and the series\n * are still told apart by shape where the fills overlap. The y axis takes zero in,\n * since the fills reach it: an all-negative series fills up to a zero at the top of\n * the plot. The plot's name falls back to `lineChart.areaLabel`. @default false\n */\n readonly showArea = input(false, { transform: coerceBooleanProperty });\n\n /**\n * Stack the series on each other in order, so at every x each series is drawn on top\n * of the ones before it and the top line reads the total.\n *\n * Positive values stack up from zero and negative values stack down from it, each sign\n * on its own, so no band crosses another at a point. A hole, or the missing end of a\n * shorter series, adds nothing to the stack and breaks that series' own line. The\n * lines, the dots, the hover markers and the y axis follow the stacked tops; the\n * tooltip and the data table keep each series' own value, which is the figure a reader\n * asks for. A series hidden through `hiddenSeries` leaves the stack. With `showArea`\n * each band fills from the series below to its own line, and the fill is stronger,\n * since the bands do not overlap. @default false\n */\n readonly stacked = input(false, { transform: coerceBooleanProperty });\n\n /**\n * Render the chart's figures as a table that only assistive technology reaches: a row\n * per x, headed by its x label, and a column per series shown, every value written the\n * way the tooltip writes it. A hole is an empty cell.\n *\n * The plot is one named `role=\"img\"`, which hides everything inside it, so without\n * the table the numbers are nowhere a screen reader can walk. It is rendered beside\n * the plot, clipped to nothing: it takes no room, draws nothing and holds no tab stop.\n * A stacked chart's table keeps each series' own values, and a hidden series leaves\n * it. @default false\n */\n readonly dataTable = input(false, { transform: coerceBooleanProperty });\n\n /**\n * Show the hover readout: the crosshair, the point markers and the tooltip, which is\n * the chip every chart shares, with the x label as its heading and a row per series.\n * Off drops all three, since a crosshair with no values beside it points at nothing.\n *\n * By default the pointer passes under the chip to the chart, so the next section\n * answers at once and the chip closes off the chart; `'hoverable'` lets the pointer\n * rest on the chip instead, as WCAG 1.4.13 asks of a hint. @default true\n */\n readonly tooltip = input<boolean | 'hoverable', unknown>(true, { transform: wrCoerceChartTooltip });\n\n /**\n * Drawn edge to edge in a 600×300 viewBox that stretches to the plot. Nothing in it is\n * text: the tick labels used to be `<text>` in here, and with\n * `preserveAspectRatio=\"none\"` a glyph stretches with the drawing, while the 36 units\n * kept for them at the left were a different width in pixels at every size. They are\n * HTML beside the drawing now, in a gutter as wide as its longest label, and the space\n * round the lines is CSS padding on the plot.\n */\n protected readonly vbW = 600;\n protected readonly vbH = 300;\n\n private readonly svg = viewChild.required<ElementRef<SVGSVGElement>>('svg');\n\n private readonly plot = viewChild.required<ElementRef<HTMLElement>>('plot');\n\n private readonly probe = viewChild<ElementRef<HTMLElement>>('probe');\n\n /** An x with no label of its own, by its position from 1 in the reader's own digits. */\n private readonly ordinals = wrChartNumberFormat(inject(LOCALE_ID));\n\n /** What a browser measured, once it has: `null` on the server and until the first render. */\n private readonly measured = signal<Measured | null>(null);\n\n /** The drawing's box, on the observer every chart shares: what a resize re-measures on. */\n private readonly drawingSize = useChartSize(this.svg);\n\n constructor() {\n if (typeof ngDevMode === 'undefined' || ngDevMode) wrCheckStyles('charts/line-chart');\n // The shared hover-dim: a line, its dots, its fill and its legend row carry\n // `data-wr-series`. The chart has no section an element stands for - an x is found\n // by position - so the section handlers have nothing to do.\n useChartHover({ enter: () => undefined, leave: () => undefined });\n\n // Measured after render, in a browser: the drawing's width and the widest x label,\n // which decide how many labels print and whether a series is decimated. Never on the\n // server, which works against `ASSUMED_WIDTH`.\n if (!isPlatformBrowser(inject(PLATFORM_ID))) return;\n const destroyRef = inject(DestroyRef);\n\n afterRenderEffect(() => {\n this.probeText();\n this.drawingSize();\n untracked(() => this.measure());\n });\n\n // The pointer, heard natively on the plot: a template listener would run a change\n // detection pass over the chart for every pixel the pointer crosses.\n afterNextRender(() => {\n const plot = this.plot().nativeElement;\n const move = (event: MouseEvent): void => this.onPointerMove(event);\n const leave = (event: MouseEvent): void => this.tip.leave(event);\n plot.addEventListener('mousemove', move);\n plot.addEventListener('mouseleave', leave);\n destroyRef.onDestroy(() => {\n plot.removeEventListener('mousemove', move);\n plot.removeEventListener('mouseleave', leave);\n });\n });\n }\n\n /**\n * Every series, resolved: its colour from the chart palette, its dash (`wrChartDash`, so the lines are\n * told apart by shape and not only by hue, the first one solid) and its data with a\n * HOLE at each non-finite point. Hidden ones included, since the legend lists them.\n *\n * A non-finite point becomes a hole at its own index, not a missing element. It\n * cannot stay a number: `Math.min` and `Math.max` over the pooled data are both NaN\n * as soon as one datum is, so every coordinate in EVERY series came out `NaN`, which\n * is invalid path geometry, and the whole chart vanished rather than the one bad\n * point. But filtering it out closed the gap and slid every LATER point one x-slot to\n * the left, so each of them was drawn under, and reported in the tooltip as, the\n * wrong x label. A gap is kept as a gap and the line is broken across it:\n * interpolating would invent a reading the data never took.\n */\n protected readonly resolvedSeries = computed(() =>\n this.series().map((s, i) => ({\n index: i,\n label: s.label,\n dash: wrChartDash(i),\n data: s.data.map(v => (typeof v === 'number' && Number.isFinite(v) ? v : null)),\n color: s.color ?? wrChartColor(i),\n }))\n );\n\n /** The legend's rows: every series, keyed by its own dash. */\n protected readonly legendItems = computed<readonly WrChartLegendItem[]>(() =>\n this.resolvedSeries().map(({ label, color, dash }) => ({ label, color, dash }))\n );\n\n /**\n * Whether the chart draws its legend: unless `legendPosition` is `none` or `showLegend`\n * is off. Under `showLegend=\"auto\"` a single series has nothing to tell apart, and\n * draws none.\n */\n protected readonly legendShown = computed(() => {\n const show = this.showLegend();\n const rows = this.legendItems().length;\n if (show === false || rows === 0 || this.legendPosition() === 'none') return false;\n return show === true || rows > 1;\n });\n\n /** Whether the legend comes before the plot, in the DOM as on screen: above it, or at inline start. */\n protected readonly legendFirst = computed(() => {\n const position = this.legendPosition();\n return position === 'top' || position === 'start';\n });\n\n /** Whether the legend sits beside the plot rather than above or below it. */\n protected readonly legendSide = computed(() => {\n const position = this.legendPosition();\n return position === 'start' || position === 'end';\n });\n\n /** Whether the chart has nothing to draw: no series, or none with a point. Hidden ones count as data. */\n private readonly empty = computed(() => this.resolvedSeries().every(s => s.data.length === 0));\n\n /** What the chart shows in place of its lines, or `null` while it draws them. */\n protected readonly state = useChartState({\n loading: this.loading,\n error: this.error,\n empty: this.empty,\n emptyLabel: this.emptyLabel,\n loadingLabel: this.loadingLabel,\n errorLabel: this.errorLabel,\n });\n\n /** The series drawn, read and fitted to: every one `hiddenSeries` does not name. */\n protected readonly visibleSeries = computed(() => {\n const hidden = new Set(this.hiddenSeries());\n return this.resolvedSeries().filter(s => !hidden.has(s.index));\n });\n\n /**\n * The series drawn, each with the value it is PLOTTED at for every x. That is its own\n * value, except under `stacked`, where it is the top of its band, and `bases` holds\n * where the band starts: zero, or the top of the last series before it on the same\n * side of zero. Positive values pile up and negative ones pile down, each sign on its\n * own, so two bands never cross at a point. A hole stays a hole and adds nothing.\n */\n protected readonly plottedSeries = computed<readonly PlottedSeries[]>(() => {\n const visible = this.visibleSeries();\n if (!this.stacked()) return visible.map(s => ({ ...s, tops: s.data, bases: null }));\n\n // Indexed by x, and sparse: an x no series has reached yet starts from zero.\n const up: number[] = [];\n const down: number[] = [];\n return visible.map(s => {\n const tops: (number | null)[] = [];\n const bases: (number | null)[] = [];\n s.data.forEach((v, i) => {\n if (v === null) {\n tops.push(null);\n bases.push(null);\n return;\n }\n const pile = v < 0 ? down : up;\n const base = pile[i] ?? 0;\n pile[i] = base + v;\n bases.push(base);\n tops.push(base + v);\n });\n return { ...s, tops, bases };\n });\n });\n\n /**\n * The y axis, from `wrChartAxis`, over what is plotted for the series still shown. It\n * floors at zero and never lifts to zero from below, so an all-negative series keeps\n * an axis that ends just above its peak, and it snaps to a readable step: seven\n * integers between 3 and 35 read 0 / 10 / 20 / 30 / 40, where \"the data's max plus\n * 10%, divided into four\" read 38.2 / 28.7 / 19.1 / 9.6 / 0. With nothing to fit, it is\n * the empty 0 to 1 frame.\n *\n * With `showArea` or `stacked` it takes zero in on either side instead: zero is the\n * baseline a fill reaches and the floor a stack starts from, so an axis that stopped\n * short of it would cut the fills off and misstate every band.\n */\n protected readonly bounds = computed(() => {\n // A loop rather than `Math.min(...values)`: a spread of every plotted value overflows\n // the stack past about 125k of them, and the chart rendered nothing at all.\n let min = Number.POSITIVE_INFINITY;\n let max = Number.NEGATIVE_INFINITY;\n for (const s of this.plottedSeries()) {\n for (const v of s.tops) {\n if (v === null) continue;\n if (v < min) min = v;\n if (v > max) max = v;\n }\n }\n if (min > max) return wrChartAxis(Number.NaN, Number.NaN);\n if (this.showArea() || this.stacked()) return wrChartAxis(min, max, { includeZero: true });\n return wrChartAxis(Math.min(0, min), max);\n });\n\n protected readonly pointCount = computed(() => {\n const maxLen = this.resolvedSeries().reduce((acc, s) => Math.max(acc, s.data.length), 0);\n return Math.max(maxLen, this.xLabels().length);\n });\n\n /**\n * Y-axis tick marks, one per `step` from the top down — so every label is a\n * whole multiple of a readable number rather than a quarter of whatever the\n * data happened to reach.\n */\n protected readonly yTicks = computed(() => {\n const { min, max, ticks } = this.bounds();\n return ticks.map(value => ({ value, zero: value === 0, y: ((max - value) / (max - min)) * this.vbH }));\n });\n\n /**\n * How many pixel columns a series is decimated to, or 0 while none is: with `decimate`\n * off, and while the longest series has two points a pixel or fewer, which is every\n * chart of ordinary size. From the drawing's measured width, and `ASSUMED_WIDTH` before\n * a browser has measured it. A number rather than the width itself, so a resize that\n * changes nothing here rebuilds no path.\n */\n private readonly columns = computed(() => {\n if (!this.decimate()) return 0;\n const width = Math.round(this.measured()?.width ?? ASSUMED_WIDTH);\n return this.pointCount() > width * 2 ? width : 0;\n });\n\n /** Whether the dots are drawn: `showDots`, unless `decimate` finds the points closer than a dot is wide. */\n private readonly dotsShown = computed(() => {\n if (!this.showDots()) return false;\n if (!this.decimate()) return true;\n return !wrLineChartCrowded(this.pointCount(), this.measured()?.width ?? ASSUMED_WIDTH, DOT_SPACING);\n });\n\n /** The series drawn, each with the points of it that are: every one, or four a pixel column (`decimate`). */\n private readonly keptSeries = computed<readonly KeptSeries[]>(() => {\n const columns = this.columns();\n return this.plottedSeries().map(s => ({ ...s, kept: wrLineChartKeep(s.tops, columns) }));\n });\n\n /**\n * The SVG path through the kept points of a series — one subpath per unbroken run, so\n * a hole in the data leaves a hole in the line rather than a straight segment across it.\n */\n private linePath(values: readonly (number | null)[], kept: readonly number[]): string {\n let d = '';\n let run = 0;\n let last = '';\n // A subpath of one `M` is not stroked at all, so a point with a gap on both sides —\n // or the only point of a one-point chart — would simply vanish when `showDots` is off.\n // Repeating it gives the round linecap something to paint.\n const closeRun = (): void => {\n if (run === 1) d += ` L ${last}`;\n run = 0;\n };\n for (const i of kept) {\n if (i === WR_LINE_CHART_BREAK) {\n closeRun();\n continue;\n }\n last = `${this.pointX(i).toFixed(2)} ${this.pointY(values[i] ?? 0).toFixed(2)}`;\n d += `${d ? ' ' : ''}${run === 0 ? 'M' : 'L'} ${last}`;\n run++;\n }\n closeRun();\n return d;\n }\n\n /**\n * Every series shown as the template draws it: its line's path, and with `showDots` one\n * path holding a subpath per dot, empty when there is none to draw. Built once per change\n * to the data or the axis, so moving the pointer from x to x, which re-renders the hover\n * layer, rebuilds no path.\n */\n protected readonly drawn = computed(() => {\n const dots = this.dotsShown();\n return this.keptSeries().map(s => ({\n index: s.index,\n color: s.color,\n dash: s.dash,\n d: this.linePath(s.tops, s.kept),\n dots: dots ? this.dotsFor(s.tops, s.kept) : '',\n }));\n });\n\n /** A series' dots as one path, a subpath for each kept point. A hole in the data gets none. */\n private dotsFor(values: readonly (number | null)[], kept: readonly number[]): string {\n let d = '';\n for (const i of kept) {\n if (i === WR_LINE_CHART_BREAK) continue;\n d += `${d ? ' ' : ''}${this.dotPath(this.pointX(i), this.pointY(values[i] ?? 0))}`;\n }\n return d;\n }\n\n /**\n * The fills under the lines with `showArea`: one per unbroken run of two points or\n * more, from the line down to zero, or down to the top of the band below under\n * `stacked`. A run of one point has no width to fill. Keyed by the series' position\n * and the run's first x, so a run that moves is a new fill. Each follows the points\n * its line is drawn through.\n */\n protected readonly areas = computed(() => {\n if (!this.showArea() || this.pointCount() <= 1) return [];\n return this.keptSeries().flatMap(s => {\n const fills: { key: string; series: number; color: string; d: string }[] = [];\n let run: number[] = [];\n const close = (): void => {\n if (run.length >= 2) {\n fills.push({ key: `${s.index}:${run[0]}`, series: s.index, color: s.color, d: this.areaPath(s, run) });\n }\n run = [];\n };\n for (const i of s.kept) {\n if (i === WR_LINE_CHART_BREAK) close();\n else run.push(i);\n }\n close();\n return fills;\n });\n });\n\n /** One fill: along the run's plotted values, then back along its base. */\n private areaPath(series: PlottedSeries, run: readonly number[]): string {\n const at = (i: number, value: number): string => `${this.pointX(i).toFixed(2)} ${this.pointY(value).toFixed(2)}`;\n const commands: string[] = [];\n for (let k = 0; k < run.length; k++)\n commands.push(`${k === 0 ? 'M' : 'L'} ${at(run[k], series.tops[run[k]] ?? 0)}`);\n for (let k = run.length - 1; k >= 0; k--) commands.push(`L ${at(run[k], series.bases?.[run[k]] ?? 0)}`);\n commands.push('Z');\n return commands.join(' ');\n }\n\n /** A point's x in the viewBox — a lone point in the middle, as the sparkline draws one. */\n protected pointX(index: number): number {\n const count = this.pointCount();\n if (count <= 1) return this.vbW / 2;\n return (index / (count - 1)) * this.vbW;\n }\n\n protected pointY(value: number): number {\n const { min, max } = this.bounds();\n return ((max - value) / (max - min)) * this.vbH;\n }\n\n /**\n * A point's x as a percentage of the drawing's width, which the SVG stretches to. The\n * x labels are placed with it, in a box as wide as the plot: the stylesheet adds the\n * plot's inline padding, so they land on the point at any size.\n */\n protected xPercent(index: number): number {\n return (this.pointX(index) / this.vbW) * 100;\n }\n\n /**\n * How far apart two neighbouring printed labels are, as a percentage of the drawing's\n * width — the room each x label has, half on either side of its point: the distance\n * between two points times the step `xAxis` prints at. The stylesheet bounds a label to\n * it, cut back at the ends of the strip, and ellipsises past that. Centring a label on its\n * point says nothing about its WIDTH, and with no bound at all twelve month names printed\n * over each other and the last one hung outside the chart.\n */\n protected readonly xSlot = computed(() => {\n const count = this.pointCount();\n // A single label has no neighbour to collide with and the whole strip to sit in.\n return count <= 1 ? 100 : Math.min(100, (100 * this.xAxis().every) / (count - 1));\n });\n\n /**\n * The longest few x labels, a line each: the hidden copy the labels' room is measured\n * against. Laid out as wide as its widest line, so among those few it measures the\n * widest rather than the one with the most characters — `WWWWW` is wider than\n * `iiiiiii`. A few and not every label: ten thousand labels were ten thousand lines to\n * shape on every change, to learn the width of one.\n */\n protected readonly probeText = computed(() =>\n wrChartLongest(\n this.xLabels().map(label => label.replace(/\\r\\n?|\\n/g, ' ')),\n PROBES\n ).join('\\n')\n );\n\n /**\n * Which x labels print. Every one while the widest label and a gap fit between two\n * points, as before there was any thinning; otherwise every `every`-th from the first,\n * the smallest step whose labels keep that gap — the first label included, which the\n * strip's start moves inwards when it is wider than the room before its point — and the\n * last one printed is left out if moving it inwards from the strip's end brings it\n * within the gap of the one before. The step is decided in a browser from the widest\n * label as laid out and the drawing's width, and against `ASSUMED_WIDTH` and seven\n * pixels a character before that, so the server thins a long axis too.\n *\n * Only the printed labels render: a label laid out and hidden still costs its share of\n * every resize.\n */\n protected readonly xAxis = computed(() => {\n const labels = this.xLabels();\n const count = this.pointCount();\n const measured = this.measured();\n const width = measured?.width ?? ASSUMED_WIDTH;\n const inset = measured?.inset ?? ASSUMED_INSET;\n const strip = width + 2 * inset;\n const longest = labels.reduce((most, label) => Math.max(most, label.length), 0);\n const label = Math.min(measured && measured.label > 0 ? measured.label : longest * CHAR_WIDTH, strip);\n const step = count <= 1 ? strip : width / (count - 1);\n /** Where a printed label's box starts, in px from the strip's start: centred on its point, moved in at either end. */\n const start = (index: number): number =>\n wrClamp(inset + this.pointX(index) * (width / this.vbW) - label / 2, 0, strip - label);\n // A hair of slack on every comparison, so the regular spacing never fails on a rounding.\n const crowds = (from: number, previousEnd: number): boolean => from + 1e-6 < previousEnd + LABEL_GAP;\n\n let every = count <= 1 ? 1 : Math.max(1, Math.ceil((label + LABEL_GAP - 1e-6) / step));\n while (every < labels.length - 1 && crowds(start(every), start(0) + label)) every++;\n\n const ticks: { readonly index: number; readonly label: string; readonly x: number }[] = [];\n let end = Number.NEGATIVE_INFINITY;\n for (let index = 0; index < labels.length; index += every) {\n const from = start(index);\n if (every > 1 && crowds(from, end)) break;\n ticks.push({ index, label: labels[index], x: this.xPercent(index) });\n end = from + label;\n }\n return { every, ticks };\n });\n\n /**\n * The readings at x `i`, one per series shown that has one. Each marker sits where the\n * series is drawn, which under `stacked` is the top of its band, while the row reads\n * the series' own value.\n */\n private pointsAt(i: number): HoverPoint[] {\n return this.plottedSeries().flatMap(s => {\n // Past the end of a short series, or on a hole in a longer one — either way there\n // is no reading at this x, so the series contributes neither a marker nor a row.\n const value = s.data[i];\n const plotted = s.tops[i];\n if (value === undefined || value === null || plotted === undefined || plotted === null) return [];\n const text = this.numbers.value(value);\n return [\n { index: s.index, label: s.label, value, text, color: s.color, x: this.pointX(i), y: this.pointY(plotted) },\n ];\n });\n }\n\n /**\n * The chart's tooltip: the chip every chart shares, with the hovered x's label as its\n * heading and a row per series shown with a reading there, in the series' colour. It\n * points at the box round that x's markers - the crosshair, from the highest marker to\n * the lowest, widened by a marker's reach - from above, and flips for room, so it\n * covers none of the markers it reads. It takes `wr-line-chart__tooltip` beside the\n * shared class, which is what this chart's own `--wr-line-chart-tooltip-*` hooks style.\n *\n * An x is found by POSITION, anywhere over the plot, so the chip is scrubbed the way a\n * sparkline's is: while it is up it follows the pointer by itself, over the plot and\n * over the chip.\n */\n protected readonly tip = useChartTooltip(\n this.tooltip,\n index => this.readout(index),\n (x, y) => this.indexAt(x, y)\n );\n\n /** The hovered x while the chart draws its lines: a state has nothing to read out. */\n protected readonly activeIndex = computed(() => (this.state() ? null : this.tip.active()));\n\n /** The hovered x's readings: what the crosshair and the markers are drawn from. */\n protected readonly hoverPoints = computed(() => {\n const i = this.activeIndex();\n return i === null ? [] : this.pointsAt(i);\n });\n\n private readout(index: number): WrChartTooltipTarget | null {\n if (this.state()) return null;\n const points = this.pointsAt(index);\n if (points.length === 0) return null;\n const box = this.svg().nativeElement.getBoundingClientRect();\n // Every marker of one x is on the crosshair.\n const x = box.left + (points[0].x / this.vbW) * box.width;\n let top = Number.POSITIVE_INFINITY;\n let bottom = Number.NEGATIVE_INFINITY;\n for (const point of points) {\n const y = box.top + (point.y / this.vbH) * box.height;\n if (y < top) top = y;\n if (y > bottom) bottom = y;\n }\n return {\n datum: {\n label: this.xLabels()[index] ?? this.ordinals.format(index + 1),\n value: '',\n rows: points.map(({ label, text, color }) => ({ label, value: text, color })),\n className: TOOLTIP_CLASS,\n },\n anchor: {\n x: x - HOVER_RADIUS,\n y: top - HOVER_RADIUS,\n width: 2 * HOVER_RADIUS,\n height: bottom - top + 2 * HOVER_RADIUS,\n },\n };\n }\n\n /**\n * The pointer over the plot, while no chip is up: an open chip follows the pointer by\n * itself, through `indexAt`, so each move is measured once. A MOUSE event, as the\n * sparkline's is: a tap fires `pointerdown`, `pointerup` and `pointerleave` and no\n * `pointermove`, then the compatibility `mousemove`, so a `pointermove` listener never\n * opened the readout on a phone and the `pointerleave` closed whatever it had.\n */\n private onPointerMove(event: MouseEvent): void {\n if (!this.tooltip() || this.tip.active() !== null) return;\n const index = this.indexAt(event.clientX, event.clientY);\n if (index === null) this.tip.leave(event);\n else this.tip.enter(index);\n }\n\n /**\n * The x nearest a viewport position over the plot, or `null` off it. Measured against\n * the drawing inside the plot: the drawing runs edge to edge, so the first and last\n * dots overhang it into the plot's padding, and over the padding the nearest point is\n * the end one, so the index is clamped. One layout read: the plot's own box is the\n * drawing's, widened by the padding last measured.\n */\n private indexAt(clientX: number, clientY: number): number | null {\n const count = this.pointCount();\n if (count === 0 || this.state()) return null;\n const box = this.svg().nativeElement.getBoundingClientRect();\n if (box.width <= 0) return null;\n const measured = this.measured();\n if (measured && box.height > 0) {\n const { inset, insetY } = measured;\n if (\n clientX < box.left - inset ||\n clientX > box.right + inset ||\n clientY < box.top - insetY ||\n clientY > box.bottom + insetY\n ) {\n return null;\n }\n }\n const ratio = (clientX - box.left) / box.width;\n return count === 1 ? 0 : wrClamp(Math.round(ratio * (count - 1)), 0, count - 1);\n }\n\n /** A zero-length line at a point, which a round cap paints as a dot. */\n protected dotPath(x: number, y: number): string {\n return `M ${x.toFixed(2)} ${y.toFixed(2)} h 0`;\n }\n\n /**\n * Read the drawing's width, the plot's padding and the widest x label off the layout.\n * A hidden chart measures 0 and keeps its last reading rather than thin to nothing;\n * with no label to measure the estimate stays in charge.\n */\n private measure(): void {\n const box = this.svg().nativeElement.getBoundingClientRect();\n if (box.width <= 0) return;\n const plot = this.plot().nativeElement.getBoundingClientRect();\n const inset = box.left - plot.left;\n const insetY = Math.max(0, box.top - plot.top);\n const label = this.probe()?.nativeElement.getBoundingClientRect().width ?? 0;\n const last = this.measured();\n if (last?.width === box.width && last.inset === inset && last.insetY === insetY && last.label === label) return;\n this.measured.set({ width: box.width, inset, insetY, label });\n }\n\n /**\n * The y-axis labels, top to bottom, in the reader's own language — and decided for\n * the AXIS, not one tick at a time (`useChartNumbers().ticks`).\n *\n * Compact, through `Intl` (`1.2K`, `3.4M`, `4 Mio.`, `5 тыс.`): the abbreviation used\n * to be a `k` from the catalog beside digits from `Intl`, which no locale's own\n * convention matched past the thousands, and `Intl` knows each one's units — German\n * abbreviates no thousands at all, Japanese counts in ten-thousands. Each tick gets\n * exactly the significant digits the STEP needs, and when abbreviating would make the\n * labels LONGER the whole axis is written in full instead, so no axis mixes `-1K`\n * with `-1,025`.\n */\n protected readonly tickLabels = computed<readonly string[]>(() =>\n this.numbers.ticks(\n this.yTicks().map(tick => tick.value),\n this.bounds().step\n )\n );\n\n /**\n * Each y label beside the y of its gridline, as a percentage of the drawing's height.\n * The stylesheet places a label from that number inside the plot's block padding, the\n * way the x labels are placed from `xPercent`, so a label meets its line at any height\n * whatever the labels around it measure.\n */\n protected readonly yAxis = computed(() => {\n const labels = this.tickLabels();\n return this.yTicks().map((tick, i) => ({ label: labels[i], y: (tick.y / this.vbH) * 100 }));\n });\n\n protected readonly viewBox = computed(() => `0 0 ${this.vbW} ${this.vbH}`);\n\n /**\n * The figures for `dataTable`: the plot's name as the caption, a column per series\n * shown and a row per x, headed as the tooltip heads it. Each cell is the series' own\n * value, stacked or not, written as the tooltip writes it, and empty on a hole. With\n * every series hidden there is nothing to tabulate, and no rows.\n */\n protected readonly tableData = computed<WrChartTableData>(() => {\n const series = this.visibleSeries();\n const labels = this.xLabels();\n const rows =\n series.length === 0\n ? []\n : Array.from({ length: this.pointCount() }, (_, i) => ({\n header: labels[i] ?? this.ordinals.format(i + 1),\n cells: series.map(s => {\n const value = s.data[i];\n return value === undefined || value === null ? '' : this.numbers.value(value);\n }),\n }));\n return { caption: this.resolvedAriaLabel(), columns: series.map(s => s.label), groups: [{ rows }] };\n });\n}\n\nexport type { WrLineSeries } from './types';\n","@let hovered = activeIndex();\n@let shown = state();\n\n<!-- The legend, drawn before the body or after it so it is in the DOM where it is on\n screen: a toggleable legend's rows are tab stops, and their order follows it. Every\n row keys its series by the series' own dash rather than a solid block: a coloured\n square leaves the reader to match it to the LINE, and matching by colour is the step\n the patterns exist to remove. Rows are tracked by position, so two series that share\n a label are two rows. -->\n<ng-template #legend>\n <ul\n wr-chart-legend\n class=\"wr-line-chart__legend\"\n [items]=\"legendItems()\"\n [position]=\"legendPosition()\"\n [toggleable]=\"toggleableLegend()\"\n [(hiddenSeries)]=\"hiddenSeries\"\n ></ul>\n</ng-template>\n\n@if (legendShown() && legendFirst()) {\n <ng-container [ngTemplateOutlet]=\"legend\" />\n}\n\n<!-- Two columns: the y-axis labels at inline start, the drawing beside them, and the\n x labels under the drawing only, so their percentages are the drawing's. -->\n<div class=\"wr-line-chart__body\">\n @if (showAxis()) {\n <!-- The tick labels are HTML beside the drawing rather than `<text>` inside it: the\n drawing stretches with `preserveAspectRatio=\"none\"` and its type stretched with\n it. In flow, so the column is exactly as wide as the longest label; each one\n hands the stylesheet the y of its own gridline, as the x labels hand it their x.\n Hidden, as they were inside the plot's `img`: the plot's name is what is\n announced. -->\n <div class=\"wr-line-chart__y-axis\" aria-hidden=\"true\">\n @for (tick of yAxis(); track $index) {\n <span class=\"wr-line-chart__tick\" [style.--wr-line-chart-y]=\"tick.y\">{{ tick.label }}</span>\n }\n </div>\n }\n\n <!-- The pointer is heard on the plot by one native listener pair the component adds,\n and an x is found by position. -->\n <div\n #plot\n class=\"wr-line-chart__plot\"\n role=\"img\"\n [attr.aria-label]=\"resolvedAriaLabel()\"\n [style.height.px]=\"height()\"\n >\n <!-- Named, where it was the only unnamed element in the component. The legend\n swatch is an `<svg>` too now, so `querySelector('svg')` no longer means\n \"the chart\" — and a plot that nothing can address by name is one a\n consumer's stylesheet and a spec both have to reach by position. -->\n <svg #svg class=\"wr-line-chart__svg\" [attr.viewBox]=\"viewBox()\" preserveAspectRatio=\"none\">\n @if (showGrid()) {\n @for (tick of yTicks(); track tick.value) {\n <!-- The colour is the stylesheet's, from `--wr-line-chart-grid-color`, so forced\n colors can swap it for the system's own; the line at zero takes the\n stronger `--wr-line-chart-zero-color`. -->\n <line\n class=\"wr-line-chart__grid-line\"\n [class.wr-line-chart__grid-line--zero]=\"tick.zero\"\n x1=\"0\"\n [attr.x2]=\"vbW\"\n [attr.y1]=\"tick.y\"\n [attr.y2]=\"tick.y\"\n vector-effect=\"non-scaling-stroke\"\n />\n }\n }\n\n @if (!shown) {\n <!-- Every fill before every line, so the lines and their dashes stay on top where\n the fills overlap and the series are still told apart by shape. The opacity is\n the stylesheet's, from `--wr-line-chart-area-opacity`. `data-wr-series` is the\n series' row in the legend, which the shared hover dims by. -->\n @for (area of areas(); track area.key) {\n <path\n class=\"wr-line-chart__area\"\n [attr.d]=\"area.d\"\n [attr.fill]=\"area.color\"\n [attr.data-wr-series]=\"area.series\"\n stroke=\"none\"\n />\n }\n\n <!-- By position, not by label: two series may share one, and a duplicate key\n makes Angular re-create rows it cannot tell apart. Each is drawn at its\n plotted values, which under `stacked` are the tops of its band. Every path is\n built once per data change (`drawn`), so hovering rebuilds none of them. The\n width is the stylesheet's, from `--wr-line-chart-line-width`. -->\n @for (s of drawn(); track s.index) {\n <path\n class=\"wr-line-chart__line\"\n [attr.d]=\"s.d\"\n fill=\"none\"\n [attr.stroke]=\"s.color\"\n [attr.stroke-dasharray]=\"s.dash || null\"\n [attr.data-wr-series]=\"s.index\"\n stroke-linecap=\"round\"\n stroke-linejoin=\"round\"\n vector-effect=\"non-scaling-stroke\"\n />\n <!-- Every dot of the series in one path, a subpath each, so a long series costs\n one element rather than one per point. A hole in the data gets no dot. A dot\n is a zero-length line with a round cap and a non-scaling stroke, which stays\n a circle however the drawing stretches; a `<circle>` scaled with it, into\n a 3 × 5px oval on a phone and a 9 × 5px one at 1920px. Its size is the\n stylesheet's, from `--wr-line-chart-dot-size`. -->\n @if (s.dots) {\n <path\n class=\"wr-line-chart__dot\"\n [attr.d]=\"s.dots\"\n fill=\"none\"\n [attr.stroke]=\"s.color\"\n [attr.data-wr-series]=\"s.index\"\n stroke-linecap=\"round\"\n vector-effect=\"non-scaling-stroke\"\n />\n }\n }\n }\n\n @if (hovered !== null && hoverPoints().length > 0) {\n <line\n class=\"wr-line-chart__crosshair\"\n [attr.x1]=\"pointX(hovered)\"\n [attr.x2]=\"pointX(hovered)\"\n y1=\"0\"\n [attr.y2]=\"vbH\"\n vector-effect=\"non-scaling-stroke\"\n />\n <!-- A marker in the series' colour inside a ring of the surface, drawn the way a\n dot is and for the same reason: the ring first, a wider stroke under the\n marker's. The ring's colour is the stylesheet's, from\n `--wr-line-chart-hover-center`. -->\n @for (p of hoverPoints(); track p.index) {\n <path\n class=\"wr-line-chart__hover-dot-ring\"\n [attr.d]=\"dotPath(p.x, p.y)\"\n fill=\"none\"\n stroke-linecap=\"round\"\n vector-effect=\"non-scaling-stroke\"\n />\n <path\n class=\"wr-line-chart__hover-dot\"\n [attr.d]=\"dotPath(p.x, p.y)\"\n fill=\"none\"\n [attr.stroke]=\"p.color\"\n stroke-linecap=\"round\"\n vector-effect=\"non-scaling-stroke\"\n />\n }\n }\n </svg>\n </div>\n\n @if (shown) {\n <!-- Empty, loading or failed: the message, over the grid and the axis the chart keeps.\n Beside the plot, in its grid cell, and not inside it: the plot is an `img`, which\n makes everything it holds presentational, and the message is a live region. -->\n <wr-chart-state [kind]=\"shown.kind\" [label]=\"shown.label\" />\n }\n\n @if (xLabels().length > 0) {\n <!-- The strip is as wide as the plot, and hands the stylesheet the distance between\n two printed labels; each label hands it the x of the point it names. Both are\n percentages of the drawing's width, so they track the drawing at any size: the\n stylesheet centres a label on its point and ellipsises it past its slot. Laying the\n labels out as equal centred flex slots instead is bar-chart geometry: only the\n middle label landed on its dot, and the outer ones sat up to half a column away.\n The hidden copy of the longest few labels, a line each, is what the room they\n need is measured against: it is as wide as the widest of them. -->\n <div class=\"wr-line-chart__x-labels\" [style.--wr-line-chart-x-slot]=\"xSlot()\">\n <span #probe class=\"wr-line-chart__x-probe\" aria-hidden=\"true\">{{ probeText() }}</span>\n @for (tick of xAxis().ticks; track tick.index) {\n <span class=\"wr-line-chart__x-label\" [style.--wr-line-chart-x]=\"tick.x\">{{ tick.label }}</span>\n }\n </div>\n }\n</div>\n\n@if (legendShown() && !legendFirst()) {\n <ng-container [ngTemplateOutlet]=\"legend\" />\n}\n\n@if (dataTable() && !shown) {\n <!-- The figures for a screen reader, beside the plot's `img` and never inside it:\n `img` makes everything it holds presentational. Clipped to nothing by its own\n stylesheet, so it takes no room and draws nothing. -->\n <wr-chart-table [data]=\"tableData()\" />\n}\n"],"mappings":";;;;;;;;;;;;;;;AAQA,MAAM,UAAU;AAyBhB,SAAgB,gBAAgB,QAAoC,SAAe;CACjF,MAAM,QAAQ,OAAO;CACrB,MAAM,OAAO,KAAK,MAAM,OAAO;CAC/B,MAAM,QAAQ,EAAE,OAAO,MAAM,SAAS,OAAO;CAC7C,MAAM,OAAiB,CAAA;CAEvB,IAAI,SAAS;CACb,IAAI,QAAQ;CACZ,IAAI,MAAM;CACV,IAAI,OAAO;CACX,IAAI,OAAO;CAEX,MAAM,cAAmB;EACvB,IAAI,QAAQ,GAAG;EACf,KAAK,KAAK,KAAK;EACf,MAAM,QAAQ,KAAK,IAAI,KAAK,IAAI;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is governed by an MIT-style license that can be
|
|
7
7
|
* found in the LICENSE file at https://github.com/thekhegay/ngwr/blob/main/LICENSE
|
|
8
8
|
*/
|
|
9
|
-
const
|
|
9
|
+
const SLICE_SIZE = /(?:^|;)\s*--wr-meter-group-slice-size\s*:\s*([\d.]+)/;
|
|
10
10
|
var WrMeterGroupHarness = class WrMeterGroupHarness extends ComponentHarness {
|
|
11
11
|
static hostSelector = "wr-meter-group";
|
|
12
12
|
static with(options = {}) {
|
|
@@ -45,9 +45,9 @@ var WrMeterGroupHarness = class WrMeterGroupHarness extends ComponentHarness {
|
|
|
45
45
|
}));
|
|
46
46
|
}
|
|
47
47
|
static percentOf(label, style) {
|
|
48
|
-
const match =
|
|
49
|
-
if (!match) throw new Error(`WrMeterGroupHarness.getSlices(): the band ${label === null ? "(untitled)" : `"${label}"`} carries no inline
|
|
50
|
-
return Number.parseFloat(match[1]);
|
|
48
|
+
const match = SLICE_SIZE.exec(style ?? "");
|
|
49
|
+
if (!match) throw new Error(`WrMeterGroupHarness.getSlices(): the band ${label === null ? "(untitled)" : `"${label}"`} carries no inline share of the bar (style: "${style ?? ""}"). The component writes one for every band, since the total always falls back to 1 — so its absence is the bug, and reporting 0 would read as an empty band.`);
|
|
50
|
+
return Math.round(Number.parseFloat(match[1]) * 1e5) / 1e3;
|
|
51
51
|
}
|
|
52
52
|
async hasLegend() {
|
|
53
53
|
return await this.locatorForOptional(".wr-meter-group__legend")() !== null;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ngwr-charts-meter-group-testing.mjs","names":[],"sources":["../../../projects/lib/charts/meter-group/testing/wr-meter-group-harness.ts"],"sourcesContent":["/**\n * @license\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://github.com/thekhegay/ngwr/blob/main/LICENSE\n */\n\nimport { ComponentHarness, HarnessPredicate } from '@angular/cdk/testing';\n\nimport { WrChartLegendHarness } from 'ngwr/charts/chart-legend/testing';\n\nimport type { WrMeterGroupHarnessFilters, WrMeterGroupSlice } from './types';\n\n/** The
|
|
1
|
+
{"version":3,"file":"ngwr-charts-meter-group-testing.mjs","names":[],"sources":["../../../projects/lib/charts/meter-group/testing/wr-meter-group-harness.ts"],"sourcesContent":["/**\n * @license\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://github.com/thekhegay/ngwr/blob/main/LICENSE\n */\n\nimport { ComponentHarness, HarnessPredicate } from '@angular/cdk/testing';\n\nimport { WrChartLegendHarness } from 'ngwr/charts/chart-legend/testing';\n\nimport type { WrMeterGroupHarnessFilters, WrMeterGroupSlice } from './types';\n\n/** The share of the bar the component writes onto a band, 0 to 1, out of its inline `style`. */\nconst SLICE_SIZE = /(?:^|;)\\s*--wr-meter-group-slice-size\\s*:\\s*([\\d.]+)/;\n\n/**\n * Test harness for `<wr-meter-group>` — one bar divided into labelled bands.\n *\n * **The bar is a single `progressbar`, and its value is the TOTAL.** The bands\n * themselves announce nothing: they carry a hover tooltip (or, with `tooltip` off, a\n * `title`) for a mouse and their share as an inline width, and the legend is where\n * their labels and values are readable. So a\n * spec that wants \"how much of each\" reads {@link getSlices} for the shares or\n * {@link getLegendLabels} / {@link getLegendValues} for what is printed, and one that\n * wants \"how full\" reads {@link getValue}.\n *\n * **A band's share is read off the `style` ATTRIBUTE, not through `getCssValue()`**,\n * and the difference is not cosmetic: `getCssValue()` is `getComputedStyle()`, and\n * `width` resolves to the USED value — so the declared `30%` comes straight back in\n * jsdom and arrives as `180px` on a 600px bar in a real browser, and the same harness\n * answered 30 here and 180 under a browser runner with nothing to say which one you\n * got.\n *\n * @see https://ngwr.dev/guides/testing\n */\nexport class WrMeterGroupHarness extends ComponentHarness {\n static hostSelector = 'wr-meter-group';\n\n /** Build a predicate that narrows the query — pass to `getHarness` / `getAllHarnesses`. */\n static with(options: WrMeterGroupHarnessFilters = {}): HarnessPredicate<WrMeterGroupHarness> {\n return new HarnessPredicate(WrMeterGroupHarness, options)\n .addOption('ariaLabel', options.ariaLabel, (harness, label) =>\n HarnessPredicate.stringMatches(harness.getAccessibleName(), label)\n )\n .addOption('sliceLabel', options.sliceLabel, async (harness, label) => {\n for (const printed of await harness.getLegendLabels()) {\n if (await HarnessPredicate.stringMatches(printed, label)) return true;\n }\n return false;\n });\n }\n\n private readonly bar = this.locatorFor('.wr-meter-group__bar');\n\n /** The role the bar announces — `progressbar`, for the total. */\n async getRole(): Promise<string | null> {\n return (await this.bar()).getAttribute('role');\n }\n\n /** The bar's accessible name. */\n async getAccessibleName(): Promise<string | null> {\n return (await this.bar()).getAttribute('aria-label');\n }\n\n /** The total the bands add up to, from `aria-valuenow`. */\n async getValue(): Promise<number> {\n return this.numberAttribute('aria-valuenow', 'getValue');\n }\n\n /** The full capacity, from `aria-valuemax` — given, or the sum of the bands. */\n async getMax(): Promise<number> {\n return this.numberAttribute('aria-valuemax', 'getMax');\n }\n\n /**\n * A finite number off one of the bar's attributes, or a sentence saying which one it\n * lacks. `Number(null)` is `0`, so a lost binding read as an empty bar.\n */\n private async numberAttribute(name: string, method: string): Promise<number> {\n const raw = await (await this.bar()).getAttribute(name);\n const value = raw === null ? Number.NaN : Number.parseFloat(raw);\n if (!Number.isFinite(value)) {\n throw new Error(\n `WrMeterGroupHarness.${method}(): the bar carries ${name}=\"${raw ?? ''}\", which the component writes as a ` +\n 'finite number on every meter group.'\n );\n }\n return value;\n }\n\n /** The bands, in order, with the share of the bar each takes. A hidden segment draws no band. */\n async getSlices(): Promise<WrMeterGroupSlice[]> {\n const slices = await this.locatorForAll('.wr-meter-group__slice')();\n\n return Promise.all(\n slices.map(async slice => {\n // `data-label`, which the band carries whatever `tooltip` says. The `title`\n // this used to read is written only while the tooltip is off, so reading it\n // would answer `null` for every band of a default meter.\n const label = await slice.getAttribute('data-label');\n return { label, percent: WrMeterGroupHarness.percentOf(label, await slice.getAttribute('style')) };\n })\n );\n }\n\n /** Parse one band's declared share. See the class note on why this is not `getCssValue()`. */\n private static percentOf(label: string | null, style: string | null): number {\n const match = SLICE_SIZE.exec(style ?? '');\n if (!match) {\n throw new Error(\n `WrMeterGroupHarness.getSlices(): the band ${label === null ? '(untitled)' : `\"${label}\"`} carries no ` +\n `inline share of the bar (style: \"${style ?? ''}\"). The component writes one for every band, since the ` +\n 'total always falls back to 1 — so its absence is the bug, and reporting 0 would read as an empty band.'\n );\n }\n return Math.round(Number.parseFloat(match[1]) * 1e5) / 1e3;\n }\n\n /** Whether the legend is rendered (`showLegend`, and at least one band). */\n async hasLegend(): Promise<boolean> {\n return (await this.locatorForOptional('.wr-meter-group__legend')()) !== null;\n }\n\n /**\n * The legend as a {@link WrChartLegendHarness}: each row's key and its hidden state\n * and, with `toggleableLegend`, the toggles that show and hide a segment.\n *\n * Throws when the group draws no legend (`showLegend` off, or no segments) rather\n * than answering with an empty one: {@link hasLegend} is the question for that.\n */\n async getLegendHarness(): Promise<WrChartLegendHarness> {\n const legend = await this.locatorForOptional(WrChartLegendHarness)();\n if (!legend) {\n throw new Error(\n 'WrMeterGroupHarness.getLegendHarness(): the group draws no legend — `showLegend` is off or there are no ' +\n 'segments. Ask hasLegend() first.'\n );\n }\n return legend;\n }\n\n /** The legend's labels, in order — hidden segments included, since their rows stay. */\n async getLegendLabels(): Promise<string[]> {\n const labels = await this.locatorForAll('.wr-meter-group__legend-label')();\n return Promise.all(labels.map(label => label.text()));\n }\n\n /** The legend's values, in order — empty when `showValues` is off. */\n async getLegendValues(): Promise<string[]> {\n const values = await this.locatorForAll('.wr-meter-group__legend-value')();\n return Promise.all(values.map(value => value.text()));\n }\n}\n"],"mappings":";;;;;;;;AAcA,MAAM,aAAa;AAsBnB,IAAa,sBAAb,MAAa,4BAA4B,iBAAgB;CACvD,OAAO,eAAe;CAGtB,OAAO,KAAK,UAAsC,CAAA,GAAE;EAClD,OAAO,IAAI,iBAAiB,qBAAqB,OAAO,CAAC,CACtD,UAAU,aAAa,QAAQ,YAAY,SAAS,UACnD,iBAAiB,cAAc,QAAQ,kBAAiB,GAAI,KAAK,CAAC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