@ids-group-ltd/ids-design-system 1.1.2 → 1.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (221) hide show
  1. package/CHANGELOG.md +755 -0
  2. package/agent/INDEX.md +8 -7
  3. package/agent/charts/ds-scatter-chart.md +1 -1
  4. package/agent/feedback/ds-badge.md +2 -2
  5. package/agent/feedback/ds-chat-message.md +1 -1
  6. package/agent/feedback/ds-chat-step.md +2 -2
  7. package/agent/feedback/ds-chat-thread.md +1 -1
  8. package/agent/feedback/ds-stat.md +1 -1
  9. package/agent/feedback/ds-toast.md +2 -2
  10. package/agent/feedback/ds-tree.md +1 -1
  11. package/agent/forms/ds-button.md +3 -3
  12. package/agent/forms/ds-dropzone.md +1 -1
  13. package/agent/forms/ds-icon-button.md +3 -3
  14. package/agent/forms/ds-number-stepper.md +3 -3
  15. package/agent/forms/ds-search.md +1 -1
  16. package/agent/forms/ds-split-button.md +1 -1
  17. package/agent/foundations/tokens.md +4 -3
  18. package/agent/navigation/ds-app-layout.md +1 -1
  19. package/agent/navigation/ds-nav-divider.md +6 -0
  20. package/agent/navigation/{ds-sidenav-footer.md → ds-nav-footer.md} +3 -3
  21. package/agent/navigation/{ds-sidenav-group.md → ds-nav-group.md} +2 -2
  22. package/agent/navigation/{ds-sidenav-item.md → ds-nav-item.md} +6 -6
  23. package/agent/navigation/ds-nav.md +15 -0
  24. package/agent/overlays/ds-drawer.md +1 -1
  25. package/agent/platform/toast-service.md +1 -1
  26. package/components/README.md +24 -24
  27. package/components.md +51 -45
  28. package/design-system.md +8 -7
  29. package/eslint/deprecated-api.json +108 -7
  30. package/fesm2022/ids-group-ltd-ids-design-system-components-accordion.mjs +2 -2
  31. package/fesm2022/ids-group-ltd-ids-design-system-components-accordion.mjs.map +1 -1
  32. package/fesm2022/ids-group-ltd-ids-design-system-components-alert.mjs +2 -2
  33. package/fesm2022/ids-group-ltd-ids-design-system-components-alert.mjs.map +1 -1
  34. package/fesm2022/ids-group-ltd-ids-design-system-components-app-layout.mjs +4 -4
  35. package/fesm2022/ids-group-ltd-ids-design-system-components-app-layout.mjs.map +1 -1
  36. package/fesm2022/ids-group-ltd-ids-design-system-components-auth-layout.mjs +4 -4
  37. package/fesm2022/ids-group-ltd-ids-design-system-components-auth-layout.mjs.map +1 -1
  38. package/fesm2022/ids-group-ltd-ids-design-system-components-autocomplete.mjs +2 -2
  39. package/fesm2022/ids-group-ltd-ids-design-system-components-autocomplete.mjs.map +1 -1
  40. package/fesm2022/ids-group-ltd-ids-design-system-components-avatar.mjs +2 -2
  41. package/fesm2022/ids-group-ltd-ids-design-system-components-avatar.mjs.map +1 -1
  42. package/fesm2022/ids-group-ltd-ids-design-system-components-badge-badge-count-roll.component-BDNXADJZ.mjs +182 -0
  43. package/fesm2022/ids-group-ltd-ids-design-system-components-badge-badge-count-roll.component-BDNXADJZ.mjs.map +1 -0
  44. package/fesm2022/ids-group-ltd-ids-design-system-components-badge.mjs +37 -8
  45. package/fesm2022/ids-group-ltd-ids-design-system-components-badge.mjs.map +1 -1
  46. package/fesm2022/ids-group-ltd-ids-design-system-components-banner.mjs +2 -2
  47. package/fesm2022/ids-group-ltd-ids-design-system-components-banner.mjs.map +1 -1
  48. package/fesm2022/ids-group-ltd-ids-design-system-components-breadcrumbs.mjs +5 -2
  49. package/fesm2022/ids-group-ltd-ids-design-system-components-breadcrumbs.mjs.map +1 -1
  50. package/fesm2022/ids-group-ltd-ids-design-system-components-button-group.mjs +2 -2
  51. package/fesm2022/ids-group-ltd-ids-design-system-components-button-group.mjs.map +1 -1
  52. package/fesm2022/ids-group-ltd-ids-design-system-components-button.mjs +76 -5
  53. package/fesm2022/ids-group-ltd-ids-design-system-components-button.mjs.map +1 -1
  54. package/fesm2022/ids-group-ltd-ids-design-system-components-calendar-day.mjs +2 -2
  55. package/fesm2022/ids-group-ltd-ids-design-system-components-chart-legend.mjs +2 -2
  56. package/fesm2022/ids-group-ltd-ids-design-system-components-chart-legend.mjs.map +1 -1
  57. package/fesm2022/ids-group-ltd-ids-design-system-components-chart-tooltip.mjs +2 -2
  58. package/fesm2022/ids-group-ltd-ids-design-system-components-chart-tooltip.mjs.map +1 -1
  59. package/fesm2022/ids-group-ltd-ids-design-system-components-chat.mjs +77 -18
  60. package/fesm2022/ids-group-ltd-ids-design-system-components-chat.mjs.map +1 -1
  61. package/fesm2022/ids-group-ltd-ids-design-system-components-checkbox.mjs +2 -2
  62. package/fesm2022/ids-group-ltd-ids-design-system-components-checkbox.mjs.map +1 -1
  63. package/fesm2022/ids-group-ltd-ids-design-system-components-color-picker.mjs +2 -2
  64. package/fesm2022/ids-group-ltd-ids-design-system-components-color-picker.mjs.map +1 -1
  65. package/fesm2022/ids-group-ltd-ids-design-system-components-date-picker.mjs +2 -2
  66. package/fesm2022/ids-group-ltd-ids-design-system-components-date-picker.mjs.map +1 -1
  67. package/fesm2022/ids-group-ltd-ids-design-system-components-definition-term.mjs +2 -2
  68. package/fesm2022/ids-group-ltd-ids-design-system-components-definition-term.mjs.map +1 -1
  69. package/fesm2022/ids-group-ltd-ids-design-system-components-description-list.mjs +2 -2
  70. package/fesm2022/ids-group-ltd-ids-design-system-components-description-list.mjs.map +1 -1
  71. package/fesm2022/ids-group-ltd-ids-design-system-components-drawer.mjs +65 -4
  72. package/fesm2022/ids-group-ltd-ids-design-system-components-drawer.mjs.map +1 -1
  73. package/fesm2022/ids-group-ltd-ids-design-system-components-dropzone.mjs +76 -9
  74. package/fesm2022/ids-group-ltd-ids-design-system-components-dropzone.mjs.map +1 -1
  75. package/fesm2022/ids-group-ltd-ids-design-system-components-field-group.mjs +2 -2
  76. package/fesm2022/ids-group-ltd-ids-design-system-components-field-group.mjs.map +1 -1
  77. package/fesm2022/ids-group-ltd-ids-design-system-components-funnel-chart.mjs +2 -2
  78. package/fesm2022/ids-group-ltd-ids-design-system-components-heatmap-chart.mjs +2 -2
  79. package/fesm2022/ids-group-ltd-ids-design-system-components-heatmap-chart.mjs.map +1 -1
  80. package/fesm2022/ids-group-ltd-ids-design-system-components-icon-button.mjs +6 -4
  81. package/fesm2022/ids-group-ltd-ids-design-system-components-icon-button.mjs.map +1 -1
  82. package/fesm2022/ids-group-ltd-ids-design-system-components-info-hint.mjs +2 -2
  83. package/fesm2022/ids-group-ltd-ids-design-system-components-info-hint.mjs.map +1 -1
  84. package/fesm2022/ids-group-ltd-ids-design-system-components-inline-edit.mjs +2 -2
  85. package/fesm2022/ids-group-ltd-ids-design-system-components-inline-edit.mjs.map +1 -1
  86. package/fesm2022/ids-group-ltd-ids-design-system-components-input.mjs +2 -2
  87. package/fesm2022/ids-group-ltd-ids-design-system-components-input.mjs.map +1 -1
  88. package/fesm2022/ids-group-ltd-ids-design-system-components-list.mjs +2 -2
  89. package/fesm2022/ids-group-ltd-ids-design-system-components-menu.mjs +4 -4
  90. package/fesm2022/ids-group-ltd-ids-design-system-components-menu.mjs.map +1 -1
  91. package/fesm2022/ids-group-ltd-ids-design-system-components-modal.mjs +2 -2
  92. package/fesm2022/ids-group-ltd-ids-design-system-components-modal.mjs.map +1 -1
  93. package/fesm2022/ids-group-ltd-ids-design-system-components-multi-select.mjs +2 -2
  94. package/fesm2022/ids-group-ltd-ids-design-system-components-multi-select.mjs.map +1 -1
  95. package/fesm2022/ids-group-ltd-ids-design-system-components-nav-footer.mjs +113 -0
  96. package/fesm2022/ids-group-ltd-ids-design-system-components-nav-footer.mjs.map +1 -0
  97. package/fesm2022/ids-group-ltd-ids-design-system-components-nav.mjs +228 -0
  98. package/fesm2022/ids-group-ltd-ids-design-system-components-nav.mjs.map +1 -0
  99. package/fesm2022/ids-group-ltd-ids-design-system-components-number-stepper.mjs +61 -10
  100. package/fesm2022/ids-group-ltd-ids-design-system-components-number-stepper.mjs.map +1 -1
  101. package/fesm2022/ids-group-ltd-ids-design-system-components-otp-input.mjs +2 -2
  102. package/fesm2022/ids-group-ltd-ids-design-system-components-otp-input.mjs.map +1 -1
  103. package/fesm2022/ids-group-ltd-ids-design-system-components-pagination.mjs +36 -4
  104. package/fesm2022/ids-group-ltd-ids-design-system-components-pagination.mjs.map +1 -1
  105. package/fesm2022/ids-group-ltd-ids-design-system-components-pie-chart.mjs +2 -2
  106. package/fesm2022/ids-group-ltd-ids-design-system-components-radio-group.mjs +2 -2
  107. package/fesm2022/ids-group-ltd-ids-design-system-components-radio-group.mjs.map +1 -1
  108. package/fesm2022/ids-group-ltd-ids-design-system-components-reveal.mjs +56 -0
  109. package/fesm2022/ids-group-ltd-ids-design-system-components-reveal.mjs.map +1 -0
  110. package/fesm2022/ids-group-ltd-ids-design-system-components-scatter-chart.mjs +10 -39
  111. package/fesm2022/ids-group-ltd-ids-design-system-components-scatter-chart.mjs.map +1 -1
  112. package/fesm2022/ids-group-ltd-ids-design-system-components-search.mjs +7 -4
  113. package/fesm2022/ids-group-ltd-ids-design-system-components-search.mjs.map +1 -1
  114. package/fesm2022/ids-group-ltd-ids-design-system-components-segmented.mjs +33 -6
  115. package/fesm2022/ids-group-ltd-ids-design-system-components-segmented.mjs.map +1 -1
  116. package/fesm2022/ids-group-ltd-ids-design-system-components-select.mjs +2 -2
  117. package/fesm2022/ids-group-ltd-ids-design-system-components-select.mjs.map +1 -1
  118. package/fesm2022/ids-group-ltd-ids-design-system-components-sidenav-footer.mjs +4 -98
  119. package/fesm2022/ids-group-ltd-ids-design-system-components-sidenav-footer.mjs.map +1 -1
  120. package/fesm2022/ids-group-ltd-ids-design-system-components-sidenav.mjs +11 -179
  121. package/fesm2022/ids-group-ltd-ids-design-system-components-sidenav.mjs.map +1 -1
  122. package/fesm2022/ids-group-ltd-ids-design-system-components-skeleton.mjs +2 -2
  123. package/fesm2022/ids-group-ltd-ids-design-system-components-skeleton.mjs.map +1 -1
  124. package/fesm2022/ids-group-ltd-ids-design-system-components-slider.mjs +2 -2
  125. package/fesm2022/ids-group-ltd-ids-design-system-components-slider.mjs.map +1 -1
  126. package/fesm2022/ids-group-ltd-ids-design-system-components-split-button.mjs +3 -2
  127. package/fesm2022/ids-group-ltd-ids-design-system-components-split-button.mjs.map +1 -1
  128. package/fesm2022/ids-group-ltd-ids-design-system-components-stat.mjs +68 -5
  129. package/fesm2022/ids-group-ltd-ids-design-system-components-stat.mjs.map +1 -1
  130. package/fesm2022/ids-group-ltd-ids-design-system-components-stepper.mjs +2 -2
  131. package/fesm2022/ids-group-ltd-ids-design-system-components-stepper.mjs.map +1 -1
  132. package/fesm2022/ids-group-ltd-ids-design-system-components-switch.mjs +2 -2
  133. package/fesm2022/ids-group-ltd-ids-design-system-components-switch.mjs.map +1 -1
  134. package/fesm2022/ids-group-ltd-ids-design-system-components-table-columns.mjs +2 -2
  135. package/fesm2022/ids-group-ltd-ids-design-system-components-table-columns.mjs.map +1 -1
  136. package/fesm2022/ids-group-ltd-ids-design-system-components-table.mjs +2 -2
  137. package/fesm2022/ids-group-ltd-ids-design-system-components-table.mjs.map +1 -1
  138. package/fesm2022/ids-group-ltd-ids-design-system-components-tabs.mjs +41 -3
  139. package/fesm2022/ids-group-ltd-ids-design-system-components-tabs.mjs.map +1 -1
  140. package/fesm2022/ids-group-ltd-ids-design-system-components-tag.mjs +2 -2
  141. package/fesm2022/ids-group-ltd-ids-design-system-components-tag.mjs.map +1 -1
  142. package/fesm2022/ids-group-ltd-ids-design-system-components-textarea.mjs +6 -4
  143. package/fesm2022/ids-group-ltd-ids-design-system-components-textarea.mjs.map +1 -1
  144. package/fesm2022/ids-group-ltd-ids-design-system-components-time-picker.mjs +4 -4
  145. package/fesm2022/ids-group-ltd-ids-design-system-components-time-picker.mjs.map +1 -1
  146. package/fesm2022/ids-group-ltd-ids-design-system-components-timeline.mjs +27 -7
  147. package/fesm2022/ids-group-ltd-ids-design-system-components-timeline.mjs.map +1 -1
  148. package/fesm2022/ids-group-ltd-ids-design-system-components-toast.mjs +54 -19
  149. package/fesm2022/ids-group-ltd-ids-design-system-components-toast.mjs.map +1 -1
  150. package/fesm2022/ids-group-ltd-ids-design-system-components-toggle-button.mjs +2 -2
  151. package/fesm2022/ids-group-ltd-ids-design-system-components-toggle-button.mjs.map +1 -1
  152. package/fesm2022/ids-group-ltd-ids-design-system-components-tooltip.mjs +8 -7
  153. package/fesm2022/ids-group-ltd-ids-design-system-components-tooltip.mjs.map +1 -1
  154. package/fesm2022/ids-group-ltd-ids-design-system-components-tree.mjs +21 -11
  155. package/fesm2022/ids-group-ltd-ids-design-system-components-tree.mjs.map +1 -1
  156. package/fesm2022/ids-group-ltd-ids-design-system-components-w3w.mjs +2 -2
  157. package/fesm2022/ids-group-ltd-ids-design-system-components-w3w.mjs.map +1 -1
  158. package/fesm2022/ids-group-ltd-ids-design-system-components.mjs +153 -1
  159. package/fesm2022/ids-group-ltd-ids-design-system-components.mjs.map +1 -1
  160. package/fesm2022/ids-group-ltd-ids-design-system-core.mjs +11 -0
  161. package/fesm2022/ids-group-ltd-ids-design-system-core.mjs.map +1 -1
  162. package/fesm2022/ids-group-ltd-ids-design-system.mjs +4 -1
  163. package/fesm2022/ids-group-ltd-ids-design-system.mjs.map +1 -1
  164. package/migrations/1.1.1.json +14 -4
  165. package/migrations/1.1.2.json +11 -3
  166. package/migrations/1.2.0.json +1433 -0
  167. package/migrations/README.md +8 -1
  168. package/package.json +25 -1
  169. package/schematics/check-overrides/index.cjs +28 -3
  170. package/schematics/check-overrides/scan.cjs +151 -2
  171. package/schematics/check-overrides/schema.json +4 -0
  172. package/schematics/check-overrides/surface.json +389 -74
  173. package/schematics/collection.json +1 -1
  174. package/stylelint/deprecated-tokens.json +7 -0
  175. package/styles/_check-box.scss +4 -3
  176. package/styles/_dropdown-overlay.scss +6 -8
  177. package/styles/_ds-color.scss +7 -2
  178. package/styles/_field-state.scss +4 -2
  179. package/styles/_focus.scss +12 -5
  180. package/styles/_link.scss +4 -4
  181. package/styles/_optical-center.scss +29 -0
  182. package/styles/_reveal.scss +8 -0
  183. package/styles/_status.scss +17 -7
  184. package/styles/_step-marker.scss +192 -6
  185. package/styles/_surface-level.scss +16 -0
  186. package/styles/_text-shimmer.scss +21 -0
  187. package/styles/_theme-activation.scss +17 -4
  188. package/styles/_tokens.scss +26 -7
  189. package/styles/ds.scss +1 -0
  190. package/themes/README.md +16 -21
  191. package/themes/_semantic.scss +129 -64
  192. package/themes/dark/_theme.scss +17 -25
  193. package/types/ids-group-ltd-ids-design-system-components-app-layout.d.ts +3 -3
  194. package/types/ids-group-ltd-ids-design-system-components-auth-layout.d.ts +2 -2
  195. package/types/ids-group-ltd-ids-design-system-components-badge.d.ts +20 -1
  196. package/types/ids-group-ltd-ids-design-system-components-button.d.ts +14 -3
  197. package/types/ids-group-ltd-ids-design-system-components-chat.d.ts +49 -4
  198. package/types/ids-group-ltd-ids-design-system-components-drawer.d.ts +9 -1
  199. package/types/ids-group-ltd-ids-design-system-components-dropzone.d.ts +28 -2
  200. package/types/ids-group-ltd-ids-design-system-components-icon-button.d.ts +8 -5
  201. package/types/ids-group-ltd-ids-design-system-components-nav-footer.d.ts +88 -0
  202. package/types/ids-group-ltd-ids-design-system-components-nav.d.ts +152 -0
  203. package/types/ids-group-ltd-ids-design-system-components-number-stepper.d.ts +21 -3
  204. package/types/ids-group-ltd-ids-design-system-components-pagination.d.ts +1 -0
  205. package/types/ids-group-ltd-ids-design-system-components-reveal.d.ts +31 -0
  206. package/types/ids-group-ltd-ids-design-system-components-scatter-chart.d.ts +2 -8
  207. package/types/ids-group-ltd-ids-design-system-components-search.d.ts +4 -1
  208. package/types/ids-group-ltd-ids-design-system-components-segmented.d.ts +3 -0
  209. package/types/ids-group-ltd-ids-design-system-components-sidenav-footer.d.ts +12 -83
  210. package/types/ids-group-ltd-ids-design-system-components-sidenav.d.ts +21 -131
  211. package/types/ids-group-ltd-ids-design-system-components-split-button.d.ts +1 -1
  212. package/types/ids-group-ltd-ids-design-system-components-stat.d.ts +10 -1
  213. package/types/ids-group-ltd-ids-design-system-components-tabs.d.ts +1 -0
  214. package/types/ids-group-ltd-ids-design-system-components-textarea.d.ts +1 -1
  215. package/types/ids-group-ltd-ids-design-system-components-timeline.d.ts +3 -1
  216. package/types/ids-group-ltd-ids-design-system-components-toast.d.ts +27 -6
  217. package/types/ids-group-ltd-ids-design-system-components-tree.d.ts +9 -5
  218. package/types/ids-group-ltd-ids-design-system-components.d.ts +26 -1
  219. package/types/ids-group-ltd-ids-design-system-core.d.ts +19 -1
  220. package/types/ids-group-ltd-ids-design-system.d.ts +7 -4
  221. package/agent/navigation/ds-sidenav.md +0 -13
