@ojiepermana/angular 22.1.14 → 22.2.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +8 -6
- package/SUPPORT.md +3 -3
- package/chart/README.md +1 -1
- package/component/README.md +2 -2
- package/component/calendar/README.md +3 -15
- package/component/drawer/README.md +1 -2
- package/fesm2022/ojiepermana-angular-chart-area.mjs +352 -137
- package/fesm2022/ojiepermana-angular-chart-bar.mjs +744 -524
- package/fesm2022/ojiepermana-angular-chart-core.mjs +1140 -1344
- package/fesm2022/ojiepermana-angular-chart-line.mjs +393 -147
- package/fesm2022/ojiepermana-angular-chart-pie.mjs +408 -179
- package/fesm2022/ojiepermana-angular-chart-primitives.mjs +1262 -920
- package/fesm2022/ojiepermana-angular-chart-radar.mjs +473 -205
- package/fesm2022/ojiepermana-angular-chart-radial.mjs +425 -182
- package/fesm2022/ojiepermana-angular-chart-scatter.mjs +386 -210
- package/fesm2022/ojiepermana-angular-chart.mjs +3 -19
- package/fesm2022/ojiepermana-angular-component-accordion.mjs +485 -243
- package/fesm2022/ojiepermana-angular-component-alert-dialog.mjs +963 -325
- package/fesm2022/ojiepermana-angular-component-alert.mjs +266 -103
- package/fesm2022/ojiepermana-angular-component-aspect-ratio.mjs +80 -35
- package/fesm2022/ojiepermana-angular-component-avatar.mjs +402 -135
- package/fesm2022/ojiepermana-angular-component-badge.mjs +109 -59
- package/fesm2022/ojiepermana-angular-component-breadcrumb.mjs +410 -142
- package/fesm2022/ojiepermana-angular-component-button-group.mjs +249 -96
- package/fesm2022/ojiepermana-angular-component-button.mjs +153 -75
- package/fesm2022/ojiepermana-angular-component-calendar.mjs +531 -418
- package/fesm2022/ojiepermana-angular-component-card.mjs +457 -171
- package/fesm2022/ojiepermana-angular-component-carousel.mjs +642 -272
- package/fesm2022/ojiepermana-angular-component-checkbox.mjs +312 -108
- package/fesm2022/ojiepermana-angular-component-collapsible.mjs +299 -115
- package/fesm2022/ojiepermana-angular-component-combobox.mjs +396 -183
- package/fesm2022/ojiepermana-angular-component-command.mjs +807 -347
- package/fesm2022/ojiepermana-angular-component-composer.mjs +807 -330
- package/fesm2022/ojiepermana-angular-component-context-menu.mjs +196 -161
- package/fesm2022/ojiepermana-angular-component-date-picker.mjs +650 -338
- package/fesm2022/ojiepermana-angular-component-dialog.mjs +710 -316
- package/fesm2022/ojiepermana-angular-component-drawer.mjs +1 -5
- package/fesm2022/ojiepermana-angular-component-dropdown-menu.mjs +1212 -646
- package/fesm2022/ojiepermana-angular-component-editor.mjs +987 -502
- package/fesm2022/ojiepermana-angular-component-empty.mjs +350 -137
- package/fesm2022/ojiepermana-angular-component-form.mjs +813 -434
- package/fesm2022/ojiepermana-angular-component-hover-card.mjs +486 -277
- package/fesm2022/ojiepermana-angular-component-icon.mjs +241 -140
- package/fesm2022/ojiepermana-angular-component-input-group.mjs +449 -176
- package/fesm2022/ojiepermana-angular-component-input-otp.mjs +891 -488
- package/fesm2022/ojiepermana-angular-component-input.mjs +86 -55
- package/fesm2022/ojiepermana-angular-component-item.mjs +713 -261
- package/fesm2022/ojiepermana-angular-component-kanban.mjs +714 -216
- package/fesm2022/ojiepermana-angular-component-kbd.mjs +124 -52
- package/fesm2022/ojiepermana-angular-component-label.mjs +82 -31
- package/fesm2022/ojiepermana-angular-component-menubar.mjs +479 -329
- package/fesm2022/ojiepermana-angular-component-native-select.mjs +167 -65
- package/fesm2022/ojiepermana-angular-component-navigation-menu.mjs +683 -380
- package/fesm2022/ojiepermana-angular-component-pagination.mjs +277 -94
- package/fesm2022/ojiepermana-angular-component-pillbox.mjs +1283 -607
- package/fesm2022/ojiepermana-angular-component-popover.mjs +291 -204
- package/fesm2022/ojiepermana-angular-component-progress.mjs +176 -53
- package/fesm2022/ojiepermana-angular-component-radio.mjs +449 -142
- package/fesm2022/ojiepermana-angular-component-resizable.mjs +659 -453
- package/fesm2022/ojiepermana-angular-component-scroll-area.mjs +117 -39
- package/fesm2022/ojiepermana-angular-component-segmented-control.mjs +351 -172
- package/fesm2022/ojiepermana-angular-component-select.mjs +475 -345
- package/fesm2022/ojiepermana-angular-component-separator.mjs +102 -35
- package/fesm2022/ojiepermana-angular-component-sheet.mjs +797 -347
- package/fesm2022/ojiepermana-angular-component-skeleton.mjs +62 -29
- package/fesm2022/ojiepermana-angular-component-slider.mjs +592 -376
- package/fesm2022/ojiepermana-angular-component-spinner.mjs +135 -38
- package/fesm2022/ojiepermana-angular-component-switch.mjs +315 -103
- package/fesm2022/ojiepermana-angular-component-table.mjs +440 -153
- package/fesm2022/ojiepermana-angular-component-tabs.mjs +590 -317
- package/fesm2022/ojiepermana-angular-component-textarea.mjs +85 -50
- package/fesm2022/ojiepermana-angular-component-timeline.mjs +609 -231
- package/fesm2022/ojiepermana-angular-component-toast.mjs +229 -243
- package/fesm2022/ojiepermana-angular-component-toggle-group.mjs +573 -288
- package/fesm2022/ojiepermana-angular-component-toggle.mjs +187 -78
- package/fesm2022/ojiepermana-angular-component-tooltip.mjs +798 -517
- package/fesm2022/ojiepermana-angular-component-utils-core.mjs +159 -292
- package/fesm2022/ojiepermana-angular-component-utils-overlay.mjs +46 -58
- package/fesm2022/ojiepermana-angular-component-utils-scale.mjs +76 -38
- package/fesm2022/ojiepermana-angular-component-utils.mjs +2 -8
- package/fesm2022/ojiepermana-angular-component.mjs +0 -10
- package/fesm2022/ojiepermana-angular-navigation-core.mjs +13 -23
- package/fesm2022/ojiepermana-angular-navigation-icon.mjs +35 -24
- package/fesm2022/ojiepermana-angular-navigation-navigation-badge-count.component-DYuysKVf.mjs +129 -0
- package/fesm2022/ojiepermana-angular-navigation-navigation-dockbar-menu.component-COiTaw34.mjs +812 -0
- package/fesm2022/{ojiepermana-angular-navigation-navigation-entry-grid.component-COQ-60DS.mjs → ojiepermana-angular-navigation-navigation-entry-grid.component-YIz0IsIb.mjs} +392 -207
- package/fesm2022/ojiepermana-angular-navigation-navigation-flyout-menu.component-D2vwEwBY.mjs +650 -0
- package/fesm2022/ojiepermana-angular-navigation-navigation-horizontal.component-B5D7yXfb.mjs +662 -0
- package/fesm2022/ojiepermana-angular-navigation-navigation-item.component-CUb68MZH.mjs +1219 -0
- package/fesm2022/ojiepermana-angular-navigation-navigation-list.component-CrK16trj.mjs +327 -0
- package/fesm2022/ojiepermana-angular-navigation-service.mjs +544 -724
- package/fesm2022/ojiepermana-angular-navigation-types.mjs +139 -56
- package/fesm2022/ojiepermana-angular-navigation.mjs +3256 -4
- package/fesm2022/ojiepermana-angular-sdk.mjs +91 -201
- package/fesm2022/ojiepermana-angular-theme-component-settings.mjs +1125 -737
- package/fesm2022/ojiepermana-angular-theme-layout-services.mjs +245 -328
- package/fesm2022/ojiepermana-angular-theme-layout-types.mjs +35 -38
- package/fesm2022/ojiepermana-angular-theme-layout-wrapper.mjs +1928 -553
- package/fesm2022/ojiepermana-angular-theme-layout.mjs +847 -496
- package/fesm2022/ojiepermana-angular-theme-page-core.mjs +288 -358
- package/fesm2022/ojiepermana-angular-theme-page-filter.mjs +362 -224
- package/fesm2022/ojiepermana-angular-theme-page-overview.mjs +88 -0
- package/fesm2022/ojiepermana-angular-theme-page-root.mjs +576 -254
- package/fesm2022/ojiepermana-angular-theme-page-side.mjs +317 -177
- package/fesm2022/ojiepermana-angular-theme-page-slots.mjs +256 -112
- package/fesm2022/ojiepermana-angular-theme-page.mjs +7 -12
- package/fesm2022/ojiepermana-angular-theme-shell-services.mjs +215 -326
- package/fesm2022/ojiepermana-angular-theme-shell-types.mjs +68 -129
- package/fesm2022/ojiepermana-angular-theme-shell.mjs +907 -378
- package/fesm2022/ojiepermana-angular-theme-styles.mjs +521 -720
- package/fesm2022/ojiepermana-angular-theme.mjs +0 -10
- package/fesm2022/ojiepermana-angular.mjs +5 -24
- package/navigation/README.md +69 -18
- package/package.json +16 -12
- package/sdk/README.md +1 -1
- package/sdk/src/writer/index.js +2 -2
- package/theme/README.md +1 -1
- package/theme/layout/README.md +2 -4
- package/theme/page/README.md +50 -0
- package/theme/styles/README.md +10 -10
- package/theme/styles/css/base/prefers-dark.css +1 -1
- package/theme/styles/css/base/status.css +1 -1
- package/theme/styles/css/color/amber.css +1 -1
- package/theme/styles/css/color/blue.css +1 -1
- package/theme/styles/css/color/cyan.css +1 -1
- package/theme/styles/css/color/emerald.css +1 -1
- package/theme/styles/css/color/fuchsia.css +1 -1
- package/theme/styles/css/color/green.css +1 -1
- package/theme/styles/css/color/indigo.css +1 -1
- package/theme/styles/css/color/lime.css +1 -1
- package/theme/styles/css/color/orange.css +1 -1
- package/theme/styles/css/color/pink.css +1 -1
- package/theme/styles/css/color/purple.css +1 -1
- package/theme/styles/css/color/red.css +1 -1
- package/theme/styles/css/color/rose.css +1 -1
- package/theme/styles/css/color/sky.css +1 -1
- package/theme/styles/css/color/teal.css +1 -1
- package/theme/styles/css/color/violet.css +1 -1
- package/theme/styles/css/color/yellow.css +1 -1
- package/theme/styles/css/neutral/gray.css +1 -1
- package/theme/styles/css/neutral/mauve.css +1 -1
- package/theme/styles/css/neutral/mist.css +1 -1
- package/theme/styles/css/neutral/neutral.css +1 -1
- package/theme/styles/css/neutral/olive.css +1 -1
- package/theme/styles/css/neutral/slate.css +1 -1
- package/theme/styles/css/neutral/stone.css +1 -1
- package/theme/styles/css/neutral/taupe.css +1 -1
- package/theme/styles/css/neutral/zinc.css +1 -1
- package/types/ojiepermana-angular-chart-area.d.ts +126 -63
- package/types/ojiepermana-angular-chart-bar.d.ts +244 -154
- package/types/ojiepermana-angular-chart-core.d.ts +409 -398
- package/types/ojiepermana-angular-chart-line.d.ts +141 -68
- package/types/ojiepermana-angular-chart-pie.d.ts +192 -121
- package/types/ojiepermana-angular-chart-primitives.d.ts +283 -214
- package/types/ojiepermana-angular-chart-radar.d.ts +189 -108
- package/types/ojiepermana-angular-chart-radial.d.ts +177 -106
- package/types/ojiepermana-angular-chart-scatter.d.ts +166 -110
- package/types/ojiepermana-angular-chart.d.ts +3 -2
- package/types/ojiepermana-angular-component-accordion.d.ts +135 -81
- package/types/ojiepermana-angular-component-alert-dialog.d.ts +271 -123
- package/types/ojiepermana-angular-component-alert.d.ts +69 -39
- package/types/ojiepermana-angular-component-aspect-ratio.d.ts +20 -12
- package/types/ojiepermana-angular-component-avatar.d.ts +103 -49
- package/types/ojiepermana-angular-component-badge.d.ts +36 -24
- package/types/ojiepermana-angular-component-breadcrumb.d.ts +79 -40
- package/types/ojiepermana-angular-component-button-group.d.ts +48 -24
- package/types/ojiepermana-angular-component-button.d.ts +44 -27
- package/types/ojiepermana-angular-component-calendar.d.ts +145 -107
- package/types/ojiepermana-angular-component-card.d.ts +112 -63
- package/types/ojiepermana-angular-component-carousel.d.ts +150 -81
- package/types/ojiepermana-angular-component-checkbox.d.ts +96 -38
- package/types/ojiepermana-angular-component-collapsible.d.ts +65 -39
- package/types/ojiepermana-angular-component-combobox.d.ts +100 -55
- package/types/ojiepermana-angular-component-command.d.ts +206 -121
- package/types/ojiepermana-angular-component-composer.d.ts +184 -84
- package/types/ojiepermana-angular-component-context-menu.d.ts +51 -41
- package/types/ojiepermana-angular-component-date-picker.d.ts +199 -109
- package/types/ojiepermana-angular-component-dialog.d.ts +200 -105
- package/types/ojiepermana-angular-component-drawer.d.ts +2 -1
- package/types/ojiepermana-angular-component-dropdown-menu.d.ts +324 -202
- package/types/ojiepermana-angular-component-editor.d.ts +215 -117
- package/types/ojiepermana-angular-component-empty.d.ts +80 -45
- package/types/ojiepermana-angular-component-form.d.ts +185 -121
- package/types/ojiepermana-angular-component-hover-card.d.ts +130 -72
- package/types/ojiepermana-angular-component-icon.d.ts +87 -57
- package/types/ojiepermana-angular-component-input-group.d.ts +93 -46
- package/types/ojiepermana-angular-component-input-otp.d.ts +243 -150
- package/types/ojiepermana-angular-component-input.d.ts +27 -17
- package/types/ojiepermana-angular-component-item.d.ts +160 -84
- package/types/ojiepermana-angular-component-kanban.d.ts +157 -62
- package/types/ojiepermana-angular-component-kbd.d.ts +24 -15
- package/types/ojiepermana-angular-component-label.d.ts +19 -11
- package/types/ojiepermana-angular-component-menubar.d.ts +120 -90
- package/types/ojiepermana-angular-component-native-select.d.ts +37 -24
- package/types/ojiepermana-angular-component-navigation-menu.d.ts +157 -98
- package/types/ojiepermana-angular-component-pagination.d.ts +78 -28
- package/types/ojiepermana-angular-component-pillbox.d.ts +361 -204
- package/types/ojiepermana-angular-component-popover.d.ts +94 -64
- package/types/ojiepermana-angular-component-progress.d.ts +45 -17
- package/types/ojiepermana-angular-component-radio.d.ts +129 -53
- package/types/ojiepermana-angular-component-resizable.d.ts +160 -112
- package/types/ojiepermana-angular-component-scroll-area.d.ts +33 -15
- package/types/ojiepermana-angular-component-segmented-control.d.ts +94 -50
- package/types/ojiepermana-angular-component-select.d.ts +94 -77
- package/types/ojiepermana-angular-component-separator.d.ts +26 -14
- package/types/ojiepermana-angular-component-sheet.d.ts +226 -116
- package/types/ojiepermana-angular-component-skeleton.d.ts +13 -10
- package/types/ojiepermana-angular-component-slider.d.ts +140 -75
- package/types/ojiepermana-angular-component-spinner.d.ts +31 -13
- package/types/ojiepermana-angular-component-switch.d.ts +97 -40
- package/types/ojiepermana-angular-component-table.d.ts +102 -50
- package/types/ojiepermana-angular-component-tabs.d.ts +174 -115
- package/types/ojiepermana-angular-component-textarea.d.ts +27 -17
- package/types/ojiepermana-angular-component-timeline.d.ts +141 -59
- package/types/ojiepermana-angular-component-toast.d.ts +51 -55
- package/types/ojiepermana-angular-component-toggle-group.d.ts +159 -88
- package/types/ojiepermana-angular-component-toggle.d.ts +47 -25
- package/types/ojiepermana-angular-component-tooltip.d.ts +222 -132
- package/types/ojiepermana-angular-component-utils-core.d.ts +81 -90
- package/types/ojiepermana-angular-component-utils-overlay.d.ts +7 -11
- package/types/ojiepermana-angular-component-utils-scale.d.ts +20 -12
- package/types/ojiepermana-angular-component-utils.d.ts +2 -2
- package/types/ojiepermana-angular-component.d.ts +1 -2
- package/types/ojiepermana-angular-navigation-core.d.ts +46 -50
- package/types/ojiepermana-angular-navigation-icon.d.ts +9 -12
- package/types/ojiepermana-angular-navigation-service.d.ts +112 -115
- package/types/ojiepermana-angular-navigation-types.d.ts +166 -125
- package/types/ojiepermana-angular-navigation.d.ts +708 -375
- package/types/ojiepermana-angular-sdk.d.ts +69 -71
- package/types/ojiepermana-angular-theme-component-settings.d.ts +120 -86
- package/types/ojiepermana-angular-theme-layout-services.d.ts +119 -124
- package/types/ojiepermana-angular-theme-layout-types.d.ts +27 -31
- package/types/ojiepermana-angular-theme-layout-wrapper.d.ts +446 -187
- package/types/ojiepermana-angular-theme-layout.d.ts +201 -113
- package/types/ojiepermana-angular-theme-page-core.d.ts +136 -142
- package/types/ojiepermana-angular-theme-page-filter.d.ts +112 -62
- package/types/ojiepermana-angular-theme-page-overview.d.ts +28 -0
- package/types/ojiepermana-angular-theme-page-root.d.ts +172 -88
- package/types/ojiepermana-angular-theme-page-side.d.ts +89 -49
- package/types/ojiepermana-angular-theme-page-slots.d.ts +58 -37
- package/types/ojiepermana-angular-theme-page.d.ts +7 -5
- package/types/ojiepermana-angular-theme-shell-services.d.ts +119 -125
- package/types/ojiepermana-angular-theme-shell-types.d.ts +38 -41
- package/types/ojiepermana-angular-theme-shell.d.ts +139 -61
- package/types/ojiepermana-angular-theme-styles.d.ts +184 -196
- package/types/ojiepermana-angular-theme.d.ts +1 -2
- package/types/ojiepermana-angular.d.ts +5 -5
- package/fesm2022/ojiepermana-angular-navigation-navigation-badge-count.component-Be3IqzG4.mjs +0 -91
- package/fesm2022/ojiepermana-angular-navigation-navigation-dockbar-menu.component-Bc7DWK3R.mjs +0 -522
- package/fesm2022/ojiepermana-angular-navigation-navigation-flyout-menu.component-DA8VPEn7.mjs +0 -404
- package/fesm2022/ojiepermana-angular-navigation-navigation-horizontal.component-U2TJTzlW.mjs +0 -466
- package/fesm2022/ojiepermana-angular-navigation-ojiepermana-angular-navigation-CIUhmytH.mjs +0 -2668
|
@@ -1,39 +1,65 @@
|
|
|
1
|
-
import * as i0 from
|
|
2
|
-
import {
|
|
3
|
-
import { CartesianContext,
|
|
4
|
-
import { DOCUMENT,
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
import { Component, DestroyRef, Directive, ElementRef, NgZone, PLATFORM_ID, TemplateRef, afterNextRender, afterRenderEffect, computed, contentChild, inject, input, signal, viewChild } from "@angular/core";
|
|
3
|
+
import { CartesianContext, CategoricalViewportContext, ChartContext, ScatterViewportContext, bandTicks, effectiveIndexRange, indexRangeSize, linearTicks, nearestCategoryIndex, normalizeIndexRange, normalizeNumericDomain, panIndexRange, panNumericDomain, seriesColorVar, zoomIndexRange, zoomNumericDomain } from "@ojiepermana/angular/chart/core";
|
|
4
|
+
import { DOCUMENT, NgComponentOutlet, NgTemplateOutlet, isPlatformBrowser } from "@angular/common";
|
|
5
|
+
var ChartAxisX = class ChartAxisX {
|
|
6
|
+
ctx = inject(CartesianContext);
|
|
7
|
+
tickCount = input(5, ...ngDevMode ? [{ debugName: "tickCount" }] : /* istanbul ignore next */ []);
|
|
8
|
+
tickLine = input(true, ...ngDevMode ? [{ debugName: "tickLine" }] : /* istanbul ignore next */ []);
|
|
9
|
+
tickFormat = input((v) => String(v), ...ngDevMode ? [{ debugName: "tickFormat" }] : /* istanbul ignore next */ []);
|
|
10
|
+
innerWidth = this.ctx.innerWidth;
|
|
11
|
+
transform = computed(() => `translate(0,${this.ctx.innerHeight()})`, ...ngDevMode ? [{ debugName: "transform" }] : /* istanbul ignore next */ []);
|
|
12
|
+
ticks = computed(() => {
|
|
13
|
+
if (this.ctx.orientation() === "horizontal") {
|
|
14
|
+
const scale = this.ctx.valueScale();
|
|
15
|
+
return scale ? linearTicks(scale, this.tickCount(), this.tickFormat()) : [];
|
|
16
|
+
}
|
|
17
|
+
const scale = this.ctx.categoryScale();
|
|
18
|
+
return scale ? bandTicks(scale) : [];
|
|
19
|
+
}, ...ngDevMode ? [{ debugName: "ticks" }] : /* istanbul ignore next */ []);
|
|
20
|
+
static ɵfac = i0.ɵɵngDeclareFactory({
|
|
21
|
+
minVersion: "12.0.0",
|
|
22
|
+
version: "22.2.2",
|
|
23
|
+
ngImport: i0,
|
|
24
|
+
type: ChartAxisX,
|
|
25
|
+
deps: [],
|
|
26
|
+
target: i0.ɵɵFactoryTarget.Component
|
|
27
|
+
});
|
|
28
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({
|
|
29
|
+
minVersion: "17.0.0",
|
|
30
|
+
version: "22.2.2",
|
|
31
|
+
type: ChartAxisX,
|
|
32
|
+
isStandalone: true,
|
|
33
|
+
selector: "svg:g[ChartAxisX]",
|
|
34
|
+
inputs: {
|
|
35
|
+
tickCount: {
|
|
36
|
+
classPropertyName: "tickCount",
|
|
37
|
+
publicName: "tickCount",
|
|
38
|
+
isSignal: true,
|
|
39
|
+
isRequired: false,
|
|
40
|
+
transformFunction: null
|
|
41
|
+
},
|
|
42
|
+
tickLine: {
|
|
43
|
+
classPropertyName: "tickLine",
|
|
44
|
+
publicName: "tickLine",
|
|
45
|
+
isSignal: true,
|
|
46
|
+
isRequired: false,
|
|
47
|
+
transformFunction: null
|
|
48
|
+
},
|
|
49
|
+
tickFormat: {
|
|
50
|
+
classPropertyName: "tickFormat",
|
|
51
|
+
publicName: "tickFormat",
|
|
52
|
+
isSignal: true,
|
|
53
|
+
isRequired: false,
|
|
54
|
+
transformFunction: null
|
|
55
|
+
}
|
|
56
|
+
},
|
|
57
|
+
host: {
|
|
58
|
+
properties: { "attr.transform": "transform()" },
|
|
59
|
+
classAttribute: "chart-axis chart-axis-x text-muted-foreground"
|
|
60
|
+
},
|
|
61
|
+
ngImport: i0,
|
|
62
|
+
template: `
|
|
37
63
|
<svg:line class="stroke-border" [attr.x1]="0" [attr.x2]="innerWidth()" y1="0" y2="0" />
|
|
38
64
|
@for (t of ticks(); track t.value) {
|
|
39
65
|
<svg:g [attr.transform]="'translate(' + t.offset + ',0)'">
|
|
@@ -50,17 +76,24 @@ class ChartAxisX {
|
|
|
50
76
|
</svg:text>
|
|
51
77
|
</svg:g>
|
|
52
78
|
}
|
|
53
|
-
`,
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
79
|
+
`,
|
|
80
|
+
isInline: true
|
|
81
|
+
});
|
|
82
|
+
};
|
|
83
|
+
i0.ɵɵngDeclareClassMetadata({
|
|
84
|
+
minVersion: "12.0.0",
|
|
85
|
+
version: "22.2.2",
|
|
86
|
+
ngImport: i0,
|
|
87
|
+
type: ChartAxisX,
|
|
88
|
+
decorators: [{
|
|
89
|
+
type: Component,
|
|
90
|
+
args: [{
|
|
91
|
+
selector: "svg:g[ChartAxisX]",
|
|
92
|
+
host: {
|
|
93
|
+
class: "chart-axis chart-axis-x text-muted-foreground",
|
|
94
|
+
"[attr.transform]": "transform()"
|
|
95
|
+
},
|
|
96
|
+
template: `
|
|
64
97
|
<svg:line class="stroke-border" [attr.x1]="0" [attr.x2]="innerWidth()" y1="0" y2="0" />
|
|
65
98
|
@for (t of ticks(); track t.value) {
|
|
66
99
|
<svg:g [attr.transform]="'translate(' + t.offset + ',0)'">
|
|
@@ -77,36 +110,90 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.6", ngImpor
|
|
|
77
110
|
</svg:text>
|
|
78
111
|
</svg:g>
|
|
79
112
|
}
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
113
|
+
`
|
|
114
|
+
}]
|
|
115
|
+
}],
|
|
116
|
+
propDecorators: {
|
|
117
|
+
tickCount: [{
|
|
118
|
+
type: i0.Input,
|
|
119
|
+
args: [{
|
|
120
|
+
isSignal: true,
|
|
121
|
+
alias: "tickCount",
|
|
122
|
+
required: false
|
|
123
|
+
}]
|
|
124
|
+
}],
|
|
125
|
+
tickLine: [{
|
|
126
|
+
type: i0.Input,
|
|
127
|
+
args: [{
|
|
128
|
+
isSignal: true,
|
|
129
|
+
alias: "tickLine",
|
|
130
|
+
required: false
|
|
131
|
+
}]
|
|
132
|
+
}],
|
|
133
|
+
tickFormat: [{
|
|
134
|
+
type: i0.Input,
|
|
135
|
+
args: [{
|
|
136
|
+
isSignal: true,
|
|
137
|
+
alias: "tickFormat",
|
|
138
|
+
required: false
|
|
139
|
+
}]
|
|
140
|
+
}]
|
|
141
|
+
}
|
|
142
|
+
});
|
|
143
|
+
var ChartAxisY = class ChartAxisY {
|
|
144
|
+
ctx = inject(CartesianContext);
|
|
145
|
+
tickCount = input(5, ...ngDevMode ? [{ debugName: "tickCount" }] : /* istanbul ignore next */ []);
|
|
146
|
+
tickLine = input(true, ...ngDevMode ? [{ debugName: "tickLine" }] : /* istanbul ignore next */ []);
|
|
147
|
+
tickFormat = input((v) => String(v), ...ngDevMode ? [{ debugName: "tickFormat" }] : /* istanbul ignore next */ []);
|
|
148
|
+
innerHeight = this.ctx.innerHeight;
|
|
149
|
+
ticks = computed(() => {
|
|
150
|
+
if (this.ctx.orientation() === "horizontal") {
|
|
151
|
+
const scale = this.ctx.categoryScale();
|
|
152
|
+
return scale ? bandTicks(scale) : [];
|
|
153
|
+
}
|
|
154
|
+
const scale = this.ctx.valueScale();
|
|
155
|
+
return scale ? linearTicks(scale, this.tickCount(), this.tickFormat()) : [];
|
|
156
|
+
}, ...ngDevMode ? [{ debugName: "ticks" }] : /* istanbul ignore next */ []);
|
|
157
|
+
static ɵfac = i0.ɵɵngDeclareFactory({
|
|
158
|
+
minVersion: "12.0.0",
|
|
159
|
+
version: "22.2.2",
|
|
160
|
+
ngImport: i0,
|
|
161
|
+
type: ChartAxisY,
|
|
162
|
+
deps: [],
|
|
163
|
+
target: i0.ɵɵFactoryTarget.Component
|
|
164
|
+
});
|
|
165
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({
|
|
166
|
+
minVersion: "17.0.0",
|
|
167
|
+
version: "22.2.2",
|
|
168
|
+
type: ChartAxisY,
|
|
169
|
+
isStandalone: true,
|
|
170
|
+
selector: "svg:g[ChartAxisY]",
|
|
171
|
+
inputs: {
|
|
172
|
+
tickCount: {
|
|
173
|
+
classPropertyName: "tickCount",
|
|
174
|
+
publicName: "tickCount",
|
|
175
|
+
isSignal: true,
|
|
176
|
+
isRequired: false,
|
|
177
|
+
transformFunction: null
|
|
178
|
+
},
|
|
179
|
+
tickLine: {
|
|
180
|
+
classPropertyName: "tickLine",
|
|
181
|
+
publicName: "tickLine",
|
|
182
|
+
isSignal: true,
|
|
183
|
+
isRequired: false,
|
|
184
|
+
transformFunction: null
|
|
185
|
+
},
|
|
186
|
+
tickFormat: {
|
|
187
|
+
classPropertyName: "tickFormat",
|
|
188
|
+
publicName: "tickFormat",
|
|
189
|
+
isSignal: true,
|
|
190
|
+
isRequired: false,
|
|
191
|
+
transformFunction: null
|
|
192
|
+
}
|
|
193
|
+
},
|
|
194
|
+
host: { classAttribute: "chart-axis chart-axis-y text-muted-foreground" },
|
|
195
|
+
ngImport: i0,
|
|
196
|
+
template: `
|
|
110
197
|
<svg:line class="stroke-border" x1="0" x2="0" [attr.y1]="0" [attr.y2]="innerHeight()" />
|
|
111
198
|
@for (t of ticks(); track t.value) {
|
|
112
199
|
<svg:g [attr.transform]="'translate(0,' + t.offset + ')'">
|
|
@@ -124,16 +211,21 @@ class ChartAxisY {
|
|
|
124
211
|
</svg:text>
|
|
125
212
|
</svg:g>
|
|
126
213
|
}
|
|
127
|
-
`,
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
214
|
+
`,
|
|
215
|
+
isInline: true
|
|
216
|
+
});
|
|
217
|
+
};
|
|
218
|
+
i0.ɵɵngDeclareClassMetadata({
|
|
219
|
+
minVersion: "12.0.0",
|
|
220
|
+
version: "22.2.2",
|
|
221
|
+
ngImport: i0,
|
|
222
|
+
type: ChartAxisY,
|
|
223
|
+
decorators: [{
|
|
224
|
+
type: Component,
|
|
225
|
+
args: [{
|
|
226
|
+
selector: "svg:g[ChartAxisY]",
|
|
227
|
+
host: { class: "chart-axis chart-axis-y text-muted-foreground" },
|
|
228
|
+
template: `
|
|
137
229
|
<svg:line class="stroke-border" x1="0" x2="0" [attr.y1]="0" [attr.y2]="innerHeight()" />
|
|
138
230
|
@for (t of ticks(); track t.value) {
|
|
139
231
|
<svg:g [attr.transform]="'translate(0,' + t.offset + ')'">
|
|
@@ -151,35 +243,81 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.6", ngImpor
|
|
|
151
243
|
</svg:text>
|
|
152
244
|
</svg:g>
|
|
153
245
|
}
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
246
|
+
`
|
|
247
|
+
}]
|
|
248
|
+
}],
|
|
249
|
+
propDecorators: {
|
|
250
|
+
tickCount: [{
|
|
251
|
+
type: i0.Input,
|
|
252
|
+
args: [{
|
|
253
|
+
isSignal: true,
|
|
254
|
+
alias: "tickCount",
|
|
255
|
+
required: false
|
|
256
|
+
}]
|
|
257
|
+
}],
|
|
258
|
+
tickLine: [{
|
|
259
|
+
type: i0.Input,
|
|
260
|
+
args: [{
|
|
261
|
+
isSignal: true,
|
|
262
|
+
alias: "tickLine",
|
|
263
|
+
required: false
|
|
264
|
+
}]
|
|
265
|
+
}],
|
|
266
|
+
tickFormat: [{
|
|
267
|
+
type: i0.Input,
|
|
268
|
+
args: [{
|
|
269
|
+
isSignal: true,
|
|
270
|
+
alias: "tickFormat",
|
|
271
|
+
required: false
|
|
272
|
+
}]
|
|
273
|
+
}]
|
|
274
|
+
}
|
|
275
|
+
});
|
|
276
|
+
var ChartGrid = class ChartGrid {
|
|
277
|
+
ctx = inject(CartesianContext);
|
|
278
|
+
tickCount = input(5, ...ngDevMode ? [{ debugName: "tickCount" }] : /* istanbul ignore next */ []);
|
|
279
|
+
ticks = computed(() => {
|
|
280
|
+
const scale = this.ctx.valueScale();
|
|
281
|
+
return scale ? linearTicks(scale, this.tickCount()) : [];
|
|
282
|
+
}, ...ngDevMode ? [{ debugName: "ticks" }] : /* istanbul ignore next */ []);
|
|
283
|
+
line = (offset) => {
|
|
284
|
+
if (this.ctx.orientation() === "vertical") return {
|
|
285
|
+
x1: 0,
|
|
286
|
+
x2: this.ctx.innerWidth(),
|
|
287
|
+
y1: offset,
|
|
288
|
+
y2: offset
|
|
289
|
+
};
|
|
290
|
+
return {
|
|
291
|
+
x1: offset,
|
|
292
|
+
x2: offset,
|
|
293
|
+
y1: 0,
|
|
294
|
+
y2: this.ctx.innerHeight()
|
|
295
|
+
};
|
|
296
|
+
};
|
|
297
|
+
static ɵfac = i0.ɵɵngDeclareFactory({
|
|
298
|
+
minVersion: "12.0.0",
|
|
299
|
+
version: "22.2.2",
|
|
300
|
+
ngImport: i0,
|
|
301
|
+
type: ChartGrid,
|
|
302
|
+
deps: [],
|
|
303
|
+
target: i0.ɵɵFactoryTarget.Component
|
|
304
|
+
});
|
|
305
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({
|
|
306
|
+
minVersion: "17.0.0",
|
|
307
|
+
version: "22.2.2",
|
|
308
|
+
type: ChartGrid,
|
|
309
|
+
isStandalone: true,
|
|
310
|
+
selector: "svg:g[ChartGrid]",
|
|
311
|
+
inputs: { tickCount: {
|
|
312
|
+
classPropertyName: "tickCount",
|
|
313
|
+
publicName: "tickCount",
|
|
314
|
+
isSignal: true,
|
|
315
|
+
isRequired: false,
|
|
316
|
+
transformFunction: null
|
|
317
|
+
} },
|
|
318
|
+
host: { classAttribute: "chart-grid text-border" },
|
|
319
|
+
ngImport: i0,
|
|
320
|
+
template: `
|
|
183
321
|
@for (t of ticks(); track t.value) {
|
|
184
322
|
<svg:line
|
|
185
323
|
class="stroke-border"
|
|
@@ -190,16 +328,21 @@ class ChartGrid {
|
|
|
190
328
|
[attr.y2]="line(t.offset).y2"
|
|
191
329
|
/>
|
|
192
330
|
}
|
|
193
|
-
`,
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
331
|
+
`,
|
|
332
|
+
isInline: true
|
|
333
|
+
});
|
|
334
|
+
};
|
|
335
|
+
i0.ɵɵngDeclareClassMetadata({
|
|
336
|
+
minVersion: "12.0.0",
|
|
337
|
+
version: "22.2.2",
|
|
338
|
+
ngImport: i0,
|
|
339
|
+
type: ChartGrid,
|
|
340
|
+
decorators: [{
|
|
341
|
+
type: Component,
|
|
342
|
+
args: [{
|
|
343
|
+
selector: "svg:g[ChartGrid]",
|
|
344
|
+
host: { class: "chart-grid text-border" },
|
|
345
|
+
template: `
|
|
203
346
|
@for (t of ticks(); track t.value) {
|
|
204
347
|
<svg:line
|
|
205
348
|
class="stroke-border"
|
|
@@ -210,37 +353,57 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.6", ngImpor
|
|
|
210
353
|
[attr.y2]="line(t.offset).y2"
|
|
211
354
|
/>
|
|
212
355
|
}
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
356
|
+
`
|
|
357
|
+
}]
|
|
358
|
+
}],
|
|
359
|
+
propDecorators: { tickCount: [{
|
|
360
|
+
type: i0.Input,
|
|
361
|
+
args: [{
|
|
362
|
+
isSignal: true,
|
|
363
|
+
alias: "tickCount",
|
|
364
|
+
required: false
|
|
365
|
+
}]
|
|
366
|
+
}] }
|
|
367
|
+
});
|
|
368
|
+
var ChartCrosshair = class ChartCrosshair {
|
|
369
|
+
root = inject(ChartContext);
|
|
370
|
+
cart = inject(CartesianContext);
|
|
371
|
+
line = computed(() => {
|
|
372
|
+
const active = this.root.activePoint();
|
|
373
|
+
const scale = this.cart.categoryScale();
|
|
374
|
+
const categories = this.cart.categories();
|
|
375
|
+
if (!active || !scale || active.index < 0 || active.index >= categories.length) return null;
|
|
376
|
+
const pos = (scale(categories[active.index]) ?? 0) + scale.bandwidth() / 2;
|
|
377
|
+
if (this.cart.orientation() === "vertical") return {
|
|
378
|
+
x1: pos,
|
|
379
|
+
x2: pos,
|
|
380
|
+
y1: 0,
|
|
381
|
+
y2: this.cart.innerHeight()
|
|
382
|
+
};
|
|
383
|
+
return {
|
|
384
|
+
x1: 0,
|
|
385
|
+
x2: this.cart.innerWidth(),
|
|
386
|
+
y1: pos,
|
|
387
|
+
y2: pos
|
|
388
|
+
};
|
|
389
|
+
}, ...ngDevMode ? [{ debugName: "line" }] : /* istanbul ignore next */ []);
|
|
390
|
+
static ɵfac = i0.ɵɵngDeclareFactory({
|
|
391
|
+
minVersion: "12.0.0",
|
|
392
|
+
version: "22.2.2",
|
|
393
|
+
ngImport: i0,
|
|
394
|
+
type: ChartCrosshair,
|
|
395
|
+
deps: [],
|
|
396
|
+
target: i0.ɵɵFactoryTarget.Component
|
|
397
|
+
});
|
|
398
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({
|
|
399
|
+
minVersion: "17.0.0",
|
|
400
|
+
version: "22.2.2",
|
|
401
|
+
type: ChartCrosshair,
|
|
402
|
+
isStandalone: true,
|
|
403
|
+
selector: "svg:g[ChartCrosshair]",
|
|
404
|
+
host: { classAttribute: "chart-crosshair" },
|
|
405
|
+
ngImport: i0,
|
|
406
|
+
template: `
|
|
244
407
|
@if (line(); as l) {
|
|
245
408
|
<svg:line
|
|
246
409
|
class="stroke-border"
|
|
@@ -251,14 +414,21 @@ class ChartCrosshair {
|
|
|
251
414
|
[attr.y2]="l.y2"
|
|
252
415
|
/>
|
|
253
416
|
}
|
|
254
|
-
`,
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
417
|
+
`,
|
|
418
|
+
isInline: true
|
|
419
|
+
});
|
|
420
|
+
};
|
|
421
|
+
i0.ɵɵngDeclareClassMetadata({
|
|
422
|
+
minVersion: "12.0.0",
|
|
423
|
+
version: "22.2.2",
|
|
424
|
+
ngImport: i0,
|
|
425
|
+
type: ChartCrosshair,
|
|
426
|
+
decorators: [{
|
|
427
|
+
type: Component,
|
|
428
|
+
args: [{
|
|
429
|
+
selector: "svg:g[ChartCrosshair]",
|
|
430
|
+
host: { class: "chart-crosshair" },
|
|
431
|
+
template: `
|
|
262
432
|
@if (line(); as l) {
|
|
263
433
|
<svg:line
|
|
264
434
|
class="stroke-border"
|
|
@@ -269,352 +439,311 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.6", ngImpor
|
|
|
269
439
|
[attr.y2]="l.y2"
|
|
270
440
|
/>
|
|
271
441
|
}
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
442
|
+
`
|
|
443
|
+
}]
|
|
444
|
+
}]
|
|
445
|
+
});
|
|
276
446
|
function clamp(value, min, max) {
|
|
277
|
-
|
|
447
|
+
return Math.min(max, Math.max(min, value));
|
|
278
448
|
}
|
|
279
449
|
function sameDomain(a, b) {
|
|
280
|
-
|
|
450
|
+
return Math.abs(a[0] - b[0]) < 1e-9 && Math.abs(a[1] - b[1]) < 1e-9;
|
|
281
451
|
}
|
|
282
|
-
class ChartBrush {
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
|
|
451
|
-
|
|
452
|
-
|
|
453
|
-
|
|
454
|
-
|
|
455
|
-
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
|
|
465
|
-
|
|
466
|
-
|
|
467
|
-
|
|
468
|
-
|
|
469
|
-
|
|
470
|
-
|
|
471
|
-
|
|
472
|
-
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
|
|
476
|
-
|
|
477
|
-
|
|
478
|
-
|
|
479
|
-
|
|
480
|
-
|
|
481
|
-
|
|
482
|
-
|
|
483
|
-
|
|
484
|
-
|
|
485
|
-
|
|
486
|
-
|
|
487
|
-
|
|
488
|
-
|
|
489
|
-
|
|
490
|
-
|
|
491
|
-
|
|
492
|
-
|
|
493
|
-
|
|
494
|
-
|
|
495
|
-
|
|
496
|
-
|
|
497
|
-
|
|
498
|
-
|
|
499
|
-
|
|
500
|
-
|
|
501
|
-
|
|
502
|
-
|
|
503
|
-
|
|
504
|
-
|
|
505
|
-
|
|
506
|
-
|
|
507
|
-
|
|
508
|
-
|
|
509
|
-
|
|
510
|
-
|
|
511
|
-
|
|
512
|
-
|
|
513
|
-
|
|
514
|
-
|
|
515
|
-
|
|
516
|
-
|
|
517
|
-
|
|
518
|
-
|
|
519
|
-
|
|
520
|
-
|
|
521
|
-
|
|
522
|
-
|
|
523
|
-
|
|
524
|
-
|
|
525
|
-
|
|
526
|
-
|
|
527
|
-
|
|
528
|
-
|
|
529
|
-
|
|
530
|
-
|
|
531
|
-
|
|
532
|
-
|
|
533
|
-
|
|
534
|
-
|
|
535
|
-
|
|
536
|
-
|
|
537
|
-
|
|
538
|
-
|
|
539
|
-
|
|
540
|
-
|
|
541
|
-
|
|
542
|
-
|
|
543
|
-
|
|
544
|
-
|
|
545
|
-
|
|
546
|
-
|
|
547
|
-
|
|
548
|
-
|
|
549
|
-
|
|
550
|
-
|
|
551
|
-
|
|
552
|
-
|
|
553
|
-
|
|
554
|
-
|
|
555
|
-
|
|
556
|
-
|
|
557
|
-
|
|
558
|
-
|
|
559
|
-
|
|
560
|
-
|
|
561
|
-
|
|
562
|
-
|
|
563
|
-
|
|
564
|
-
|
|
565
|
-
|
|
566
|
-
|
|
567
|
-
|
|
568
|
-
|
|
569
|
-
|
|
570
|
-
|
|
571
|
-
|
|
572
|
-
|
|
573
|
-
|
|
574
|
-
|
|
575
|
-
|
|
576
|
-
|
|
577
|
-
this.activePointerId.set(null);
|
|
578
|
-
}
|
|
579
|
-
onScatterPointerDown(event, local) {
|
|
580
|
-
const fullX = this.scatter?.fullXDomain();
|
|
581
|
-
const fullY = this.scatter?.fullYDomain();
|
|
582
|
-
if (!this.scatter || !fullX || !fullY) {
|
|
583
|
-
return;
|
|
584
|
-
}
|
|
585
|
-
if (event.pointerType === 'touch' && this.scatter.hasZoom()) {
|
|
586
|
-
this.mode.set('scatter-pan');
|
|
587
|
-
this.scatterPan.set({
|
|
588
|
-
start: local,
|
|
589
|
-
xDomain: this.scatter.zoomXDomain() ?? fullX,
|
|
590
|
-
yDomain: this.scatter.zoomYDomain() ?? fullY,
|
|
591
|
-
});
|
|
592
|
-
return;
|
|
593
|
-
}
|
|
594
|
-
this.mode.set('scatter-brush');
|
|
595
|
-
this.scatterBrush.set({ start: local, current: local });
|
|
596
|
-
}
|
|
597
|
-
localPoint(event) {
|
|
598
|
-
const hitbox = this.hitbox()?.nativeElement;
|
|
599
|
-
const width = this.width();
|
|
600
|
-
const height = this.height();
|
|
601
|
-
if (!hitbox || width <= 0 || height <= 0) {
|
|
602
|
-
return null;
|
|
603
|
-
}
|
|
604
|
-
const rect = hitbox.getBoundingClientRect();
|
|
605
|
-
if (rect.width <= 0 || rect.height <= 0) {
|
|
606
|
-
return null;
|
|
607
|
-
}
|
|
608
|
-
return {
|
|
609
|
-
x: clamp(((event.clientX - rect.left) / rect.width) * width, 0, width),
|
|
610
|
-
y: clamp(((event.clientY - rect.top) / rect.height) * height, 0, height),
|
|
611
|
-
};
|
|
612
|
-
}
|
|
613
|
-
pointerAxis(local) {
|
|
614
|
-
return this.cart?.orientation() === 'horizontal' ? local.y : local.x;
|
|
615
|
-
}
|
|
616
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.6", ngImport: i0, type: ChartBrush, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
617
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.1.6", type: ChartBrush, isStandalone: true, selector: "svg:g[ChartBrush]", host: { classAttribute: "chart-brush" }, viewQueries: [{ propertyName: "hitbox", first: true, predicate: ["hitbox"], descendants: true, isSignal: true }], ngImport: i0, template: `
|
|
452
|
+
var ChartBrush = class ChartBrush {
|
|
453
|
+
hitbox = viewChild.required("hitbox", ...ngDevMode ? [{ debugName: "hitbox" }] : /* istanbul ignore next */ []);
|
|
454
|
+
cart = inject(CartesianContext, { optional: true });
|
|
455
|
+
categorical = inject(CategoricalViewportContext, { optional: true });
|
|
456
|
+
scatter = inject(ScatterViewportContext, { optional: true });
|
|
457
|
+
document = inject(DOCUMENT);
|
|
458
|
+
detachDragListeners = null;
|
|
459
|
+
constructor() {
|
|
460
|
+
inject(DestroyRef).onDestroy(() => this.detachDragListeners?.());
|
|
461
|
+
}
|
|
462
|
+
mode = signal(null, ...ngDevMode ? [{ debugName: "mode" }] : /* istanbul ignore next */ []);
|
|
463
|
+
activePointerId = signal(null, ...ngDevMode ? [{ debugName: "activePointerId" }] : /* istanbul ignore next */ []);
|
|
464
|
+
categoryStartIndex = signal(null, ...ngDevMode ? [{ debugName: "categoryStartIndex" }] : /* istanbul ignore next */ []);
|
|
465
|
+
categoryPanStart = signal(null, ...ngDevMode ? [{ debugName: "categoryPanStart" }] : /* istanbul ignore next */ []);
|
|
466
|
+
scatterBrush = signal(null, ...ngDevMode ? [{ debugName: "scatterBrush" }] : /* istanbul ignore next */ []);
|
|
467
|
+
scatterPan = signal(null, ...ngDevMode ? [{ debugName: "scatterPan" }] : /* istanbul ignore next */ []);
|
|
468
|
+
width = computed(() => this.scatter?.innerWidth() ?? this.cart?.innerWidth() ?? 0, ...ngDevMode ? [{ debugName: "width" }] : /* istanbul ignore next */ []);
|
|
469
|
+
height = computed(() => this.scatter?.innerHeight() ?? this.cart?.innerHeight() ?? 0, ...ngDevMode ? [{ debugName: "height" }] : /* istanbul ignore next */ []);
|
|
470
|
+
categoryPreview = computed(() => {
|
|
471
|
+
const cart = this.cart;
|
|
472
|
+
const viewport = this.categorical;
|
|
473
|
+
const range = viewport?.brushRange();
|
|
474
|
+
const scale = cart?.categoryScale();
|
|
475
|
+
const categories = cart?.categories() ?? [];
|
|
476
|
+
if (!cart || !viewport || !range || !scale || categories.length === 0) return null;
|
|
477
|
+
const visibleStart = viewport.zoomRange()?.startIndex ?? 0;
|
|
478
|
+
const startVisible = range.startIndex - visibleStart;
|
|
479
|
+
const endVisible = range.endIndex - visibleStart;
|
|
480
|
+
if (startVisible < 0 || endVisible >= categories.length) return null;
|
|
481
|
+
const first = scale(categories[startVisible]) ?? 0;
|
|
482
|
+
const last = (scale(categories[endVisible]) ?? 0) + scale.bandwidth();
|
|
483
|
+
if (cart.orientation() === "vertical") return {
|
|
484
|
+
x: Math.min(first, last),
|
|
485
|
+
y: 0,
|
|
486
|
+
width: Math.abs(last - first),
|
|
487
|
+
height: cart.innerHeight()
|
|
488
|
+
};
|
|
489
|
+
return {
|
|
490
|
+
x: 0,
|
|
491
|
+
y: Math.min(first, last),
|
|
492
|
+
width: cart.innerWidth(),
|
|
493
|
+
height: Math.abs(last - first)
|
|
494
|
+
};
|
|
495
|
+
}, ...ngDevMode ? [{ debugName: "categoryPreview" }] : /* istanbul ignore next */ []);
|
|
496
|
+
scatterPreviewRect = computed(() => {
|
|
497
|
+
const preview = this.scatterBrush();
|
|
498
|
+
if (!preview) return null;
|
|
499
|
+
return {
|
|
500
|
+
x: Math.min(preview.start.x, preview.current.x),
|
|
501
|
+
y: Math.min(preview.start.y, preview.current.y),
|
|
502
|
+
width: Math.abs(preview.current.x - preview.start.x),
|
|
503
|
+
height: Math.abs(preview.current.y - preview.start.y)
|
|
504
|
+
};
|
|
505
|
+
}, ...ngDevMode ? [{ debugName: "scatterPreviewRect" }] : /* istanbul ignore next */ []);
|
|
506
|
+
onPointerDown(event) {
|
|
507
|
+
if (this.activePointerId() != null) return;
|
|
508
|
+
const local = this.localPoint(event);
|
|
509
|
+
if (!local) return;
|
|
510
|
+
if (this.scatter) {
|
|
511
|
+
if (!this.scatter.fullXDomain() || !this.scatter.fullYDomain()) return;
|
|
512
|
+
event.preventDefault();
|
|
513
|
+
this.beginDrag(event);
|
|
514
|
+
this.onScatterPointerDown(event, local);
|
|
515
|
+
return;
|
|
516
|
+
}
|
|
517
|
+
if (!this.cart || !this.categorical) return;
|
|
518
|
+
const index = nearestCategoryIndex({
|
|
519
|
+
categoryScale: this.cart.categoryScale,
|
|
520
|
+
categories: this.cart.categories,
|
|
521
|
+
orientation: this.cart.orientation
|
|
522
|
+
}, local.x, local.y);
|
|
523
|
+
if (index < 0) return;
|
|
524
|
+
event.preventDefault();
|
|
525
|
+
this.beginDrag(event);
|
|
526
|
+
const absoluteIndex = (this.categorical.zoomRange()?.startIndex ?? 0) + index;
|
|
527
|
+
if (event.pointerType === "touch" && this.categorical.hasZoom()) {
|
|
528
|
+
this.mode.set("category-pan");
|
|
529
|
+
this.categoryPanStart.set({
|
|
530
|
+
coord: this.pointerAxis(local),
|
|
531
|
+
range: this.categorical.zoomRange()
|
|
532
|
+
});
|
|
533
|
+
return;
|
|
534
|
+
}
|
|
535
|
+
this.mode.set("category-brush");
|
|
536
|
+
this.categoryStartIndex.set(absoluteIndex);
|
|
537
|
+
this.categorical.brushRange.set({
|
|
538
|
+
startIndex: absoluteIndex,
|
|
539
|
+
endIndex: absoluteIndex
|
|
540
|
+
});
|
|
541
|
+
}
|
|
542
|
+
onPointerMove(event) {
|
|
543
|
+
if (this.activePointerId() !== event.pointerId) return;
|
|
544
|
+
const local = this.localPoint(event);
|
|
545
|
+
if (!local) return;
|
|
546
|
+
if (this.mode() === "category-brush" && this.cart && this.categorical) {
|
|
547
|
+
const startIndex = this.categoryStartIndex();
|
|
548
|
+
if (startIndex == null) return;
|
|
549
|
+
const index = nearestCategoryIndex({
|
|
550
|
+
categoryScale: this.cart.categoryScale,
|
|
551
|
+
categories: this.cart.categories,
|
|
552
|
+
orientation: this.cart.orientation
|
|
553
|
+
}, local.x, local.y);
|
|
554
|
+
if (index < 0) return;
|
|
555
|
+
const visibleStart = this.categorical.zoomRange()?.startIndex ?? 0;
|
|
556
|
+
this.categorical.brushRange.set(normalizeIndexRange(startIndex, visibleStart + index, this.categorical.dataCount()));
|
|
557
|
+
return;
|
|
558
|
+
}
|
|
559
|
+
if (this.mode() === "category-pan" && this.cart && this.categorical) {
|
|
560
|
+
const pan = this.categoryPanStart();
|
|
561
|
+
if (!pan) return;
|
|
562
|
+
const scale = this.cart.categoryScale();
|
|
563
|
+
const step = scale?.step?.() ?? scale?.bandwidth() ?? 0;
|
|
564
|
+
if (step <= 0) return;
|
|
565
|
+
const deltaSteps = Math.round((pan.coord - this.pointerAxis(local)) / step);
|
|
566
|
+
this.categorical.zoomRange.set(panIndexRange(pan.range, this.categorical.dataCount(), deltaSteps));
|
|
567
|
+
return;
|
|
568
|
+
}
|
|
569
|
+
if (this.mode() === "scatter-brush") {
|
|
570
|
+
const preview = this.scatterBrush();
|
|
571
|
+
if (!preview) return;
|
|
572
|
+
this.scatterBrush.set({
|
|
573
|
+
start: preview.start,
|
|
574
|
+
current: local
|
|
575
|
+
});
|
|
576
|
+
return;
|
|
577
|
+
}
|
|
578
|
+
if (this.mode() === "scatter-pan" && this.scatter) {
|
|
579
|
+
const pan = this.scatterPan();
|
|
580
|
+
const xScale = this.scatter.xScale();
|
|
581
|
+
const yScale = this.scatter.yScale();
|
|
582
|
+
const fullX = this.scatter.fullXDomain();
|
|
583
|
+
const fullY = this.scatter.fullYDomain();
|
|
584
|
+
if (!pan || !xScale || !yScale || !fullX || !fullY) return;
|
|
585
|
+
const deltaX = xScale.invert(pan.start.x) - xScale.invert(local.x);
|
|
586
|
+
const deltaY = yScale.invert(pan.start.y) - yScale.invert(local.y);
|
|
587
|
+
this.scatter.zoomXDomain.set(panNumericDomain(pan.xDomain, fullX, deltaX));
|
|
588
|
+
this.scatter.zoomYDomain.set(panNumericDomain(pan.yDomain, fullY, deltaY));
|
|
589
|
+
}
|
|
590
|
+
}
|
|
591
|
+
onPointerUp(event) {
|
|
592
|
+
if (event && this.activePointerId() !== event.pointerId) return;
|
|
593
|
+
if (this.mode() === "category-brush" && this.categorical) {
|
|
594
|
+
const range = this.categorical.brushRange();
|
|
595
|
+
if (range && indexRangeSize(range, this.categorical.dataCount()) > 1) this.categorical.zoomRange.set(range);
|
|
596
|
+
this.categorical.brushRange.set(null);
|
|
597
|
+
}
|
|
598
|
+
if (this.mode() === "scatter-brush" && this.scatter) {
|
|
599
|
+
const preview = this.scatterBrush();
|
|
600
|
+
const xScale = this.scatter.xScale();
|
|
601
|
+
const yScale = this.scatter.yScale();
|
|
602
|
+
const fullX = this.scatter.fullXDomain();
|
|
603
|
+
const fullY = this.scatter.fullYDomain();
|
|
604
|
+
if (preview && xScale && yScale && fullX && fullY) {
|
|
605
|
+
const width = Math.abs(preview.current.x - preview.start.x);
|
|
606
|
+
const height = Math.abs(preview.current.y - preview.start.y);
|
|
607
|
+
if (width >= 6 && height >= 6) {
|
|
608
|
+
const nextX = normalizeNumericDomain(xScale.invert(preview.start.x), xScale.invert(preview.current.x));
|
|
609
|
+
const nextY = normalizeNumericDomain(yScale.invert(preview.start.y), yScale.invert(preview.current.y));
|
|
610
|
+
this.scatter.zoomXDomain.set(sameDomain(nextX, fullX) ? null : nextX);
|
|
611
|
+
this.scatter.zoomYDomain.set(sameDomain(nextY, fullY) ? null : nextY);
|
|
612
|
+
}
|
|
613
|
+
}
|
|
614
|
+
this.scatterBrush.set(null);
|
|
615
|
+
}
|
|
616
|
+
this.mode.set(null);
|
|
617
|
+
this.categoryStartIndex.set(null);
|
|
618
|
+
this.categoryPanStart.set(null);
|
|
619
|
+
this.scatterPan.set(null);
|
|
620
|
+
this.endDrag(event);
|
|
621
|
+
}
|
|
622
|
+
onPointerCancel(event) {
|
|
623
|
+
if (this.activePointerId() !== event.pointerId) return;
|
|
624
|
+
this.mode.set(null);
|
|
625
|
+
this.categorical?.brushRange.set(null);
|
|
626
|
+
this.scatterBrush.set(null);
|
|
627
|
+
this.categoryStartIndex.set(null);
|
|
628
|
+
this.categoryPanStart.set(null);
|
|
629
|
+
this.scatterPan.set(null);
|
|
630
|
+
this.endDrag(event);
|
|
631
|
+
}
|
|
632
|
+
onWheel(event) {
|
|
633
|
+
const local = this.localPoint(event);
|
|
634
|
+
if (!local) return;
|
|
635
|
+
event.preventDefault();
|
|
636
|
+
if (this.scatter) {
|
|
637
|
+
const xScale = this.scatter.xScale();
|
|
638
|
+
const yScale = this.scatter.yScale();
|
|
639
|
+
const fullX = this.scatter.fullXDomain();
|
|
640
|
+
const fullY = this.scatter.fullYDomain();
|
|
641
|
+
if (!xScale || !yScale || !fullX || !fullY) return;
|
|
642
|
+
const factor = event.deltaY < 0 ? .8 : 1.25;
|
|
643
|
+
const currentX = this.scatter.zoomXDomain() ?? fullX;
|
|
644
|
+
const currentY = this.scatter.zoomYDomain() ?? fullY;
|
|
645
|
+
const nextX = zoomNumericDomain(currentX, fullX, xScale.invert(local.x), factor);
|
|
646
|
+
const nextY = zoomNumericDomain(currentY, fullY, yScale.invert(local.y), factor);
|
|
647
|
+
this.scatter.zoomXDomain.set(sameDomain(nextX, fullX) ? null : nextX);
|
|
648
|
+
this.scatter.zoomYDomain.set(sameDomain(nextY, fullY) ? null : nextY);
|
|
649
|
+
return;
|
|
650
|
+
}
|
|
651
|
+
if (!this.cart || !this.categorical) return;
|
|
652
|
+
const visibleIndex = nearestCategoryIndex({
|
|
653
|
+
categoryScale: this.cart.categoryScale,
|
|
654
|
+
categories: this.cart.categories,
|
|
655
|
+
orientation: this.cart.orientation
|
|
656
|
+
}, local.x, local.y);
|
|
657
|
+
if (visibleIndex < 0) return;
|
|
658
|
+
const anchor = (this.categorical.zoomRange()?.startIndex ?? 0) + visibleIndex;
|
|
659
|
+
const factor = event.deltaY < 0 ? .75 : 1.25;
|
|
660
|
+
this.categorical.zoomRange.set(zoomIndexRange(this.categorical.zoomRange(), this.categorical.dataCount(), anchor, factor));
|
|
661
|
+
this.categorical.brushRange.set(null);
|
|
662
|
+
}
|
|
663
|
+
resetZoom() {
|
|
664
|
+
this.categorical?.resetZoom();
|
|
665
|
+
this.scatter?.resetZoom();
|
|
666
|
+
this.scatterBrush.set(null);
|
|
667
|
+
}
|
|
668
|
+
beginDrag(event) {
|
|
669
|
+
this.activePointerId.set(event.pointerId);
|
|
670
|
+
this.hitbox().nativeElement.setPointerCapture(event.pointerId);
|
|
671
|
+
const move = (next) => this.onPointerMove(next);
|
|
672
|
+
const up = (next) => this.onPointerUp(next);
|
|
673
|
+
const cancel = (next) => this.onPointerCancel(next);
|
|
674
|
+
this.document.addEventListener("pointermove", move);
|
|
675
|
+
this.document.addEventListener("pointerup", up);
|
|
676
|
+
this.document.addEventListener("pointercancel", cancel);
|
|
677
|
+
this.detachDragListeners = () => {
|
|
678
|
+
this.document.removeEventListener("pointermove", move);
|
|
679
|
+
this.document.removeEventListener("pointerup", up);
|
|
680
|
+
this.document.removeEventListener("pointercancel", cancel);
|
|
681
|
+
this.detachDragListeners = null;
|
|
682
|
+
};
|
|
683
|
+
}
|
|
684
|
+
endDrag(event) {
|
|
685
|
+
if (event && this.hitbox().nativeElement.hasPointerCapture(event.pointerId)) this.hitbox().nativeElement.releasePointerCapture(event.pointerId);
|
|
686
|
+
this.detachDragListeners?.();
|
|
687
|
+
this.activePointerId.set(null);
|
|
688
|
+
}
|
|
689
|
+
onScatterPointerDown(event, local) {
|
|
690
|
+
const fullX = this.scatter?.fullXDomain();
|
|
691
|
+
const fullY = this.scatter?.fullYDomain();
|
|
692
|
+
if (!this.scatter || !fullX || !fullY) return;
|
|
693
|
+
if (event.pointerType === "touch" && this.scatter.hasZoom()) {
|
|
694
|
+
this.mode.set("scatter-pan");
|
|
695
|
+
this.scatterPan.set({
|
|
696
|
+
start: local,
|
|
697
|
+
xDomain: this.scatter.zoomXDomain() ?? fullX,
|
|
698
|
+
yDomain: this.scatter.zoomYDomain() ?? fullY
|
|
699
|
+
});
|
|
700
|
+
return;
|
|
701
|
+
}
|
|
702
|
+
this.mode.set("scatter-brush");
|
|
703
|
+
this.scatterBrush.set({
|
|
704
|
+
start: local,
|
|
705
|
+
current: local
|
|
706
|
+
});
|
|
707
|
+
}
|
|
708
|
+
localPoint(event) {
|
|
709
|
+
const hitbox = this.hitbox()?.nativeElement;
|
|
710
|
+
const width = this.width();
|
|
711
|
+
const height = this.height();
|
|
712
|
+
if (!hitbox || width <= 0 || height <= 0) return null;
|
|
713
|
+
const rect = hitbox.getBoundingClientRect();
|
|
714
|
+
if (rect.width <= 0 || rect.height <= 0) return null;
|
|
715
|
+
return {
|
|
716
|
+
x: clamp((event.clientX - rect.left) / rect.width * width, 0, width),
|
|
717
|
+
y: clamp((event.clientY - rect.top) / rect.height * height, 0, height)
|
|
718
|
+
};
|
|
719
|
+
}
|
|
720
|
+
pointerAxis(local) {
|
|
721
|
+
return this.cart?.orientation() === "horizontal" ? local.y : local.x;
|
|
722
|
+
}
|
|
723
|
+
static ɵfac = i0.ɵɵngDeclareFactory({
|
|
724
|
+
minVersion: "12.0.0",
|
|
725
|
+
version: "22.2.2",
|
|
726
|
+
ngImport: i0,
|
|
727
|
+
type: ChartBrush,
|
|
728
|
+
deps: [],
|
|
729
|
+
target: i0.ɵɵFactoryTarget.Component
|
|
730
|
+
});
|
|
731
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({
|
|
732
|
+
minVersion: "17.0.0",
|
|
733
|
+
version: "22.2.2",
|
|
734
|
+
type: ChartBrush,
|
|
735
|
+
isStandalone: true,
|
|
736
|
+
selector: "svg:g[ChartBrush]",
|
|
737
|
+
host: { classAttribute: "chart-brush" },
|
|
738
|
+
viewQueries: [{
|
|
739
|
+
propertyName: "hitbox",
|
|
740
|
+
first: true,
|
|
741
|
+
predicate: ["hitbox"],
|
|
742
|
+
descendants: true,
|
|
743
|
+
isSignal: true
|
|
744
|
+
}],
|
|
745
|
+
ngImport: i0,
|
|
746
|
+
template: `
|
|
618
747
|
<svg:rect
|
|
619
748
|
#hitbox
|
|
620
749
|
class="fill-transparent touch-none"
|
|
@@ -648,14 +777,21 @@ class ChartBrush {
|
|
|
648
777
|
stroke-dasharray="4 3"
|
|
649
778
|
/>
|
|
650
779
|
}
|
|
651
|
-
`,
|
|
652
|
-
|
|
653
|
-
|
|
654
|
-
|
|
655
|
-
|
|
656
|
-
|
|
657
|
-
|
|
658
|
-
|
|
780
|
+
`,
|
|
781
|
+
isInline: true
|
|
782
|
+
});
|
|
783
|
+
};
|
|
784
|
+
i0.ɵɵngDeclareClassMetadata({
|
|
785
|
+
minVersion: "12.0.0",
|
|
786
|
+
version: "22.2.2",
|
|
787
|
+
ngImport: i0,
|
|
788
|
+
type: ChartBrush,
|
|
789
|
+
decorators: [{
|
|
790
|
+
type: Component,
|
|
791
|
+
args: [{
|
|
792
|
+
selector: "svg:g[ChartBrush]",
|
|
793
|
+
host: { class: "chart-brush" },
|
|
794
|
+
template: `
|
|
659
795
|
<svg:rect
|
|
660
796
|
#hitbox
|
|
661
797
|
class="fill-transparent touch-none"
|
|
@@ -689,268 +825,310 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.6", ngImpor
|
|
|
689
825
|
stroke-dasharray="4 3"
|
|
690
826
|
/>
|
|
691
827
|
}
|
|
692
|
-
|
|
693
|
-
|
|
694
|
-
|
|
695
|
-
|
|
696
|
-
|
|
697
|
-
|
|
698
|
-
|
|
699
|
-
|
|
700
|
-
|
|
701
|
-
|
|
702
|
-
|
|
703
|
-
|
|
704
|
-
|
|
705
|
-
|
|
706
|
-
|
|
707
|
-
|
|
708
|
-
|
|
709
|
-
|
|
710
|
-
|
|
711
|
-
|
|
712
|
-
|
|
713
|
-
|
|
714
|
-
|
|
715
|
-
|
|
716
|
-
|
|
717
|
-
|
|
718
|
-
|
|
719
|
-
|
|
720
|
-
|
|
721
|
-
|
|
722
|
-
|
|
723
|
-
|
|
724
|
-
|
|
725
|
-
|
|
726
|
-
|
|
727
|
-
|
|
728
|
-
|
|
729
|
-
|
|
730
|
-
|
|
731
|
-
|
|
732
|
-
|
|
733
|
-
|
|
734
|
-
|
|
735
|
-
|
|
736
|
-
|
|
737
|
-
|
|
738
|
-
|
|
739
|
-
|
|
740
|
-
|
|
741
|
-
|
|
742
|
-
|
|
743
|
-
|
|
744
|
-
|
|
745
|
-
|
|
746
|
-
|
|
747
|
-
|
|
748
|
-
|
|
749
|
-
|
|
750
|
-
|
|
751
|
-
|
|
752
|
-
|
|
753
|
-
|
|
754
|
-
|
|
755
|
-
|
|
756
|
-
|
|
757
|
-
|
|
758
|
-
|
|
828
|
+
`
|
|
829
|
+
}]
|
|
830
|
+
}],
|
|
831
|
+
ctorParameters: () => [],
|
|
832
|
+
propDecorators: { hitbox: [{
|
|
833
|
+
type: i0.ViewChild,
|
|
834
|
+
args: ["hitbox", { isSignal: true }]
|
|
835
|
+
}] }
|
|
836
|
+
});
|
|
837
|
+
var ChartPointerTracker = class ChartPointerTracker {
|
|
838
|
+
root = inject(ChartContext);
|
|
839
|
+
cart = inject(CartesianContext);
|
|
840
|
+
viewport = inject(CategoricalViewportContext, { optional: true });
|
|
841
|
+
onMove(event) {
|
|
842
|
+
const target = event.currentTarget;
|
|
843
|
+
if (!target) return;
|
|
844
|
+
const rect = target.getBoundingClientRect();
|
|
845
|
+
if (rect.width === 0 || rect.height === 0) return;
|
|
846
|
+
const { width, height } = this.root.dimensions();
|
|
847
|
+
const scaleX = width / rect.width;
|
|
848
|
+
const scaleY = height / rect.height;
|
|
849
|
+
const viewX = (event.clientX - rect.left) * scaleX;
|
|
850
|
+
const viewY = (event.clientY - rect.top) * scaleY;
|
|
851
|
+
const margin = this.cart.margin();
|
|
852
|
+
const localX = viewX - margin.left;
|
|
853
|
+
const localY = viewY - margin.top;
|
|
854
|
+
const index = nearestCategoryIndex({
|
|
855
|
+
categoryScale: this.cart.categoryScale,
|
|
856
|
+
categories: this.cart.categories,
|
|
857
|
+
orientation: this.cart.orientation
|
|
858
|
+
}, localX, localY);
|
|
859
|
+
if (index < 0) {
|
|
860
|
+
this.root.activePoint.set(null);
|
|
861
|
+
return;
|
|
862
|
+
}
|
|
863
|
+
this.root.activePoint.set({
|
|
864
|
+
index,
|
|
865
|
+
datumIndex: (this.viewport?.zoomRange()?.startIndex ?? 0) + index,
|
|
866
|
+
clientX: event.clientX,
|
|
867
|
+
clientY: event.clientY
|
|
868
|
+
});
|
|
869
|
+
}
|
|
870
|
+
onLeave() {
|
|
871
|
+
this.root.activePoint.set(null);
|
|
872
|
+
}
|
|
873
|
+
static ɵfac = i0.ɵɵngDeclareFactory({
|
|
874
|
+
minVersion: "12.0.0",
|
|
875
|
+
version: "22.2.2",
|
|
876
|
+
ngImport: i0,
|
|
877
|
+
type: ChartPointerTracker,
|
|
878
|
+
deps: [],
|
|
879
|
+
target: i0.ɵɵFactoryTarget.Directive
|
|
880
|
+
});
|
|
881
|
+
static ɵdir = i0.ɵɵngDeclareDirective({
|
|
882
|
+
minVersion: "14.0.0",
|
|
883
|
+
version: "22.2.2",
|
|
884
|
+
type: ChartPointerTracker,
|
|
885
|
+
isStandalone: true,
|
|
886
|
+
selector: "svg:svg[ChartPointerTracker]",
|
|
887
|
+
host: { listeners: {
|
|
888
|
+
"pointermove": "onMove($event)",
|
|
889
|
+
"pointerleave": "onLeave()"
|
|
890
|
+
} },
|
|
891
|
+
ngImport: i0
|
|
892
|
+
});
|
|
893
|
+
};
|
|
894
|
+
i0.ɵɵngDeclareClassMetadata({
|
|
895
|
+
minVersion: "12.0.0",
|
|
896
|
+
version: "22.2.2",
|
|
897
|
+
ngImport: i0,
|
|
898
|
+
type: ChartPointerTracker,
|
|
899
|
+
decorators: [{
|
|
900
|
+
type: Directive,
|
|
901
|
+
args: [{
|
|
902
|
+
selector: "svg:svg[ChartPointerTracker]",
|
|
903
|
+
host: {
|
|
904
|
+
"(pointermove)": "onMove($event)",
|
|
905
|
+
"(pointerleave)": "onLeave()"
|
|
906
|
+
}
|
|
907
|
+
}]
|
|
908
|
+
}]
|
|
909
|
+
});
|
|
759
910
|
function chartContainerElement(el) {
|
|
760
|
-
|
|
761
|
-
|
|
762
|
-
|
|
763
|
-
node = node.parentElement;
|
|
764
|
-
}
|
|
765
|
-
return node;
|
|
911
|
+
let node = el;
|
|
912
|
+
while (node && !node.hasAttribute("data-chart")) node = node.parentElement;
|
|
913
|
+
return node;
|
|
766
914
|
}
|
|
767
|
-
/** Card width assumed before the card has ever been laid out. */
|
|
768
915
|
const FALLBACK_TOOLTIP_WIDTH = 128;
|
|
769
|
-
|
|
770
|
-
|
|
771
|
-
|
|
772
|
-
|
|
773
|
-
|
|
774
|
-
|
|
775
|
-
|
|
776
|
-
|
|
777
|
-
|
|
778
|
-
|
|
779
|
-
|
|
780
|
-
|
|
781
|
-
|
|
782
|
-
|
|
783
|
-
|
|
784
|
-
|
|
785
|
-
|
|
786
|
-
|
|
787
|
-
|
|
788
|
-
|
|
789
|
-
|
|
790
|
-
|
|
791
|
-
|
|
792
|
-
|
|
793
|
-
|
|
794
|
-
|
|
795
|
-
|
|
796
|
-
|
|
797
|
-
|
|
798
|
-
|
|
799
|
-
|
|
800
|
-
|
|
801
|
-
|
|
802
|
-
|
|
803
|
-
|
|
804
|
-
|
|
805
|
-
|
|
806
|
-
|
|
807
|
-
|
|
808
|
-
|
|
809
|
-
|
|
810
|
-
|
|
811
|
-
|
|
812
|
-
|
|
813
|
-
|
|
814
|
-
|
|
815
|
-
|
|
816
|
-
|
|
817
|
-
|
|
818
|
-
|
|
819
|
-
|
|
820
|
-
|
|
821
|
-
|
|
822
|
-
|
|
823
|
-
|
|
824
|
-
|
|
825
|
-
|
|
826
|
-
|
|
827
|
-
|
|
828
|
-
|
|
829
|
-
|
|
830
|
-
|
|
831
|
-
|
|
832
|
-
|
|
833
|
-
|
|
834
|
-
|
|
835
|
-
|
|
836
|
-
|
|
837
|
-
|
|
838
|
-
|
|
839
|
-
|
|
840
|
-
|
|
841
|
-
|
|
842
|
-
|
|
843
|
-
|
|
844
|
-
|
|
845
|
-
|
|
846
|
-
|
|
847
|
-
|
|
848
|
-
|
|
849
|
-
|
|
850
|
-
|
|
851
|
-
|
|
852
|
-
|
|
853
|
-
|
|
854
|
-
|
|
855
|
-
|
|
856
|
-
|
|
857
|
-
|
|
858
|
-
|
|
859
|
-
|
|
860
|
-
|
|
861
|
-
|
|
862
|
-
|
|
863
|
-
|
|
864
|
-
|
|
865
|
-
|
|
866
|
-
|
|
867
|
-
|
|
868
|
-
|
|
869
|
-
|
|
870
|
-
|
|
871
|
-
|
|
872
|
-
|
|
873
|
-
|
|
874
|
-
|
|
875
|
-
|
|
876
|
-
|
|
877
|
-
|
|
878
|
-
|
|
879
|
-
|
|
880
|
-
|
|
881
|
-
|
|
882
|
-
|
|
883
|
-
|
|
884
|
-
|
|
885
|
-
|
|
886
|
-
|
|
887
|
-
|
|
888
|
-
|
|
889
|
-
|
|
890
|
-
|
|
891
|
-
|
|
892
|
-
|
|
893
|
-
|
|
894
|
-
|
|
895
|
-
|
|
896
|
-
|
|
897
|
-
|
|
898
|
-
|
|
899
|
-
|
|
900
|
-
|
|
901
|
-
|
|
902
|
-
|
|
903
|
-
|
|
904
|
-
|
|
905
|
-
|
|
906
|
-
|
|
907
|
-
|
|
908
|
-
|
|
909
|
-
|
|
910
|
-
|
|
911
|
-
|
|
912
|
-
|
|
913
|
-
|
|
914
|
-
|
|
915
|
-
|
|
916
|
-
|
|
917
|
-
|
|
918
|
-
|
|
919
|
-
|
|
920
|
-
|
|
921
|
-
|
|
922
|
-
|
|
923
|
-
|
|
924
|
-
|
|
925
|
-
|
|
926
|
-
|
|
927
|
-
|
|
928
|
-
|
|
929
|
-
|
|
930
|
-
|
|
931
|
-
|
|
932
|
-
|
|
933
|
-
|
|
934
|
-
|
|
935
|
-
|
|
936
|
-
|
|
937
|
-
|
|
938
|
-
|
|
939
|
-
|
|
940
|
-
|
|
941
|
-
|
|
942
|
-
|
|
943
|
-
|
|
944
|
-
|
|
945
|
-
|
|
946
|
-
|
|
947
|
-
|
|
948
|
-
|
|
949
|
-
|
|
950
|
-
|
|
951
|
-
|
|
952
|
-
|
|
953
|
-
|
|
916
|
+
var ChartTooltip = class ChartTooltip {
|
|
917
|
+
root = inject(ChartContext);
|
|
918
|
+
host = inject(ElementRef);
|
|
919
|
+
zone = inject(NgZone);
|
|
920
|
+
platformId = inject(PLATFORM_ID);
|
|
921
|
+
destroyRef = inject(DestroyRef);
|
|
922
|
+
containerBox = signal(null, {
|
|
923
|
+
...ngDevMode ? { debugName: "containerBox" } : /* istanbul ignore next */ {},
|
|
924
|
+
equal: (a, b) => a?.left === b?.left && a?.top === b?.top && a?.width === b?.width
|
|
925
|
+
});
|
|
926
|
+
tooltipBox = signal({
|
|
927
|
+
width: FALLBACK_TOOLTIP_WIDTH,
|
|
928
|
+
height: 0
|
|
929
|
+
}, {
|
|
930
|
+
...ngDevMode ? { debugName: "tooltipBox" } : /* istanbul ignore next */ {},
|
|
931
|
+
equal: (a, b) => a.width === b.width && a.height === b.height
|
|
932
|
+
});
|
|
933
|
+
constructor() {
|
|
934
|
+
if (!isPlatformBrowser(this.platformId)) return;
|
|
935
|
+
afterNextRender(() => this.observeContainer());
|
|
936
|
+
afterRenderEffect(() => {
|
|
937
|
+
this.payload();
|
|
938
|
+
this.measure();
|
|
939
|
+
});
|
|
940
|
+
}
|
|
941
|
+
xKey = input(null, ...ngDevMode ? [{ debugName: "xKey" }] : /* istanbul ignore next */ []);
|
|
942
|
+
data = input(null, ...ngDevMode ? [{ debugName: "data" }] : /* istanbul ignore next */ []);
|
|
943
|
+
valueKey = input(null, ...ngDevMode ? [{ debugName: "valueKey" }] : /* istanbul ignore next */ []);
|
|
944
|
+
indicator = input("dot", ...ngDevMode ? [{ debugName: "indicator" }] : /* istanbul ignore next */ []);
|
|
945
|
+
hideLabel = input(false, ...ngDevMode ? [{ debugName: "hideLabel" }] : /* istanbul ignore next */ []);
|
|
946
|
+
label = input(null, ...ngDevMode ? [{ debugName: "label" }] : /* istanbul ignore next */ []);
|
|
947
|
+
labelKey = input(null, ...ngDevMode ? [{ debugName: "labelKey" }] : /* istanbul ignore next */ []);
|
|
948
|
+
labelFormatter = input(null, ...ngDevMode ? [{ debugName: "labelFormatter" }] : /* istanbul ignore next */ []);
|
|
949
|
+
formatter = input(null, ...ngDevMode ? [{ debugName: "formatter" }] : /* istanbul ignore next */ []);
|
|
950
|
+
customTpl = contentChild(TemplateRef, ...ngDevMode ? [{ debugName: "customTpl" }] : /* istanbul ignore next */ []);
|
|
951
|
+
visible = computed(() => this.root.activePoint() !== null, ...ngDevMode ? [{ debugName: "visible" }] : /* istanbul ignore next */ []);
|
|
952
|
+
payload = computed(() => {
|
|
953
|
+
const active = this.root.activePoint();
|
|
954
|
+
const rows = this.data();
|
|
955
|
+
if (!active || !rows) return null;
|
|
956
|
+
const dataIndex = active.datumIndex != null && active.datumIndex < rows.length ? active.datumIndex : active.index;
|
|
957
|
+
if (dataIndex < 0 || dataIndex >= rows.length) return null;
|
|
958
|
+
const cfg = this.root.config();
|
|
959
|
+
const visibleKeys = this.root.visibleSeriesKeys();
|
|
960
|
+
const datum = rows[dataIndex];
|
|
961
|
+
const xKey = this.xKey();
|
|
962
|
+
const category = xKey && xKey in datum ? String(datum[xKey]) : String(active.index);
|
|
963
|
+
const activeSeriesKey = active.seriesKey && visibleKeys.includes(active.seriesKey) ? active.seriesKey : null;
|
|
964
|
+
const keys = activeSeriesKey ? [activeSeriesKey] : visibleKeys;
|
|
965
|
+
const valueKey = this.valueKey();
|
|
966
|
+
return {
|
|
967
|
+
category,
|
|
968
|
+
datum,
|
|
969
|
+
rows: keys.map((k) => {
|
|
970
|
+
const rawValue = valueKey != null && activeSeriesKey === k ? datum[valueKey] : datum[k];
|
|
971
|
+
return {
|
|
972
|
+
seriesKey: k,
|
|
973
|
+
label: cfg[k]?.label ?? k,
|
|
974
|
+
value: rawValue,
|
|
975
|
+
color: seriesColorVar(k),
|
|
976
|
+
icon: cfg[k]?.icon
|
|
977
|
+
};
|
|
978
|
+
})
|
|
979
|
+
};
|
|
980
|
+
}, ...ngDevMode ? [{ debugName: "payload" }] : /* istanbul ignore next */ []);
|
|
981
|
+
headerText(p) {
|
|
982
|
+
if (this.hideLabel()) return null;
|
|
983
|
+
const override = this.label();
|
|
984
|
+
const labelKey = this.labelKey();
|
|
985
|
+
const cfg = this.root.config();
|
|
986
|
+
const fromKey = labelKey ? cfg[labelKey]?.label ?? labelKey : null;
|
|
987
|
+
const raw = override ?? fromKey ?? p.category;
|
|
988
|
+
const fmt = this.labelFormatter();
|
|
989
|
+
return fmt ? fmt(raw, p) : raw;
|
|
990
|
+
}
|
|
991
|
+
formatRow(row, p) {
|
|
992
|
+
const fmt = this.formatter();
|
|
993
|
+
if (fmt) return fmt(row.value, row, p);
|
|
994
|
+
return row.value == null ? "" : String(row.value);
|
|
995
|
+
}
|
|
996
|
+
position = computed(() => {
|
|
997
|
+
const active = this.root.activePoint();
|
|
998
|
+
const box = this.containerBox();
|
|
999
|
+
if (!active || active.clientX == null || active.clientY == null || !box) return {
|
|
1000
|
+
x: 0,
|
|
1001
|
+
y: 0
|
|
1002
|
+
};
|
|
1003
|
+
const { width: tooltipWidth, height: tooltipHeight } = this.tooltipBox();
|
|
1004
|
+
const padding = 8;
|
|
1005
|
+
const minX = padding + tooltipWidth / 2;
|
|
1006
|
+
const maxX = Math.max(minX, box.width - padding - tooltipWidth / 2);
|
|
1007
|
+
const x = Math.min(maxX, Math.max(minX, active.clientX - box.left));
|
|
1008
|
+
const minY = padding + tooltipHeight;
|
|
1009
|
+
return {
|
|
1010
|
+
x,
|
|
1011
|
+
y: Math.max(minY, active.clientY - box.top - padding)
|
|
1012
|
+
};
|
|
1013
|
+
}, ...ngDevMode ? [{ debugName: "position" }] : /* istanbul ignore next */ []);
|
|
1014
|
+
observeContainer() {
|
|
1015
|
+
const container = chartContainerElement(this.host.nativeElement);
|
|
1016
|
+
if (!container) return;
|
|
1017
|
+
this.measureContainer(container);
|
|
1018
|
+
if (typeof ResizeObserver === "undefined") return;
|
|
1019
|
+
const observer = new ResizeObserver(() => this.zone.run(() => this.measureContainer(container)));
|
|
1020
|
+
observer.observe(container);
|
|
1021
|
+
this.destroyRef.onDestroy(() => observer.disconnect());
|
|
1022
|
+
}
|
|
1023
|
+
measure() {
|
|
1024
|
+
const container = chartContainerElement(this.host.nativeElement);
|
|
1025
|
+
if (container) this.measureContainer(container);
|
|
1026
|
+
const card = this.host.nativeElement.querySelector("[role=\"tooltip\"]");
|
|
1027
|
+
this.tooltipBox.set({
|
|
1028
|
+
width: card?.offsetWidth || FALLBACK_TOOLTIP_WIDTH,
|
|
1029
|
+
height: card?.offsetHeight ?? 0
|
|
1030
|
+
});
|
|
1031
|
+
}
|
|
1032
|
+
measureContainer(container) {
|
|
1033
|
+
const rect = container.getBoundingClientRect();
|
|
1034
|
+
this.containerBox.set({
|
|
1035
|
+
left: rect.left,
|
|
1036
|
+
top: rect.top,
|
|
1037
|
+
width: rect.width
|
|
1038
|
+
});
|
|
1039
|
+
}
|
|
1040
|
+
static ɵfac = i0.ɵɵngDeclareFactory({
|
|
1041
|
+
minVersion: "12.0.0",
|
|
1042
|
+
version: "22.2.2",
|
|
1043
|
+
ngImport: i0,
|
|
1044
|
+
type: ChartTooltip,
|
|
1045
|
+
deps: [],
|
|
1046
|
+
target: i0.ɵɵFactoryTarget.Component
|
|
1047
|
+
});
|
|
1048
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({
|
|
1049
|
+
minVersion: "17.0.0",
|
|
1050
|
+
version: "22.2.2",
|
|
1051
|
+
type: ChartTooltip,
|
|
1052
|
+
isStandalone: true,
|
|
1053
|
+
selector: "ChartTooltip",
|
|
1054
|
+
inputs: {
|
|
1055
|
+
xKey: {
|
|
1056
|
+
classPropertyName: "xKey",
|
|
1057
|
+
publicName: "xKey",
|
|
1058
|
+
isSignal: true,
|
|
1059
|
+
isRequired: false,
|
|
1060
|
+
transformFunction: null
|
|
1061
|
+
},
|
|
1062
|
+
data: {
|
|
1063
|
+
classPropertyName: "data",
|
|
1064
|
+
publicName: "data",
|
|
1065
|
+
isSignal: true,
|
|
1066
|
+
isRequired: false,
|
|
1067
|
+
transformFunction: null
|
|
1068
|
+
},
|
|
1069
|
+
valueKey: {
|
|
1070
|
+
classPropertyName: "valueKey",
|
|
1071
|
+
publicName: "valueKey",
|
|
1072
|
+
isSignal: true,
|
|
1073
|
+
isRequired: false,
|
|
1074
|
+
transformFunction: null
|
|
1075
|
+
},
|
|
1076
|
+
indicator: {
|
|
1077
|
+
classPropertyName: "indicator",
|
|
1078
|
+
publicName: "indicator",
|
|
1079
|
+
isSignal: true,
|
|
1080
|
+
isRequired: false,
|
|
1081
|
+
transformFunction: null
|
|
1082
|
+
},
|
|
1083
|
+
hideLabel: {
|
|
1084
|
+
classPropertyName: "hideLabel",
|
|
1085
|
+
publicName: "hideLabel",
|
|
1086
|
+
isSignal: true,
|
|
1087
|
+
isRequired: false,
|
|
1088
|
+
transformFunction: null
|
|
1089
|
+
},
|
|
1090
|
+
label: {
|
|
1091
|
+
classPropertyName: "label",
|
|
1092
|
+
publicName: "label",
|
|
1093
|
+
isSignal: true,
|
|
1094
|
+
isRequired: false,
|
|
1095
|
+
transformFunction: null
|
|
1096
|
+
},
|
|
1097
|
+
labelKey: {
|
|
1098
|
+
classPropertyName: "labelKey",
|
|
1099
|
+
publicName: "labelKey",
|
|
1100
|
+
isSignal: true,
|
|
1101
|
+
isRequired: false,
|
|
1102
|
+
transformFunction: null
|
|
1103
|
+
},
|
|
1104
|
+
labelFormatter: {
|
|
1105
|
+
classPropertyName: "labelFormatter",
|
|
1106
|
+
publicName: "labelFormatter",
|
|
1107
|
+
isSignal: true,
|
|
1108
|
+
isRequired: false,
|
|
1109
|
+
transformFunction: null
|
|
1110
|
+
},
|
|
1111
|
+
formatter: {
|
|
1112
|
+
classPropertyName: "formatter",
|
|
1113
|
+
publicName: "formatter",
|
|
1114
|
+
isSignal: true,
|
|
1115
|
+
isRequired: false,
|
|
1116
|
+
transformFunction: null
|
|
1117
|
+
}
|
|
1118
|
+
},
|
|
1119
|
+
host: {
|
|
1120
|
+
properties: { "attr.aria-hidden": "!visible()" },
|
|
1121
|
+
classAttribute: "pointer-events-none absolute inset-0 z-10"
|
|
1122
|
+
},
|
|
1123
|
+
queries: [{
|
|
1124
|
+
propertyName: "customTpl",
|
|
1125
|
+
first: true,
|
|
1126
|
+
predicate: TemplateRef,
|
|
1127
|
+
descendants: true,
|
|
1128
|
+
isSignal: true
|
|
1129
|
+
}],
|
|
1130
|
+
ngImport: i0,
|
|
1131
|
+
template: `
|
|
954
1132
|
@if (payload(); as p) {
|
|
955
1133
|
<div
|
|
956
1134
|
role="tooltip"
|
|
@@ -1012,18 +1190,48 @@ class ChartTooltip {
|
|
|
1012
1190
|
{{ p.category }}
|
|
1013
1191
|
}
|
|
1014
1192
|
</div>
|
|
1015
|
-
`,
|
|
1016
|
-
|
|
1017
|
-
|
|
1018
|
-
|
|
1019
|
-
|
|
1020
|
-
|
|
1021
|
-
|
|
1022
|
-
|
|
1023
|
-
|
|
1024
|
-
|
|
1025
|
-
|
|
1026
|
-
|
|
1193
|
+
`,
|
|
1194
|
+
isInline: true,
|
|
1195
|
+
dependencies: [{
|
|
1196
|
+
kind: "directive",
|
|
1197
|
+
type: NgTemplateOutlet,
|
|
1198
|
+
selector: "[ngTemplateOutlet]",
|
|
1199
|
+
inputs: [
|
|
1200
|
+
"ngTemplateOutletContext",
|
|
1201
|
+
"ngTemplateOutlet",
|
|
1202
|
+
"ngTemplateOutletInjector"
|
|
1203
|
+
]
|
|
1204
|
+
}, {
|
|
1205
|
+
kind: "directive",
|
|
1206
|
+
type: NgComponentOutlet,
|
|
1207
|
+
selector: "[ngComponentOutlet]",
|
|
1208
|
+
inputs: [
|
|
1209
|
+
"ngComponentOutlet",
|
|
1210
|
+
"ngComponentOutletInputs",
|
|
1211
|
+
"ngComponentOutletInjector",
|
|
1212
|
+
"ngComponentOutletEnvironmentInjector",
|
|
1213
|
+
"ngComponentOutletContent",
|
|
1214
|
+
"ngComponentOutletNgModule"
|
|
1215
|
+
],
|
|
1216
|
+
exportAs: ["ngComponentOutlet"]
|
|
1217
|
+
}]
|
|
1218
|
+
});
|
|
1219
|
+
};
|
|
1220
|
+
i0.ɵɵngDeclareClassMetadata({
|
|
1221
|
+
minVersion: "12.0.0",
|
|
1222
|
+
version: "22.2.2",
|
|
1223
|
+
ngImport: i0,
|
|
1224
|
+
type: ChartTooltip,
|
|
1225
|
+
decorators: [{
|
|
1226
|
+
type: Component,
|
|
1227
|
+
args: [{
|
|
1228
|
+
selector: "ChartTooltip",
|
|
1229
|
+
imports: [NgTemplateOutlet, NgComponentOutlet],
|
|
1230
|
+
host: {
|
|
1231
|
+
class: "pointer-events-none absolute inset-0 z-10",
|
|
1232
|
+
"[attr.aria-hidden]": "!visible()"
|
|
1233
|
+
},
|
|
1234
|
+
template: `
|
|
1027
1235
|
@if (payload(); as p) {
|
|
1028
1236
|
<div
|
|
1029
1237
|
role="tooltip"
|
|
@@ -1085,40 +1293,121 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.6", ngImpor
|
|
|
1085
1293
|
{{ p.category }}
|
|
1086
1294
|
}
|
|
1087
1295
|
</div>
|
|
1088
|
-
|
|
1089
|
-
|
|
1090
|
-
|
|
1091
|
-
|
|
1092
|
-
|
|
1093
|
-
|
|
1094
|
-
|
|
1095
|
-
|
|
1096
|
-
|
|
1097
|
-
|
|
1098
|
-
|
|
1099
|
-
|
|
1100
|
-
|
|
1101
|
-
|
|
1102
|
-
|
|
1103
|
-
|
|
1104
|
-
|
|
1105
|
-
|
|
1106
|
-
|
|
1107
|
-
|
|
1108
|
-
|
|
1109
|
-
|
|
1110
|
-
|
|
1111
|
-
|
|
1112
|
-
|
|
1113
|
-
|
|
1114
|
-
|
|
1115
|
-
|
|
1116
|
-
|
|
1117
|
-
|
|
1118
|
-
|
|
1119
|
-
|
|
1120
|
-
|
|
1121
|
-
|
|
1296
|
+
`
|
|
1297
|
+
}]
|
|
1298
|
+
}],
|
|
1299
|
+
ctorParameters: () => [],
|
|
1300
|
+
propDecorators: {
|
|
1301
|
+
xKey: [{
|
|
1302
|
+
type: i0.Input,
|
|
1303
|
+
args: [{
|
|
1304
|
+
isSignal: true,
|
|
1305
|
+
alias: "xKey",
|
|
1306
|
+
required: false
|
|
1307
|
+
}]
|
|
1308
|
+
}],
|
|
1309
|
+
data: [{
|
|
1310
|
+
type: i0.Input,
|
|
1311
|
+
args: [{
|
|
1312
|
+
isSignal: true,
|
|
1313
|
+
alias: "data",
|
|
1314
|
+
required: false
|
|
1315
|
+
}]
|
|
1316
|
+
}],
|
|
1317
|
+
valueKey: [{
|
|
1318
|
+
type: i0.Input,
|
|
1319
|
+
args: [{
|
|
1320
|
+
isSignal: true,
|
|
1321
|
+
alias: "valueKey",
|
|
1322
|
+
required: false
|
|
1323
|
+
}]
|
|
1324
|
+
}],
|
|
1325
|
+
indicator: [{
|
|
1326
|
+
type: i0.Input,
|
|
1327
|
+
args: [{
|
|
1328
|
+
isSignal: true,
|
|
1329
|
+
alias: "indicator",
|
|
1330
|
+
required: false
|
|
1331
|
+
}]
|
|
1332
|
+
}],
|
|
1333
|
+
hideLabel: [{
|
|
1334
|
+
type: i0.Input,
|
|
1335
|
+
args: [{
|
|
1336
|
+
isSignal: true,
|
|
1337
|
+
alias: "hideLabel",
|
|
1338
|
+
required: false
|
|
1339
|
+
}]
|
|
1340
|
+
}],
|
|
1341
|
+
label: [{
|
|
1342
|
+
type: i0.Input,
|
|
1343
|
+
args: [{
|
|
1344
|
+
isSignal: true,
|
|
1345
|
+
alias: "label",
|
|
1346
|
+
required: false
|
|
1347
|
+
}]
|
|
1348
|
+
}],
|
|
1349
|
+
labelKey: [{
|
|
1350
|
+
type: i0.Input,
|
|
1351
|
+
args: [{
|
|
1352
|
+
isSignal: true,
|
|
1353
|
+
alias: "labelKey",
|
|
1354
|
+
required: false
|
|
1355
|
+
}]
|
|
1356
|
+
}],
|
|
1357
|
+
labelFormatter: [{
|
|
1358
|
+
type: i0.Input,
|
|
1359
|
+
args: [{
|
|
1360
|
+
isSignal: true,
|
|
1361
|
+
alias: "labelFormatter",
|
|
1362
|
+
required: false
|
|
1363
|
+
}]
|
|
1364
|
+
}],
|
|
1365
|
+
formatter: [{
|
|
1366
|
+
type: i0.Input,
|
|
1367
|
+
args: [{
|
|
1368
|
+
isSignal: true,
|
|
1369
|
+
alias: "formatter",
|
|
1370
|
+
required: false
|
|
1371
|
+
}]
|
|
1372
|
+
}],
|
|
1373
|
+
customTpl: [{
|
|
1374
|
+
type: i0.ContentChild,
|
|
1375
|
+
args: [i0.forwardRef(() => TemplateRef), { isSignal: true }]
|
|
1376
|
+
}]
|
|
1377
|
+
}
|
|
1378
|
+
});
|
|
1379
|
+
var ChartLegend = class ChartLegend {
|
|
1380
|
+
root = inject(ChartContext);
|
|
1381
|
+
items = computed(() => {
|
|
1382
|
+
const cfg = this.root.config();
|
|
1383
|
+
const hidden = this.root.hiddenSeries();
|
|
1384
|
+
return this.root.seriesKeys().map((key) => ({
|
|
1385
|
+
seriesKey: key,
|
|
1386
|
+
label: cfg[key]?.label ?? key,
|
|
1387
|
+
color: seriesColorVar(key),
|
|
1388
|
+
hidden: hidden.has(key)
|
|
1389
|
+
}));
|
|
1390
|
+
}, ...ngDevMode ? [{ debugName: "items" }] : /* istanbul ignore next */ []);
|
|
1391
|
+
toggle(key) {
|
|
1392
|
+
this.root.toggleSeries(key);
|
|
1393
|
+
}
|
|
1394
|
+
static ɵfac = i0.ɵɵngDeclareFactory({
|
|
1395
|
+
minVersion: "12.0.0",
|
|
1396
|
+
version: "22.2.2",
|
|
1397
|
+
ngImport: i0,
|
|
1398
|
+
type: ChartLegend,
|
|
1399
|
+
deps: [],
|
|
1400
|
+
target: i0.ɵɵFactoryTarget.Component
|
|
1401
|
+
});
|
|
1402
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({
|
|
1403
|
+
minVersion: "17.0.0",
|
|
1404
|
+
version: "22.2.2",
|
|
1405
|
+
type: ChartLegend,
|
|
1406
|
+
isStandalone: true,
|
|
1407
|
+
selector: "ChartLegend",
|
|
1408
|
+
host: { classAttribute: "block pt-3" },
|
|
1409
|
+
ngImport: i0,
|
|
1410
|
+
template: `
|
|
1122
1411
|
<ul
|
|
1123
1412
|
class="flex flex-wrap items-center justify-center gap-3 text-xs"
|
|
1124
1413
|
aria-label="Toggle chart series visibility"
|
|
@@ -1142,14 +1431,21 @@ class ChartLegend {
|
|
|
1142
1431
|
</li>
|
|
1143
1432
|
}
|
|
1144
1433
|
</ul>
|
|
1145
|
-
`,
|
|
1146
|
-
|
|
1147
|
-
|
|
1148
|
-
|
|
1149
|
-
|
|
1150
|
-
|
|
1151
|
-
|
|
1152
|
-
|
|
1434
|
+
`,
|
|
1435
|
+
isInline: true
|
|
1436
|
+
});
|
|
1437
|
+
};
|
|
1438
|
+
i0.ɵɵngDeclareClassMetadata({
|
|
1439
|
+
minVersion: "12.0.0",
|
|
1440
|
+
version: "22.2.2",
|
|
1441
|
+
ngImport: i0,
|
|
1442
|
+
type: ChartLegend,
|
|
1443
|
+
decorators: [{
|
|
1444
|
+
type: Component,
|
|
1445
|
+
args: [{
|
|
1446
|
+
selector: "ChartLegend",
|
|
1447
|
+
host: { class: "block pt-3" },
|
|
1448
|
+
template: `
|
|
1153
1449
|
<ul
|
|
1154
1450
|
class="flex flex-wrap items-center justify-center gap-3 text-xs"
|
|
1155
1451
|
aria-label="Toggle chart series visibility"
|
|
@@ -1173,51 +1469,56 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.6", ngImpor
|
|
|
1173
1469
|
</li>
|
|
1174
1470
|
}
|
|
1175
1471
|
</ul>
|
|
1176
|
-
|
|
1177
|
-
|
|
1178
|
-
|
|
1179
|
-
|
|
1472
|
+
`
|
|
1473
|
+
}]
|
|
1474
|
+
}]
|
|
1475
|
+
});
|
|
1180
1476
|
function formatNumber(value) {
|
|
1181
|
-
|
|
1477
|
+
return Math.abs(value) >= 10 ? value.toFixed(0) : value.toFixed(1);
|
|
1182
1478
|
}
|
|
1183
|
-
class ChartZoomControls {
|
|
1184
|
-
|
|
1185
|
-
|
|
1186
|
-
|
|
1187
|
-
|
|
1188
|
-
|
|
1189
|
-
|
|
1190
|
-
|
|
1191
|
-
|
|
1192
|
-
|
|
1193
|
-
|
|
1194
|
-
|
|
1195
|
-
|
|
1196
|
-
|
|
1197
|
-
|
|
1198
|
-
|
|
1199
|
-
|
|
1200
|
-
|
|
1201
|
-
|
|
1202
|
-
|
|
1203
|
-
|
|
1204
|
-
|
|
1205
|
-
|
|
1206
|
-
|
|
1207
|
-
|
|
1208
|
-
|
|
1209
|
-
|
|
1210
|
-
|
|
1211
|
-
|
|
1212
|
-
|
|
1213
|
-
|
|
1214
|
-
|
|
1215
|
-
|
|
1216
|
-
|
|
1217
|
-
|
|
1218
|
-
|
|
1219
|
-
|
|
1220
|
-
|
|
1479
|
+
var ChartZoomControls = class ChartZoomControls {
|
|
1480
|
+
categorical = inject(CategoricalViewportContext, { optional: true });
|
|
1481
|
+
scatter = inject(ScatterViewportContext, { optional: true });
|
|
1482
|
+
status = computed(() => {
|
|
1483
|
+
if (this.categorical?.hasZoom()) {
|
|
1484
|
+
const count = this.categorical.dataCount();
|
|
1485
|
+
const range = effectiveIndexRange(this.categorical.zoomRange(), count);
|
|
1486
|
+
if (!range) return null;
|
|
1487
|
+
return `Showing ${range.startIndex + 1}-${range.endIndex + 1} of ${count}`;
|
|
1488
|
+
}
|
|
1489
|
+
if (this.scatter?.hasZoom()) {
|
|
1490
|
+
const xDomain = this.scatter.zoomXDomain() ?? this.scatter.fullXDomain();
|
|
1491
|
+
const yDomain = this.scatter.zoomYDomain() ?? this.scatter.fullYDomain();
|
|
1492
|
+
if (!xDomain || !yDomain) return null;
|
|
1493
|
+
return `X ${formatNumber(xDomain[0])}-${formatNumber(xDomain[1])} · Y ${formatNumber(yDomain[0])}-${formatNumber(yDomain[1])}`;
|
|
1494
|
+
}
|
|
1495
|
+
return null;
|
|
1496
|
+
}, ...ngDevMode ? [{ debugName: "status" }] : /* istanbul ignore next */ []);
|
|
1497
|
+
hint = computed(() => {
|
|
1498
|
+
if (this.scatter) return "Drag to brush a region. Use the wheel to zoom and one-finger touch drag to pan while zoomed.";
|
|
1499
|
+
return "Drag to select a category range. Use the wheel to zoom and one-finger touch drag to pan while zoomed.";
|
|
1500
|
+
}, ...ngDevMode ? [{ debugName: "hint" }] : /* istanbul ignore next */ []);
|
|
1501
|
+
resetZoom() {
|
|
1502
|
+
this.categorical?.resetZoom();
|
|
1503
|
+
this.scatter?.resetZoom();
|
|
1504
|
+
}
|
|
1505
|
+
static ɵfac = i0.ɵɵngDeclareFactory({
|
|
1506
|
+
minVersion: "12.0.0",
|
|
1507
|
+
version: "22.2.2",
|
|
1508
|
+
ngImport: i0,
|
|
1509
|
+
type: ChartZoomControls,
|
|
1510
|
+
deps: [],
|
|
1511
|
+
target: i0.ɵɵFactoryTarget.Component
|
|
1512
|
+
});
|
|
1513
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({
|
|
1514
|
+
minVersion: "17.0.0",
|
|
1515
|
+
version: "22.2.2",
|
|
1516
|
+
type: ChartZoomControls,
|
|
1517
|
+
isStandalone: true,
|
|
1518
|
+
selector: "ChartZoomControls",
|
|
1519
|
+
host: { classAttribute: "mt-3 flex flex-wrap items-center justify-between gap-3 text-xs text-muted-foreground" },
|
|
1520
|
+
ngImport: i0,
|
|
1521
|
+
template: `
|
|
1221
1522
|
<p>{{ hint() }}</p>
|
|
1222
1523
|
|
|
1223
1524
|
@if (status(); as currentStatus) {
|
|
@@ -1236,16 +1537,21 @@ class ChartZoomControls {
|
|
|
1236
1537
|
</button>
|
|
1237
1538
|
</div>
|
|
1238
1539
|
}
|
|
1239
|
-
`,
|
|
1240
|
-
|
|
1241
|
-
|
|
1242
|
-
|
|
1243
|
-
|
|
1244
|
-
|
|
1245
|
-
|
|
1246
|
-
|
|
1247
|
-
|
|
1248
|
-
|
|
1540
|
+
`,
|
|
1541
|
+
isInline: true
|
|
1542
|
+
});
|
|
1543
|
+
};
|
|
1544
|
+
i0.ɵɵngDeclareClassMetadata({
|
|
1545
|
+
minVersion: "12.0.0",
|
|
1546
|
+
version: "22.2.2",
|
|
1547
|
+
ngImport: i0,
|
|
1548
|
+
type: ChartZoomControls,
|
|
1549
|
+
decorators: [{
|
|
1550
|
+
type: Component,
|
|
1551
|
+
args: [{
|
|
1552
|
+
selector: "ChartZoomControls",
|
|
1553
|
+
host: { class: "mt-3 flex flex-wrap items-center justify-between gap-3 text-xs text-muted-foreground" },
|
|
1554
|
+
template: `
|
|
1249
1555
|
<p>{{ hint() }}</p>
|
|
1250
1556
|
|
|
1251
1557
|
@if (status(); as currentStatus) {
|
|
@@ -1264,42 +1570,78 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.6", ngImpor
|
|
|
1264
1570
|
</button>
|
|
1265
1571
|
</div>
|
|
1266
1572
|
}
|
|
1267
|
-
|
|
1268
|
-
|
|
1269
|
-
|
|
1270
|
-
|
|
1271
|
-
class PieCenter {
|
|
1272
|
-
|
|
1273
|
-
|
|
1274
|
-
|
|
1275
|
-
|
|
1276
|
-
|
|
1277
|
-
|
|
1278
|
-
|
|
1279
|
-
|
|
1280
|
-
|
|
1281
|
-
|
|
1282
|
-
|
|
1283
|
-
|
|
1284
|
-
|
|
1285
|
-
|
|
1286
|
-
|
|
1287
|
-
|
|
1288
|
-
|
|
1289
|
-
|
|
1290
|
-
|
|
1291
|
-
|
|
1292
|
-
|
|
1293
|
-
|
|
1294
|
-
|
|
1295
|
-
|
|
1296
|
-
|
|
1297
|
-
|
|
1298
|
-
|
|
1299
|
-
|
|
1300
|
-
|
|
1301
|
-
|
|
1302
|
-
|
|
1303
|
-
|
|
1304
|
-
|
|
1305
|
-
|
|
1573
|
+
`
|
|
1574
|
+
}]
|
|
1575
|
+
}]
|
|
1576
|
+
});
|
|
1577
|
+
var PieCenter = class PieCenter {
|
|
1578
|
+
static ɵfac = i0.ɵɵngDeclareFactory({
|
|
1579
|
+
minVersion: "12.0.0",
|
|
1580
|
+
version: "22.2.2",
|
|
1581
|
+
ngImport: i0,
|
|
1582
|
+
type: PieCenter,
|
|
1583
|
+
deps: [],
|
|
1584
|
+
target: i0.ɵɵFactoryTarget.Component
|
|
1585
|
+
});
|
|
1586
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({
|
|
1587
|
+
minVersion: "14.0.0",
|
|
1588
|
+
version: "22.2.2",
|
|
1589
|
+
type: PieCenter,
|
|
1590
|
+
isStandalone: true,
|
|
1591
|
+
selector: "ChartPieCenter",
|
|
1592
|
+
host: { classAttribute: "flex max-w-40 flex-col items-center justify-center text-center" },
|
|
1593
|
+
ngImport: i0,
|
|
1594
|
+
template: `<ng-content />`,
|
|
1595
|
+
isInline: true
|
|
1596
|
+
});
|
|
1597
|
+
};
|
|
1598
|
+
i0.ɵɵngDeclareClassMetadata({
|
|
1599
|
+
minVersion: "12.0.0",
|
|
1600
|
+
version: "22.2.2",
|
|
1601
|
+
ngImport: i0,
|
|
1602
|
+
type: PieCenter,
|
|
1603
|
+
decorators: [{
|
|
1604
|
+
type: Component,
|
|
1605
|
+
args: [{
|
|
1606
|
+
selector: "ChartPieCenter",
|
|
1607
|
+
host: { class: "flex max-w-40 flex-col items-center justify-center text-center" },
|
|
1608
|
+
template: `<ng-content />`
|
|
1609
|
+
}]
|
|
1610
|
+
}]
|
|
1611
|
+
});
|
|
1612
|
+
var RadialCenter = class RadialCenter {
|
|
1613
|
+
static ɵfac = i0.ɵɵngDeclareFactory({
|
|
1614
|
+
minVersion: "12.0.0",
|
|
1615
|
+
version: "22.2.2",
|
|
1616
|
+
ngImport: i0,
|
|
1617
|
+
type: RadialCenter,
|
|
1618
|
+
deps: [],
|
|
1619
|
+
target: i0.ɵɵFactoryTarget.Component
|
|
1620
|
+
});
|
|
1621
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({
|
|
1622
|
+
minVersion: "14.0.0",
|
|
1623
|
+
version: "22.2.2",
|
|
1624
|
+
type: RadialCenter,
|
|
1625
|
+
isStandalone: true,
|
|
1626
|
+
selector: "ChartRadialCenter",
|
|
1627
|
+
host: { classAttribute: "flex max-w-40 flex-col items-center justify-center text-center" },
|
|
1628
|
+
ngImport: i0,
|
|
1629
|
+
template: `<ng-content />`,
|
|
1630
|
+
isInline: true
|
|
1631
|
+
});
|
|
1632
|
+
};
|
|
1633
|
+
i0.ɵɵngDeclareClassMetadata({
|
|
1634
|
+
minVersion: "12.0.0",
|
|
1635
|
+
version: "22.2.2",
|
|
1636
|
+
ngImport: i0,
|
|
1637
|
+
type: RadialCenter,
|
|
1638
|
+
decorators: [{
|
|
1639
|
+
type: Component,
|
|
1640
|
+
args: [{
|
|
1641
|
+
selector: "ChartRadialCenter",
|
|
1642
|
+
host: { class: "flex max-w-40 flex-col items-center justify-center text-center" },
|
|
1643
|
+
template: `<ng-content />`
|
|
1644
|
+
}]
|
|
1645
|
+
}]
|
|
1646
|
+
});
|
|
1647
|
+
export { ChartAxisX, ChartAxisY, ChartBrush, ChartCrosshair, ChartGrid, ChartLegend, ChartPointerTracker, ChartTooltip, ChartZoomControls, PieCenter, RadialCenter };
|