@ids-group-ltd/ids-design-system 0.14.1 → 0.14.3
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/CHANGELOG.md +336 -0
- package/components.md +41 -38
- package/docs/agent/INDEX.md +3 -3
- package/docs/agent/charts/column-series-component.md +1 -1
- package/docs/agent/charts/ds-bar-chart.md +3 -3
- package/docs/agent/charts/ds-chart.md +1 -1
- package/docs/agent/charts/ds-column-chart.md +3 -3
- package/docs/agent/charts/ds-config.md +1 -1
- package/docs/agent/charts/ds-funnel-chart.md +3 -3
- package/docs/agent/charts/ds-heatmap-chart.md +1 -1
- package/docs/agent/charts/ds-line-chart.md +2 -2
- package/docs/agent/charts/ds-pie-chart.md +2 -2
- package/docs/agent/charts/ds-scatter-chart.md +1 -1
- package/docs/agent/charts/ds-waterfall-chart.md +1 -1
- package/docs/agent/charts/line-series-component.md +1 -1
- package/docs/agent/feedback/ds-description-list.md +3 -0
- package/docs/agent/forms/ds-color-picker.md +1 -1
- package/docs/agent/forms/ds-date-picker.md +1 -1
- package/docs/agent/forms/ds-select.md +1 -1
- package/docs/agent/forms/ds-textarea.md +1 -1
- package/docs/agent/forms/ds-time-picker.md +1 -1
- package/docs/agent/forms/the-picker-family-ds-select-ds-multi-select-ds-autocomplete.md +1 -1
- package/docs/agent/foundations/tokens.md +1 -1
- package/docs/agent/navigation/ds-pagination.md +1 -1
- package/docs/agent/navigation/ds-tabs.md +2 -1
- package/docs/agent/overlays/ds-bottom-sheet.md +1 -1
- package/docs/agent/overlays/ds-drawer.md +1 -1
- package/docs/agent/overlays/ds-modal.md +1 -1
- package/docs/agent/overlays/ds-popover.md +1 -1
- package/docs/agent/overlays/ds-tooltip.md +4 -4
- package/docs/agent/tables/ds-table.md +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-autocomplete.mjs +4 -2
- package/fesm2022/ids-group-ltd-ids-design-system-components-autocomplete.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-bar-chart.mjs +22 -16
- package/fesm2022/ids-group-ltd-ids-design-system-components-bar-chart.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-bottom-sheet.mjs +16 -4
- package/fesm2022/ids-group-ltd-ids-design-system-components-bottom-sheet.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-chart-legend.mjs +19 -7
- package/fesm2022/ids-group-ltd-ids-design-system-components-chart-legend.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-chart-tooltip.mjs +180 -19
- package/fesm2022/ids-group-ltd-ids-design-system-components-chart-tooltip.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-chart.mjs +175 -93
- package/fesm2022/ids-group-ltd-ids-design-system-components-chart.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-color-picker.mjs +25 -10
- package/fesm2022/ids-group-ltd-ids-design-system-components-color-picker.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-column-chart.mjs +10 -11
- package/fesm2022/ids-group-ltd-ids-design-system-components-column-chart.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-date-picker.mjs +28 -11
- package/fesm2022/ids-group-ltd-ids-design-system-components-date-picker.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-description-list.mjs +3 -3
- package/fesm2022/ids-group-ltd-ids-design-system-components-description-list.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-drawer.mjs +13 -4
- package/fesm2022/ids-group-ltd-ids-design-system-components-drawer.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-funnel-chart.mjs +32 -18
- package/fesm2022/ids-group-ltd-ids-design-system-components-funnel-chart.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-heatmap-chart.mjs +47 -7
- package/fesm2022/ids-group-ltd-ids-design-system-components-heatmap-chart.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-line-chart.mjs +11 -11
- package/fesm2022/ids-group-ltd-ids-design-system-components-line-chart.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-multi-select.mjs +5 -3
- package/fesm2022/ids-group-ltd-ids-design-system-components-multi-select.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-pagination.mjs +11 -5
- package/fesm2022/ids-group-ltd-ids-design-system-components-pagination.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-pie-chart.mjs +15 -13
- package/fesm2022/ids-group-ltd-ids-design-system-components-pie-chart.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-scatter-chart.mjs +35 -5
- package/fesm2022/ids-group-ltd-ids-design-system-components-scatter-chart.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-select.mjs +5 -4
- package/fesm2022/ids-group-ltd-ids-design-system-components-select.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-sidenav.mjs +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-sidenav.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-stat.mjs +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-stat.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-table.mjs +32 -7
- package/fesm2022/ids-group-ltd-ids-design-system-components-table.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-tabs.mjs +66 -6
- package/fesm2022/ids-group-ltd-ids-design-system-components-tabs.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-textarea.mjs +84 -10
- package/fesm2022/ids-group-ltd-ids-design-system-components-textarea.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-time-picker.mjs +16 -5
- package/fesm2022/ids-group-ltd-ids-design-system-components-time-picker.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-tooltip.mjs +138 -10
- package/fesm2022/ids-group-ltd-ids-design-system-components-tooltip.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-waterfall-chart.mjs +25 -9
- package/fesm2022/ids-group-ltd-ids-design-system-components-waterfall-chart.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components.mjs +87 -11
- package/fesm2022/ids-group-ltd-ids-design-system-components.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-core.mjs +4 -1
- package/fesm2022/ids-group-ltd-ids-design-system-core.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system.mjs.map +1 -1
- package/migrations/0.14.2.json +427 -0
- package/migrations/0.14.3.json +71 -0
- package/package.json +1 -1
- package/schematics/check-overrides/surface.json +36 -2
- package/styles/_chart-frame.scss +34 -12
- package/styles/_chart-interactive.scss +10 -9
- package/styles/_chart-motion.scss +139 -16
- package/styles/_overlay-motion.scss +6 -0
- package/styles/_tokens.scss +19 -4
- package/themes/_semantic.scss +1 -0
- package/themes/dark/_theme.scss +1 -0
- package/types/ids-group-ltd-ids-design-system-components-bar-chart.d.ts +24 -10
- package/types/ids-group-ltd-ids-design-system-components-bottom-sheet.d.ts +4 -1
- package/types/ids-group-ltd-ids-design-system-components-chart-legend.d.ts +6 -1
- package/types/ids-group-ltd-ids-design-system-components-chart-tooltip.d.ts +33 -2
- package/types/ids-group-ltd-ids-design-system-components-chart.d.ts +151 -103
- package/types/ids-group-ltd-ids-design-system-components-color-picker.d.ts +4 -2
- package/types/ids-group-ltd-ids-design-system-components-column-chart.d.ts +8 -9
- package/types/ids-group-ltd-ids-design-system-components-date-picker.d.ts +4 -2
- package/types/ids-group-ltd-ids-design-system-components-description-list.d.ts +1 -1
- package/types/ids-group-ltd-ids-design-system-components-drawer.d.ts +4 -1
- package/types/ids-group-ltd-ids-design-system-components-funnel-chart.d.ts +23 -11
- package/types/ids-group-ltd-ids-design-system-components-heatmap-chart.d.ts +29 -2
- package/types/ids-group-ltd-ids-design-system-components-line-chart.d.ts +8 -8
- package/types/ids-group-ltd-ids-design-system-components-pagination.d.ts +3 -1
- package/types/ids-group-ltd-ids-design-system-components-pie-chart.d.ts +17 -7
- package/types/ids-group-ltd-ids-design-system-components-scatter-chart.d.ts +20 -2
- package/types/ids-group-ltd-ids-design-system-components-table.d.ts +6 -2
- package/types/ids-group-ltd-ids-design-system-components-tabs.d.ts +13 -2
- package/types/ids-group-ltd-ids-design-system-components-textarea.d.ts +31 -5
- package/types/ids-group-ltd-ids-design-system-components-time-picker.d.ts +3 -2
- package/types/ids-group-ltd-ids-design-system-components-tooltip.d.ts +20 -2
- package/types/ids-group-ltd-ids-design-system-components-waterfall-chart.d.ts +11 -2
- package/types/ids-group-ltd-ids-design-system-components.d.ts +33 -6
- package/types/ids-group-ltd-ids-design-system-core.d.ts +14 -1
- package/types/ids-group-ltd-ids-design-system.d.ts +1 -1
|
@@ -3,7 +3,7 @@ import { input, numberAttribute, booleanAttribute, output, inject, computed, sig
|
|
|
3
3
|
import { chartRenderGate, resolveChartDefaults, decimationTarget, needsDecimating, lttbDecimate, minMaxDecimate, niceDomain, CHART_SERIES_COLORS, linearScale, tickValues, listenForMarkFocus, markOf } from '@ids-group-ltd/ids-design-system/components';
|
|
4
4
|
import { ChartLegendComponent } from '@ids-group-ltd/ids-design-system/components/chart-legend';
|
|
5
5
|
import { SkeletonComponent } from '@ids-group-ltd/ids-design-system/components/skeleton';
|
|
6
|
-
import { chartActiveMark, ChartTooltipDirective } from '@ids-group-ltd/ids-design-system/components/chart-tooltip';
|
|
6
|
+
import { chartActiveMark, CHART_PIN_RADIUS, CHART_PIN_GAP, ChartTooltipDirective, ChartPinMarkerComponent } from '@ids-group-ltd/ids-design-system/components/chart-tooltip';
|
|
7
7
|
import { DS_INTL } from '@ids-group-ltd/ids-design-system/core';
|
|
8
8
|
import { ChartDataTableComponent } from '@ids-group-ltd/ids-design-system/components/chart-data-table';
|
|
9
9
|
|
|
@@ -52,6 +52,8 @@ function scatterPlacement(point, extent, plot) {
|
|
|
52
52
|
const AXIS_GUTTER = 52;
|
|
53
53
|
const CATEGORY_GUTTER = 34;
|
|
54
54
|
const EDGE_GUTTER = 12;
|
|
55
|
+
// The point's default radius, `--chart-dot-radius`.
|
|
56
|
+
const PIN_POINT_CLEARANCE = 4;
|
|
55
57
|
/**
|
|
56
58
|
* Two continuous quantities against each other: weight against carriage cost, distance against
|
|
57
59
|
* time, volume against conversion. None of the other five charts draws this.
|
|
@@ -110,6 +112,10 @@ class ScatterChartComponent {
|
|
|
110
112
|
/** Fades every mark but the one under the pointer. Off by default: on a scatter the pile-up IS
|
|
111
113
|
* the reading, and dimming the neighbours takes exactly that away. */
|
|
112
114
|
dimOthers = input(false, { ...(ngDevMode ? { debugName: "dimOthers" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
|
|
115
|
+
/** Holds the hovered mark and its tooltip in place when it is clicked, until a second click,
|
|
116
|
+
* Escape or a press outside releases it. `pointClicked` fires either way. Unset falls back to
|
|
117
|
+
* `DS_CONFIG.chart.pinOnClick`, then `true`. */
|
|
118
|
+
pinOnClick = input(null, { ...(ngDevMode ? { debugName: "pinOnClick" } : /* istanbul ignore next */ {}), transform: (value) => (value == null ? null : booleanAttribute(value)) });
|
|
113
119
|
/** The clicked reading, with the series it belongs to. Fires on click and on Enter or Space. */
|
|
114
120
|
pointClicked = output();
|
|
115
121
|
defaults = resolveChartDefaults(this);
|
|
@@ -119,7 +125,7 @@ class ScatterChartComponent {
|
|
|
119
125
|
emptyTextResolved = this.defaults.emptyText;
|
|
120
126
|
errorTextResolved = this.defaults.errorText;
|
|
121
127
|
valueFormatResolved = this.defaults.valueFormat;
|
|
122
|
-
activeMark = chartActiveMark(() =>
|
|
128
|
+
activeMark = chartActiveMark(() => this.defaults.tooltipLingerMs(), () => this.defaults.hoverDelayMs());
|
|
123
129
|
viewBox = `0 0 ${SCATTER_VIEW_WIDTH} ${SCATTER_VIEW_HEIGHT}`;
|
|
124
130
|
plot = {
|
|
125
131
|
left: AXIS_GUTTER,
|
|
@@ -275,6 +281,29 @@ class ScatterChartComponent {
|
|
|
275
281
|
this.activeMark.enter(hit.index, event, undefined, hit.element);
|
|
276
282
|
}
|
|
277
283
|
}
|
|
284
|
+
onPointOut(event) {
|
|
285
|
+
const hit = markOf(event);
|
|
286
|
+
if (!hit) {
|
|
287
|
+
return;
|
|
288
|
+
}
|
|
289
|
+
const next = event.relatedTarget instanceof Element
|
|
290
|
+
? event.relatedTarget.closest('[data-mark-index]')
|
|
291
|
+
: null;
|
|
292
|
+
if (next !== hit.element) {
|
|
293
|
+
this.activeMark.leave();
|
|
294
|
+
}
|
|
295
|
+
}
|
|
296
|
+
onPointPress(event) {
|
|
297
|
+
const hit = markOf(event);
|
|
298
|
+
if (hit && this.defaults.pinOnClick()) {
|
|
299
|
+
this.activeMark.pin(hit.index, event, undefined, hit.element);
|
|
300
|
+
}
|
|
301
|
+
this.onPointActivate(event);
|
|
302
|
+
}
|
|
303
|
+
pinnedPoint = computed(() => this.activeMark.pinned()
|
|
304
|
+
? (this.flatMarks()[this.activeMark.index()]?.mark ?? null)
|
|
305
|
+
: null, ...(ngDevMode ? [{ debugName: "pinnedPoint" }] : /* istanbul ignore next */ []));
|
|
306
|
+
pinLift = CHART_PIN_RADIUS + CHART_PIN_GAP + PIN_POINT_CLEARANCE;
|
|
278
307
|
onPointActivate(event) {
|
|
279
308
|
const held = this.flatMarks()[markOf(event)?.index ?? -1];
|
|
280
309
|
if (held) {
|
|
@@ -307,19 +336,20 @@ class ScatterChartComponent {
|
|
|
307
336
|
return `${series.label}, ${this.xLabel() ?? 'x'} ${format(point.x, 'tooltip')}, ${this.yLabel() ?? 'y'} ${format(point.y, 'tooltip')}`;
|
|
308
337
|
}
|
|
309
338
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.22", ngImport: i0, type: ScatterChartComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
310
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.22", type: ScatterChartComponent, isStandalone: true, selector: "ds-scatter-chart", inputs: { data: { classPropertyName: "data", publicName: "data", isSignal: true, isRequired: false, transformFunction: null }, xLabel: { classPropertyName: "xLabel", publicName: "xLabel", isSignal: true, isRequired: false, transformFunction: null }, yLabel: { classPropertyName: "yLabel", publicName: "yLabel", isSignal: true, isRequired: false, transformFunction: null }, decimator: { classPropertyName: "decimator", publicName: "decimator", isSignal: true, isRequired: false, transformFunction: null }, tickCount: { classPropertyName: "tickCount", publicName: "tickCount", isSignal: true, isRequired: false, transformFunction: null }, caption: { classPropertyName: "caption", publicName: "caption", isSignal: true, isRequired: false, transformFunction: null }, summary: { classPropertyName: "summary", publicName: "summary", isSignal: true, isRequired: false, transformFunction: null }, interactive: { classPropertyName: "interactive", publicName: "interactive", isSignal: true, isRequired: false, transformFunction: null }, frame: { classPropertyName: "frame", publicName: "frame", isSignal: true, isRequired: false, transformFunction: null }, dataTable: { classPropertyName: "dataTable", publicName: "dataTable", isSignal: true, isRequired: false, transformFunction: null }, loading: { classPropertyName: "loading", publicName: "loading", isSignal: true, isRequired: false, transformFunction: null }, error: { classPropertyName: "error", publicName: "error", isSignal: true, isRequired: false, transformFunction: null }, emptyText: { classPropertyName: "emptyText", publicName: "emptyText", isSignal: true, isRequired: false, transformFunction: null }, errorText: { classPropertyName: "errorText", publicName: "errorText", isSignal: true, isRequired: false, transformFunction: null }, valueFormat: { classPropertyName: "valueFormat", publicName: "valueFormat", isSignal: true, isRequired: false, transformFunction: null }, tooltip: { classPropertyName: "tooltip", publicName: "tooltip", isSignal: true, isRequired: false, transformFunction: null }, dimOthers: { classPropertyName: "dimOthers", publicName: "dimOthers", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { pointClicked: "pointClicked" }, host: { properties: { "class.framed": "frameResolved() === 'auto'" } }, exportAs: ["dsScatterChart"], ngImport: i0, template: "<figure class=\"scatter-chart\">\n @if (caption()) {\n <figcaption>\n {{ caption() }}\n </figcaption>\n }\n\n @if (error()) {\n <p\n class=\"empty is-error\"\n role=\"status\">\n {{ errorTextResolved() }}\n </p>\n } @else if (loading() || !renderReady()) {\n <ds-skeleton class=\"skeleton\"\n width=\"100%\"\n [shimmer]=\"loading()\"\n [height]=\"skeletonHeight + 'px'\" />\n } @else if (isEmpty()) {\n <p class=\"empty\">\n {{ emptyTextResolved() }}\n </p>\n } @else {\n <svg\n class=\"canvas\"\n [attr.viewBox]=\"viewBox\"\n [class.dims-others]=\"dimOthers()\"\n [attr.role]=\"interactive() ? 'group' : 'img'\"\n [attr.aria-label]=\"accessibleName()\"\n [dsChartTooltip]=\"tooltipContext()\"\n [dsChartTooltipOrigin]=\"activeMark.origin()\">\n @for (tick of yTicks(); track tick.value) {\n <line\n class=\"grid-line\"\n [attr.x1]=\"plot.left\"\n [attr.x2]=\"plotRight\"\n [attr.y1]=\"tick.y\"\n [attr.y2]=\"tick.y\" />\n\n <text\n class=\"axis-label\"\n text-anchor=\"end\"\n [attr.x]=\"plot.left - 8\"\n [attr.y]=\"tick.y\">\n {{ tick.label }}\n </text>\n }\n\n @for (tick of xTicks(); track tick.value) {\n <text\n class=\"axis-label is-horizontal\"\n text-anchor=\"middle\"\n [attr.x]=\"tick.x\"\n [attr.y]=\"plotBottom + 18\">\n {{ tick.label }}\n </text>\n }\n\n <line\n class=\"axis-line\"\n [attr.x1]=\"plot.left\"\n [attr.x2]=\"plotRight\"\n [attr.y1]=\"plotBottom\"\n [attr.y2]=\"plotBottom\" />\n\n @for (entry of series(); track entry.key) {\n @let start = seriesStart().get(entry.key) ?? 0;\n\n <g\n [class.is-dimmed]=\"\n highlightedSeries() !== null &&\n highlightedSeries() !== entry.series.id\n \"\n [style.--_scatter-series-color]=\"entry.color\"\n (pointerover)=\"onPointOver($event)\"\n (click)=\"onPointActivate($event)\"\n (keydown.enter)=\"onPointActivate($event)\"\n (keydown.space)=\"onPointActivate($event)\">\n @for (mark of entry.points; track mark.key; let index = $index) {\n <circle\n class=\"point\"\n [class.interactive]=\"interactive()\"\n [attr.cx]=\"mark.cx\"\n [attr.cy]=\"mark.cy\"\n [attr.role]=\"interactive() ? 'button' : null\"\n [attr.tabindex]=\"interactive() ? 0 : null\"\n [attr.data-mark-index]=\"start + index\"\n [attr.aria-label]=\"\n interactive() ? pointLabel(entry.series, mark.point) : null\n \" />\n }\n </g>\n }\n\n @if (yLabel()) {\n <text\n class=\"axis-title\"\n text-anchor=\"middle\"\n [attr.transform]=\"\n 'rotate(-90) translate(' + -(plot.top + plot.height / 2) + ', 12)'\n \">\n {{ yLabel() }}\n </text>\n }\n\n @if (xLabel()) {\n <text\n class=\"axis-title\"\n text-anchor=\"middle\"\n [attr.x]=\"plot.left + plot.width / 2\"\n [attr.y]=\"plotBottom + 32\">\n {{ xLabel() }}\n </text>\n }\n </svg>\n\n <!-- On its face, not only in the accessible name: a decimated chart that stays quiet leaves the\n reader counting points that were never drawn. -->\n @if (droppedCount() > 0) {\n <p\n class=\"thinned\"\n role=\"status\">\n {{ intl().chart.scatterThinned(droppedCount()) }}\n </p>\n }\n\n @if (multiSeries()) {\n <ds-chart-legend\n [items]=\"legendItems()\"\n [(highlighted)]=\"highlightedSeries\" />\n }\n\n @if (dataTableResolved() !== 'none') {\n <ds-chart-data-table\n [columns]=\"dataTableColumns()\"\n [rows]=\"dataTableRows()\"\n [caption]=\"caption()\"\n [open]=\"dataTableResolved() === 'visible'\"\n (toggled)=\"tableOpen.set($event)\" />\n }\n }\n</figure>\n", styles: ["@charset \"UTF-8\";:where(:focus-visible){outline:var(--focus-ring-width) solid var(--focus-ring-color);outline-offset:var(--focus-ring-offset);animation:ds-focus-ring-in var(--duration-fast) var(--ease-standard)}@keyframes ds-focus-ring-in{0%{outline-color:transparent}}:root[data-focus=ring]{--ds-field-focus-shadow: var(--focus-ring);--ds-field-focus-shadow-error: var(--focus-ring-error)}:root[data-focus=edge]{--focus-ring-offset: 0px;--ds-field-focus-shadow: 0 0 0 var(--border-width-default) var(--primary);--ds-field-focus-shadow-error: 0 0 0 var(--border-width-default) var(--error)}[data-focus=inset]{--focus-ring-offset: calc(-1 * var(--focus-ring-width));--ds-field-focus-shadow: var(--focus-ring-inset);--ds-field-focus-shadow-error: var(--focus-ring-inset-error)}@media(forced-colors:active){:where(:focus-visible){outline:var(--focus-ring-width) solid CanvasText;outline-offset:var(--focus-ring-offset)}}@keyframes ds-chart-mark-grow-y{0%{opacity:0;transform:scaleY(0)}}@keyframes ds-chart-mark-grow-x{0%{opacity:0;transform:scaleX(0)}}@keyframes ds-chart-mark-fade-in{0%{opacity:0}}@keyframes ds-chart-mark-exit{to{opacity:0}}.point{animation:ds-chart-mark-fade-in var(--ds-motion-chart-mark-enter-duration) var(--ds-motion-chart-mark-enter-easing) calc(var(--ds-motion-chart-mark-exit-duration) + var(--_chart-mark-stagger, 0ms)) backwards}.point.mark-leave{animation:ds-chart-mark-exit var(--ds-motion-chart-mark-exit-duration) var(--ds-motion-chart-mark-exit-easing) both}:host{display:block;-webkit-user-select:none;user-select:none}:host(.framed){padding:var(--ds-chart-frame-padding);background:var(--ds-chart-frame-bg-color);border:var(--ds-chart-frame-border-width) solid var(--ds-chart-frame-border-color);border-radius:var(--ds-chart-frame-radius)}.data-table,.stage-table{-webkit-user-select:text;user-select:text}figcaption{margin-block-end:var(--space-3);color:var(--text-primary);font-weight:var(--font-weight-semibold);-webkit-user-select:text;user-select:text}.empty.is-error,.empty-text.is-error{color:var(--error)}@media not (forced-colors:active){.point:focus{outline:none}}.data-table{--_chart-data-table-marker: var(--space-1);margin-block-start:var(--space-4);color:var(--text-secondary);font-size:var(--font-size-s)}.data-table>summary{display:inline-flex;align-items:center;gap:var(--space-1);padding-block:var(--space-1);color:var(--text-tertiary);font-size:var(--font-size-xs);cursor:pointer;list-style:none}.data-table>summary::-webkit-details-marker{display:none}.data-table>summary:before{content:\"\";inline-size:0;block-size:0;border-block-start:var(--_chart-data-table-marker) solid transparent;border-block-end:var(--_chart-data-table-marker) solid transparent;border-inline-start:calc(var(--_chart-data-table-marker) * 1.25) solid currentcolor;transition:transform var(--duration-fast) var(--ease-standard)}@media(prefers-reduced-motion:reduce){.data-table>summary:before{transition:none}}.data-table[open]>summary:before{transform:rotate(90deg)}.data-table>summary{border-radius:var(--radius-sm)}.data-table caption{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap;border:0}.data-table table{inline-size:100%;margin-block-start:var(--space-2);border-collapse:collapse;font-variant-numeric:tabular-nums}.data-table th,.data-table td{padding-block:var(--space-2);border-block-end:var(--border-width-default) solid var(--ds-chart-grid-line-color);text-align:end}.data-table thead th{color:var(--text-tertiary);font-size:var(--font-size-xs);font-weight:600}.data-table th:first-child,.data-table td:first-child{text-align:start}.data-table td+td{padding-inline-start:var(--space-3)}.scatter-chart{--_scatter-chart-grid-line-color: var(--ds-scatter-chart-grid-line-color, var(--ds-chart-grid-line-color));--_scatter-chart-axis-line-color: var(--ds-scatter-chart-axis-line-color, var(--ds-chart-axis-line-color));--_scatter-chart-axis-label-color: var(--ds-scatter-chart-axis-label-color, var(--ds-chart-axis-label-color));--_scatter-chart-axis-font-size: var(--ds-scatter-chart-axis-font-size, var(--ds-chart-axis-font-size));--_scatter-chart-dot-radius: var(--ds-scatter-chart-dot-radius, var(--ds-chart-dot-radius));--_scatter-chart-dot-opacity: var(--ds-scatter-chart-dot-opacity, .72);--_scatter-chart-focus-color: var(--ds-scatter-chart-focus-color, var(--focus-ring-color));--_scatter-chart-focus-width: var(--ds-scatter-chart-focus-width, var(--focus-ring-width));--ds-chart-focus-ring-color: var(--_scatter-chart-focus-color);--focus-ring-color: var(--_scatter-chart-focus-color);--focus-ring-width: var(--_scatter-chart-focus-width);margin:0}.empty{display:grid;place-items:center;min-block-size:240px;margin:0;color:var(--text-secondary);text-align:center;border-inline-start:1px solid var(--ds-chart-axis-line-color);border-block-end:1px solid var(--ds-chart-axis-line-color)}.canvas{display:block;inline-size:100%;block-size:auto}.grid-line{stroke:var(--_scatter-chart-grid-line-color);stroke-width:1}.axis-line{stroke:var(--_scatter-chart-axis-line-color);stroke-width:1}.axis-label,.axis-title{fill:var(--_scatter-chart-axis-label-color);font-size:var(--_scatter-chart-axis-font-size)}.axis-label{dominant-baseline:middle}.axis-label.is-horizontal{dominant-baseline:auto}.axis-title{font-weight:var(--font-weight-bold)}.point{r:var(--_scatter-chart-dot-radius);fill:var(--_scatter-series-color);fill-opacity:var(--_scatter-chart-dot-opacity)}.point.interactive{cursor:pointer}.canvas .point{transition:opacity var(--ds-motion-chart-state-duration) var(--ds-motion-chart-state-easing),fill-opacity var(--ds-motion-chart-mark-duration) var(--ds-motion-chart-mark-easing)}.canvas .point.is-dimmed{opacity:var(--ds-chart-dim-opacity)}.canvas.dims-others:not(:has(.point.is-pinned)):has(.point.interactive:hover) .point.interactive:not(:hover),.canvas.dims-others:not(:has(.point.is-pinned)):has(.point.interactive:focus-visible) .point.interactive:not(:focus-visible),.canvas.dims-others:has(.point.is-pinned) .point:not(.is-pinned){opacity:var(--ds-chart-dim-opacity)}@media not (forced-colors:active){.point.interactive:focus-visible{outline:none}}.point.interactive:focus-visible{stroke:var(--ds-chart-focus-ring-color);stroke-width:var(--focus-ring-width);paint-order:stroke;filter:drop-shadow(0 0 var(--focus-ring-width) var(--ds-chart-focus-halo-color))}.thinned{margin-block:var(--space-2) 0;color:var(--text-secondary);font-size:var(--font-size-xs)}g.is-dimmed{opacity:var(--ds-chart-dim-opacity);transition:opacity var(--ds-motion-chart-mark-duration) var(--ds-motion-chart-mark-easing)}\n"], dependencies: [{ kind: "component", type: ChartLegendComponent, selector: "ds-chart-legend", inputs: ["items", "hidden", "toggleable", "mode", "highlighted"], outputs: ["hiddenChange", "highlightedChange"] }, { kind: "directive", type: ChartTooltipDirective, selector: "[dsChartTooltip]", inputs: ["dsChartTooltip", "dsChartTooltipOrigin", "dsChartTooltipTemplate", "dsChartTooltipExtraGap", "dsChartTooltipPinned"] }, { kind: "component", type: SkeletonComponent, selector: "ds-skeleton", inputs: ["width", "height", "circle", "inline", "shimmer"] }, { kind: "component", type: ChartDataTableComponent, selector: "ds-chart-data-table", inputs: ["columns", "rows", "caption", "open", "rowHeader"], outputs: ["toggled"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
339
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.22", type: ScatterChartComponent, isStandalone: true, selector: "ds-scatter-chart", inputs: { data: { classPropertyName: "data", publicName: "data", isSignal: true, isRequired: false, transformFunction: null }, xLabel: { classPropertyName: "xLabel", publicName: "xLabel", isSignal: true, isRequired: false, transformFunction: null }, yLabel: { classPropertyName: "yLabel", publicName: "yLabel", isSignal: true, isRequired: false, transformFunction: null }, decimator: { classPropertyName: "decimator", publicName: "decimator", isSignal: true, isRequired: false, transformFunction: null }, tickCount: { classPropertyName: "tickCount", publicName: "tickCount", isSignal: true, isRequired: false, transformFunction: null }, caption: { classPropertyName: "caption", publicName: "caption", isSignal: true, isRequired: false, transformFunction: null }, summary: { classPropertyName: "summary", publicName: "summary", isSignal: true, isRequired: false, transformFunction: null }, interactive: { classPropertyName: "interactive", publicName: "interactive", isSignal: true, isRequired: false, transformFunction: null }, frame: { classPropertyName: "frame", publicName: "frame", isSignal: true, isRequired: false, transformFunction: null }, dataTable: { classPropertyName: "dataTable", publicName: "dataTable", isSignal: true, isRequired: false, transformFunction: null }, loading: { classPropertyName: "loading", publicName: "loading", isSignal: true, isRequired: false, transformFunction: null }, error: { classPropertyName: "error", publicName: "error", isSignal: true, isRequired: false, transformFunction: null }, emptyText: { classPropertyName: "emptyText", publicName: "emptyText", isSignal: true, isRequired: false, transformFunction: null }, errorText: { classPropertyName: "errorText", publicName: "errorText", isSignal: true, isRequired: false, transformFunction: null }, valueFormat: { classPropertyName: "valueFormat", publicName: "valueFormat", isSignal: true, isRequired: false, transformFunction: null }, tooltip: { classPropertyName: "tooltip", publicName: "tooltip", isSignal: true, isRequired: false, transformFunction: null }, dimOthers: { classPropertyName: "dimOthers", publicName: "dimOthers", isSignal: true, isRequired: false, transformFunction: null }, pinOnClick: { classPropertyName: "pinOnClick", publicName: "pinOnClick", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { pointClicked: "pointClicked" }, host: { properties: { "class.framed": "frameResolved() === 'auto'" } }, exportAs: ["dsScatterChart"], ngImport: i0, template: "<figure class=\"scatter-chart\">\n @if (activeMark.pinned()) {\n <button\n class=\"pin-reset\"\n type=\"button\"\n (click)=\"activeMark.release()\">\n {{ intl().chart.unpin }}\n </button>\n }\n\n @if (caption()) {\n <figcaption>\n {{ caption() }}\n </figcaption>\n }\n\n @if (error()) {\n <p\n class=\"empty is-error\"\n role=\"status\">\n {{ errorTextResolved() }}\n </p>\n } @else if (loading() || !renderReady()) {\n <ds-skeleton class=\"skeleton\"\n width=\"100%\"\n [shimmer]=\"loading()\"\n [height]=\"skeletonHeight + 'px'\" />\n } @else if (isEmpty()) {\n <p class=\"empty\">\n {{ emptyTextResolved() }}\n </p>\n } @else {\n <svg\n class=\"canvas\"\n [attr.viewBox]=\"viewBox\"\n [class.dims-others]=\"dimOthers()\"\n [attr.role]=\"interactive() ? 'group' : 'img'\"\n [attr.aria-label]=\"accessibleName()\"\n [dsChartTooltip]=\"tooltipContext()\"\n [dsChartTooltipPinned]=\"activeMark.pinned()\"\n [dsChartTooltipOrigin]=\"activeMark.origin()\">\n @for (tick of yTicks(); track tick.value) {\n <line\n class=\"grid-line\"\n [attr.x1]=\"plot.left\"\n [attr.x2]=\"plotRight\"\n [attr.y1]=\"tick.y\"\n [attr.y2]=\"tick.y\" />\n\n <text\n class=\"axis-label\"\n text-anchor=\"end\"\n [attr.x]=\"plot.left - 8\"\n [attr.y]=\"tick.y\">\n {{ tick.label }}\n </text>\n }\n\n @for (tick of xTicks(); track tick.value) {\n <text\n class=\"axis-label is-horizontal\"\n text-anchor=\"middle\"\n [attr.x]=\"tick.x\"\n [attr.y]=\"plotBottom + 18\">\n {{ tick.label }}\n </text>\n }\n\n <line\n class=\"axis-line\"\n [attr.x1]=\"plot.left\"\n [attr.x2]=\"plotRight\"\n [attr.y1]=\"plotBottom\"\n [attr.y2]=\"plotBottom\" />\n\n @for (entry of series(); track entry.key) {\n @let start = seriesStart().get(entry.key) ?? 0;\n\n <g\n [class.is-dimmed]=\"\n highlightedSeries() !== null &&\n highlightedSeries() !== entry.series.id\n \"\n [style.--_scatter-series-color]=\"entry.color\"\n (pointerover)=\"onPointOver($event)\"\n (pointerout)=\"onPointOut($event)\"\n (click)=\"onPointPress($event)\"\n (keydown.enter)=\"onPointActivate($event)\"\n (keydown.space)=\"onPointActivate($event)\">\n @for (mark of entry.points; track mark.key; let index = $index) {\n <circle\n class=\"point\"\n [class.interactive]=\"interactive()\"\n [class.pins]=\"defaults.pinOnClick()\"\n [class.is-active]=\"activeMark.index() === start + index\"\n [class.is-pinned]=\"\n activeMark.pinned() && activeMark.index() === start + index\n \"\n [attr.cx]=\"mark.cx\"\n [attr.cy]=\"mark.cy\"\n [attr.role]=\"interactive() ? 'button' : null\"\n [attr.tabindex]=\"interactive() ? 0 : null\"\n [attr.data-mark-index]=\"start + index\"\n [attr.aria-label]=\"\n interactive() ? pointLabel(entry.series, mark.point) : null\n \" />\n }\n </g>\n }\n\n @if (pinnedPoint(); as point) {\n <svg:g\n dsChartPinMarker\n [attr.transform]=\"\n 'translate(' + point.cx + ',' + (point.cy - pinLift) + ')'\n \" />\n }\n\n @if (yLabel()) {\n <text\n class=\"axis-title\"\n text-anchor=\"middle\"\n [attr.transform]=\"\n 'rotate(-90) translate(' + -(plot.top + plot.height / 2) + ', 12)'\n \">\n {{ yLabel() }}\n </text>\n }\n\n @if (xLabel()) {\n <text\n class=\"axis-title\"\n text-anchor=\"middle\"\n [attr.x]=\"plot.left + plot.width / 2\"\n [attr.y]=\"plotBottom + 32\">\n {{ xLabel() }}\n </text>\n }\n </svg>\n\n <!-- On its face, not only in the accessible name: a decimated chart that stays quiet leaves the\n reader counting points that were never drawn. -->\n @if (droppedCount() > 0) {\n <p\n class=\"thinned\"\n role=\"status\">\n {{ intl().chart.scatterThinned(droppedCount()) }}\n </p>\n }\n\n @if (multiSeries()) {\n <ds-chart-legend\n [items]=\"legendItems()\"\n [(highlighted)]=\"highlightedSeries\" />\n }\n\n @if (dataTableResolved() !== 'none') {\n <ds-chart-data-table\n [columns]=\"dataTableColumns()\"\n [rows]=\"dataTableRows()\"\n [caption]=\"caption()\"\n [open]=\"dataTableResolved() === 'visible'\"\n (toggled)=\"tableOpen.set($event)\" />\n }\n }\n</figure>\n", styles: ["@charset \"UTF-8\";:where(:focus-visible){outline:var(--focus-ring-width) solid var(--focus-ring-color);outline-offset:var(--focus-ring-offset);animation:ds-focus-ring-in var(--duration-fast) var(--ease-standard)}@keyframes ds-focus-ring-in{0%{outline-color:transparent}}:root[data-focus=ring]{--ds-field-focus-shadow: var(--focus-ring);--ds-field-focus-shadow-error: var(--focus-ring-error)}:root[data-focus=edge]{--focus-ring-offset: 0px;--ds-field-focus-shadow: 0 0 0 var(--border-width-default) var(--primary);--ds-field-focus-shadow-error: 0 0 0 var(--border-width-default) var(--error)}[data-focus=inset]{--focus-ring-offset: calc(-1 * var(--focus-ring-width));--ds-field-focus-shadow: var(--focus-ring-inset);--ds-field-focus-shadow-error: var(--focus-ring-inset-error)}@media(forced-colors:active){:where(:focus-visible){outline:var(--focus-ring-width) solid CanvasText;outline-offset:var(--focus-ring-offset)}}@keyframes ds-chart-mark-grow-y{0%{transform:scaleY(0)}}@keyframes ds-chart-mark-grow-x{0%{transform:scaleX(0)}}@keyframes ds-chart-mark-fade-in{0%{opacity:0}}@keyframes ds-chart-mark-rise{0%{opacity:0;transform:translateY(var(--_chart-rise-distance, 4px))}}@keyframes ds-chart-mark-settle{0%{opacity:0;transform:scale(.96)}}@keyframes ds-chart-ring-sweep{0%{opacity:0;transform:rotate(-30deg) scale(.96)}}@keyframes ds-chart-line-draw{0%{stroke-dashoffset:1}}@keyframes ds-chart-mark-exit{to{opacity:0}}.point{transform-box:fill-box;transform-origin:center}.point{animation:ds-chart-mark-settle var(--ds-motion-chart-mark-enter-duration) var(--ds-motion-chart-mark-enter-easing) calc(var(--ds-motion-chart-mark-exit-duration) + 0ms + var(--_chart-mark-stagger, 0ms)) backwards}@media(prefers-reduced-motion:reduce){.point{animation-delay:0ms}}.point.mark-leave{animation:ds-chart-mark-exit var(--ds-motion-chart-mark-exit-duration) var(--ds-motion-chart-mark-exit-easing) both}:host{display:block;-webkit-user-select:none;user-select:none}:host(.framed){padding:var(--ds-chart-frame-padding);background:var(--ds-chart-frame-bg-color);border:var(--ds-chart-frame-border-width) solid var(--ds-chart-frame-border-color);border-radius:var(--ds-chart-frame-radius)}.data-table,.stage-table{-webkit-user-select:text;user-select:text}figcaption{margin-block-end:var(--space-3);color:var(--text-primary);font-weight:var(--font-weight-semibold);-webkit-user-select:text;user-select:text}.empty.is-error,.empty-text.is-error{color:var(--error)}:host{position:relative}:host(.framed){--_chart-pin-reset-inset: var(--ds-chart-frame-padding)}:host:has(.pin-reset) figure>figcaption{padding-inline-end:calc(5rem + var(--space-2))}:host:has(.pin-reset) figure:not(:has(>figcaption)){padding-block-start:calc(var(--space-6) + var(--space-2))}.pin-reset{position:absolute;inset-block-start:var(--_chart-pin-reset-inset, 0);inset-inline-end:var(--_chart-pin-reset-inset, 0);z-index:1;display:inline-flex;align-items:center;gap:var(--space-1);block-size:var(--space-6);padding:0 var(--space-2-5);border:var(--border-width-default) solid var(--border-divider);border-radius:var(--radius-pill);background:var(--surface-default);color:var(--text-secondary);font-size:var(--font-size-xs);line-height:1;box-shadow:var(--shadow-1);cursor:pointer}.pin-reset:before{position:absolute;inset:50% auto auto 50%;inline-size:max(100%,var(--hit-comfy));block-size:var(--hit-comfy);transform:translate(-50%,-50%);content:\"\"}.pin-reset:hover{color:var(--text-primary);border-color:var(--border-strong)}@media not (forced-colors:active){.point:focus{outline:none}}.data-table{--_chart-data-table-marker: var(--space-1);margin-block-start:var(--space-4);color:var(--text-secondary);font-size:var(--font-size-s)}.data-table>summary{display:inline-flex;align-items:center;gap:var(--space-1);padding-block:var(--space-1);color:var(--text-tertiary);font-size:var(--font-size-xs);cursor:pointer;list-style:none}.data-table>summary::-webkit-details-marker{display:none}.data-table>summary:before{content:\"\";inline-size:0;block-size:0;border-block-start:var(--_chart-data-table-marker) solid transparent;border-block-end:var(--_chart-data-table-marker) solid transparent;border-inline-start:calc(var(--_chart-data-table-marker) * 1.25) solid currentcolor;transition:transform var(--duration-fast) var(--ease-standard)}@media(prefers-reduced-motion:reduce){.data-table>summary:before{transition:none}}.data-table[open]>summary:before{transform:rotate(90deg)}.data-table>summary{border-radius:var(--radius-sm)}.data-table caption{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap;border:0}.data-table table{inline-size:100%;margin-block-start:var(--space-2);border-collapse:collapse;font-variant-numeric:tabular-nums}.data-table th,.data-table td{padding-block:var(--space-2);border-block-end:var(--border-width-default) solid var(--ds-chart-grid-line-color);text-align:end}.data-table thead th{color:var(--text-tertiary);font-size:var(--font-size-xs);font-weight:600}.data-table th:first-child,.data-table td:first-child{text-align:start}.data-table td+td{padding-inline-start:var(--space-3)}.scatter-chart{--_scatter-chart-grid-line-color: var(--ds-scatter-chart-grid-line-color, var(--ds-chart-grid-line-color));--_scatter-chart-axis-line-color: var(--ds-scatter-chart-axis-line-color, var(--ds-chart-axis-line-color));--_scatter-chart-axis-label-color: var(--ds-scatter-chart-axis-label-color, var(--ds-chart-axis-label-color));--_scatter-chart-axis-font-size: var(--ds-scatter-chart-axis-font-size, var(--ds-chart-axis-font-size));--_scatter-chart-dot-radius: var(--ds-scatter-chart-dot-radius, var(--ds-chart-dot-radius));--_scatter-chart-dot-opacity: var(--ds-scatter-chart-dot-opacity, .72);--_scatter-chart-focus-color: var(--ds-scatter-chart-focus-color, var(--focus-ring-color));--_scatter-chart-focus-width: var(--ds-scatter-chart-focus-width, var(--focus-ring-width));--ds-chart-focus-ring-color: var(--_scatter-chart-focus-color);--focus-ring-color: var(--_scatter-chart-focus-color);--focus-ring-width: var(--_scatter-chart-focus-width);margin:0}.empty{display:grid;place-items:center;min-block-size:240px;margin:0;color:var(--text-secondary);text-align:center;border-inline-start:1px solid var(--ds-chart-axis-line-color);border-block-end:1px solid var(--ds-chart-axis-line-color)}.canvas{display:block;inline-size:100%;block-size:auto}.grid-line{stroke:var(--_scatter-chart-grid-line-color);stroke-width:1}.axis-line{stroke:var(--_scatter-chart-axis-line-color);stroke-width:1}.axis-label,.axis-title{fill:var(--_scatter-chart-axis-label-color);font-size:var(--_scatter-chart-axis-font-size)}.axis-label{dominant-baseline:middle}.axis-label.is-horizontal{dominant-baseline:auto}.axis-title{font-weight:var(--font-weight-bold)}.point{r:var(--_scatter-chart-dot-radius);fill:var(--_scatter-series-color);fill-opacity:var(--_scatter-chart-dot-opacity)}.point.interactive,.point.pins{cursor:pointer}.canvas .point{transition:opacity var(--ds-motion-chart-state-duration) var(--ds-motion-chart-state-easing),fill-opacity var(--ds-motion-chart-mark-duration) var(--ds-motion-chart-mark-easing)}.canvas .point.is-dimmed{opacity:var(--ds-chart-dim-opacity)}.canvas.dims-others:not(:has(.point.is-pinned)):has(.point.is-active) .point:not(.is-active),.canvas.dims-others:has(.point.is-pinned) .point:not(.is-pinned){opacity:var(--ds-chart-dim-opacity)}@media not (forced-colors:active){.point.interactive:focus-visible{outline:none}}.point.interactive:focus-visible{stroke:var(--ds-chart-focus-ring-color);stroke-width:var(--focus-ring-width);paint-order:stroke;filter:drop-shadow(0 0 var(--focus-ring-width) var(--ds-chart-focus-halo-color))}.thinned{margin-block:var(--space-2) 0;color:var(--text-secondary);font-size:var(--font-size-xs)}g.is-dimmed{opacity:var(--ds-chart-dim-opacity);transition:opacity var(--ds-motion-chart-mark-duration) var(--ds-motion-chart-mark-easing)}\n"], dependencies: [{ kind: "component", type: ChartLegendComponent, selector: "ds-chart-legend", inputs: ["items", "hidden", "toggleable", "mode", "highlighted"], outputs: ["hiddenChange", "highlightedChange"] }, { kind: "directive", type: ChartTooltipDirective, selector: "[dsChartTooltip]", inputs: ["dsChartTooltip", "dsChartTooltipOrigin", "dsChartTooltipTemplate", "dsChartTooltipExtraGap", "dsChartTooltipPinned"] }, { kind: "component", type: ChartPinMarkerComponent, selector: "g[dsChartPinMarker]" }, { kind: "component", type: SkeletonComponent, selector: "ds-skeleton", inputs: ["width", "height", "circle", "inline", "shimmer"] }, { kind: "component", type: ChartDataTableComponent, selector: "ds-chart-data-table", inputs: ["columns", "rows", "caption", "open", "rowHeader"], outputs: ["toggled"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
311
340
|
}
|
|
312
341
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.22", ngImport: i0, type: ScatterChartComponent, decorators: [{
|
|
313
342
|
type: Component,
|
|
314
343
|
args: [{ selector: 'ds-scatter-chart', standalone: true, exportAs: 'dsScatterChart', imports: [
|
|
315
344
|
ChartLegendComponent,
|
|
316
345
|
ChartTooltipDirective,
|
|
346
|
+
ChartPinMarkerComponent,
|
|
317
347
|
SkeletonComponent,
|
|
318
348
|
ChartDataTableComponent,
|
|
319
349
|
], host: {
|
|
320
350
|
'[class.framed]': "frameResolved() === 'auto'",
|
|
321
|
-
}, encapsulation: ViewEncapsulation.Emulated, changeDetection: ChangeDetectionStrategy.OnPush, template: "<figure class=\"scatter-chart\">\n @if (caption()) {\n <figcaption>\n {{ caption() }}\n </figcaption>\n }\n\n @if (error()) {\n <p\n class=\"empty is-error\"\n role=\"status\">\n {{ errorTextResolved() }}\n </p>\n } @else if (loading() || !renderReady()) {\n <ds-skeleton class=\"skeleton\"\n width=\"100%\"\n [shimmer]=\"loading()\"\n [height]=\"skeletonHeight + 'px'\" />\n } @else if (isEmpty()) {\n <p class=\"empty\">\n {{ emptyTextResolved() }}\n </p>\n } @else {\n <svg\n class=\"canvas\"\n [attr.viewBox]=\"viewBox\"\n [class.dims-others]=\"dimOthers()\"\n [attr.role]=\"interactive() ? 'group' : 'img'\"\n [attr.aria-label]=\"accessibleName()\"\n [dsChartTooltip]=\"tooltipContext()\"\n [dsChartTooltipOrigin]=\"activeMark.origin()\">\n @for (tick of yTicks(); track tick.value) {\n <line\n class=\"grid-line\"\n [attr.x1]=\"plot.left\"\n [attr.x2]=\"plotRight\"\n [attr.y1]=\"tick.y\"\n [attr.y2]=\"tick.y\" />\n\n <text\n class=\"axis-label\"\n text-anchor=\"end\"\n [attr.x]=\"plot.left - 8\"\n [attr.y]=\"tick.y\">\n {{ tick.label }}\n </text>\n }\n\n @for (tick of xTicks(); track tick.value) {\n <text\n class=\"axis-label is-horizontal\"\n text-anchor=\"middle\"\n [attr.x]=\"tick.x\"\n [attr.y]=\"plotBottom + 18\">\n {{ tick.label }}\n </text>\n }\n\n <line\n class=\"axis-line\"\n [attr.x1]=\"plot.left\"\n [attr.x2]=\"plotRight\"\n [attr.y1]=\"plotBottom\"\n [attr.y2]=\"plotBottom\" />\n\n @for (entry of series(); track entry.key) {\n @let start = seriesStart().get(entry.key) ?? 0;\n\n <g\n [class.is-dimmed]=\"\n highlightedSeries() !== null &&\n highlightedSeries() !== entry.series.id\n \"\n [style.--_scatter-series-color]=\"entry.color\"\n (pointerover)=\"onPointOver($event)\"\n (click)=\"onPointActivate($event)\"\n (keydown.enter)=\"onPointActivate($event)\"\n (keydown.space)=\"onPointActivate($event)\">\n @for (mark of entry.points; track mark.key; let index = $index) {\n <circle\n class=\"point\"\n [class.interactive]=\"interactive()\"\n [attr.cx]=\"mark.cx\"\n [attr.cy]=\"mark.cy\"\n [attr.role]=\"interactive() ? 'button' : null\"\n [attr.tabindex]=\"interactive() ? 0 : null\"\n [attr.data-mark-index]=\"start + index\"\n [attr.aria-label]=\"\n interactive() ? pointLabel(entry.series, mark.point) : null\n \" />\n }\n </g>\n }\n\n @if (yLabel()) {\n <text\n class=\"axis-title\"\n text-anchor=\"middle\"\n [attr.transform]=\"\n 'rotate(-90) translate(' + -(plot.top + plot.height / 2) + ', 12)'\n \">\n {{ yLabel() }}\n </text>\n }\n\n @if (xLabel()) {\n <text\n class=\"axis-title\"\n text-anchor=\"middle\"\n [attr.x]=\"plot.left + plot.width / 2\"\n [attr.y]=\"plotBottom + 32\">\n {{ xLabel() }}\n </text>\n }\n </svg>\n\n <!-- On its face, not only in the accessible name: a decimated chart that stays quiet leaves the\n reader counting points that were never drawn. -->\n @if (droppedCount() > 0) {\n <p\n class=\"thinned\"\n role=\"status\">\n {{ intl().chart.scatterThinned(droppedCount()) }}\n </p>\n }\n\n @if (multiSeries()) {\n <ds-chart-legend\n [items]=\"legendItems()\"\n [(highlighted)]=\"highlightedSeries\" />\n }\n\n @if (dataTableResolved() !== 'none') {\n <ds-chart-data-table\n [columns]=\"dataTableColumns()\"\n [rows]=\"dataTableRows()\"\n [caption]=\"caption()\"\n [open]=\"dataTableResolved() === 'visible'\"\n (toggled)=\"tableOpen.set($event)\" />\n }\n }\n</figure>\n", styles: ["@charset \"UTF-8\";:where(:focus-visible){outline:var(--focus-ring-width) solid var(--focus-ring-color);outline-offset:var(--focus-ring-offset);animation:ds-focus-ring-in var(--duration-fast) var(--ease-standard)}@keyframes ds-focus-ring-in{0%{outline-color:transparent}}:root[data-focus=ring]{--ds-field-focus-shadow: var(--focus-ring);--ds-field-focus-shadow-error: var(--focus-ring-error)}:root[data-focus=edge]{--focus-ring-offset: 0px;--ds-field-focus-shadow: 0 0 0 var(--border-width-default) var(--primary);--ds-field-focus-shadow-error: 0 0 0 var(--border-width-default) var(--error)}[data-focus=inset]{--focus-ring-offset: calc(-1 * var(--focus-ring-width));--ds-field-focus-shadow: var(--focus-ring-inset);--ds-field-focus-shadow-error: var(--focus-ring-inset-error)}@media(forced-colors:active){:where(:focus-visible){outline:var(--focus-ring-width) solid CanvasText;outline-offset:var(--focus-ring-offset)}}@keyframes ds-chart-mark-grow-y{0%{opacity:0;transform:scaleY(0)}}@keyframes ds-chart-mark-grow-x{0%{opacity:0;transform:scaleX(0)}}@keyframes ds-chart-mark-fade-in{0%{opacity:0}}@keyframes ds-chart-mark-exit{to{opacity:0}}.point{animation:ds-chart-mark-fade-in var(--ds-motion-chart-mark-enter-duration) var(--ds-motion-chart-mark-enter-easing) calc(var(--ds-motion-chart-mark-exit-duration) + var(--_chart-mark-stagger, 0ms)) backwards}.point.mark-leave{animation:ds-chart-mark-exit var(--ds-motion-chart-mark-exit-duration) var(--ds-motion-chart-mark-exit-easing) both}:host{display:block;-webkit-user-select:none;user-select:none}:host(.framed){padding:var(--ds-chart-frame-padding);background:var(--ds-chart-frame-bg-color);border:var(--ds-chart-frame-border-width) solid var(--ds-chart-frame-border-color);border-radius:var(--ds-chart-frame-radius)}.data-table,.stage-table{-webkit-user-select:text;user-select:text}figcaption{margin-block-end:var(--space-3);color:var(--text-primary);font-weight:var(--font-weight-semibold);-webkit-user-select:text;user-select:text}.empty.is-error,.empty-text.is-error{color:var(--error)}@media not (forced-colors:active){.point:focus{outline:none}}.data-table{--_chart-data-table-marker: var(--space-1);margin-block-start:var(--space-4);color:var(--text-secondary);font-size:var(--font-size-s)}.data-table>summary{display:inline-flex;align-items:center;gap:var(--space-1);padding-block:var(--space-1);color:var(--text-tertiary);font-size:var(--font-size-xs);cursor:pointer;list-style:none}.data-table>summary::-webkit-details-marker{display:none}.data-table>summary:before{content:\"\";inline-size:0;block-size:0;border-block-start:var(--_chart-data-table-marker) solid transparent;border-block-end:var(--_chart-data-table-marker) solid transparent;border-inline-start:calc(var(--_chart-data-table-marker) * 1.25) solid currentcolor;transition:transform var(--duration-fast) var(--ease-standard)}@media(prefers-reduced-motion:reduce){.data-table>summary:before{transition:none}}.data-table[open]>summary:before{transform:rotate(90deg)}.data-table>summary{border-radius:var(--radius-sm)}.data-table caption{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap;border:0}.data-table table{inline-size:100%;margin-block-start:var(--space-2);border-collapse:collapse;font-variant-numeric:tabular-nums}.data-table th,.data-table td{padding-block:var(--space-2);border-block-end:var(--border-width-default) solid var(--ds-chart-grid-line-color);text-align:end}.data-table thead th{color:var(--text-tertiary);font-size:var(--font-size-xs);font-weight:600}.data-table th:first-child,.data-table td:first-child{text-align:start}.data-table td+td{padding-inline-start:var(--space-3)}.scatter-chart{--_scatter-chart-grid-line-color: var(--ds-scatter-chart-grid-line-color, var(--ds-chart-grid-line-color));--_scatter-chart-axis-line-color: var(--ds-scatter-chart-axis-line-color, var(--ds-chart-axis-line-color));--_scatter-chart-axis-label-color: var(--ds-scatter-chart-axis-label-color, var(--ds-chart-axis-label-color));--_scatter-chart-axis-font-size: var(--ds-scatter-chart-axis-font-size, var(--ds-chart-axis-font-size));--_scatter-chart-dot-radius: var(--ds-scatter-chart-dot-radius, var(--ds-chart-dot-radius));--_scatter-chart-dot-opacity: var(--ds-scatter-chart-dot-opacity, .72);--_scatter-chart-focus-color: var(--ds-scatter-chart-focus-color, var(--focus-ring-color));--_scatter-chart-focus-width: var(--ds-scatter-chart-focus-width, var(--focus-ring-width));--ds-chart-focus-ring-color: var(--_scatter-chart-focus-color);--focus-ring-color: var(--_scatter-chart-focus-color);--focus-ring-width: var(--_scatter-chart-focus-width);margin:0}.empty{display:grid;place-items:center;min-block-size:240px;margin:0;color:var(--text-secondary);text-align:center;border-inline-start:1px solid var(--ds-chart-axis-line-color);border-block-end:1px solid var(--ds-chart-axis-line-color)}.canvas{display:block;inline-size:100%;block-size:auto}.grid-line{stroke:var(--_scatter-chart-grid-line-color);stroke-width:1}.axis-line{stroke:var(--_scatter-chart-axis-line-color);stroke-width:1}.axis-label,.axis-title{fill:var(--_scatter-chart-axis-label-color);font-size:var(--_scatter-chart-axis-font-size)}.axis-label{dominant-baseline:middle}.axis-label.is-horizontal{dominant-baseline:auto}.axis-title{font-weight:var(--font-weight-bold)}.point{r:var(--_scatter-chart-dot-radius);fill:var(--_scatter-series-color);fill-opacity:var(--_scatter-chart-dot-opacity)}.point.interactive{cursor:pointer}.canvas .point{transition:opacity var(--ds-motion-chart-state-duration) var(--ds-motion-chart-state-easing),fill-opacity var(--ds-motion-chart-mark-duration) var(--ds-motion-chart-mark-easing)}.canvas .point.is-dimmed{opacity:var(--ds-chart-dim-opacity)}.canvas.dims-others:not(:has(.point.is-pinned)):has(.point.interactive:hover) .point.interactive:not(:hover),.canvas.dims-others:not(:has(.point.is-pinned)):has(.point.interactive:focus-visible) .point.interactive:not(:focus-visible),.canvas.dims-others:has(.point.is-pinned) .point:not(.is-pinned){opacity:var(--ds-chart-dim-opacity)}@media not (forced-colors:active){.point.interactive:focus-visible{outline:none}}.point.interactive:focus-visible{stroke:var(--ds-chart-focus-ring-color);stroke-width:var(--focus-ring-width);paint-order:stroke;filter:drop-shadow(0 0 var(--focus-ring-width) var(--ds-chart-focus-halo-color))}.thinned{margin-block:var(--space-2) 0;color:var(--text-secondary);font-size:var(--font-size-xs)}g.is-dimmed{opacity:var(--ds-chart-dim-opacity);transition:opacity var(--ds-motion-chart-mark-duration) var(--ds-motion-chart-mark-easing)}\n"] }]
|
|
322
|
-
}], ctorParameters: () => [], propDecorators: { data: [{ type: i0.Input, args: [{ isSignal: true, alias: "data", required: false }] }], xLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "xLabel", required: false }] }], yLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "yLabel", required: false }] }], decimator: [{ type: i0.Input, args: [{ isSignal: true, alias: "decimator", required: false }] }], tickCount: [{ type: i0.Input, args: [{ isSignal: true, alias: "tickCount", required: false }] }], caption: [{ type: i0.Input, args: [{ isSignal: true, alias: "caption", required: false }] }], summary: [{ type: i0.Input, args: [{ isSignal: true, alias: "summary", required: false }] }], interactive: [{ type: i0.Input, args: [{ isSignal: true, alias: "interactive", required: false }] }], frame: [{ type: i0.Input, args: [{ isSignal: true, alias: "frame", required: false }] }], dataTable: [{ type: i0.Input, args: [{ isSignal: true, alias: "dataTable", required: false }] }], loading: [{ type: i0.Input, args: [{ isSignal: true, alias: "loading", required: false }] }], error: [{ type: i0.Input, args: [{ isSignal: true, alias: "error", required: false }] }], emptyText: [{ type: i0.Input, args: [{ isSignal: true, alias: "emptyText", required: false }] }], errorText: [{ type: i0.Input, args: [{ isSignal: true, alias: "errorText", required: false }] }], valueFormat: [{ type: i0.Input, args: [{ isSignal: true, alias: "valueFormat", required: false }] }], tooltip: [{ type: i0.Input, args: [{ isSignal: true, alias: "tooltip", required: false }] }], dimOthers: [{ type: i0.Input, args: [{ isSignal: true, alias: "dimOthers", required: false }] }], pointClicked: [{ type: i0.Output, args: ["pointClicked"] }] } });
|
|
351
|
+
}, encapsulation: ViewEncapsulation.Emulated, changeDetection: ChangeDetectionStrategy.OnPush, template: "<figure class=\"scatter-chart\">\n @if (activeMark.pinned()) {\n <button\n class=\"pin-reset\"\n type=\"button\"\n (click)=\"activeMark.release()\">\n {{ intl().chart.unpin }}\n </button>\n }\n\n @if (caption()) {\n <figcaption>\n {{ caption() }}\n </figcaption>\n }\n\n @if (error()) {\n <p\n class=\"empty is-error\"\n role=\"status\">\n {{ errorTextResolved() }}\n </p>\n } @else if (loading() || !renderReady()) {\n <ds-skeleton class=\"skeleton\"\n width=\"100%\"\n [shimmer]=\"loading()\"\n [height]=\"skeletonHeight + 'px'\" />\n } @else if (isEmpty()) {\n <p class=\"empty\">\n {{ emptyTextResolved() }}\n </p>\n } @else {\n <svg\n class=\"canvas\"\n [attr.viewBox]=\"viewBox\"\n [class.dims-others]=\"dimOthers()\"\n [attr.role]=\"interactive() ? 'group' : 'img'\"\n [attr.aria-label]=\"accessibleName()\"\n [dsChartTooltip]=\"tooltipContext()\"\n [dsChartTooltipPinned]=\"activeMark.pinned()\"\n [dsChartTooltipOrigin]=\"activeMark.origin()\">\n @for (tick of yTicks(); track tick.value) {\n <line\n class=\"grid-line\"\n [attr.x1]=\"plot.left\"\n [attr.x2]=\"plotRight\"\n [attr.y1]=\"tick.y\"\n [attr.y2]=\"tick.y\" />\n\n <text\n class=\"axis-label\"\n text-anchor=\"end\"\n [attr.x]=\"plot.left - 8\"\n [attr.y]=\"tick.y\">\n {{ tick.label }}\n </text>\n }\n\n @for (tick of xTicks(); track tick.value) {\n <text\n class=\"axis-label is-horizontal\"\n text-anchor=\"middle\"\n [attr.x]=\"tick.x\"\n [attr.y]=\"plotBottom + 18\">\n {{ tick.label }}\n </text>\n }\n\n <line\n class=\"axis-line\"\n [attr.x1]=\"plot.left\"\n [attr.x2]=\"plotRight\"\n [attr.y1]=\"plotBottom\"\n [attr.y2]=\"plotBottom\" />\n\n @for (entry of series(); track entry.key) {\n @let start = seriesStart().get(entry.key) ?? 0;\n\n <g\n [class.is-dimmed]=\"\n highlightedSeries() !== null &&\n highlightedSeries() !== entry.series.id\n \"\n [style.--_scatter-series-color]=\"entry.color\"\n (pointerover)=\"onPointOver($event)\"\n (pointerout)=\"onPointOut($event)\"\n (click)=\"onPointPress($event)\"\n (keydown.enter)=\"onPointActivate($event)\"\n (keydown.space)=\"onPointActivate($event)\">\n @for (mark of entry.points; track mark.key; let index = $index) {\n <circle\n class=\"point\"\n [class.interactive]=\"interactive()\"\n [class.pins]=\"defaults.pinOnClick()\"\n [class.is-active]=\"activeMark.index() === start + index\"\n [class.is-pinned]=\"\n activeMark.pinned() && activeMark.index() === start + index\n \"\n [attr.cx]=\"mark.cx\"\n [attr.cy]=\"mark.cy\"\n [attr.role]=\"interactive() ? 'button' : null\"\n [attr.tabindex]=\"interactive() ? 0 : null\"\n [attr.data-mark-index]=\"start + index\"\n [attr.aria-label]=\"\n interactive() ? pointLabel(entry.series, mark.point) : null\n \" />\n }\n </g>\n }\n\n @if (pinnedPoint(); as point) {\n <svg:g\n dsChartPinMarker\n [attr.transform]=\"\n 'translate(' + point.cx + ',' + (point.cy - pinLift) + ')'\n \" />\n }\n\n @if (yLabel()) {\n <text\n class=\"axis-title\"\n text-anchor=\"middle\"\n [attr.transform]=\"\n 'rotate(-90) translate(' + -(plot.top + plot.height / 2) + ', 12)'\n \">\n {{ yLabel() }}\n </text>\n }\n\n @if (xLabel()) {\n <text\n class=\"axis-title\"\n text-anchor=\"middle\"\n [attr.x]=\"plot.left + plot.width / 2\"\n [attr.y]=\"plotBottom + 32\">\n {{ xLabel() }}\n </text>\n }\n </svg>\n\n <!-- On its face, not only in the accessible name: a decimated chart that stays quiet leaves the\n reader counting points that were never drawn. -->\n @if (droppedCount() > 0) {\n <p\n class=\"thinned\"\n role=\"status\">\n {{ intl().chart.scatterThinned(droppedCount()) }}\n </p>\n }\n\n @if (multiSeries()) {\n <ds-chart-legend\n [items]=\"legendItems()\"\n [(highlighted)]=\"highlightedSeries\" />\n }\n\n @if (dataTableResolved() !== 'none') {\n <ds-chart-data-table\n [columns]=\"dataTableColumns()\"\n [rows]=\"dataTableRows()\"\n [caption]=\"caption()\"\n [open]=\"dataTableResolved() === 'visible'\"\n (toggled)=\"tableOpen.set($event)\" />\n }\n }\n</figure>\n", styles: ["@charset \"UTF-8\";:where(:focus-visible){outline:var(--focus-ring-width) solid var(--focus-ring-color);outline-offset:var(--focus-ring-offset);animation:ds-focus-ring-in var(--duration-fast) var(--ease-standard)}@keyframes ds-focus-ring-in{0%{outline-color:transparent}}:root[data-focus=ring]{--ds-field-focus-shadow: var(--focus-ring);--ds-field-focus-shadow-error: var(--focus-ring-error)}:root[data-focus=edge]{--focus-ring-offset: 0px;--ds-field-focus-shadow: 0 0 0 var(--border-width-default) var(--primary);--ds-field-focus-shadow-error: 0 0 0 var(--border-width-default) var(--error)}[data-focus=inset]{--focus-ring-offset: calc(-1 * var(--focus-ring-width));--ds-field-focus-shadow: var(--focus-ring-inset);--ds-field-focus-shadow-error: var(--focus-ring-inset-error)}@media(forced-colors:active){:where(:focus-visible){outline:var(--focus-ring-width) solid CanvasText;outline-offset:var(--focus-ring-offset)}}@keyframes ds-chart-mark-grow-y{0%{transform:scaleY(0)}}@keyframes ds-chart-mark-grow-x{0%{transform:scaleX(0)}}@keyframes ds-chart-mark-fade-in{0%{opacity:0}}@keyframes ds-chart-mark-rise{0%{opacity:0;transform:translateY(var(--_chart-rise-distance, 4px))}}@keyframes ds-chart-mark-settle{0%{opacity:0;transform:scale(.96)}}@keyframes ds-chart-ring-sweep{0%{opacity:0;transform:rotate(-30deg) scale(.96)}}@keyframes ds-chart-line-draw{0%{stroke-dashoffset:1}}@keyframes ds-chart-mark-exit{to{opacity:0}}.point{transform-box:fill-box;transform-origin:center}.point{animation:ds-chart-mark-settle var(--ds-motion-chart-mark-enter-duration) var(--ds-motion-chart-mark-enter-easing) calc(var(--ds-motion-chart-mark-exit-duration) + 0ms + var(--_chart-mark-stagger, 0ms)) backwards}@media(prefers-reduced-motion:reduce){.point{animation-delay:0ms}}.point.mark-leave{animation:ds-chart-mark-exit var(--ds-motion-chart-mark-exit-duration) var(--ds-motion-chart-mark-exit-easing) both}:host{display:block;-webkit-user-select:none;user-select:none}:host(.framed){padding:var(--ds-chart-frame-padding);background:var(--ds-chart-frame-bg-color);border:var(--ds-chart-frame-border-width) solid var(--ds-chart-frame-border-color);border-radius:var(--ds-chart-frame-radius)}.data-table,.stage-table{-webkit-user-select:text;user-select:text}figcaption{margin-block-end:var(--space-3);color:var(--text-primary);font-weight:var(--font-weight-semibold);-webkit-user-select:text;user-select:text}.empty.is-error,.empty-text.is-error{color:var(--error)}:host{position:relative}:host(.framed){--_chart-pin-reset-inset: var(--ds-chart-frame-padding)}:host:has(.pin-reset) figure>figcaption{padding-inline-end:calc(5rem + var(--space-2))}:host:has(.pin-reset) figure:not(:has(>figcaption)){padding-block-start:calc(var(--space-6) + var(--space-2))}.pin-reset{position:absolute;inset-block-start:var(--_chart-pin-reset-inset, 0);inset-inline-end:var(--_chart-pin-reset-inset, 0);z-index:1;display:inline-flex;align-items:center;gap:var(--space-1);block-size:var(--space-6);padding:0 var(--space-2-5);border:var(--border-width-default) solid var(--border-divider);border-radius:var(--radius-pill);background:var(--surface-default);color:var(--text-secondary);font-size:var(--font-size-xs);line-height:1;box-shadow:var(--shadow-1);cursor:pointer}.pin-reset:before{position:absolute;inset:50% auto auto 50%;inline-size:max(100%,var(--hit-comfy));block-size:var(--hit-comfy);transform:translate(-50%,-50%);content:\"\"}.pin-reset:hover{color:var(--text-primary);border-color:var(--border-strong)}@media not (forced-colors:active){.point:focus{outline:none}}.data-table{--_chart-data-table-marker: var(--space-1);margin-block-start:var(--space-4);color:var(--text-secondary);font-size:var(--font-size-s)}.data-table>summary{display:inline-flex;align-items:center;gap:var(--space-1);padding-block:var(--space-1);color:var(--text-tertiary);font-size:var(--font-size-xs);cursor:pointer;list-style:none}.data-table>summary::-webkit-details-marker{display:none}.data-table>summary:before{content:\"\";inline-size:0;block-size:0;border-block-start:var(--_chart-data-table-marker) solid transparent;border-block-end:var(--_chart-data-table-marker) solid transparent;border-inline-start:calc(var(--_chart-data-table-marker) * 1.25) solid currentcolor;transition:transform var(--duration-fast) var(--ease-standard)}@media(prefers-reduced-motion:reduce){.data-table>summary:before{transition:none}}.data-table[open]>summary:before{transform:rotate(90deg)}.data-table>summary{border-radius:var(--radius-sm)}.data-table caption{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap;border:0}.data-table table{inline-size:100%;margin-block-start:var(--space-2);border-collapse:collapse;font-variant-numeric:tabular-nums}.data-table th,.data-table td{padding-block:var(--space-2);border-block-end:var(--border-width-default) solid var(--ds-chart-grid-line-color);text-align:end}.data-table thead th{color:var(--text-tertiary);font-size:var(--font-size-xs);font-weight:600}.data-table th:first-child,.data-table td:first-child{text-align:start}.data-table td+td{padding-inline-start:var(--space-3)}.scatter-chart{--_scatter-chart-grid-line-color: var(--ds-scatter-chart-grid-line-color, var(--ds-chart-grid-line-color));--_scatter-chart-axis-line-color: var(--ds-scatter-chart-axis-line-color, var(--ds-chart-axis-line-color));--_scatter-chart-axis-label-color: var(--ds-scatter-chart-axis-label-color, var(--ds-chart-axis-label-color));--_scatter-chart-axis-font-size: var(--ds-scatter-chart-axis-font-size, var(--ds-chart-axis-font-size));--_scatter-chart-dot-radius: var(--ds-scatter-chart-dot-radius, var(--ds-chart-dot-radius));--_scatter-chart-dot-opacity: var(--ds-scatter-chart-dot-opacity, .72);--_scatter-chart-focus-color: var(--ds-scatter-chart-focus-color, var(--focus-ring-color));--_scatter-chart-focus-width: var(--ds-scatter-chart-focus-width, var(--focus-ring-width));--ds-chart-focus-ring-color: var(--_scatter-chart-focus-color);--focus-ring-color: var(--_scatter-chart-focus-color);--focus-ring-width: var(--_scatter-chart-focus-width);margin:0}.empty{display:grid;place-items:center;min-block-size:240px;margin:0;color:var(--text-secondary);text-align:center;border-inline-start:1px solid var(--ds-chart-axis-line-color);border-block-end:1px solid var(--ds-chart-axis-line-color)}.canvas{display:block;inline-size:100%;block-size:auto}.grid-line{stroke:var(--_scatter-chart-grid-line-color);stroke-width:1}.axis-line{stroke:var(--_scatter-chart-axis-line-color);stroke-width:1}.axis-label,.axis-title{fill:var(--_scatter-chart-axis-label-color);font-size:var(--_scatter-chart-axis-font-size)}.axis-label{dominant-baseline:middle}.axis-label.is-horizontal{dominant-baseline:auto}.axis-title{font-weight:var(--font-weight-bold)}.point{r:var(--_scatter-chart-dot-radius);fill:var(--_scatter-series-color);fill-opacity:var(--_scatter-chart-dot-opacity)}.point.interactive,.point.pins{cursor:pointer}.canvas .point{transition:opacity var(--ds-motion-chart-state-duration) var(--ds-motion-chart-state-easing),fill-opacity var(--ds-motion-chart-mark-duration) var(--ds-motion-chart-mark-easing)}.canvas .point.is-dimmed{opacity:var(--ds-chart-dim-opacity)}.canvas.dims-others:not(:has(.point.is-pinned)):has(.point.is-active) .point:not(.is-active),.canvas.dims-others:has(.point.is-pinned) .point:not(.is-pinned){opacity:var(--ds-chart-dim-opacity)}@media not (forced-colors:active){.point.interactive:focus-visible{outline:none}}.point.interactive:focus-visible{stroke:var(--ds-chart-focus-ring-color);stroke-width:var(--focus-ring-width);paint-order:stroke;filter:drop-shadow(0 0 var(--focus-ring-width) var(--ds-chart-focus-halo-color))}.thinned{margin-block:var(--space-2) 0;color:var(--text-secondary);font-size:var(--font-size-xs)}g.is-dimmed{opacity:var(--ds-chart-dim-opacity);transition:opacity var(--ds-motion-chart-mark-duration) var(--ds-motion-chart-mark-easing)}\n"] }]
|
|
352
|
+
}], ctorParameters: () => [], propDecorators: { data: [{ type: i0.Input, args: [{ isSignal: true, alias: "data", required: false }] }], xLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "xLabel", required: false }] }], yLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "yLabel", required: false }] }], decimator: [{ type: i0.Input, args: [{ isSignal: true, alias: "decimator", required: false }] }], tickCount: [{ type: i0.Input, args: [{ isSignal: true, alias: "tickCount", required: false }] }], caption: [{ type: i0.Input, args: [{ isSignal: true, alias: "caption", required: false }] }], summary: [{ type: i0.Input, args: [{ isSignal: true, alias: "summary", required: false }] }], interactive: [{ type: i0.Input, args: [{ isSignal: true, alias: "interactive", required: false }] }], frame: [{ type: i0.Input, args: [{ isSignal: true, alias: "frame", required: false }] }], dataTable: [{ type: i0.Input, args: [{ isSignal: true, alias: "dataTable", required: false }] }], loading: [{ type: i0.Input, args: [{ isSignal: true, alias: "loading", required: false }] }], error: [{ type: i0.Input, args: [{ isSignal: true, alias: "error", required: false }] }], emptyText: [{ type: i0.Input, args: [{ isSignal: true, alias: "emptyText", required: false }] }], errorText: [{ type: i0.Input, args: [{ isSignal: true, alias: "errorText", required: false }] }], valueFormat: [{ type: i0.Input, args: [{ isSignal: true, alias: "valueFormat", required: false }] }], tooltip: [{ type: i0.Input, args: [{ isSignal: true, alias: "tooltip", required: false }] }], dimOthers: [{ type: i0.Input, args: [{ isSignal: true, alias: "dimOthers", required: false }] }], pinOnClick: [{ type: i0.Input, args: [{ isSignal: true, alias: "pinOnClick", required: false }] }], pointClicked: [{ type: i0.Output, args: ["pointClicked"] }] } });
|
|
323
353
|
|
|
324
354
|
/**
|
|
325
355
|
* Generated bundle index. Do not edit.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ids-group-ltd-ids-design-system-components-scatter-chart.mjs","sources":["../../../src/lib/components/scatter-chart/scatter-chart.math.ts","../../../src/lib/components/scatter-chart/scatter-chart.component.ts","../../../src/lib/components/scatter-chart/scatter-chart.component.html","../../../src/lib/components/scatter-chart/ids-group-ltd-ids-design-system-components-scatter-chart.ts"],"sourcesContent":["import type { ScatterChartSeries, ScatterPoint } from './scatter-chart.types';\n\nexport const SCATTER_VIEW_WIDTH = 640;\nexport const SCATTER_VIEW_HEIGHT = 360;\nexport const SCATTER_DEFAULT_TICK_COUNT = 5;\n\n/** The drawable rectangle, in the canvas's own units. */\nexport interface ScatterPlot {\n readonly left: number;\n readonly top: number;\n readonly width: number;\n readonly height: number;\n}\n\n/** What both axes have to hold. */\nexport interface ScatterExtent {\n readonly xMin: number;\n readonly xMax: number;\n readonly yMin: number;\n readonly yMax: number;\n}\n\n/** The span of every plotted reading on both scales. A non-finite coordinate is not a position, so\n * it neither widens the plot nor lands on an edge of it.\n *\n * @internal */\nexport function scatterExtent(\n series: readonly ScatterChartSeries[],\n): ScatterExtent {\n const points = series\n .flatMap((entry) => entry.data)\n .filter((point) => Number.isFinite(point.x) && Number.isFinite(point.y));\n\n if (points.length === 0) {\n return { xMin: 0, xMax: 0, yMin: 0, yMax: 0 };\n }\n\n return {\n xMin: Math.min(...points.map((point) => point.x)),\n xMax: Math.max(...points.map((point) => point.x)),\n yMin: Math.min(...points.map((point) => point.y)),\n yMax: Math.max(...points.map((point) => point.y)),\n };\n}\n\n/** Where one reading lands, clamped into the plot. A domain pinned narrower than the data would\n * otherwise put a mark over the axis labels rather than on an edge.\n *\n * @internal */\nexport function scatterPlacement(\n point: ScatterPoint,\n extent: ScatterExtent,\n plot: ScatterPlot,\n): { cx: number; cy: number } {\n const share = (value: number, min: number, max: number): number => {\n const span = max - min;\n if (!Number.isFinite(span) || span <= 0 || !Number.isFinite(value)) {\n return 0;\n }\n\n return Math.min(1, Math.max(0, (value - min) / span));\n };\n\n return {\n cx: plot.left + share(point.x, extent.xMin, extent.xMax) * plot.width,\n cy:\n plot.top +\n plot.height -\n share(point.y, extent.yMin, extent.yMax) * plot.height,\n };\n}\n","import {\n ChangeDetectionStrategy,\n Component,\n ElementRef,\n ViewEncapsulation,\n booleanAttribute,\n computed,\n inject,\n input,\n numberAttribute,\n output,\n signal,\n} from '@angular/core';\nimport {\n CHART_SERIES_COLORS,\n decimationTarget,\n linearScale,\n listenForMarkFocus,\n lttbDecimate,\n markOf,\n minMaxDecimate,\n needsDecimating,\n niceDomain,\n tickValues,\n chartRenderGate,\n} from '@ids-group-ltd/ids-design-system/components';\nimport { ChartLegendComponent } from '@ids-group-ltd/ids-design-system/components/chart-legend';\nimport type { ChartLegendItem } from '@ids-group-ltd/ids-design-system/components/chart-legend';\nimport { SkeletonComponent } from '@ids-group-ltd/ids-design-system/components/skeleton';\nimport {\n ChartTooltipDirective,\n chartActiveMark,\n} from '@ids-group-ltd/ids-design-system/components/chart-tooltip';\nimport type {\n ChartItemTooltipTrigger,\n ChartTooltipContext,\n} from '@ids-group-ltd/ids-design-system/components/chart-tooltip';\nimport { DS_INTL } from '@ids-group-ltd/ids-design-system/core';\nimport type {\n ChartDataTable,\n ChartFrame,\n ChartValueFormat,\n} from '@ids-group-ltd/ids-design-system/core';\nimport {\n SCATTER_DEFAULT_TICK_COUNT,\n SCATTER_VIEW_HEIGHT,\n SCATTER_VIEW_WIDTH,\n scatterExtent,\n scatterPlacement,\n} from './scatter-chart.math';\nimport type { ScatterPlot } from './scatter-chart.math';\nimport { ChartDataTableComponent } from '@ids-group-ltd/ids-design-system/components/chart-data-table';\nimport type { ChartDataRow } from '@ids-group-ltd/ids-design-system/components/chart-data-table';\nimport { resolveChartDefaults } from '@ids-group-ltd/ids-design-system/components';\nimport type {\n ScatterChartDecimator,\n ScatterChartReading,\n ScatterChartSeries,\n ScatterPoint,\n} from './scatter-chart.types';\n\n/** Room for the axis labels outside the plot, in the canvas's own units. */\nconst AXIS_GUTTER = 52;\nconst CATEGORY_GUTTER = 34;\nconst EDGE_GUTTER = 12;\n\ninterface PlacedPoint {\n readonly key: string;\n readonly cx: number;\n readonly cy: number;\n readonly point: ScatterPoint;\n}\n\ninterface PlacedSeries {\n readonly key: string;\n readonly series: ScatterChartSeries;\n readonly color: string;\n readonly points: readonly PlacedPoint[];\n}\n\n/**\n * Two continuous quantities against each other: weight against carriage cost, distance against\n * time, volume against conversion. None of the other five charts draws this.\n *\n * It is the only chart in the family whose mark count the CALLER decides - an area has one node per\n * series, a waterfall one per step, a heat map one per cell, and all three are bounded by the\n * question itself. So it is also the only one that thins its own data before drawing: past four\n * times the plot's width in marks the series is decimated, and the chart says so on its face\n * rather than leaving the reader to count points that are not there.\n */\n@Component({\n selector: 'ds-scatter-chart',\n standalone: true,\n exportAs: 'dsScatterChart',\n imports: [\n ChartLegendComponent,\n ChartTooltipDirective,\n SkeletonComponent,\n ChartDataTableComponent,\n ],\n templateUrl: './scatter-chart.component.html',\n styleUrl: './scatter-chart.component.scss',\n host: {\n '[class.framed]': \"frameResolved() === 'auto'\",\n },\n encapsulation: ViewEncapsulation.Emulated,\n changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class ScatterChartComponent {\n protected readonly renderReady = chartRenderGate();\n\n /** One entry per series, each carrying its own readings. Both scales are continuous, so a\n * point holds its position on each rather than an index into a list of categories. */\n readonly data = input<readonly ScatterChartSeries[]>([]);\n\n /** Names the horizontal quantity under the plot. Without it the reader has two numbers and no\n * idea which is which - on a scatter that is the whole reading. */\n readonly xLabel = input<string | null>(null);\n\n /** Names the vertical quantity beside the plot. */\n readonly yLabel = input<string | null>(null);\n\n /** Which decimator thins a series past the budget. `'minMax'` by default, because it is the only\n * one that promises each bucket's extremum survives. */\n readonly decimator = input<ScatterChartDecimator>('minMax');\n\n /** A hint, not a count, and it applies to BOTH axes. Ticks snap to a round step. */\n readonly tickCount = input(SCATTER_DEFAULT_TICK_COUNT, {\n transform: numberAttribute,\n });\n\n /** Printed above the plot as the visible title, and reused as the annex table's caption. */\n readonly caption = input<string | null>(null);\n\n /** The accessible name. Generated when omitted, naming both axes' spans, how many readings\n * were drawn and how many were thinned out. */\n readonly summary = input<string | null>(null);\n\n /** Makes every mark a button and gives it a keyboard route. `pointClicked` fires whether or\n * not this is set. */\n readonly interactive = input(false, { transform: booleanAttribute });\n\n /** `'auto'` draws the bordered, padded box; `'none'` leaves it bare for a chart inside a card\n * the page has already drawn. Unset falls back to `DS_CONFIG.chart.frame`. */\n readonly frame = input<ChartFrame | null>(null);\n\n /** The annex table under the plot. It lists EVERY reading, including the ones decimation left\n * out of the drawing, which is what keeps a thinned chart honest. */\n readonly dataTable = input<ChartDataTable | null>(null);\n\n /** A skeleton at the plot's own height, so the page does not resize when the data lands. */\n readonly loading = input(false, { transform: booleanAttribute });\n\n /** Separate from empty data: \"the request failed\" and \"there is nothing to show\" read the same\n * and mean opposite things. */\n readonly error = input(false, { transform: booleanAttribute });\n\n /** Shown when no series carries a reading. Unset falls back to `DS_INTL.chart.empty`. */\n readonly emptyText = input<string | null>(null);\n\n /** Shown in place of the plot while `error` is set. Unset falls back to\n * `DS_INTL.chart.error`. */\n readonly errorText = input<string | null>(null);\n\n /** Formats every number the chart prints - both axes' ticks, the accessible name and the annex\n * table. Unset falls back to `DS_CONFIG.chart.valueFormat`. */\n readonly valueFormat = input<ChartValueFormat | null>(null);\n\n /** Whether a hovered or focused mark opens a tooltip. A scatter prints no value beside its\n * marks - there is no room - so this is where a reading is read without the annex table. */\n readonly tooltip = input<ChartItemTooltipTrigger>('item');\n\n /** Fades every mark but the one under the pointer. Off by default: on a scatter the pile-up IS\n * the reading, and dimming the neighbours takes exactly that away. */\n readonly dimOthers = input(false, { transform: booleanAttribute });\n\n /** The clicked reading, with the series it belongs to. Fires on click and on Enter or Space. */\n readonly pointClicked = output<ScatterChartReading>();\n\n private readonly defaults = resolveChartDefaults(this);\n protected readonly intl = inject(DS_INTL);\n readonly frameResolved = this.defaults.frame;\n readonly dataTableResolved = this.defaults.dataTable;\n readonly emptyTextResolved = this.defaults.emptyText;\n readonly errorTextResolved = this.defaults.errorText;\n readonly valueFormatResolved = this.defaults.valueFormat;\n\n protected readonly activeMark = chartActiveMark(() => 0);\n\n protected readonly viewBox = `0 0 ${SCATTER_VIEW_WIDTH} ${SCATTER_VIEW_HEIGHT}`;\n\n protected readonly plot: ScatterPlot = {\n left: AXIS_GUTTER,\n top: EDGE_GUTTER,\n width: SCATTER_VIEW_WIDTH - AXIS_GUTTER - EDGE_GUTTER,\n height: SCATTER_VIEW_HEIGHT - CATEGORY_GUTTER - EDGE_GUTTER,\n };\n\n protected readonly isEmpty = computed(() =>\n this.data().every((series) => series.data.length === 0),\n );\n\n /** One mark per drawn unit of plot width is the ceiling: two marks sharing a pixel are two DOM\n * nodes a reader cannot tell apart. The viewBox is one unit per pixel at a typical card width. */\n private readonly budget = computed(() => decimationTarget(this.plot.width));\n\n protected readonly drawnSeries = computed(() => {\n const mode = this.decimator();\n const budget = this.budget();\n\n return this.data().map((series) => {\n const thin =\n mode !== 'none' && needsDecimating(series.data.length, budget);\n const data = !thin\n ? series.data\n : mode === 'lttb'\n ? lttbDecimate(series.data, budget)\n : minMaxDecimate(series.data, budget);\n\n return { series, data, thinned: thin ? series.data.length : 0 };\n });\n });\n\n /** How many readings were dropped, over every series. A decimated chart that does not SAY it is\n * decimated leaves the reader counting points that were never drawn. */\n protected readonly droppedCount = computed(() =>\n this.drawnSeries().reduce(\n (total, entry) =>\n total + (entry.thinned === 0 ? 0 : entry.thinned - entry.data.length),\n 0,\n ),\n );\n\n private readonly extent = computed(() =>\n scatterExtent(\n this.drawnSeries().map((entry) => ({\n ...entry.series,\n data: entry.data,\n })),\n ),\n );\n\n private readonly domains = computed(() => {\n const measured = this.extent();\n const ticks = this.tickCount();\n const x = niceDomain(measured.xMin, measured.xMax, ticks);\n const y = niceDomain(measured.yMin, measured.yMax, ticks);\n\n return {\n xMin: x.min,\n xMax: x.max || measured.xMax,\n yMin: y.min,\n yMax: y.max || measured.yMax,\n };\n });\n\n protected readonly series = computed<readonly PlacedSeries[]>(() => {\n const extent = this.domains();\n\n return this.drawnSeries().map((entry, index) => {\n const slot = index % CHART_SERIES_COLORS.length;\n\n return {\n key: entry.series.id,\n series: entry.series,\n color: entry.series.color ?? CHART_SERIES_COLORS[slot],\n points: entry.data\n .filter(\n (point: ScatterPoint) =>\n Number.isFinite(point.x) && Number.isFinite(point.y),\n )\n .map((point: ScatterPoint, pointIndex: number) => ({\n key: `${entry.series.id}-${pointIndex}`,\n point,\n ...scatterPlacement(point, extent, this.plot),\n })),\n };\n });\n });\n\n protected readonly xTicks = computed(() => {\n const { xMin, xMax } = this.domains();\n const toX = linearScale(xMin, xMax, this.plot.width);\n const format = this.valueFormatResolved();\n\n return tickValues(xMin, xMax, this.tickCount()).map((value) => ({\n value,\n x: this.plot.left + toX(value),\n label: format(value, 'tick'),\n }));\n });\n\n protected readonly yTicks = computed(() => {\n const { yMin, yMax } = this.domains();\n const toY = linearScale(yMin, yMax, this.plot.height);\n const format = this.valueFormatResolved();\n\n return tickValues(yMin, yMax, this.tickCount()).map((value) => ({\n value,\n y: this.plot.top + this.plot.height - toY(value),\n label: format(value, 'tick'),\n }));\n });\n\n protected readonly plotBottom = this.plot.top + this.plot.height;\n protected readonly plotRight = this.plot.left + this.plot.width;\n\n protected readonly multiSeries = computed(() => this.data().length > 1);\n\n /** The series named in the legend under the pointer, which fades the rest. */\n protected readonly highlightedSeries = signal<string | null>(null);\n\n protected readonly legendItems = computed<readonly ChartLegendItem[]>(() =>\n this.series().map((entry) => ({\n id: entry.series.id,\n label: entry.series.label,\n color: entry.color,\n })),\n );\n\n protected readonly accessibleName = computed(() => {\n const given = this.summary();\n if (given) {\n return given;\n }\n const words = this.intl().chart;\n const format = this.valueFormatResolved();\n const { xMin, xMax, yMin, yMax } = this.domains();\n const counted = this.series().reduce(\n (total, entry) => total + entry.points.length,\n 0,\n );\n const axes = `${words.scatterAxis(this.xLabel() ?? 'x', format(xMin, 'tooltip'), format(xMax, 'tooltip'))}, ${words.scatterAxis(this.yLabel() ?? 'y', format(yMin, 'tooltip'), format(yMax, 'tooltip'))}`;\n const dropped = this.droppedCount();\n\n return words.scatterSummary(\n this.caption() ?? words.scatterTitle,\n counted,\n axes,\n dropped,\n );\n });\n\n protected readonly dataTableColumns = computed<readonly string[]>(() => [\n this.intl().chart.seriesColumn,\n this.xLabel() ?? 'x',\n this.yLabel() ?? 'y',\n ]);\n\n /** Built only while the disclosure is open: a scatter carries thousands of readings, and every\n * one of them as a table row is a cost nobody pays until they ask. */\n protected readonly dataTableRows = computed<readonly ChartDataRow[]>(() =>\n this.tableIsOpen()\n ? this.tableRows().map((row) => ({\n key: row.key,\n cells: [row.series, row.x, row.y],\n }))\n : [],\n );\n\n protected readonly tableRows = computed(() => {\n const format = this.valueFormatResolved();\n\n return this.data().flatMap((series) =>\n series.data.map((point, index) => ({\n key: `${series.id}-${index}`,\n series: series.label,\n x: format(point.x, 'tooltip'),\n y: format(point.y, 'tooltip'),\n })),\n );\n });\n\n /** `<details>` keeps its children in the DOM while it is shut, so a scatter of 12 000 readings\n * parked 48 000 nodes on the page - three times what decimating the PLOT had just saved. The\n * rows are built when the disclosure opens and dropped when it shuts; every reading is still\n * one click away, which is what the table is for. */\n protected readonly tableOpen = signal(false);\n\n protected readonly tableIsOpen = computed(\n () => this.tableOpen() || this.dataTableResolved() === 'visible',\n );\n\n protected readonly skeletonHeight = `${SCATTER_VIEW_HEIGHT}`;\n\n /** Flattened so one index addresses a mark, which is what `chartActiveMark` counts. */\n private readonly flatMarks = computed(() =>\n this.series().flatMap((entry) =>\n entry.points.map((mark) => ({ entry, mark })),\n ),\n );\n\n /** Where each series starts in `flatMarks`, so a point carries its flat index without a search\n * and the series' one listener reads it back. */\n protected readonly seriesStart = computed(() => {\n const starts = new Map<string, number>();\n let next = 0;\n for (const entry of this.series()) {\n starts.set(entry.key, next);\n next += entry.points.length;\n }\n\n return starts;\n });\n\n constructor() {\n listenForMarkFocus(inject(ElementRef), (event, hit) =>\n this.activeMark.enter(hit.index, event, undefined, hit.element),\n );\n }\n\n protected onPointOver(event: Event): void {\n const hit = markOf(event);\n if (hit) {\n this.activeMark.enter(hit.index, event, undefined, hit.element);\n }\n }\n\n protected onPointActivate(event: Event): void {\n const held = this.flatMarks()[markOf(event)?.index ?? -1];\n if (held) {\n this.onPointClick(held.entry.series, held.mark.point);\n }\n }\n\n protected readonly tooltipContext = computed<ChartTooltipContext | null>(\n () => {\n const held = this.flatMarks()[this.activeMark.index()];\n if (this.tooltip() === 'none' || !held) {\n return null;\n }\n const format = this.valueFormatResolved();\n\n return {\n category: `${this.xLabel() ?? 'x'} ${format(held.mark.point.x, 'tooltip')}`,\n entries: [\n {\n label: held.entry.series.label,\n value: held.mark.point.y,\n formatted: format(held.mark.point.y, 'tooltip'),\n color: held.entry.color,\n },\n ],\n };\n },\n );\n\n protected onPointClick(\n series: ScatterChartSeries,\n point: ScatterPoint,\n ): void {\n this.pointClicked.emit({ series, point });\n }\n\n protected pointLabel(\n series: ScatterChartSeries,\n point: ScatterPoint,\n ): string {\n const format = this.valueFormatResolved();\n\n return `${series.label}, ${this.xLabel() ?? 'x'} ${format(point.x, 'tooltip')}, ${this.yLabel() ?? 'y'} ${format(point.y, 'tooltip')}`;\n }\n}\n","<figure class=\"scatter-chart\">\n @if (caption()) {\n <figcaption>\n {{ caption() }}\n </figcaption>\n }\n\n @if (error()) {\n <p\n class=\"empty is-error\"\n role=\"status\">\n {{ errorTextResolved() }}\n </p>\n } @else if (loading() || !renderReady()) {\n <ds-skeleton class=\"skeleton\"\n width=\"100%\"\n [shimmer]=\"loading()\"\n [height]=\"skeletonHeight + 'px'\" />\n } @else if (isEmpty()) {\n <p class=\"empty\">\n {{ emptyTextResolved() }}\n </p>\n } @else {\n <svg\n class=\"canvas\"\n [attr.viewBox]=\"viewBox\"\n [class.dims-others]=\"dimOthers()\"\n [attr.role]=\"interactive() ? 'group' : 'img'\"\n [attr.aria-label]=\"accessibleName()\"\n [dsChartTooltip]=\"tooltipContext()\"\n [dsChartTooltipOrigin]=\"activeMark.origin()\">\n @for (tick of yTicks(); track tick.value) {\n <line\n class=\"grid-line\"\n [attr.x1]=\"plot.left\"\n [attr.x2]=\"plotRight\"\n [attr.y1]=\"tick.y\"\n [attr.y2]=\"tick.y\" />\n\n <text\n class=\"axis-label\"\n text-anchor=\"end\"\n [attr.x]=\"plot.left - 8\"\n [attr.y]=\"tick.y\">\n {{ tick.label }}\n </text>\n }\n\n @for (tick of xTicks(); track tick.value) {\n <text\n class=\"axis-label is-horizontal\"\n text-anchor=\"middle\"\n [attr.x]=\"tick.x\"\n [attr.y]=\"plotBottom + 18\">\n {{ tick.label }}\n </text>\n }\n\n <line\n class=\"axis-line\"\n [attr.x1]=\"plot.left\"\n [attr.x2]=\"plotRight\"\n [attr.y1]=\"plotBottom\"\n [attr.y2]=\"plotBottom\" />\n\n @for (entry of series(); track entry.key) {\n @let start = seriesStart().get(entry.key) ?? 0;\n\n <g\n [class.is-dimmed]=\"\n highlightedSeries() !== null &&\n highlightedSeries() !== entry.series.id\n \"\n [style.--_scatter-series-color]=\"entry.color\"\n (pointerover)=\"onPointOver($event)\"\n (click)=\"onPointActivate($event)\"\n (keydown.enter)=\"onPointActivate($event)\"\n (keydown.space)=\"onPointActivate($event)\">\n @for (mark of entry.points; track mark.key; let index = $index) {\n <circle\n class=\"point\"\n [class.interactive]=\"interactive()\"\n [attr.cx]=\"mark.cx\"\n [attr.cy]=\"mark.cy\"\n [attr.role]=\"interactive() ? 'button' : null\"\n [attr.tabindex]=\"interactive() ? 0 : null\"\n [attr.data-mark-index]=\"start + index\"\n [attr.aria-label]=\"\n interactive() ? pointLabel(entry.series, mark.point) : null\n \" />\n }\n </g>\n }\n\n @if (yLabel()) {\n <text\n class=\"axis-title\"\n text-anchor=\"middle\"\n [attr.transform]=\"\n 'rotate(-90) translate(' + -(plot.top + plot.height / 2) + ', 12)'\n \">\n {{ yLabel() }}\n </text>\n }\n\n @if (xLabel()) {\n <text\n class=\"axis-title\"\n text-anchor=\"middle\"\n [attr.x]=\"plot.left + plot.width / 2\"\n [attr.y]=\"plotBottom + 32\">\n {{ xLabel() }}\n </text>\n }\n </svg>\n\n <!-- On its face, not only in the accessible name: a decimated chart that stays quiet leaves the\n reader counting points that were never drawn. -->\n @if (droppedCount() > 0) {\n <p\n class=\"thinned\"\n role=\"status\">\n {{ intl().chart.scatterThinned(droppedCount()) }}\n </p>\n }\n\n @if (multiSeries()) {\n <ds-chart-legend\n [items]=\"legendItems()\"\n [(highlighted)]=\"highlightedSeries\" />\n }\n\n @if (dataTableResolved() !== 'none') {\n <ds-chart-data-table\n [columns]=\"dataTableColumns()\"\n [rows]=\"dataTableRows()\"\n [caption]=\"caption()\"\n [open]=\"dataTableResolved() === 'visible'\"\n (toggled)=\"tableOpen.set($event)\" />\n }\n }\n</figure>\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;;AAEO,MAAM,kBAAkB,GAAG,GAAG;AAC9B,MAAM,mBAAmB,GAAG,GAAG;AAC/B,MAAM,0BAA0B,GAAG,CAAC;AAkB3C;;;AAGgB;AACV,SAAU,aAAa,CAC3B,MAAqC,EAAA;IAErC,MAAM,MAAM,GAAG;SACZ,OAAO,CAAC,CAAC,KAAK,KAAK,KAAK,CAAC,IAAI;SAC7B,MAAM,CAAC,CAAC,KAAK,KAAK,MAAM,CAAC,QAAQ,CAAC,KAAK,CAAC,CAAC,CAAC,IAAI,MAAM,CAAC,QAAQ,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC;AAE1E,IAAA,IAAI,MAAM,CAAC,MAAM,KAAK,CAAC,EAAE;AACvB,QAAA,OAAO,EAAE,IAAI,EAAE,CAAC,EAAE,IAAI,EAAE,CAAC,EAAE,IAAI,EAAE,CAAC,EAAE,IAAI,EAAE,CAAC,EAAE;IAC/C;IAEA,OAAO;AACL,QAAA,IAAI,EAAE,IAAI,CAAC,GAAG,CAAC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A,EAAA,MAAA,EAAA,SAAA,EAAA,MAAA,EAAA,WAAA,CAAA,EAAA,OAAA,EAAA,CAAA,SAAA,CAAA,EAAA,CAAA,EAAA,eAAA,EAAA,EAAA,CAAA,uBAAA,CAAA,MAAA,EAAA,CAAA;;4FAUd,qBAAqB,EAAA,UAAA,EAAA,CAAA;kBAlBjC,SAAS;AACE,YAAA,IAAA,EAAA,CAAA,EAAA,QAAA,EAAA,kBAAkB,EAAA,UAAA,EAChB,IAAI,EAAA,QAAA,EACN,gBAAgB,EAAA,OAAA,EACjB;wBACP,oBAAoB;wBACpB,qBAAqB;wBACrB,iBAAiB;wBACjB,uBAAuB;qBACxB,EAAA,IAAA,EAGK;AACJ,wBAAA,gBAAgB,EAAE,4BAA4B;AAC/C,qBAAA,EAAA,aAAA,EACc,iBAAiB,CAAC,QAAQ,EAAA,eAAA,EACxB,uBAAuB,CAAC,MAAM,EAAA,QAAA,EAAA,goIAAA,EAAA,MAAA,EAAA,CAAA,g+MAAA,CAAA,EAAA;;;AE1GjD;;AAEG;;;;"}
|
|
1
|
+
{"version":3,"file":"ids-group-ltd-ids-design-system-components-scatter-chart.mjs","sources":["../../../src/lib/components/scatter-chart/scatter-chart.math.ts","../../../src/lib/components/scatter-chart/scatter-chart.component.ts","../../../src/lib/components/scatter-chart/scatter-chart.component.html","../../../src/lib/components/scatter-chart/ids-group-ltd-ids-design-system-components-scatter-chart.ts"],"sourcesContent":["import type { ScatterChartSeries, ScatterPoint } from './scatter-chart.types';\n\nexport const SCATTER_VIEW_WIDTH = 640;\nexport const SCATTER_VIEW_HEIGHT = 360;\nexport const SCATTER_DEFAULT_TICK_COUNT = 5;\n\n/** The drawable rectangle, in the canvas's own units. */\nexport interface ScatterPlot {\n readonly left: number;\n readonly top: number;\n readonly width: number;\n readonly height: number;\n}\n\n/** What both axes have to hold. */\nexport interface ScatterExtent {\n readonly xMin: number;\n readonly xMax: number;\n readonly yMin: number;\n readonly yMax: number;\n}\n\n/** The span of every plotted reading on both scales. A non-finite coordinate is not a position, so\n * it neither widens the plot nor lands on an edge of it.\n *\n * @internal */\nexport function scatterExtent(\n series: readonly ScatterChartSeries[],\n): ScatterExtent {\n const points = series\n .flatMap((entry) => entry.data)\n .filter((point) => Number.isFinite(point.x) && Number.isFinite(point.y));\n\n if (points.length === 0) {\n return { xMin: 0, xMax: 0, yMin: 0, yMax: 0 };\n }\n\n return {\n xMin: Math.min(...points.map((point) => point.x)),\n xMax: Math.max(...points.map((point) => point.x)),\n yMin: Math.min(...points.map((point) => point.y)),\n yMax: Math.max(...points.map((point) => point.y)),\n };\n}\n\n/** Where one reading lands, clamped into the plot. A domain pinned narrower than the data would\n * otherwise put a mark over the axis labels rather than on an edge.\n *\n * @internal */\nexport function scatterPlacement(\n point: ScatterPoint,\n extent: ScatterExtent,\n plot: ScatterPlot,\n): { cx: number; cy: number } {\n const share = (value: number, min: number, max: number): number => {\n const span = max - min;\n if (!Number.isFinite(span) || span <= 0 || !Number.isFinite(value)) {\n return 0;\n }\n\n return Math.min(1, Math.max(0, (value - min) / span));\n };\n\n return {\n cx: plot.left + share(point.x, extent.xMin, extent.xMax) * plot.width,\n cy:\n plot.top +\n plot.height -\n share(point.y, extent.yMin, extent.yMax) * plot.height,\n };\n}\n","import {\n ChangeDetectionStrategy,\n Component,\n ElementRef,\n ViewEncapsulation,\n booleanAttribute,\n computed,\n inject,\n input,\n numberAttribute,\n output,\n signal,\n} from '@angular/core';\nimport {\n CHART_SERIES_COLORS,\n decimationTarget,\n linearScale,\n listenForMarkFocus,\n lttbDecimate,\n markOf,\n minMaxDecimate,\n needsDecimating,\n niceDomain,\n tickValues,\n chartRenderGate,\n} from '@ids-group-ltd/ids-design-system/components';\nimport { ChartLegendComponent } from '@ids-group-ltd/ids-design-system/components/chart-legend';\nimport type { ChartLegendItem } from '@ids-group-ltd/ids-design-system/components/chart-legend';\nimport { SkeletonComponent } from '@ids-group-ltd/ids-design-system/components/skeleton';\nimport {\n CHART_PIN_GAP,\n CHART_PIN_RADIUS,\n ChartPinMarkerComponent,\n ChartTooltipDirective,\n chartActiveMark,\n} from '@ids-group-ltd/ids-design-system/components/chart-tooltip';\nimport type {\n ChartItemTooltipTrigger,\n ChartTooltipContext,\n} from '@ids-group-ltd/ids-design-system/components/chart-tooltip';\nimport { DS_INTL } from '@ids-group-ltd/ids-design-system/core';\nimport type {\n ChartDataTable,\n ChartFrame,\n ChartValueFormat,\n} from '@ids-group-ltd/ids-design-system/core';\nimport {\n SCATTER_DEFAULT_TICK_COUNT,\n SCATTER_VIEW_HEIGHT,\n SCATTER_VIEW_WIDTH,\n scatterExtent,\n scatterPlacement,\n} from './scatter-chart.math';\nimport type { ScatterPlot } from './scatter-chart.math';\nimport { ChartDataTableComponent } from '@ids-group-ltd/ids-design-system/components/chart-data-table';\nimport type { ChartDataRow } from '@ids-group-ltd/ids-design-system/components/chart-data-table';\nimport { resolveChartDefaults } from '@ids-group-ltd/ids-design-system/components';\nimport type {\n ScatterChartDecimator,\n ScatterChartReading,\n ScatterChartSeries,\n ScatterPoint,\n} from './scatter-chart.types';\n\n/** Room for the axis labels outside the plot, in the canvas's own units. */\nconst AXIS_GUTTER = 52;\nconst CATEGORY_GUTTER = 34;\nconst EDGE_GUTTER = 12;\n// The point's default radius, `--chart-dot-radius`.\nconst PIN_POINT_CLEARANCE = 4;\n\ninterface PlacedPoint {\n readonly key: string;\n readonly cx: number;\n readonly cy: number;\n readonly point: ScatterPoint;\n}\n\ninterface PlacedSeries {\n readonly key: string;\n readonly series: ScatterChartSeries;\n readonly color: string;\n readonly points: readonly PlacedPoint[];\n}\n\n/**\n * Two continuous quantities against each other: weight against carriage cost, distance against\n * time, volume against conversion. None of the other five charts draws this.\n *\n * It is the only chart in the family whose mark count the CALLER decides - an area has one node per\n * series, a waterfall one per step, a heat map one per cell, and all three are bounded by the\n * question itself. So it is also the only one that thins its own data before drawing: past four\n * times the plot's width in marks the series is decimated, and the chart says so on its face\n * rather than leaving the reader to count points that are not there.\n */\n@Component({\n selector: 'ds-scatter-chart',\n standalone: true,\n exportAs: 'dsScatterChart',\n imports: [\n ChartLegendComponent,\n ChartTooltipDirective,\n ChartPinMarkerComponent,\n SkeletonComponent,\n ChartDataTableComponent,\n ],\n templateUrl: './scatter-chart.component.html',\n styleUrl: './scatter-chart.component.scss',\n host: {\n '[class.framed]': \"frameResolved() === 'auto'\",\n },\n encapsulation: ViewEncapsulation.Emulated,\n changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class ScatterChartComponent {\n protected readonly renderReady = chartRenderGate();\n\n /** One entry per series, each carrying its own readings. Both scales are continuous, so a\n * point holds its position on each rather than an index into a list of categories. */\n readonly data = input<readonly ScatterChartSeries[]>([]);\n\n /** Names the horizontal quantity under the plot. Without it the reader has two numbers and no\n * idea which is which - on a scatter that is the whole reading. */\n readonly xLabel = input<string | null>(null);\n\n /** Names the vertical quantity beside the plot. */\n readonly yLabel = input<string | null>(null);\n\n /** Which decimator thins a series past the budget. `'minMax'` by default, because it is the only\n * one that promises each bucket's extremum survives. */\n readonly decimator = input<ScatterChartDecimator>('minMax');\n\n /** A hint, not a count, and it applies to BOTH axes. Ticks snap to a round step. */\n readonly tickCount = input(SCATTER_DEFAULT_TICK_COUNT, {\n transform: numberAttribute,\n });\n\n /** Printed above the plot as the visible title, and reused as the annex table's caption. */\n readonly caption = input<string | null>(null);\n\n /** The accessible name. Generated when omitted, naming both axes' spans, how many readings\n * were drawn and how many were thinned out. */\n readonly summary = input<string | null>(null);\n\n /** Makes every mark a button and gives it a keyboard route. `pointClicked` fires whether or\n * not this is set. */\n readonly interactive = input(false, { transform: booleanAttribute });\n\n /** `'auto'` draws the bordered, padded box; `'none'` leaves it bare for a chart inside a card\n * the page has already drawn. Unset falls back to `DS_CONFIG.chart.frame`. */\n readonly frame = input<ChartFrame | null>(null);\n\n /** The annex table under the plot. It lists EVERY reading, including the ones decimation left\n * out of the drawing, which is what keeps a thinned chart honest. */\n readonly dataTable = input<ChartDataTable | null>(null);\n\n /** A skeleton at the plot's own height, so the page does not resize when the data lands. */\n readonly loading = input(false, { transform: booleanAttribute });\n\n /** Separate from empty data: \"the request failed\" and \"there is nothing to show\" read the same\n * and mean opposite things. */\n readonly error = input(false, { transform: booleanAttribute });\n\n /** Shown when no series carries a reading. Unset falls back to `DS_INTL.chart.empty`. */\n readonly emptyText = input<string | null>(null);\n\n /** Shown in place of the plot while `error` is set. Unset falls back to\n * `DS_INTL.chart.error`. */\n readonly errorText = input<string | null>(null);\n\n /** Formats every number the chart prints - both axes' ticks, the accessible name and the annex\n * table. Unset falls back to `DS_CONFIG.chart.valueFormat`. */\n readonly valueFormat = input<ChartValueFormat | null>(null);\n\n /** Whether a hovered or focused mark opens a tooltip. A scatter prints no value beside its\n * marks - there is no room - so this is where a reading is read without the annex table. */\n readonly tooltip = input<ChartItemTooltipTrigger>('item');\n\n /** Fades every mark but the one under the pointer. Off by default: on a scatter the pile-up IS\n * the reading, and dimming the neighbours takes exactly that away. */\n readonly dimOthers = input(false, { transform: booleanAttribute });\n\n /** Holds the hovered mark and its tooltip in place when it is clicked, until a second click,\n * Escape or a press outside releases it. `pointClicked` fires either way. Unset falls back to\n * `DS_CONFIG.chart.pinOnClick`, then `true`. */\n readonly pinOnClick = input<boolean | null, unknown>(null, {\n transform: (value) => (value == null ? null : booleanAttribute(value)),\n });\n\n /** The clicked reading, with the series it belongs to. Fires on click and on Enter or Space. */\n readonly pointClicked = output<ScatterChartReading>();\n\n protected readonly defaults = resolveChartDefaults(this);\n protected readonly intl = inject(DS_INTL);\n readonly frameResolved = this.defaults.frame;\n readonly dataTableResolved = this.defaults.dataTable;\n readonly emptyTextResolved = this.defaults.emptyText;\n readonly errorTextResolved = this.defaults.errorText;\n readonly valueFormatResolved = this.defaults.valueFormat;\n\n protected readonly activeMark = chartActiveMark(\n () => this.defaults.tooltipLingerMs(),\n () => this.defaults.hoverDelayMs(),\n );\n\n protected readonly viewBox = `0 0 ${SCATTER_VIEW_WIDTH} ${SCATTER_VIEW_HEIGHT}`;\n\n protected readonly plot: ScatterPlot = {\n left: AXIS_GUTTER,\n top: EDGE_GUTTER,\n width: SCATTER_VIEW_WIDTH - AXIS_GUTTER - EDGE_GUTTER,\n height: SCATTER_VIEW_HEIGHT - CATEGORY_GUTTER - EDGE_GUTTER,\n };\n\n protected readonly isEmpty = computed(() =>\n this.data().every((series) => series.data.length === 0),\n );\n\n /** One mark per drawn unit of plot width is the ceiling: two marks sharing a pixel are two DOM\n * nodes a reader cannot tell apart. The viewBox is one unit per pixel at a typical card width. */\n private readonly budget = computed(() => decimationTarget(this.plot.width));\n\n protected readonly drawnSeries = computed(() => {\n const mode = this.decimator();\n const budget = this.budget();\n\n return this.data().map((series) => {\n const thin =\n mode !== 'none' && needsDecimating(series.data.length, budget);\n const data = !thin\n ? series.data\n : mode === 'lttb'\n ? lttbDecimate(series.data, budget)\n : minMaxDecimate(series.data, budget);\n\n return { series, data, thinned: thin ? series.data.length : 0 };\n });\n });\n\n /** How many readings were dropped, over every series. A decimated chart that does not SAY it is\n * decimated leaves the reader counting points that were never drawn. */\n protected readonly droppedCount = computed(() =>\n this.drawnSeries().reduce(\n (total, entry) =>\n total + (entry.thinned === 0 ? 0 : entry.thinned - entry.data.length),\n 0,\n ),\n );\n\n private readonly extent = computed(() =>\n scatterExtent(\n this.drawnSeries().map((entry) => ({\n ...entry.series,\n data: entry.data,\n })),\n ),\n );\n\n private readonly domains = computed(() => {\n const measured = this.extent();\n const ticks = this.tickCount();\n const x = niceDomain(measured.xMin, measured.xMax, ticks);\n const y = niceDomain(measured.yMin, measured.yMax, ticks);\n\n return {\n xMin: x.min,\n xMax: x.max || measured.xMax,\n yMin: y.min,\n yMax: y.max || measured.yMax,\n };\n });\n\n protected readonly series = computed<readonly PlacedSeries[]>(() => {\n const extent = this.domains();\n\n return this.drawnSeries().map((entry, index) => {\n const slot = index % CHART_SERIES_COLORS.length;\n\n return {\n key: entry.series.id,\n series: entry.series,\n color: entry.series.color ?? CHART_SERIES_COLORS[slot],\n points: entry.data\n .filter(\n (point: ScatterPoint) =>\n Number.isFinite(point.x) && Number.isFinite(point.y),\n )\n .map((point: ScatterPoint, pointIndex: number) => ({\n key: `${entry.series.id}-${pointIndex}`,\n point,\n ...scatterPlacement(point, extent, this.plot),\n })),\n };\n });\n });\n\n protected readonly xTicks = computed(() => {\n const { xMin, xMax } = this.domains();\n const toX = linearScale(xMin, xMax, this.plot.width);\n const format = this.valueFormatResolved();\n\n return tickValues(xMin, xMax, this.tickCount()).map((value) => ({\n value,\n x: this.plot.left + toX(value),\n label: format(value, 'tick'),\n }));\n });\n\n protected readonly yTicks = computed(() => {\n const { yMin, yMax } = this.domains();\n const toY = linearScale(yMin, yMax, this.plot.height);\n const format = this.valueFormatResolved();\n\n return tickValues(yMin, yMax, this.tickCount()).map((value) => ({\n value,\n y: this.plot.top + this.plot.height - toY(value),\n label: format(value, 'tick'),\n }));\n });\n\n protected readonly plotBottom = this.plot.top + this.plot.height;\n protected readonly plotRight = this.plot.left + this.plot.width;\n\n protected readonly multiSeries = computed(() => this.data().length > 1);\n\n /** The series named in the legend under the pointer, which fades the rest. */\n protected readonly highlightedSeries = signal<string | null>(null);\n\n protected readonly legendItems = computed<readonly ChartLegendItem[]>(() =>\n this.series().map((entry) => ({\n id: entry.series.id,\n label: entry.series.label,\n color: entry.color,\n })),\n );\n\n protected readonly accessibleName = computed(() => {\n const given = this.summary();\n if (given) {\n return given;\n }\n const words = this.intl().chart;\n const format = this.valueFormatResolved();\n const { xMin, xMax, yMin, yMax } = this.domains();\n const counted = this.series().reduce(\n (total, entry) => total + entry.points.length,\n 0,\n );\n const axes = `${words.scatterAxis(this.xLabel() ?? 'x', format(xMin, 'tooltip'), format(xMax, 'tooltip'))}, ${words.scatterAxis(this.yLabel() ?? 'y', format(yMin, 'tooltip'), format(yMax, 'tooltip'))}`;\n const dropped = this.droppedCount();\n\n return words.scatterSummary(\n this.caption() ?? words.scatterTitle,\n counted,\n axes,\n dropped,\n );\n });\n\n protected readonly dataTableColumns = computed<readonly string[]>(() => [\n this.intl().chart.seriesColumn,\n this.xLabel() ?? 'x',\n this.yLabel() ?? 'y',\n ]);\n\n /** Built only while the disclosure is open: a scatter carries thousands of readings, and every\n * one of them as a table row is a cost nobody pays until they ask. */\n protected readonly dataTableRows = computed<readonly ChartDataRow[]>(() =>\n this.tableIsOpen()\n ? this.tableRows().map((row) => ({\n key: row.key,\n cells: [row.series, row.x, row.y],\n }))\n : [],\n );\n\n protected readonly tableRows = computed(() => {\n const format = this.valueFormatResolved();\n\n return this.data().flatMap((series) =>\n series.data.map((point, index) => ({\n key: `${series.id}-${index}`,\n series: series.label,\n x: format(point.x, 'tooltip'),\n y: format(point.y, 'tooltip'),\n })),\n );\n });\n\n /** `<details>` keeps its children in the DOM while it is shut, so a scatter of 12 000 readings\n * parked 48 000 nodes on the page - three times what decimating the PLOT had just saved. The\n * rows are built when the disclosure opens and dropped when it shuts; every reading is still\n * one click away, which is what the table is for. */\n protected readonly tableOpen = signal(false);\n\n protected readonly tableIsOpen = computed(\n () => this.tableOpen() || this.dataTableResolved() === 'visible',\n );\n\n protected readonly skeletonHeight = `${SCATTER_VIEW_HEIGHT}`;\n\n /** Flattened so one index addresses a mark, which is what `chartActiveMark` counts. */\n private readonly flatMarks = computed(() =>\n this.series().flatMap((entry) =>\n entry.points.map((mark) => ({ entry, mark })),\n ),\n );\n\n /** Where each series starts in `flatMarks`, so a point carries its flat index without a search\n * and the series' one listener reads it back. */\n protected readonly seriesStart = computed(() => {\n const starts = new Map<string, number>();\n let next = 0;\n for (const entry of this.series()) {\n starts.set(entry.key, next);\n next += entry.points.length;\n }\n\n return starts;\n });\n\n constructor() {\n listenForMarkFocus(inject(ElementRef), (event, hit) =>\n this.activeMark.enter(hit.index, event, undefined, hit.element),\n );\n }\n\n protected onPointOver(event: Event): void {\n const hit = markOf(event);\n if (hit) {\n this.activeMark.enter(hit.index, event, undefined, hit.element);\n }\n }\n\n protected onPointOut(event: PointerEvent): void {\n const hit = markOf(event);\n if (!hit) {\n return;\n }\n const next =\n event.relatedTarget instanceof Element\n ? event.relatedTarget.closest('[data-mark-index]')\n : null;\n if (next !== hit.element) {\n this.activeMark.leave();\n }\n }\n\n protected onPointPress(event: Event): void {\n const hit = markOf(event);\n if (hit && this.defaults.pinOnClick()) {\n this.activeMark.pin(hit.index, event, undefined, hit.element);\n }\n this.onPointActivate(event);\n }\n\n protected readonly pinnedPoint = computed(() =>\n this.activeMark.pinned()\n ? (this.flatMarks()[this.activeMark.index()]?.mark ?? null)\n : null,\n );\n\n protected readonly pinLift =\n CHART_PIN_RADIUS + CHART_PIN_GAP + PIN_POINT_CLEARANCE;\n\n protected onPointActivate(event: Event): void {\n const held = this.flatMarks()[markOf(event)?.index ?? -1];\n if (held) {\n this.onPointClick(held.entry.series, held.mark.point);\n }\n }\n\n protected readonly tooltipContext = computed<ChartTooltipContext | null>(\n () => {\n const held = this.flatMarks()[this.activeMark.index()];\n if (this.tooltip() === 'none' || !held) {\n return null;\n }\n const format = this.valueFormatResolved();\n\n return {\n category: `${this.xLabel() ?? 'x'} ${format(held.mark.point.x, 'tooltip')}`,\n entries: [\n {\n label: held.entry.series.label,\n value: held.mark.point.y,\n formatted: format(held.mark.point.y, 'tooltip'),\n color: held.entry.color,\n },\n ],\n };\n },\n );\n\n protected onPointClick(\n series: ScatterChartSeries,\n point: ScatterPoint,\n ): void {\n this.pointClicked.emit({ series, point });\n }\n\n protected pointLabel(\n series: ScatterChartSeries,\n point: ScatterPoint,\n ): string {\n const format = this.valueFormatResolved();\n\n return `${series.label}, ${this.xLabel() ?? 'x'} ${format(point.x, 'tooltip')}, ${this.yLabel() ?? 'y'} ${format(point.y, 'tooltip')}`;\n }\n}\n","<figure class=\"scatter-chart\">\n @if (activeMark.pinned()) {\n <button\n class=\"pin-reset\"\n type=\"button\"\n (click)=\"activeMark.release()\">\n {{ intl().chart.unpin }}\n </button>\n }\n\n @if (caption()) {\n <figcaption>\n {{ caption() }}\n </figcaption>\n }\n\n @if (error()) {\n <p\n class=\"empty is-error\"\n role=\"status\">\n {{ errorTextResolved() }}\n </p>\n } @else if (loading() || !renderReady()) {\n <ds-skeleton class=\"skeleton\"\n width=\"100%\"\n [shimmer]=\"loading()\"\n [height]=\"skeletonHeight + 'px'\" />\n } @else if (isEmpty()) {\n <p class=\"empty\">\n {{ emptyTextResolved() }}\n </p>\n } @else {\n <svg\n class=\"canvas\"\n [attr.viewBox]=\"viewBox\"\n [class.dims-others]=\"dimOthers()\"\n [attr.role]=\"interactive() ? 'group' : 'img'\"\n [attr.aria-label]=\"accessibleName()\"\n [dsChartTooltip]=\"tooltipContext()\"\n [dsChartTooltipPinned]=\"activeMark.pinned()\"\n [dsChartTooltipOrigin]=\"activeMark.origin()\">\n @for (tick of yTicks(); track tick.value) {\n <line\n class=\"grid-line\"\n [attr.x1]=\"plot.left\"\n [attr.x2]=\"plotRight\"\n [attr.y1]=\"tick.y\"\n [attr.y2]=\"tick.y\" />\n\n <text\n class=\"axis-label\"\n text-anchor=\"end\"\n [attr.x]=\"plot.left - 8\"\n [attr.y]=\"tick.y\">\n {{ tick.label }}\n </text>\n }\n\n @for (tick of xTicks(); track tick.value) {\n <text\n class=\"axis-label is-horizontal\"\n text-anchor=\"middle\"\n [attr.x]=\"tick.x\"\n [attr.y]=\"plotBottom + 18\">\n {{ tick.label }}\n </text>\n }\n\n <line\n class=\"axis-line\"\n [attr.x1]=\"plot.left\"\n [attr.x2]=\"plotRight\"\n [attr.y1]=\"plotBottom\"\n [attr.y2]=\"plotBottom\" />\n\n @for (entry of series(); track entry.key) {\n @let start = seriesStart().get(entry.key) ?? 0;\n\n <g\n [class.is-dimmed]=\"\n highlightedSeries() !== null &&\n highlightedSeries() !== entry.series.id\n \"\n [style.--_scatter-series-color]=\"entry.color\"\n (pointerover)=\"onPointOver($event)\"\n (pointerout)=\"onPointOut($event)\"\n (click)=\"onPointPress($event)\"\n (keydown.enter)=\"onPointActivate($event)\"\n (keydown.space)=\"onPointActivate($event)\">\n @for (mark of entry.points; track mark.key; let index = $index) {\n <circle\n class=\"point\"\n [class.interactive]=\"interactive()\"\n [class.pins]=\"defaults.pinOnClick()\"\n [class.is-active]=\"activeMark.index() === start + index\"\n [class.is-pinned]=\"\n activeMark.pinned() && activeMark.index() === start + index\n \"\n [attr.cx]=\"mark.cx\"\n [attr.cy]=\"mark.cy\"\n [attr.role]=\"interactive() ? 'button' : null\"\n [attr.tabindex]=\"interactive() ? 0 : null\"\n [attr.data-mark-index]=\"start + index\"\n [attr.aria-label]=\"\n interactive() ? pointLabel(entry.series, mark.point) : null\n \" />\n }\n </g>\n }\n\n @if (pinnedPoint(); as point) {\n <svg:g\n dsChartPinMarker\n [attr.transform]=\"\n 'translate(' + point.cx + ',' + (point.cy - pinLift) + ')'\n \" />\n }\n\n @if (yLabel()) {\n <text\n class=\"axis-title\"\n text-anchor=\"middle\"\n [attr.transform]=\"\n 'rotate(-90) translate(' + -(plot.top + plot.height / 2) + ', 12)'\n \">\n {{ yLabel() }}\n </text>\n }\n\n @if (xLabel()) {\n <text\n class=\"axis-title\"\n text-anchor=\"middle\"\n [attr.x]=\"plot.left + plot.width / 2\"\n [attr.y]=\"plotBottom + 32\">\n {{ xLabel() }}\n </text>\n }\n </svg>\n\n <!-- On its face, not only in the accessible name: a decimated chart that stays quiet leaves the\n reader counting points that were never drawn. -->\n @if (droppedCount() > 0) {\n <p\n class=\"thinned\"\n role=\"status\">\n {{ intl().chart.scatterThinned(droppedCount()) }}\n </p>\n }\n\n @if (multiSeries()) {\n <ds-chart-legend\n [items]=\"legendItems()\"\n [(highlighted)]=\"highlightedSeries\" />\n }\n\n @if (dataTableResolved() !== 'none') {\n <ds-chart-data-table\n [columns]=\"dataTableColumns()\"\n [rows]=\"dataTableRows()\"\n [caption]=\"caption()\"\n [open]=\"dataTableResolved() === 'visible'\"\n (toggled)=\"tableOpen.set($event)\" />\n }\n }\n</figure>\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"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