@@ -0,0 +1,56 @@
1
+ import * as i0 from '@angular/core';
2
+ import { input, booleanAttribute, signal, Directive } from '@angular/core';
3
+
4
+ /**
5
+ * Fades an item in as it is created, `--stagger-step` later than the item before it, so a list
6
+ * fills in one item after another:
7
+ *
8
+ * ```html
9
+ * @for (row of rows(); track row.id) {
10
+ * <li [dsReveal]="revealing()" [dsRevealIndex]="$index">{{ row.title }}</li>
11
+ * }
12
+ * ```
13
+ *
14
+ * `dsRevealIndex` is the item's place in its list; items past `--stagger-max` (7) start together
15
+ * with the last one. The fade runs over `--duration-base` with `--ease-standard`.
16
+ *
17
+ * Only the value of `dsReveal` when the item is created counts: bind `false` once the list has
18
+ * filled in, and an item added later appears at once. A bare `dsReveal` is `true`. Under
19
+ * `prefers-reduced-motion: reduce` and on the server it does nothing.
20
+ */
21
+ class RevealDirective {
22
+ dsReveal = input(true, { ...(ngDevMode ? { debugName: "dsReveal" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
23
+ dsRevealIndex = input(0, ...(ngDevMode ? [{ debugName: "dsRevealIndex" }] : /* istanbul ignore next */ []));
24
+ revealing = signal(false, ...(ngDevMode ? [{ debugName: "revealing" }] : /* istanbul ignore next */ []));
25
+ ngOnInit() {
26
+ this.revealing.set(this.dsReveal() &&
27
+ typeof matchMedia !== 'undefined' &&
28
+ !matchMedia('(prefers-reduced-motion: reduce)').matches);
29
+ }
30
+ onAnimationEnd(event) {
31
+ if (event.target === event.currentTarget) {
32
+ this.revealing.set(false);
33
+ }
34
+ }
35
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.22", ngImport: i0, type: RevealDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
36
+ static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "21.2.22", type: RevealDirective, isStandalone: true, selector: "[dsReveal]", inputs: { dsReveal: { classPropertyName: "dsReveal", publicName: "dsReveal", isSignal: true, isRequired: false, transformFunction: null }, dsRevealIndex: { classPropertyName: "dsRevealIndex", publicName: "dsRevealIndex", isSignal: true, isRequired: false, transformFunction: null } }, host: { listeners: { "animationend": "onAnimationEnd($event)" }, properties: { "class.ds-reveal": "revealing()", "style.--ds-reveal-index": "revealing() ? dsRevealIndex() : null" } }, ngImport: i0 });
37
+ }
38
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.22", ngImport: i0, type: RevealDirective, decorators: [{
39
+ type: Directive,
40
+ args: [{
41
+ selector: '[dsReveal]',
42
+ standalone: true,
43
+ host: {
44
+ '[class.ds-reveal]': 'revealing()',
45
+ '[style.--ds-reveal-index]': 'revealing() ? dsRevealIndex() : null',
46
+ '(animationend)': 'onAnimationEnd($event)',
47
+ },
48
+ }]
49
+ }], propDecorators: { dsReveal: [{ type: i0.Input, args: [{ isSignal: true, alias: "dsReveal", required: false }] }], dsRevealIndex: [{ type: i0.Input, args: [{ isSignal: true, alias: "dsRevealIndex", required: false }] }] } });
50
+
51
+ /**
52
+ * Generated bundle index. Do not edit.
53
+ */
54
+
55
+ export { RevealDirective };
56
+ //# sourceMappingURL=ids-group-ltd-ids-design-system-components-reveal.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ids-group-ltd-ids-design-system-components-reveal.mjs","sources":["../../../src/lib/components/reveal/reveal.directive.ts","../../../src/lib/components/reveal/ids-group-ltd-ids-design-system-components-reveal.ts"],"sourcesContent":["import {\n Directive,\n booleanAttribute,\n input,\n OnInit,\n signal,\n} from '@angular/core';\n\n/**\n * Fades an item in as it is created, `--stagger-step` later than the item before it, so a list\n * fills in one item after another:\n *\n * ```html\n * @for (row of rows(); track row.id) {\n * <li [dsReveal]=\"revealing()\" [dsRevealIndex]=\"$index\">{{ row.title }}</li>\n * }\n * ```\n *\n * `dsRevealIndex` is the item's place in its list; items past `--stagger-max` (7) start together\n * with the last one. The fade runs over `--duration-base` with `--ease-standard`.\n *\n * Only the value of `dsReveal` when the item is created counts: bind `false` once the list has\n * filled in, and an item added later appears at once. A bare `dsReveal` is `true`. Under\n * `prefers-reduced-motion: reduce` and on the server it does nothing.\n */\n@Directive({\n selector: '[dsReveal]',\n standalone: true,\n host: {\n '[class.ds-reveal]': 'revealing()',\n '[style.--ds-reveal-index]': 'revealing() ? dsRevealIndex() : null',\n '(animationend)': 'onAnimationEnd($event)',\n },\n})\nexport class RevealDirective implements OnInit {\n readonly dsReveal = input(true, { transform: booleanAttribute });\n readonly dsRevealIndex = input(0);\n\n protected readonly revealing = signal(false);\n\n ngOnInit(): void {\n this.revealing.set(\n this.dsReveal() &&\n typeof matchMedia !== 'undefined' &&\n !matchMedia('(prefers-reduced-motion: reduce)').matches,\n );\n }\n\n protected onAnimationEnd(event: AnimationEvent): void {\n if (event.target === event.currentTarget) {\n this.revealing.set(false);\n }\n }\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;AAQA;;;;;;;;;;;;;;;;AAgBG;MAUU,eAAe,CAAA;IACjB,QAAQ,GAAG,KAAK,CAAC,IAAI,gFAAI,SAAS,EAAE,gBAAgB,EAAA,CAAG;AACvD,IAAA,aAAa,GAAG,KAAK,CAAC,CAAC,oFAAC;AAEd,IAAA,SAAS,GAAG,MAAM,CAAC,KAAK,gFAAC;IAE5C,QAAQ,GAAA;QACN,IAAI,CAAC,SAAS,CAAC,GAAG,CAChB,IAAI,CAAC,QAAQ,EAAE;YACb,OAAO,UAAU,KAAK,WAAW;AACjC,YAAA,CAAC,UAAU,CAAC,kCAAkC,CAAC,CAAC,OAAO,CA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...(ngDevMode ? [{ debugName: "tooltip" }] : /* istanbul ignore next */ []));
74
74
  /** Fades every mark but the one under the pointer; on a scatter this hides pile-ups. */
75
75
  dimOthers = input(false, { ...(ngDevMode ? { debugName: "dimOthers" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
76
- /** Anywhere over the plot answers with the nearest point, ringed and tethered to the pointer. Off,
77
- * a point answers only within 16 CSS pixels of its centre, without the ring and tether. */
76
+ /** Anywhere over the plot answers with the nearest point, ringed. Off, a point answers only
77
+ * within 16 CSS pixels of its centre, without the ring. */
78
78
  showNearestPoint = input(true, { ...(ngDevMode ? { debugName: "showNearestPoint" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
79
79
  /** How far the pointer may be from a point's centre, in CSS pixels and inclusive, for the point to
80
80
  * answer under `showNearestPoint`; `null` sets no limit. */
@@ -254,16 +254,12 @@ class ScatterChartComponent extends DsChartBase {
254
254
  listenForMarkFocus(inject(ElementRef), (event, hit) => this.activeMark.enter(hit.index, event, undefined, hit.element));
255
255
  }
256
256
  hoveredIndex = -1;
257
- /** Whether the pointer is over the plot; the tether runs from it to the ring. */
258
- pointerOverPlot = signal(false, ...(ngDevMode ? [{ debugName: "pointerOverPlot" }] : /* istanbul ignore next */ []));
259
257
  /** The answered point, which the ring circles. */
260
258
  ringedMark = computed(() => this.flatMarks()[this.activeMark.index()]?.mark ?? null, ...(ngDevMode ? [{ debugName: "ringedMark" }] : /* istanbul ignore next */ []));
261
259
  canvasElement = viewChild('canvas', ...(ngDevMode ? [{ debugName: "canvasElement" }] : /* istanbul ignore next */ []));
262
260
  ringElement = viewChild('ring', ...(ngDevMode ? [{ debugName: "ringElement" }] : /* istanbul ignore next */ []));
263
- tetherElement = viewChild('tether', ...(ngDevMode ? [{ debugName: "tetherElement" }] : /* istanbul ignore next */ []));
264
261
  zone = inject(NgZone);
265
- // In viewBox units; the tether and the ring are written here, not bound, so a pointer move costs no change detection.
266
- pointerAt = null;
262
+ // In viewBox units; the ring is written here, not bound, so a pointer move costs no change detection.
267
263
  ringAt = null;
268
264
  stopRingGlide = () => undefined;
269
265
  listenForPointer = effect((onCleanup) => {
@@ -284,7 +280,7 @@ class ScatterChartComponent extends DsChartBase {
284
280
  canvas.removeEventListener('pointerleave', onLeave);
285
281
  });
286
282
  }, ...(ngDevMode ? [{ debugName: "listenForPointer" }] : /* istanbul ignore next */ []));
287
- // The ring appears on its point and glides to the next one; the tether's far end rides it.
283
+ // The ring appears on its point and glides to the next one.
288
284
  glideRing = afterRenderEffect(() => {
289
285
  const target = this.ringedMark();
290
286
  const ring = this.ringElement()?.nativeElement;
@@ -299,25 +295,10 @@ class ScatterChartComponent extends DsChartBase {
299
295
  this.stopRingGlide = tweenMarks(ring, [from.x, from.y], [target.cx, target.cy], ([x, y]) => this.placeRing(ring, x, y), 'tooltip-move');
300
296
  });
301
297
  });
302
- drawTether = afterRenderEffect(() => {
303
- this.tetherElement();
304
- this.placeTether();
305
- });
306
298
  // Placed by `transform`, not `cx`: a geometry change repaints the page each frame of the glide.
307
299
  placeRing(ring, x, y) {
308
300
  this.ringAt = { x, y };
309
301
  ring.style.transform = `translate(${x}px, ${y}px)`;
310
- this.placeTether();
311
- }
312
- placeTether() {
313
- const tether = this.tetherElement()?.nativeElement;
314
- if (!tether || !this.pointerAt || !this.ringAt) {
315
- return;
316
- }
317
- tether.setAttribute('x1', String(this.pointerAt.x));
318
- tether.setAttribute('y1', String(this.pointerAt.y));
319
- tether.setAttribute('x2', String(this.ringAt.x));
320
- tether.setAttribute('y2', String(this.ringAt.y));
321
302
  }
322
303
  // Entered on every move, not only on change: the active mark schedules a clear on any
323
304
  // `pointerover` outside the point's element, and re-entering cancels it.
@@ -327,15 +308,10 @@ class ScatterChartComponent extends DsChartBase {
327
308
  this.onCanvasLeave();
328
309
  return;
329
310
  }
330
- this.hoveredIndex = nearest.hit.index;
331
- this.pointerAt = nearest.pointer;
332
- this.placeTether();
333
- this.pointerOverPlot.set(true);
334
- this.activeMark.enter(nearest.hit.index, event, undefined, nearest.hit.element);
311
+ this.hoveredIndex = nearest.index;
312
+ this.activeMark.enter(nearest.index, event, undefined, nearest.element);
335
313
  }
336
314
  onCanvasLeave() {
337
- this.pointerAt = null;
338
- this.pointerOverPlot.set(false);
339
315
  if (this.hoveredIndex !== -1) {
340
316
  this.hoveredIndex = -1;
341
317
  this.activeMark.leave();
@@ -370,12 +346,7 @@ class ScatterChartComponent extends DsChartBase {
370
346
  }
371
347
  });
372
348
  const element = nearestIndex === -1 ? null : markAt(canvas, nearestIndex);
373
- return element
374
- ? {
375
- hit: { element, index: nearestIndex },
376
- pointer: { x: pointer.x, y: pointer.y },
377
- }
378
- : null;
349
+ return element ? { element, index: nearestIndex } : null;
379
350
  }
380
351
  onPointPress(event) {
381
352
  const hit = markOf(event);
@@ -418,7 +389,7 @@ class ScatterChartComponent extends DsChartBase {
418
389
  return `${series.label}, ${this.xLabel() ?? 'x'} ${format(point.x, 'tooltip')}, ${this.yLabel() ?? 'y'} ${format(point.y, 'tooltip')}`;
419
390
  }
420
391
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.22", ngImport: i0, type: ScatterChartComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
421
- 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 }, dataTable: { classPropertyName: "dataTable", publicName: "dataTable", 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 }, showNearestPoint: { classPropertyName: "showNearestPoint", publicName: "showNearestPoint", isSignal: true, isRequired: false, transformFunction: null }, nearestRadius: { classPropertyName: "nearestRadius", publicName: "nearestRadius", isSignal: true, isRequired: false, transformFunction: null }, staggerMs: { classPropertyName: "staggerMs", publicName: "staggerMs", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { pointClicked: "pointClicked" }, host: { properties: { "class.framed": "frameResolved() === 'auto'" } }, viewQueries: [{ propertyName: "canvasElement", first: true, predicate: ["canvas"], descendants: true, isSignal: true }, { propertyName: "ringElement", first: true, predicate: ["ring"], descendants: true, isSignal: true }, { propertyName: "tetherElement", first: true, predicate: ["tether"], descendants: true, isSignal: true }], exportAs: ["dsScatterChart"], usesInheritance: true, ngImport: i0, template: "<figure\n class=\"scatter-chart\"\n dsChartStates\n messageAxes\n [pinned]=\"activeMark.pinned()\"\n [caption]=\"caption()\"\n [error]=\"error()\"\n [errorText]=\"errorTextResolved()\"\n [pending]=\"(loading() && isEmpty()) || !renderReady()\"\n [reloading]=\"loading()\"\n [dataTable]=\"dataTableResolved()\"\n [shimmer]=\"loading()\"\n [empty]=\"isEmpty()\"\n [emptyText]=\"emptyTextResolved()\"\n [skeleton]=\"skeleton\"\n [body]=\"body\"\n (release)=\"activeMark.release()\">\n</figure>\n\n<ng-template #skeleton>\n <div\n class=\"skeleton\"\n aria-hidden=\"true\">\n @for (row of skeletonLayout.rows; track row) {\n <span\n class=\"skeleton-grid-line\"\n data-morph=\"fade\"\n [class.is-axis]=\"$last\"\n [style.top]=\"row\"\n [style.left]=\"skeletonLayout.plotLeft\"\n [style.width]=\"skeletonLayout.plotWidth\">\n </span>\n\n <ds-skeleton\n class=\"skeleton-pill is-tick\"\n width=\"var(--space-6)\"\n height=\"var(--space-2)\"\n [style.top]=\"row\"\n [style.inset-inline-end]=\"skeletonLayout.labelEnd\"\n [shimmer]=\"loading()\" />\n }\n\n @for (column of skeletonLayout.columns; track column) {\n <ds-skeleton\n class=\"skeleton-pill is-category\"\n width=\"var(--space-6)\"\n height=\"var(--space-2)\"\n [style.left]=\"column\"\n [style.top]=\"skeletonLayout.categoryTop\"\n [shimmer]=\"loading()\" />\n }\n\n @if (xLabel()) {\n <ds-skeleton\n class=\"skeleton-pill is-category\"\n width=\"var(--space-24)\"\n height=\"var(--space-2)\"\n [style.left]=\"'50%'\"\n [style.top]=\"skeletonLayout.titleTop\"\n [shimmer]=\"loading()\" />\n }\n </div>\n</ng-template>\n\n<ng-template #body>\n <svg\n #canvas\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 [dsChartTooltipSwatches]=\"defaults.tooltipSwatches()\"\n [dsChartTooltipPinned]=\"activeMark.pinned()\"\n [dsChartTooltipOrigin]=\"activeMark.origin()\">\n <rect\n class=\"plot-bg\"\n [attr.x]=\"plot.left\"\n [attr.y]=\"plot.top\"\n [attr.width]=\"plot.width\"\n [attr.height]=\"plot.height\" />\n\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=\"point-group\"\n [class.is-dimmed]=\"isSeriesDimmed(entry.series.id)\"\n [style.--_scatter-series-color]=\"entry.color\"\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 [style.--_chart-mark-stagger]=\"pointStagger(mark.cx)\"\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 (animate.leave)=\"leaveMark($event)\" />\n }\n </g>\n }\n\n @if (showNearestPoint() && ringedMark()) {\n @if (pointerOverPlot() && !activeMark.pinned()) {\n <line\n #tether\n class=\"nearest-tether\" />\n }\n\n <circle\n #ring\n class=\"nearest-ring\" />\n }\n\n @for (pinned of pinnedPoints(); track pinned.index) {\n <svg:g\n dsChartPinMarker\n [attr.transform]=\"\n 'translate(' +\n pinned.value.cx +\n ',' +\n (pinned.value.cy - pinLift) +\n ')'\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 @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</ng-template>\n", styles: ["@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-settle{0%{opacity:0;transform:scale(.96)}}@keyframes ds-chart-line-draw{0%{stroke-dashoffset:1}}@keyframes ds-chart-mark-exit{to{opacity:0}}@keyframes ds-chart-pin-pop{0%{scale:.4;opacity:0}}:where(:host){box-sizing:border-box;interpolate-size:allow-keywords}:where(*){box-sizing:border-box}:where(button,input,select,textarea){font-family:inherit}:where(h1,h2,h3,h4,h5,h6){margin:0}:where(:host(:focus-visible),: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);border-radius:var(--focus-ring-radius)}@media(forced-colors:active){:where(:host(:focus-visible),:focus-visible){outline:var(--focus-ring-width) solid CanvasText;outline-offset:var(--focus-ring-offset)}}.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, var(--ds-chart-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}.empty-text.is-error{color:var(--error)}:host{position:relative}:host(.framed){--_chart-pin-reset-inset: var(--ds-chart-frame-padding)}@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}:host{--_chart-message-height: 240px}.canvas{display:block;inline-size:100%;block-size:auto}.skeleton{position:relative;aspect-ratio:640/360}.skeleton-grid-line{position:absolute;border-block-start:1px solid var(--_scatter-chart-grid-line-color)}.skeleton-grid-line.is-axis{border-block-start-color:var(--_scatter-chart-axis-line-color)}.skeleton-pill{position:absolute;border-radius:var(--radius-pill)}.skeleton-pill.is-tick{translate:0 -50%}.skeleton-pill.is-category{translate:-50% 0}.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, var(--ds-chart-bg-color)))}.nearest-ring{r:calc(var(--_scatter-chart-dot-radius) + var(--space-1));fill:none;stroke:var(--text-primary);stroke-width:1.5;pointer-events:none}.nearest-tether{stroke:var(--ds-chart-cursor-line-color);stroke-width:1;stroke-dasharray:3 3;pointer-events:none}.thinned{margin-block:var(--space-2) 0;color:var(--text-secondary);font-size:var(--font-size-xs)}.point-group{transition:opacity var(--ds-motion-chart-state-duration) var(--ds-motion-chart-state-easing)}.point-group.is-dimmed{opacity:var(--ds-chart-dim-opacity)}.plot-bg{fill:var(--ds-chart-plot-bg-color, transparent);pointer-events:none}\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", "dsChartTooltipSwatches"] }, { kind: "component", type: ChartPinMarkerComponent, selector: "g[dsChartPinMarker]" }, { kind: "component", type: ChartStatesComponent, selector: "figure[dsChartStates]", inputs: ["unpin", "pinned", "caption", "error", "errorText", "pending", "dataTable", "shimmer", "reloading", "empty", "emptyText", "messageAxes", "skeleton", "body", "message", "morphGrowth"], outputs: ["release"] }, { 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 });
392
+ 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 }, dataTable: { classPropertyName: "dataTable", publicName: "dataTable", 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 }, showNearestPoint: { classPropertyName: "showNearestPoint", publicName: "showNearestPoint", isSignal: true, isRequired: false, transformFunction: null }, nearestRadius: { classPropertyName: "nearestRadius", publicName: "nearestRadius", isSignal: true, isRequired: false, transformFunction: null }, staggerMs: { classPropertyName: "staggerMs", publicName: "staggerMs", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { pointClicked: "pointClicked" }, host: { properties: { "class.framed": "frameResolved() === 'auto'" } }, viewQueries: [{ propertyName: "canvasElement", first: true, predicate: ["canvas"], descendants: true, isSignal: true }, { propertyName: "ringElement", first: true, predicate: ["ring"], descendants: true, isSignal: true }], exportAs: ["dsScatterChart"], usesInheritance: true, ngImport: i0, template: "<figure\n class=\"scatter-chart\"\n dsChartStates\n messageAxes\n [pinned]=\"activeMark.pinned()\"\n [caption]=\"caption()\"\n [error]=\"error()\"\n [errorText]=\"errorTextResolved()\"\n [pending]=\"(loading() && isEmpty()) || !renderReady()\"\n [reloading]=\"loading()\"\n [dataTable]=\"dataTableResolved()\"\n [shimmer]=\"loading()\"\n [empty]=\"isEmpty()\"\n [emptyText]=\"emptyTextResolved()\"\n [skeleton]=\"skeleton\"\n [body]=\"body\"\n (release)=\"activeMark.release()\">\n</figure>\n\n<ng-template #skeleton>\n <div\n class=\"skeleton\"\n aria-hidden=\"true\">\n @for (row of skeletonLayout.rows; track row) {\n <span\n class=\"skeleton-grid-line\"\n data-morph=\"fade\"\n [class.is-axis]=\"$last\"\n [style.top]=\"row\"\n [style.left]=\"skeletonLayout.plotLeft\"\n [style.width]=\"skeletonLayout.plotWidth\">\n </span>\n\n <ds-skeleton\n class=\"skeleton-pill is-tick\"\n width=\"var(--space-6)\"\n height=\"var(--space-2)\"\n [style.top]=\"row\"\n [style.inset-inline-end]=\"skeletonLayout.labelEnd\"\n [shimmer]=\"loading()\" />\n }\n\n @for (column of skeletonLayout.columns; track column) {\n <ds-skeleton\n class=\"skeleton-pill is-category\"\n width=\"var(--space-6)\"\n height=\"var(--space-2)\"\n [style.left]=\"column\"\n [style.top]=\"skeletonLayout.categoryTop\"\n [shimmer]=\"loading()\" />\n }\n\n @if (xLabel()) {\n <ds-skeleton\n class=\"skeleton-pill is-category\"\n width=\"var(--space-24)\"\n height=\"var(--space-2)\"\n [style.left]=\"'50%'\"\n [style.top]=\"skeletonLayout.titleTop\"\n [shimmer]=\"loading()\" />\n }\n </div>\n</ng-template>\n\n<ng-template #body>\n <svg\n #canvas\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 [dsChartTooltipSwatches]=\"defaults.tooltipSwatches()\"\n [dsChartTooltipPinned]=\"activeMark.pinned()\"\n [dsChartTooltipOrigin]=\"activeMark.origin()\">\n <rect\n class=\"plot-bg\"\n [attr.x]=\"plot.left\"\n [attr.y]=\"plot.top\"\n [attr.width]=\"plot.width\"\n [attr.height]=\"plot.height\" />\n\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=\"point-group\"\n [class.is-dimmed]=\"isSeriesDimmed(entry.series.id)\"\n [style.--_scatter-series-color]=\"entry.color\"\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 [style.--_chart-mark-stagger]=\"pointStagger(mark.cx)\"\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 (animate.leave)=\"leaveMark($event)\" />\n }\n </g>\n }\n\n @if (showNearestPoint() && ringedMark()) {\n <circle\n #ring\n class=\"nearest-ring\" />\n }\n\n @for (pinned of pinnedPoints(); track pinned.index) {\n <svg:g\n dsChartPinMarker\n [attr.transform]=\"\n 'translate(' +\n pinned.value.cx +\n ',' +\n (pinned.value.cy - pinLift) +\n ')'\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 @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</ng-template>\n", styles: ["@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-settle{0%{opacity:0;transform:scale(.96)}}@keyframes ds-chart-line-draw{0%{stroke-dashoffset:1}}@keyframes ds-chart-mark-exit{to{opacity:0}}@keyframes ds-chart-pin-pop{0%{scale:.4;opacity:0}}:where(:host){box-sizing:border-box;interpolate-size:allow-keywords}:where(*){box-sizing:border-box}:where(button,input,select,textarea){font-family:inherit}:where(h1,h2,h3,h4,h5,h6){margin:0}:where(:host(:focus-visible),: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);border-radius:var(--focus-ring-radius)}@media(forced-colors:active){:where(:host(:focus-visible),:focus-visible){outline:var(--focus-ring-width) solid CanvasText;outline-offset:var(--focus-ring-offset)}}.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, var(--ds-chart-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}.empty-text.is-error{color:var(--error)}:host{position:relative}:host(.framed){--_chart-pin-reset-inset: var(--ds-chart-frame-padding)}@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}:host{--_chart-message-height: 240px}.canvas{display:block;inline-size:100%;block-size:auto}.skeleton{position:relative;aspect-ratio:640/360}.skeleton-grid-line{position:absolute;border-block-start:1px solid var(--_scatter-chart-grid-line-color)}.skeleton-grid-line.is-axis{border-block-start-color:var(--_scatter-chart-axis-line-color)}.skeleton-pill{position:absolute;border-radius:var(--radius-pill)}.skeleton-pill.is-tick{translate:0 -50%}.skeleton-pill.is-category{translate:-50% 0}.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, var(--ds-chart-bg-color)))}.nearest-ring{r:calc(var(--_scatter-chart-dot-radius) + var(--space-1));fill:none;stroke:var(--text-primary);stroke-width:1.5;pointer-events:none}.thinned{margin-block:var(--space-2) 0;color:var(--text-secondary);font-size:var(--font-size-xs)}.point-group{transition:opacity var(--ds-motion-chart-state-duration) var(--ds-motion-chart-state-easing)}.point-group.is-dimmed{opacity:var(--ds-chart-dim-opacity)}.plot-bg{fill:var(--ds-chart-plot-bg-color, transparent);pointer-events:none}\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", "dsChartTooltipSwatches"] }, { kind: "component", type: ChartPinMarkerComponent, selector: "g[dsChartPinMarker]" }, { kind: "component", type: ChartStatesComponent, selector: "figure[dsChartStates]", inputs: ["unpin", "pinned", "caption", "error", "errorText", "pending", "dataTable", "shimmer", "reloading", "empty", "emptyText", "messageAxes", "skeleton", "body", "message", "morphGrowth"], outputs: ["release"] }, { 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 });
422
393
  }
423
394
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.22", ngImport: i0, type: ScatterChartComponent, decorators: [{
424
395
  type: Component,
@@ -431,8 +402,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.22", ngImpo
431
402
  ChartDataTableComponent,
432
403
  ], host: {
433
404
  '[class.framed]': "frameResolved() === 'auto'",
434
- }, encapsulation: ViewEncapsulation.Emulated, changeDetection: ChangeDetectionStrategy.OnPush, template: "<figure\n class=\"scatter-chart\"\n dsChartStates\n messageAxes\n [pinned]=\"activeMark.pinned()\"\n [caption]=\"caption()\"\n [error]=\"error()\"\n [errorText]=\"errorTextResolved()\"\n [pending]=\"(loading() && isEmpty()) || !renderReady()\"\n [reloading]=\"loading()\"\n [dataTable]=\"dataTableResolved()\"\n [shimmer]=\"loading()\"\n [empty]=\"isEmpty()\"\n [emptyText]=\"emptyTextResolved()\"\n [skeleton]=\"skeleton\"\n [body]=\"body\"\n (release)=\"activeMark.release()\">\n</figure>\n\n<ng-template #skeleton>\n <div\n class=\"skeleton\"\n aria-hidden=\"true\">\n @for (row of skeletonLayout.rows; track row) {\n <span\n class=\"skeleton-grid-line\"\n data-morph=\"fade\"\n [class.is-axis]=\"$last\"\n [style.top]=\"row\"\n [style.left]=\"skeletonLayout.plotLeft\"\n [style.width]=\"skeletonLayout.plotWidth\">\n </span>\n\n <ds-skeleton\n class=\"skeleton-pill is-tick\"\n width=\"var(--space-6)\"\n height=\"var(--space-2)\"\n [style.top]=\"row\"\n [style.inset-inline-end]=\"skeletonLayout.labelEnd\"\n [shimmer]=\"loading()\" />\n }\n\n @for (column of skeletonLayout.columns; track column) {\n <ds-skeleton\n class=\"skeleton-pill is-category\"\n width=\"var(--space-6)\"\n height=\"var(--space-2)\"\n [style.left]=\"column\"\n [style.top]=\"skeletonLayout.categoryTop\"\n [shimmer]=\"loading()\" />\n }\n\n @if (xLabel()) {\n <ds-skeleton\n class=\"skeleton-pill is-category\"\n width=\"var(--space-24)\"\n height=\"var(--space-2)\"\n [style.left]=\"'50%'\"\n [style.top]=\"skeletonLayout.titleTop\"\n [shimmer]=\"loading()\" />\n }\n </div>\n</ng-template>\n\n<ng-template #body>\n <svg\n #canvas\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 [dsChartTooltipSwatches]=\"defaults.tooltipSwatches()\"\n [dsChartTooltipPinned]=\"activeMark.pinned()\"\n [dsChartTooltipOrigin]=\"activeMark.origin()\">\n <rect\n class=\"plot-bg\"\n [attr.x]=\"plot.left\"\n [attr.y]=\"plot.top\"\n [attr.width]=\"plot.width\"\n [attr.height]=\"plot.height\" />\n\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=\"point-group\"\n [class.is-dimmed]=\"isSeriesDimmed(entry.series.id)\"\n [style.--_scatter-series-color]=\"entry.color\"\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 [style.--_chart-mark-stagger]=\"pointStagger(mark.cx)\"\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 (animate.leave)=\"leaveMark($event)\" />\n }\n </g>\n }\n\n @if (showNearestPoint() && ringedMark()) {\n @if (pointerOverPlot() && !activeMark.pinned()) {\n <line\n #tether\n class=\"nearest-tether\" />\n }\n\n <circle\n #ring\n class=\"nearest-ring\" />\n }\n\n @for (pinned of pinnedPoints(); track pinned.index) {\n <svg:g\n dsChartPinMarker\n [attr.transform]=\"\n 'translate(' +\n pinned.value.cx +\n ',' +\n (pinned.value.cy - pinLift) +\n ')'\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 @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</ng-template>\n", styles: ["@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-settle{0%{opacity:0;transform:scale(.96)}}@keyframes ds-chart-line-draw{0%{stroke-dashoffset:1}}@keyframes ds-chart-mark-exit{to{opacity:0}}@keyframes ds-chart-pin-pop{0%{scale:.4;opacity:0}}:where(:host){box-sizing:border-box;interpolate-size:allow-keywords}:where(*){box-sizing:border-box}:where(button,input,select,textarea){font-family:inherit}:where(h1,h2,h3,h4,h5,h6){margin:0}:where(:host(:focus-visible),: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);border-radius:var(--focus-ring-radius)}@media(forced-colors:active){:where(:host(:focus-visible),:focus-visible){outline:var(--focus-ring-width) solid CanvasText;outline-offset:var(--focus-ring-offset)}}.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, var(--ds-chart-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}.empty-text.is-error{color:var(--error)}:host{position:relative}:host(.framed){--_chart-pin-reset-inset: var(--ds-chart-frame-padding)}@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}:host{--_chart-message-height: 240px}.canvas{display:block;inline-size:100%;block-size:auto}.skeleton{position:relative;aspect-ratio:640/360}.skeleton-grid-line{position:absolute;border-block-start:1px solid var(--_scatter-chart-grid-line-color)}.skeleton-grid-line.is-axis{border-block-start-color:var(--_scatter-chart-axis-line-color)}.skeleton-pill{position:absolute;border-radius:var(--radius-pill)}.skeleton-pill.is-tick{translate:0 -50%}.skeleton-pill.is-category{translate:-50% 0}.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, var(--ds-chart-bg-color)))}.nearest-ring{r:calc(var(--_scatter-chart-dot-radius) + var(--space-1));fill:none;stroke:var(--text-primary);stroke-width:1.5;pointer-events:none}.nearest-tether{stroke:var(--ds-chart-cursor-line-color);stroke-width:1;stroke-dasharray:3 3;pointer-events:none}.thinned{margin-block:var(--space-2) 0;color:var(--text-secondary);font-size:var(--font-size-xs)}.point-group{transition:opacity var(--ds-motion-chart-state-duration) var(--ds-motion-chart-state-easing)}.point-group.is-dimmed{opacity:var(--ds-chart-dim-opacity)}.plot-bg{fill:var(--ds-chart-plot-bg-color, transparent);pointer-events:none}\n"] }]
435
- }], 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 }] }], dataTable: [{ type: i0.Input, args: [{ isSignal: true, alias: "dataTable", required: false }] }], tooltip: [{ type: i0.Input, args: [{ isSignal: true, alias: "tooltip", required: false }] }], dimOthers: [{ type: i0.Input, args: [{ isSignal: true, alias: "dimOthers", required: false }] }], showNearestPoint: [{ type: i0.Input, args: [{ isSignal: true, alias: "showNearestPoint", required: false }] }], nearestRadius: [{ type: i0.Input, args: [{ isSignal: true, alias: "nearestRadius", required: false }] }], staggerMs: [{ type: i0.Input, args: [{ isSignal: true, alias: "staggerMs", required: false }] }], pointClicked: [{ type: i0.Output, args: ["pointClicked"] }], canvasElement: [{ type: i0.ViewChild, args: ['canvas', { isSignal: true }] }], ringElement: [{ type: i0.ViewChild, args: ['ring', { isSignal: true }] }], tetherElement: [{ type: i0.ViewChild, args: ['tether', { isSignal: true }] }] } });
405
+ }, encapsulation: ViewEncapsulation.Emulated, changeDetection: ChangeDetectionStrategy.OnPush, template: "<figure\n class=\"scatter-chart\"\n dsChartStates\n messageAxes\n [pinned]=\"activeMark.pinned()\"\n [caption]=\"caption()\"\n [error]=\"error()\"\n [errorText]=\"errorTextResolved()\"\n [pending]=\"(loading() && isEmpty()) || !renderReady()\"\n [reloading]=\"loading()\"\n [dataTable]=\"dataTableResolved()\"\n [shimmer]=\"loading()\"\n [empty]=\"isEmpty()\"\n [emptyText]=\"emptyTextResolved()\"\n [skeleton]=\"skeleton\"\n [body]=\"body\"\n (release)=\"activeMark.release()\">\n</figure>\n\n<ng-template #skeleton>\n <div\n class=\"skeleton\"\n aria-hidden=\"true\">\n @for (row of skeletonLayout.rows; track row) {\n <span\n class=\"skeleton-grid-line\"\n data-morph=\"fade\"\n [class.is-axis]=\"$last\"\n [style.top]=\"row\"\n [style.left]=\"skeletonLayout.plotLeft\"\n [style.width]=\"skeletonLayout.plotWidth\">\n </span>\n\n <ds-skeleton\n class=\"skeleton-pill is-tick\"\n width=\"var(--space-6)\"\n height=\"var(--space-2)\"\n [style.top]=\"row\"\n [style.inset-inline-end]=\"skeletonLayout.labelEnd\"\n [shimmer]=\"loading()\" />\n }\n\n @for (column of skeletonLayout.columns; track column) {\n <ds-skeleton\n class=\"skeleton-pill is-category\"\n width=\"var(--space-6)\"\n height=\"var(--space-2)\"\n [style.left]=\"column\"\n [style.top]=\"skeletonLayout.categoryTop\"\n [shimmer]=\"loading()\" />\n }\n\n @if (xLabel()) {\n <ds-skeleton\n class=\"skeleton-pill is-category\"\n width=\"var(--space-24)\"\n height=\"var(--space-2)\"\n [style.left]=\"'50%'\"\n [style.top]=\"skeletonLayout.titleTop\"\n [shimmer]=\"loading()\" />\n }\n </div>\n</ng-template>\n\n<ng-template #body>\n <svg\n #canvas\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 [dsChartTooltipSwatches]=\"defaults.tooltipSwatches()\"\n [dsChartTooltipPinned]=\"activeMark.pinned()\"\n [dsChartTooltipOrigin]=\"activeMark.origin()\">\n <rect\n class=\"plot-bg\"\n [attr.x]=\"plot.left\"\n [attr.y]=\"plot.top\"\n [attr.width]=\"plot.width\"\n [attr.height]=\"plot.height\" />\n\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=\"point-group\"\n [class.is-dimmed]=\"isSeriesDimmed(entry.series.id)\"\n [style.--_scatter-series-color]=\"entry.color\"\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 [style.--_chart-mark-stagger]=\"pointStagger(mark.cx)\"\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 (animate.leave)=\"leaveMark($event)\" />\n }\n </g>\n }\n\n @if (showNearestPoint() && ringedMark()) {\n <circle\n #ring\n class=\"nearest-ring\" />\n }\n\n @for (pinned of pinnedPoints(); track pinned.index) {\n <svg:g\n dsChartPinMarker\n [attr.transform]=\"\n 'translate(' +\n pinned.value.cx +\n ',' +\n (pinned.value.cy - pinLift) +\n ')'\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 @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</ng-template>\n", styles: ["@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-settle{0%{opacity:0;transform:scale(.96)}}@keyframes ds-chart-line-draw{0%{stroke-dashoffset:1}}@keyframes ds-chart-mark-exit{to{opacity:0}}@keyframes ds-chart-pin-pop{0%{scale:.4;opacity:0}}:where(:host){box-sizing:border-box;interpolate-size:allow-keywords}:where(*){box-sizing:border-box}:where(button,input,select,textarea){font-family:inherit}:where(h1,h2,h3,h4,h5,h6){margin:0}:where(:host(:focus-visible),: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);border-radius:var(--focus-ring-radius)}@media(forced-colors:active){:where(:host(:focus-visible),:focus-visible){outline:var(--focus-ring-width) solid CanvasText;outline-offset:var(--focus-ring-offset)}}.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, var(--ds-chart-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}.empty-text.is-error{color:var(--error)}:host{position:relative}:host(.framed){--_chart-pin-reset-inset: var(--ds-chart-frame-padding)}@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}:host{--_chart-message-height: 240px}.canvas{display:block;inline-size:100%;block-size:auto}.skeleton{position:relative;aspect-ratio:640/360}.skeleton-grid-line{position:absolute;border-block-start:1px solid var(--_scatter-chart-grid-line-color)}.skeleton-grid-line.is-axis{border-block-start-color:var(--_scatter-chart-axis-line-color)}.skeleton-pill{position:absolute;border-radius:var(--radius-pill)}.skeleton-pill.is-tick{translate:0 -50%}.skeleton-pill.is-category{translate:-50% 0}.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, var(--ds-chart-bg-color)))}.nearest-ring{r:calc(var(--_scatter-chart-dot-radius) + var(--space-1));fill:none;stroke:var(--text-primary);stroke-width:1.5;pointer-events:none}.thinned{margin-block:var(--space-2) 0;color:var(--text-secondary);font-size:var(--font-size-xs)}.point-group{transition:opacity var(--ds-motion-chart-state-duration) var(--ds-motion-chart-state-easing)}.point-group.is-dimmed{opacity:var(--ds-chart-dim-opacity)}.plot-bg{fill:var(--ds-chart-plot-bg-color, transparent);pointer-events:none}\n"] }]
406
+ }], 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 }] }], dataTable: [{ type: i0.Input, args: [{ isSignal: true, alias: "dataTable", required: false }] }], tooltip: [{ type: i0.Input, args: [{ isSignal: true, alias: "tooltip", required: false }] }], dimOthers: [{ type: i0.Input, args: [{ isSignal: true, alias: "dimOthers", required: false }] }], showNearestPoint: [{ type: i0.Input, args: [{ isSignal: true, alias: "showNearestPoint", required: false }] }], nearestRadius: [{ type: i0.Input, args: [{ isSignal: true, alias: "nearestRadius", required: false }] }], staggerMs: [{ type: i0.Input, args: [{ isSignal: true, alias: "staggerMs", required: false }] }], pointClicked: [{ type: i0.Output, args: ["pointClicked"] }], canvasElement: [{ type: i0.ViewChild, args: ['canvas', { isSignal: true }] }], ringElement: [{ type: i0.ViewChild, args: ['ring', { isSignal: true }] }] } });
436
407
 
437
408
  /**
438
409
  * 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\nexport interface ScatterPlot {\n readonly left: number;\n readonly top: number;\n readonly width: number;\n readonly height: number;\n}\n\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; non-finite coordinates are ignored.\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 so a narrower pinned domain cannot put a mark over the axis labels.\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 type {\n ChartDimmable,\n ChartStaggered,\n ChartWithDataTable,\n ChartWithTooltipTrigger,\n} from '@ids-group-ltd/ids-design-system/components';\nimport {\n ChangeDetectionStrategy,\n Component,\n ElementRef,\n NgZone,\n ViewEncapsulation,\n afterRenderEffect,\n booleanAttribute,\n computed,\n effect,\n inject,\n input,\n numberAttribute,\n output,\n signal,\n viewChild,\n} from '@angular/core';\nimport {\n CHART_SERIES_COLORS,\n decimationTarget,\n linearScale,\n listenForMarkFocus,\n leaveMark,\n lttbDecimate,\n markOf,\n minMaxDecimate,\n needsDecimating,\n niceDomain,\n tickValues,\n chartRenderGate,\n staggerDelay,\n tweenMarks,\n DsChartBase,\n dimmedBy,\n markAt,\n} from '@ids-group-ltd/ids-design-system/components';\nimport type { MarkHit } 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 ChartStatesComponent,\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 type { ChartDataTable } 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 type {\n ScatterChartDecimator,\n ScatterChartReading,\n ScatterChartSeries,\n ScatterPoint,\n} from './scatter-chart.types';\n\nconst AXIS_GUTTER = 52;\nconst CATEGORY_GUTTER = 34;\nconst EDGE_GUTTER = 12;\n// Clearance past the point's default radius, `--chart-dot-radius`.\nconst PIN_POINT_CLEARANCE = 4;\n// Screen pixels past the plot's edge within which hover still answers, and, with `showNearestPoint` off,\n// from a point's centre.\nconst HOVER_REACH_PX = 16;\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/** Two continuous quantities against each other. Past four times the plot's width in marks a series is decimated, and the chart says so. */\n@Component({\n selector: 'ds-scatter-chart',\n standalone: true,\n exportAs: 'dsScatterChart',\n imports: [\n ChartLegendComponent,\n ChartTooltipDirective,\n ChartPinMarkerComponent,\n ChartStatesComponent,\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 extends DsChartBase\n implements\n ChartDimmable,\n ChartStaggered,\n ChartWithDataTable,\n ChartWithTooltipTrigger\n{\n protected readonly renderReady = chartRenderGate();\n\n protected readonly leaveMark = leaveMark;\n\n /** One entry per series. */\n readonly data = input<readonly ScatterChartSeries[]>([]);\n\n /** Names the horizontal quantity under the plot. */\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. See `ScatterChartDecimator`. */\n readonly decimator = input<ScatterChartDecimator>('minMax');\n\n /** A hint, not a count, applied to both axes. Ticks snap to a round step. */\n readonly tickCount = input(SCATTER_DEFAULT_TICK_COUNT, {\n transform: numberAttribute,\n });\n\n /** The annex table under the plot; lists every reading, including those decimation left out. */\n readonly dataTable = input<ChartDataTable | null>(null);\n\n /** Whether a hovered or focused mark opens a tooltip. */\n readonly tooltip = input<ChartItemTooltipTrigger>('item');\n\n /** Fades every mark but the one under the pointer; on a scatter this hides pile-ups. */\n readonly dimOthers = input(false, { transform: booleanAttribute });\n\n /** Anywhere over the plot answers with the nearest point, ringed and tethered to the pointer. Off,\n * a point answers only within 16 CSS pixels of its centre, without the ring and tether. */\n readonly showNearestPoint = input(true, { transform: booleanAttribute });\n\n /** How far the pointer may be from a point's centre, in CSS pixels and inclusive, for the point to\n * answer under `showNearestPoint`; `null` sets no limit. */\n readonly nearestRadius = input<number | null>(null, {\n transform: (raw: unknown) => (raw == null ? null : numberAttribute(raw)),\n });\n\n /** Milliseconds between one point's entrance and the next, left to right; `0` turns it off. The\n * spread is capped at 260ms. */\n readonly staggerMs = input(40, { transform: numberAttribute });\n\n private readonly staggerSpread = computed(() => {\n const count = this.flatMarks().length;\n\n return staggerDelay(count - 1, count, this.staggerMs());\n });\n\n protected pointStagger(cx: number): string {\n return `${((cx - this.plot.left) / this.plot.width) * this.staggerSpread()}ms`;\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 readonly dataTableResolved = this.defaults.dataTable;\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 plotBottom = this.plot.top + this.plot.height;\n protected readonly plotRight = this.plot.left + this.plot.width;\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. */\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. */\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 multiSeries = computed(() => this.data().length > 1);\n\n /** The series named in the legend under the pointer; under `dimOthers` it fades the rest. */\n protected readonly highlightedSeries = signal<string | null>(null);\n\n protected isSeriesDimmed(seriesId: string): boolean {\n return dimmedBy(this.dimOthers(), this.highlightedSeries(), seriesId);\n }\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. */\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 shut, so rows exist only while it is open. */\n protected readonly tableOpen = signal(false);\n\n protected readonly tableIsOpen = computed(\n () => this.tableOpen() || this.dataTableResolved() === 'visible',\n );\n\n /** Where the drawn chart puts its grid lines and labels, as shares of the box, which keeps the\n * drawn chart's aspect ratio. Marks are left out: no dots while loading. */\n protected readonly skeletonLayout = (() => {\n const share = (value: number, of: number) => `${(value / of) * 100}%`;\n const steps = [0, 0.25, 0.5, 0.75, 1];\n\n return {\n plotLeft: share(this.plot.left, SCATTER_VIEW_WIDTH),\n plotWidth: share(this.plot.width, SCATTER_VIEW_WIDTH),\n labelEnd: share(\n SCATTER_VIEW_WIDTH - this.plot.left + 8,\n SCATTER_VIEW_WIDTH,\n ),\n categoryTop: share(this.plotBottom + 10, SCATTER_VIEW_HEIGHT),\n titleTop: share(this.plotBottom + 26, SCATTER_VIEW_HEIGHT),\n rows: steps.map((step) =>\n share(this.plot.top + step * this.plot.height, SCATTER_VIEW_HEIGHT),\n ),\n columns: steps.map((step) =>\n share(this.plot.left + step * this.plot.width, SCATTER_VIEW_WIDTH),\n ),\n };\n })();\n\n /** Flattened so one index addresses a mark (`chartActiveMark` counts marks). */\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`. */\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 super();\n listenForMarkFocus(inject(ElementRef), (event, hit) =>\n this.activeMark.enter(hit.index, event, undefined, hit.element),\n );\n }\n\n private hoveredIndex = -1;\n\n /** Whether the pointer is over the plot; the tether runs from it to the ring. */\n protected readonly pointerOverPlot = signal(false);\n\n /** The answered point, which the ring circles. */\n protected readonly ringedMark = computed(\n () => this.flatMarks()[this.activeMark.index()]?.mark ?? null,\n );\n\n private readonly canvasElement =\n viewChild<ElementRef<SVGSVGElement>>('canvas');\n private readonly ringElement =\n viewChild<ElementRef<SVGCircleElement>>('ring');\n private readonly tetherElement =\n viewChild<ElementRef<SVGLineElement>>('tether');\n\n private readonly zone = inject(NgZone);\n\n // In viewBox units; the tether and the ring are written here, not bound, so a pointer move costs no change detection.\n private pointerAt: { x: number; y: number } | null = null;\n private ringAt: { x: number; y: number } | null = null;\n private stopRingGlide: () => void = () => undefined;\n\n private readonly listenForPointer = effect((onCleanup) => {\n const canvas = this.canvasElement()?.nativeElement;\n if (!canvas) {\n return;\n }\n const onPointer = (event: PointerEvent): void =>\n this.onCanvasPointer(canvas, event);\n const onLeave = (): void => this.onCanvasLeave();\n this.zone.runOutsideAngular(() => {\n canvas.addEventListener('pointerover', onPointer);\n canvas.addEventListener('pointermove', onPointer);\n canvas.addEventListener('pointerleave', onLeave);\n });\n onCleanup(() => {\n canvas.removeEventListener('pointerover', onPointer);\n canvas.removeEventListener('pointermove', onPointer);\n canvas.removeEventListener('pointerleave', onLeave);\n });\n });\n\n // The ring appears on its point and glides to the next one; the tether's far end rides it.\n private readonly glideRing = afterRenderEffect(() => {\n const target = this.ringedMark();\n const ring = this.ringElement()?.nativeElement;\n this.stopRingGlide();\n if (!target || !ring) {\n this.ringAt = null;\n\n return;\n }\n const from = this.ringAt ?? { x: target.cx, y: target.cy };\n this.placeRing(ring, from.x, from.y);\n this.zone.runOutsideAngular(() => {\n this.stopRingGlide = tweenMarks(\n ring,\n [from.x, from.y],\n [target.cx, target.cy],\n ([x, y]) => this.placeRing(ring, x, y),\n 'tooltip-move',\n );\n });\n });\n\n private readonly drawTether = afterRenderEffect(() => {\n this.tetherElement();\n this.placeTether();\n });\n\n // Placed by `transform`, not `cx`: a geometry change repaints the page each frame of the glide.\n private placeRing(ring: SVGCircleElement, x: number, y: number): void {\n this.ringAt = { x, y };\n ring.style.transform = `translate(${x}px, ${y}px)`;\n this.placeTether();\n }\n\n private placeTether(): void {\n const tether = this.tetherElement()?.nativeElement;\n if (!tether || !this.pointerAt || !this.ringAt) {\n return;\n }\n tether.setAttribute('x1', String(this.pointerAt.x));\n tether.setAttribute('y1', String(this.pointerAt.y));\n tether.setAttribute('x2', String(this.ringAt.x));\n tether.setAttribute('y2', String(this.ringAt.y));\n }\n\n // Entered on every move, not only on change: the active mark schedules a clear on any\n // `pointerover` outside the point's element, and re-entering cancels it.\n private onCanvasPointer(canvas: SVGSVGElement, event: PointerEvent): void {\n const nearest = this.nearestMark(canvas, event);\n if (!nearest) {\n this.onCanvasLeave();\n\n return;\n }\n this.hoveredIndex = nearest.hit.index;\n this.pointerAt = nearest.pointer;\n this.placeTether();\n this.pointerOverPlot.set(true);\n this.activeMark.enter(\n nearest.hit.index,\n event,\n undefined,\n nearest.hit.element,\n );\n }\n\n private onCanvasLeave(): void {\n this.pointerAt = null;\n this.pointerOverPlot.set(false);\n if (this.hoveredIndex !== -1) {\n this.hoveredIndex = -1;\n this.activeMark.leave();\n }\n }\n\n // ponytail: linear scan per pointer move, over marks already capped by decimation; a spatial\n // index if that cap is ever raised far enough to show in a trace.\n private nearestMark(\n canvas: SVGSVGElement,\n event: PointerEvent,\n ): { hit: MarkHit; pointer: { x: number; y: number } } | null {\n const matrix = canvas.getScreenCTM();\n if (!matrix) {\n return null;\n }\n const pointer = new DOMPoint(event.clientX, event.clientY).matrixTransform(\n matrix.inverse(),\n );\n const reach = HOVER_REACH_PX / matrix.a;\n const overPlot =\n pointer.x >= this.plot.left - reach &&\n pointer.x <= this.plotRight + reach &&\n pointer.y >= this.plot.top - reach &&\n pointer.y <= this.plotBottom + reach;\n if (!overPlot) {\n return null;\n }\n let nearestIndex = -1;\n const radius = this.showNearestPoint()\n ? this.nearestRadius()\n : HOVER_REACH_PX;\n let nearestDistance = radius === null ? Infinity : (radius / matrix.a) ** 2;\n this.flatMarks().forEach(({ mark }, index) => {\n const distance = (mark.cx - pointer.x) ** 2 + (mark.cy - pointer.y) ** 2;\n if (distance <= nearestDistance) {\n nearestIndex = index;\n nearestDistance = distance;\n }\n });\n const element = nearestIndex === -1 ? null : markAt(canvas, nearestIndex);\n\n return element\n ? {\n hit: { element, index: nearestIndex },\n pointer: { x: pointer.x, y: pointer.y },\n }\n : null;\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 pinnedPoints = this.activeMark.pinnedAt(\n (index) => this.flatMarks()[index]?.mark,\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\n class=\"scatter-chart\"\n dsChartStates\n messageAxes\n [pinned]=\"activeMark.pinned()\"\n [caption]=\"caption()\"\n [error]=\"error()\"\n [errorText]=\"errorTextResolved()\"\n [pending]=\"(loading() && isEmpty()) || !renderReady()\"\n [reloading]=\"loading()\"\n [dataTable]=\"dataTableResolved()\"\n [shimmer]=\"loading()\"\n [empty]=\"isEmpty()\"\n [emptyText]=\"emptyTextResolved()\"\n [skeleton]=\"skeleton\"\n [body]=\"body\"\n (release)=\"activeMark.release()\">\n</figure>\n\n<ng-template #skeleton>\n <div\n class=\"skeleton\"\n aria-hidden=\"true\">\n @for (row of skeletonLayout.rows; track row) {\n <span\n class=\"skeleton-grid-line\"\n data-morph=\"fade\"\n [class.is-axis]=\"$last\"\n [style.top]=\"row\"\n [style.left]=\"skeletonLayout.plotLeft\"\n [style.width]=\"skeletonLayout.plotWidth\">\n </span>\n\n <ds-skeleton\n class=\"skeleton-pill is-tick\"\n width=\"var(--space-6)\"\n height=\"var(--space-2)\"\n [style.top]=\"row\"\n [style.inset-inline-end]=\"skeletonLayout.labelEnd\"\n [shimmer]=\"loading()\" />\n }\n\n @for (column of skeletonLayout.columns; track column) {\n <ds-skeleton\n class=\"skeleton-pill is-category\"\n width=\"var(--space-6)\"\n height=\"var(--space-2)\"\n [style.left]=\"column\"\n [style.top]=\"skeletonLayout.categoryTop\"\n [shimmer]=\"loading()\" />\n }\n\n @if (xLabel()) {\n <ds-skeleton\n class=\"skeleton-pill is-category\"\n width=\"var(--space-24)\"\n height=\"var(--space-2)\"\n [style.left]=\"'50%'\"\n [style.top]=\"skeletonLayout.titleTop\"\n [shimmer]=\"loading()\" />\n }\n </div>\n</ng-template>\n\n<ng-template #body>\n <svg\n #canvas\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 [dsChartTooltipSwatches]=\"defaults.tooltipSwatches()\"\n [dsChartTooltipPinned]=\"activeMark.pinned()\"\n [dsChartTooltipOrigin]=\"activeMark.origin()\">\n <rect\n class=\"plot-bg\"\n [attr.x]=\"plot.left\"\n [attr.y]=\"plot.top\"\n [attr.width]=\"plot.width\"\n [attr.height]=\"plot.height\" />\n\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=\"point-group\"\n [class.is-dimmed]=\"isSeriesDimmed(entry.series.id)\"\n [style.--_scatter-series-color]=\"entry.color\"\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 [style.--_chart-mark-stagger]=\"pointStagger(mark.cx)\"\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 (animate.leave)=\"leaveMark($event)\" />\n }\n </g>\n }\n\n @if (showNearestPoint() && ringedMark()) {\n @if (pointerOverPlot() && !activeMark.pinned()) {\n <line\n #tether\n class=\"nearest-tether\" />\n }\n\n <circle\n #ring\n class=\"nearest-ring\" />\n }\n\n @for (pinned of pinnedPoints(); track pinned.index) {\n <svg:g\n dsChartPinMarker\n [attr.transform]=\"\n 'translate(' +\n pinned.value.cx +\n ',' +\n (pinned.value.cy - pinLift) +\n ')'\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 @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</ng-template>\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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,eAAA,EACxB,uBAAuB,CAAC,MAAM,EAAA,QAAA,EAAA,unMAAA,EAAA,MAAA,EAAA,CAAA,01NAAA,CAAA,EAAA;otCAuUR,QAAQ,EAAA,EAAA,QAAA,EAAA,IAAA,EAAA,CAAA,EAAA,CAAA,EAAA,WAAA,EAAA,CAAA,EAAA,IAAA,EAAA,EAAA,CAAA,SAAA,EAAA,IAAA,EAAA,CAEL,MAAM,EAAA,EAAA,QAAA,EAAA,IAAA,EAAA,CAAA,EAAA,CAAA,EAAA,aAAA,EAAA,CAAA,EAAA,IAAA,EAAA,EAAA,CAAA,SAAA,EAAA,IAAA,EAAA,CAER,QAAQ,EAAA,EAAA,QAAA,EAAA,IAAA,EAAA,CAAA,EAAA,CAAA,EAAA,EAAA,CAAA;;AEjclD;;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\nexport interface ScatterPlot {\n readonly left: number;\n readonly top: number;\n readonly width: number;\n readonly height: number;\n}\n\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; non-finite coordinates are ignored.\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 so a narrower pinned domain cannot put a mark over the axis labels.\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 type {\n ChartDimmable,\n ChartStaggered,\n ChartWithDataTable,\n ChartWithTooltipTrigger,\n} from '@ids-group-ltd/ids-design-system/components';\nimport {\n ChangeDetectionStrategy,\n Component,\n ElementRef,\n NgZone,\n ViewEncapsulation,\n afterRenderEffect,\n booleanAttribute,\n computed,\n effect,\n inject,\n input,\n numberAttribute,\n output,\n signal,\n viewChild,\n} from '@angular/core';\nimport {\n CHART_SERIES_COLORS,\n decimationTarget,\n linearScale,\n listenForMarkFocus,\n leaveMark,\n lttbDecimate,\n markOf,\n minMaxDecimate,\n needsDecimating,\n niceDomain,\n tickValues,\n chartRenderGate,\n staggerDelay,\n tweenMarks,\n DsChartBase,\n dimmedBy,\n markAt,\n} from '@ids-group-ltd/ids-design-system/components';\nimport type { MarkHit } 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 ChartStatesComponent,\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 type { ChartDataTable } 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 type {\n ScatterChartDecimator,\n ScatterChartReading,\n ScatterChartSeries,\n ScatterPoint,\n} from './scatter-chart.types';\n\nconst AXIS_GUTTER = 52;\nconst CATEGORY_GUTTER = 34;\nconst EDGE_GUTTER = 12;\n// Clearance past the point's default radius, `--chart-dot-radius`.\nconst PIN_POINT_CLEARANCE = 4;\n// Screen pixels past the plot's edge within which hover still answers, and, with `showNearestPoint` off,\n// from a point's centre.\nconst HOVER_REACH_PX = 16;\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/** Two continuous quantities against each other. Past four times the plot's width in marks a series is decimated, and the chart says so. */\n@Component({\n selector: 'ds-scatter-chart',\n standalone: true,\n exportAs: 'dsScatterChart',\n imports: [\n ChartLegendComponent,\n ChartTooltipDirective,\n ChartPinMarkerComponent,\n ChartStatesComponent,\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 extends DsChartBase\n implements\n ChartDimmable,\n ChartStaggered,\n ChartWithDataTable,\n ChartWithTooltipTrigger\n{\n protected readonly renderReady = chartRenderGate();\n\n protected readonly leaveMark = leaveMark;\n\n /** One entry per series. */\n readonly data = input<readonly ScatterChartSeries[]>([]);\n\n /** Names the horizontal quantity under the plot. */\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. See `ScatterChartDecimator`. */\n readonly decimator = input<ScatterChartDecimator>('minMax');\n\n /** A hint, not a count, applied to both axes. Ticks snap to a round step. */\n readonly tickCount = input(SCATTER_DEFAULT_TICK_COUNT, {\n transform: numberAttribute,\n });\n\n /** The annex table under the plot; lists every reading, including those decimation left out. */\n readonly dataTable = input<ChartDataTable | null>(null);\n\n /** Whether a hovered or focused mark opens a tooltip. */\n readonly tooltip = input<ChartItemTooltipTrigger>('item');\n\n /** Fades every mark but the one under the pointer; on a scatter this hides pile-ups. */\n readonly dimOthers = input(false, { transform: booleanAttribute });\n\n /** Anywhere over the plot answers with the nearest point, ringed. Off, a point answers only\n * within 16 CSS pixels of its centre, without the ring. */\n readonly showNearestPoint = input(true, { transform: booleanAttribute });\n\n /** How far the pointer may be from a point's centre, in CSS pixels and inclusive, for the point to\n * answer under `showNearestPoint`; `null` sets no limit. */\n readonly nearestRadius = input<number | null>(null, {\n transform: (raw: unknown) => (raw == null ? null : numberAttribute(raw)),\n });\n\n /** Milliseconds between one point's entrance and the next, left to right; `0` turns it off. The\n * spread is capped at 260ms. */\n readonly staggerMs = input(40, { transform: numberAttribute });\n\n private readonly staggerSpread = computed(() => {\n const count = this.flatMarks().length;\n\n return staggerDelay(count - 1, count, this.staggerMs());\n });\n\n protected pointStagger(cx: number): string {\n return `${((cx - this.plot.left) / this.plot.width) * this.staggerSpread()}ms`;\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 readonly dataTableResolved = this.defaults.dataTable;\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 plotBottom = this.plot.top + this.plot.height;\n protected readonly plotRight = this.plot.left + this.plot.width;\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. */\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. */\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 multiSeries = computed(() => this.data().length > 1);\n\n /** The series named in the legend under the pointer; under `dimOthers` it fades the rest. */\n protected readonly highlightedSeries = signal<string | null>(null);\n\n protected isSeriesDimmed(seriesId: string): boolean {\n return dimmedBy(this.dimOthers(), this.highlightedSeries(), seriesId);\n }\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. */\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 shut, so rows exist only while it is open. */\n protected readonly tableOpen = signal(false);\n\n protected readonly tableIsOpen = computed(\n () => this.tableOpen() || this.dataTableResolved() === 'visible',\n );\n\n /** Where the drawn chart puts its grid lines and labels, as shares of the box, which keeps the\n * drawn chart's aspect ratio. Marks are left out: no dots while loading. */\n protected readonly skeletonLayout = (() => {\n const share = (value: number, of: number) => `${(value / of) * 100}%`;\n const steps = [0, 0.25, 0.5, 0.75, 1];\n\n return {\n plotLeft: share(this.plot.left, SCATTER_VIEW_WIDTH),\n plotWidth: share(this.plot.width, SCATTER_VIEW_WIDTH),\n labelEnd: share(\n SCATTER_VIEW_WIDTH - this.plot.left + 8,\n SCATTER_VIEW_WIDTH,\n ),\n categoryTop: share(this.plotBottom + 10, SCATTER_VIEW_HEIGHT),\n titleTop: share(this.plotBottom + 26, SCATTER_VIEW_HEIGHT),\n rows: steps.map((step) =>\n share(this.plot.top + step * this.plot.height, SCATTER_VIEW_HEIGHT),\n ),\n columns: steps.map((step) =>\n share(this.plot.left + step * this.plot.width, SCATTER_VIEW_WIDTH),\n ),\n };\n })();\n\n /** Flattened so one index addresses a mark (`chartActiveMark` counts marks). */\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`. */\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 super();\n listenForMarkFocus(inject(ElementRef), (event, hit) =>\n this.activeMark.enter(hit.index, event, undefined, hit.element),\n );\n }\n\n private hoveredIndex = -1;\n\n /** The answered point, which the ring circles. */\n protected readonly ringedMark = computed(\n () => this.flatMarks()[this.activeMark.index()]?.mark ?? null,\n );\n\n private readonly canvasElement =\n viewChild<ElementRef<SVGSVGElement>>('canvas');\n private readonly ringElement =\n viewChild<ElementRef<SVGCircleElement>>('ring');\n\n private readonly zone = inject(NgZone);\n\n // In viewBox units; the ring is written here, not bound, so a pointer move costs no change detection.\n private ringAt: { x: number; y: number } | null = null;\n private stopRingGlide: () => void = () => undefined;\n\n private readonly listenForPointer = effect((onCleanup) => {\n const canvas = this.canvasElement()?.nativeElement;\n if (!canvas) {\n return;\n }\n const onPointer = (event: PointerEvent): void =>\n this.onCanvasPointer(canvas, event);\n const onLeave = (): void => this.onCanvasLeave();\n this.zone.runOutsideAngular(() => {\n canvas.addEventListener('pointerover', onPointer);\n canvas.addEventListener('pointermove', onPointer);\n canvas.addEventListener('pointerleave', onLeave);\n });\n onCleanup(() => {\n canvas.removeEventListener('pointerover', onPointer);\n canvas.removeEventListener('pointermove', onPointer);\n canvas.removeEventListener('pointerleave', onLeave);\n });\n });\n\n // The ring appears on its point and glides to the next one.\n private readonly glideRing = afterRenderEffect(() => {\n const target = this.ringedMark();\n const ring = this.ringElement()?.nativeElement;\n this.stopRingGlide();\n if (!target || !ring) {\n this.ringAt = null;\n\n return;\n }\n const from = this.ringAt ?? { x: target.cx, y: target.cy };\n this.placeRing(ring, from.x, from.y);\n this.zone.runOutsideAngular(() => {\n this.stopRingGlide = tweenMarks(\n ring,\n [from.x, from.y],\n [target.cx, target.cy],\n ([x, y]) => this.placeRing(ring, x, y),\n 'tooltip-move',\n );\n });\n });\n\n // Placed by `transform`, not `cx`: a geometry change repaints the page each frame of the glide.\n private placeRing(ring: SVGCircleElement, x: number, y: number): void {\n this.ringAt = { x, y };\n ring.style.transform = `translate(${x}px, ${y}px)`;\n }\n\n // Entered on every move, not only on change: the active mark schedules a clear on any\n // `pointerover` outside the point's element, and re-entering cancels it.\n private onCanvasPointer(canvas: SVGSVGElement, event: PointerEvent): void {\n const nearest = this.nearestMark(canvas, event);\n if (!nearest) {\n this.onCanvasLeave();\n\n return;\n }\n this.hoveredIndex = nearest.index;\n this.activeMark.enter(nearest.index, event, undefined, nearest.element);\n }\n\n private onCanvasLeave(): void {\n if (this.hoveredIndex !== -1) {\n this.hoveredIndex = -1;\n this.activeMark.leave();\n }\n }\n\n // ponytail: linear scan per pointer move, over marks already capped by decimation; a spatial\n // index if that cap is ever raised far enough to show in a trace.\n private nearestMark(\n canvas: SVGSVGElement,\n event: PointerEvent,\n ): MarkHit | null {\n const matrix = canvas.getScreenCTM();\n if (!matrix) {\n return null;\n }\n const pointer = new DOMPoint(event.clientX, event.clientY).matrixTransform(\n matrix.inverse(),\n );\n const reach = HOVER_REACH_PX / matrix.a;\n const overPlot =\n pointer.x >= this.plot.left - reach &&\n pointer.x <= this.plotRight + reach &&\n pointer.y >= this.plot.top - reach &&\n pointer.y <= this.plotBottom + reach;\n if (!overPlot) {\n return null;\n }\n let nearestIndex = -1;\n const radius = this.showNearestPoint()\n ? this.nearestRadius()\n : HOVER_REACH_PX;\n let nearestDistance = radius === null ? Infinity : (radius / matrix.a) ** 2;\n this.flatMarks().forEach(({ mark }, index) => {\n const distance = (mark.cx - pointer.x) ** 2 + (mark.cy - pointer.y) ** 2;\n if (distance <= nearestDistance) {\n nearestIndex = index;\n nearestDistance = distance;\n }\n });\n const element = nearestIndex === -1 ? null : markAt(canvas, nearestIndex);\n\n return element ? { element, index: nearestIndex } : null;\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 pinnedPoints = this.activeMark.pinnedAt(\n (index) => this.flatMarks()[index]?.mark,\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\n class=\"scatter-chart\"\n dsChartStates\n messageAxes\n [pinned]=\"activeMark.pinned()\"\n [caption]=\"caption()\"\n [error]=\"error()\"\n [errorText]=\"errorTextResolved()\"\n [pending]=\"(loading() && isEmpty()) || !renderReady()\"\n [reloading]=\"loading()\"\n [dataTable]=\"dataTableResolved()\"\n [shimmer]=\"loading()\"\n [empty]=\"isEmpty()\"\n [emptyText]=\"emptyTextResolved()\"\n [skeleton]=\"skeleton\"\n [body]=\"body\"\n (release)=\"activeMark.release()\">\n</figure>\n\n<ng-template #skeleton>\n <div\n class=\"skeleton\"\n aria-hidden=\"true\">\n @for (row of skeletonLayout.rows; track row) {\n <span\n class=\"skeleton-grid-line\"\n data-morph=\"fade\"\n [class.is-axis]=\"$last\"\n [style.top]=\"row\"\n [style.left]=\"skeletonLayout.plotLeft\"\n [style.width]=\"skeletonLayout.plotWidth\">\n </span>\n\n <ds-skeleton\n class=\"skeleton-pill is-tick\"\n width=\"var(--space-6)\"\n height=\"var(--space-2)\"\n [style.top]=\"row\"\n [style.inset-inline-end]=\"skeletonLayout.labelEnd\"\n [shimmer]=\"loading()\" />\n }\n\n @for (column of skeletonLayout.columns; track column) {\n <ds-skeleton\n class=\"skeleton-pill is-category\"\n width=\"var(--space-6)\"\n height=\"var(--space-2)\"\n [style.left]=\"column\"\n [style.top]=\"skeletonLayout.categoryTop\"\n [shimmer]=\"loading()\" />\n }\n\n @if (xLabel()) {\n <ds-skeleton\n class=\"skeleton-pill is-category\"\n width=\"var(--space-24)\"\n height=\"var(--space-2)\"\n [style.left]=\"'50%'\"\n [style.top]=\"skeletonLayout.titleTop\"\n [shimmer]=\"loading()\" />\n }\n </div>\n</ng-template>\n\n<ng-template #body>\n <svg\n #canvas\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 [dsChartTooltipSwatches]=\"defaults.tooltipSwatches()\"\n [dsChartTooltipPinned]=\"activeMark.pinned()\"\n [dsChartTooltipOrigin]=\"activeMark.origin()\">\n <rect\n class=\"plot-bg\"\n [attr.x]=\"plot.left\"\n [attr.y]=\"plot.top\"\n [attr.width]=\"plot.width\"\n [attr.height]=\"plot.height\" />\n\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=\"point-group\"\n [class.is-dimmed]=\"isSeriesDimmed(entry.series.id)\"\n [style.--_scatter-series-color]=\"entry.color\"\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 [style.--_chart-mark-stagger]=\"pointStagger(mark.cx)\"\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 (animate.leave)=\"leaveMark($event)\" />\n }\n </g>\n }\n\n @if (showNearestPoint() && ringedMark()) {\n <circle\n #ring\n class=\"nearest-ring\" />\n }\n\n @for (pinned of pinnedPoints(); track pinned.index) {\n <svg:g\n dsChartPinMarker\n [attr.transform]=\"\n 'translate(' +\n pinned.value.cx +\n ',' +\n (pinned.value.cy - pinLift) +\n ')'\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 @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</ng-template>\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;AAgB3C;;AAEgB;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,CA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