@pioneer-code/pioneer-charts 22.2.27 → 22.2.28
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.
|
@@ -555,10 +555,10 @@ class PcacAxisBuilder {
|
|
|
555
555
|
pin(before.reduce((n, p) => (!n || p.along > n.along ? p : n), undefined), false);
|
|
556
556
|
pin(after.reduce((n, p) => (!n || p.along < n.along ? p : n), undefined), true);
|
|
557
557
|
}
|
|
558
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.2.
|
|
559
|
-
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "22.2.
|
|
558
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.2.6", ngImport: i0, type: PcacAxisBuilder, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
559
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "22.2.6", ngImport: i0, type: PcacAxisBuilder, providedIn: 'root' });
|
|
560
560
|
}
|
|
561
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.2.
|
|
561
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.2.6", ngImport: i0, type: PcacAxisBuilder, decorators: [{
|
|
562
562
|
type: Injectable,
|
|
563
563
|
args: [{
|
|
564
564
|
providedIn: 'root',
|
|
@@ -652,10 +652,10 @@ class PcacGridBuilder {
|
|
|
652
652
|
.attr('x1', 0)
|
|
653
653
|
.attr('x2', config.width);
|
|
654
654
|
}
|
|
655
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.2.
|
|
656
|
-
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "22.2.
|
|
655
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.2.6", ngImport: i0, type: PcacGridBuilder, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
656
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "22.2.6", ngImport: i0, type: PcacGridBuilder, providedIn: 'root' });
|
|
657
657
|
}
|
|
658
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.2.
|
|
658
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.2.6", ngImport: i0, type: PcacGridBuilder, decorators: [{
|
|
659
659
|
type: Injectable,
|
|
660
660
|
args: [{
|
|
661
661
|
providedIn: 'root',
|
|
@@ -758,10 +758,10 @@ class PcacColorService {
|
|
|
758
758
|
this.alert = color;
|
|
759
759
|
this.changed();
|
|
760
760
|
}
|
|
761
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.2.
|
|
762
|
-
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "22.2.
|
|
761
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.2.6", ngImport: i0, type: PcacColorService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
762
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "22.2.6", ngImport: i0, type: PcacColorService, providedIn: 'root' });
|
|
763
763
|
}
|
|
764
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.2.
|
|
764
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.2.6", ngImport: i0, type: PcacColorService, decorators: [{
|
|
765
765
|
type: Injectable,
|
|
766
766
|
args: [{
|
|
767
767
|
providedIn: 'root',
|
|
@@ -783,10 +783,10 @@ class PcacTransitionService {
|
|
|
783
783
|
prefersReducedMotion() {
|
|
784
784
|
return this.document.defaultView?.matchMedia?.('(prefers-reduced-motion: reduce)').matches ?? false;
|
|
785
785
|
}
|
|
786
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.2.
|
|
787
|
-
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "22.2.
|
|
786
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.2.6", ngImport: i0, type: PcacTransitionService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
787
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "22.2.6", ngImport: i0, type: PcacTransitionService, providedIn: 'root' });
|
|
788
788
|
}
|
|
789
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.2.
|
|
789
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.2.6", ngImport: i0, type: PcacTransitionService, decorators: [{
|
|
790
790
|
type: Injectable,
|
|
791
791
|
args: [{
|
|
792
792
|
providedIn: 'root',
|
|
@@ -1200,10 +1200,10 @@ class PcacTooltipBuilder {
|
|
|
1200
1200
|
.style('left', x + (view?.scrollX ?? 0) + 'px')
|
|
1201
1201
|
.style('top', y + (view?.scrollY ?? 0) + 'px');
|
|
1202
1202
|
}
|
|
1203
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.2.
|
|
1204
|
-
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "22.2.
|
|
1203
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.2.6", ngImport: i0, type: PcacTooltipBuilder, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
1204
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "22.2.6", ngImport: i0, type: PcacTooltipBuilder, providedIn: 'root' });
|
|
1205
1205
|
}
|
|
1206
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.2.
|
|
1206
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.2.6", ngImport: i0, type: PcacTooltipBuilder, decorators: [{
|
|
1207
1207
|
type: Injectable,
|
|
1208
1208
|
args: [{
|
|
1209
1209
|
providedIn: 'root',
|
|
@@ -1817,10 +1817,10 @@ class PcacChart {
|
|
|
1817
1817
|
fitText(this, maxWidth);
|
|
1818
1818
|
});
|
|
1819
1819
|
}
|
|
1820
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.2.
|
|
1821
|
-
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "22.2.
|
|
1820
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.2.6", ngImport: i0, type: PcacChart, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
1821
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "22.2.6", ngImport: i0, type: PcacChart });
|
|
1822
1822
|
}
|
|
1823
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.2.
|
|
1823
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.2.6", ngImport: i0, type: PcacChart, decorators: [{
|
|
1824
1824
|
type: Injectable
|
|
1825
1825
|
}] });
|
|
1826
1826
|
/**
|
|
@@ -2299,10 +2299,10 @@ class BarHorizontalChartBuilder extends PcacChart {
|
|
|
2299
2299
|
this.hideTooltip();
|
|
2300
2300
|
});
|
|
2301
2301
|
}
|
|
2302
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.2.
|
|
2303
|
-
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "22.2.
|
|
2302
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.2.6", ngImport: i0, type: BarHorizontalChartBuilder, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
|
|
2303
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "22.2.6", ngImport: i0, type: BarHorizontalChartBuilder });
|
|
2304
2304
|
}
|
|
2305
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.2.
|
|
2305
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.2.6", ngImport: i0, type: BarHorizontalChartBuilder, decorators: [{
|
|
2306
2306
|
type: Injectable
|
|
2307
2307
|
}] });
|
|
2308
2308
|
|
|
@@ -2355,10 +2355,10 @@ class PcacChartResizeService {
|
|
|
2355
2355
|
destroyRef.onDestroy(() => observer.disconnect());
|
|
2356
2356
|
});
|
|
2357
2357
|
}
|
|
2358
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.2.
|
|
2359
|
-
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "22.2.
|
|
2358
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.2.6", ngImport: i0, type: PcacChartResizeService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
2359
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "22.2.6", ngImport: i0, type: PcacChartResizeService, providedIn: 'root' });
|
|
2360
2360
|
}
|
|
2361
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.2.
|
|
2361
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.2.6", ngImport: i0, type: PcacChartResizeService, decorators: [{
|
|
2362
2362
|
type: Injectable,
|
|
2363
2363
|
args: [{ providedIn: 'root' }]
|
|
2364
2364
|
}] });
|
|
@@ -2408,10 +2408,10 @@ class PcacTooltipDirective {
|
|
|
2408
2408
|
static ngTemplateContextGuard(_dir, _ctx) {
|
|
2409
2409
|
return true;
|
|
2410
2410
|
}
|
|
2411
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.2.
|
|
2412
|
-
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "22.2.
|
|
2411
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.2.6", ngImport: i0, type: PcacTooltipDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
2412
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "22.2.6", type: PcacTooltipDirective, isStandalone: true, selector: "ng-template[pcacTooltip]", ngImport: i0 });
|
|
2413
2413
|
}
|
|
2414
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.2.
|
|
2414
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.2.6", ngImport: i0, type: PcacTooltipDirective, decorators: [{
|
|
2415
2415
|
type: Directive,
|
|
2416
2416
|
args: [{
|
|
2417
2417
|
selector: 'ng-template[pcacTooltip]'
|
|
@@ -2455,10 +2455,10 @@ class PcacBarHorizontalChart {
|
|
|
2455
2455
|
this.chartBuilder.buildChart(this.chartElm(), config);
|
|
2456
2456
|
}
|
|
2457
2457
|
}
|
|
2458
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.2.
|
|
2459
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.2.0", version: "22.2.
|
|
2458
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.2.6", ngImport: i0, type: PcacBarHorizontalChart, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
2459
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.2.0", version: "22.2.6", type: PcacBarHorizontalChart, isStandalone: true, selector: "pcac-bar-horizontal-chart", inputs: { config: { classPropertyName: "config", publicName: "config", isSignal: true, isRequired: true, transformFunction: null } }, outputs: { barClicked: "barClicked" }, host: { properties: { "class.pcac-height-full": "config().heightFull" } }, providers: [BarHorizontalChartBuilder], queries: [{ propertyName: "tooltipTemplate", first: true, predicate: PcacTooltipDirective, descendants: true, isSignal: true }], viewQueries: [{ propertyName: "chartElm", first: true, predicate: ["chart"], descendants: true, isSignal: true }], ngImport: i0, template: "<section class=\"pcac-bar-horizontal-chart\">\n <svg #chart></svg>\n</section>\n", styles: [".pcac-bar-horizontal-chart{display:block}.pcac-bar-horizontal-chart svg{width:100%;display:block}pcac-bar-horizontal-chart.pcac-height-full{display:block;height:100%}pcac-bar-horizontal-chart.pcac-height-full .pcac-bar-horizontal-chart{height:100%}\n"], encapsulation: i0.ViewEncapsulation.None });
|
|
2460
2460
|
}
|
|
2461
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.2.
|
|
2461
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.2.6", ngImport: i0, type: PcacBarHorizontalChart, decorators: [{
|
|
2462
2462
|
type: Component,
|
|
2463
2463
|
args: [{ selector: 'pcac-bar-horizontal-chart', host: { '[class.pcac-height-full]': 'config().heightFull' }, encapsulation: ViewEncapsulation.None, providers: [BarHorizontalChartBuilder], template: "<section class=\"pcac-bar-horizontal-chart\">\n <svg #chart></svg>\n</section>\n", styles: [".pcac-bar-horizontal-chart{display:block}.pcac-bar-horizontal-chart svg{width:100%;display:block}pcac-bar-horizontal-chart.pcac-height-full{display:block;height:100%}pcac-bar-horizontal-chart.pcac-height-full .pcac-bar-horizontal-chart{height:100%}\n"] }]
|
|
2464
2464
|
}], ctorParameters: () => [], propDecorators: { config: [{ type: i0.Input, args: [{ isSignal: true, alias: "config", required: true }] }], chartElm: [{ type: i0.ViewChild, args: ['chart', { isSignal: true }] }], barClicked: [{ type: i0.Output, args: ["barClicked"] }], tooltipTemplate: [{ type: i0.ContentChild, args: [i0.forwardRef(() => PcacTooltipDirective), { isSignal: true }] }] } });
|
|
@@ -2762,10 +2762,10 @@ class BarVerticalChartBuilder extends PcacChart {
|
|
|
2762
2762
|
return '3px';
|
|
2763
2763
|
});
|
|
2764
2764
|
}
|
|
2765
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.2.
|
|
2766
|
-
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "22.2.
|
|
2765
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.2.6", ngImport: i0, type: BarVerticalChartBuilder, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
|
|
2766
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "22.2.6", ngImport: i0, type: BarVerticalChartBuilder });
|
|
2767
2767
|
}
|
|
2768
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.2.
|
|
2768
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.2.6", ngImport: i0, type: BarVerticalChartBuilder, decorators: [{
|
|
2769
2769
|
type: Injectable
|
|
2770
2770
|
}] });
|
|
2771
2771
|
|
|
@@ -2806,10 +2806,10 @@ class PcacBarVerticalChart {
|
|
|
2806
2806
|
this.chartBuilder.buildChart(this.chartElm(), config);
|
|
2807
2807
|
}
|
|
2808
2808
|
}
|
|
2809
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.2.
|
|
2810
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.2.0", version: "22.2.
|
|
2809
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.2.6", ngImport: i0, type: PcacBarVerticalChart, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
2810
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.2.0", version: "22.2.6", type: PcacBarVerticalChart, isStandalone: true, selector: "pcac-bar-vertical-chart", inputs: { config: { classPropertyName: "config", publicName: "config", isSignal: true, isRequired: true, transformFunction: null } }, outputs: { barClicked: "barClicked" }, host: { properties: { "class.pcac-height-full": "config().heightFull" } }, providers: [BarVerticalChartBuilder], queries: [{ propertyName: "tooltipTemplate", first: true, predicate: PcacTooltipDirective, descendants: true, isSignal: true }], viewQueries: [{ propertyName: "chartElm", first: true, predicate: ["chart"], descendants: true, isSignal: true }], ngImport: i0, template: "<section class=\"pcac-bar-vertical-chart\">\n <svg #chart></svg>\n</section>\n", styles: [".pcac-bar-vertical-chart svg{width:100%;display:block}pcac-bar-vertical-chart.pcac-height-full{display:block;height:100%}pcac-bar-vertical-chart.pcac-height-full .pcac-bar-vertical-chart{height:100%}\n"], encapsulation: i0.ViewEncapsulation.None });
|
|
2811
2811
|
}
|
|
2812
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.2.
|
|
2812
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.2.6", ngImport: i0, type: PcacBarVerticalChart, decorators: [{
|
|
2813
2813
|
type: Component,
|
|
2814
2814
|
args: [{ selector: 'pcac-bar-vertical-chart', host: { '[class.pcac-height-full]': 'config().heightFull' }, encapsulation: ViewEncapsulation.None, providers: [BarVerticalChartBuilder], template: "<section class=\"pcac-bar-vertical-chart\">\n <svg #chart></svg>\n</section>\n", styles: [".pcac-bar-vertical-chart svg{width:100%;display:block}pcac-bar-vertical-chart.pcac-height-full{display:block;height:100%}pcac-bar-vertical-chart.pcac-height-full .pcac-bar-vertical-chart{height:100%}\n"] }]
|
|
2815
2815
|
}], ctorParameters: () => [], propDecorators: { config: [{ type: i0.Input, args: [{ isSignal: true, alias: "config", required: true }] }], chartElm: [{ type: i0.ViewChild, args: ['chart', { isSignal: true }] }], barClicked: [{ type: i0.Output, args: ["barClicked"] }], tooltipTemplate: [{ type: i0.ContentChild, args: [i0.forwardRef(() => PcacTooltipDirective), { isSignal: true }] }] } });
|
|
@@ -3001,6 +3001,15 @@ class PcacLineAreaChartConfig extends PcacAxisChartConfig {
|
|
|
3001
3001
|
* empty, the theme palette is used - optional, as on every chart's config.
|
|
3002
3002
|
*/
|
|
3003
3003
|
colorOverride;
|
|
3004
|
+
/**
|
|
3005
|
+
* Radius of each point's dot at rest, in px. Default 4. A hovered or focused dot grows to 1.5x
|
|
3006
|
+
* that, and never to less than 4px, so the point being read always shows. 0 draws no dots at
|
|
3007
|
+
* rest, for a line or area chart where the line carries the data - a sparkline, say: each point
|
|
3008
|
+
* can still be hovered, focused and clicked (a dot smaller than 4px gets a transparent 4px
|
|
3009
|
+
* target), and still shows its tooltip. Not for a plot chart, which then draws nothing until
|
|
3010
|
+
* hovered. Point images are unaffected; they're sized by `pointImage`.
|
|
3011
|
+
*/
|
|
3012
|
+
pointRadius;
|
|
3004
3013
|
/**
|
|
3005
3014
|
* Bounding box for any point images (`PcacData.image`) on this chart. Optional; each field falls
|
|
3006
3015
|
* back to the `PcacPointImageConfig` default when not given, so a consumer only setting `image`
|
|
@@ -3320,10 +3329,10 @@ class DotPlotChartBuilder extends PcacChart {
|
|
|
3320
3329
|
.duration(duration / 2)
|
|
3321
3330
|
.attr('opacity', 1);
|
|
3322
3331
|
}
|
|
3323
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.2.
|
|
3324
|
-
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "22.2.
|
|
3332
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.2.6", ngImport: i0, type: DotPlotChartBuilder, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
|
|
3333
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "22.2.6", ngImport: i0, type: DotPlotChartBuilder });
|
|
3325
3334
|
}
|
|
3326
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.2.
|
|
3335
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.2.6", ngImport: i0, type: DotPlotChartBuilder, decorators: [{
|
|
3327
3336
|
type: Injectable
|
|
3328
3337
|
}] });
|
|
3329
3338
|
|
|
@@ -3362,10 +3371,10 @@ class PcacDotPlotChart {
|
|
|
3362
3371
|
this.chartBuilder.buildChart(this.chartElm(), config);
|
|
3363
3372
|
}
|
|
3364
3373
|
}
|
|
3365
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.2.
|
|
3366
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.2.0", version: "22.2.
|
|
3374
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.2.6", ngImport: i0, type: PcacDotPlotChart, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
3375
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.2.0", version: "22.2.6", type: PcacDotPlotChart, isStandalone: true, selector: "pcac-dot-plot-chart", inputs: { config: { classPropertyName: "config", publicName: "config", isSignal: true, isRequired: true, transformFunction: null } }, outputs: { dotClicked: "dotClicked", markFit: "markFit" }, host: { properties: { "class.pcac-height-full": "config().heightFull" } }, providers: [DotPlotChartBuilder], queries: [{ propertyName: "tooltipTemplate", first: true, predicate: PcacTooltipDirective, descendants: true, isSignal: true }], viewQueries: [{ propertyName: "chartElm", first: true, predicate: ["chart"], descendants: true, isSignal: true }], ngImport: i0, template: "<section class=\"pcac-dot-plot-chart\">\n <svg #chart></svg>\n</section>\n", styles: [".pcac-dot-plot-chart svg{width:100%;display:block}.pcac-dot-plot-chart .pcac-dot{stroke-width:2px}.pcac-dot-plot-chart .pcac-dot-mark{cursor:pointer}pcac-dot-plot-chart.pcac-height-full{display:block;height:100%}pcac-dot-plot-chart.pcac-height-full .pcac-dot-plot-chart{height:100%}\n"], encapsulation: i0.ViewEncapsulation.None });
|
|
3367
3376
|
}
|
|
3368
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.2.
|
|
3377
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.2.6", ngImport: i0, type: PcacDotPlotChart, decorators: [{
|
|
3369
3378
|
type: Component,
|
|
3370
3379
|
args: [{ selector: 'pcac-dot-plot-chart', host: { '[class.pcac-height-full]': 'config().heightFull' }, encapsulation: ViewEncapsulation.None, providers: [DotPlotChartBuilder], template: "<section class=\"pcac-dot-plot-chart\">\n <svg #chart></svg>\n</section>\n", styles: [".pcac-dot-plot-chart svg{width:100%;display:block}.pcac-dot-plot-chart .pcac-dot{stroke-width:2px}.pcac-dot-plot-chart .pcac-dot-mark{cursor:pointer}pcac-dot-plot-chart.pcac-height-full{display:block;height:100%}pcac-dot-plot-chart.pcac-height-full .pcac-dot-plot-chart{height:100%}\n"] }]
|
|
3371
3380
|
}], ctorParameters: () => [], propDecorators: { config: [{ type: i0.Input, args: [{ isSignal: true, alias: "config", required: true }] }], chartElm: [{ type: i0.ViewChild, args: ['chart', { isSignal: true }] }], dotClicked: [{ type: i0.Output, args: ["dotClicked"] }], markFit: [{ type: i0.Output, args: ["markFit"] }], tooltipTemplate: [{ type: i0.ContentChild, args: [i0.forwardRef(() => PcacTooltipDirective), { isSignal: true }] }] } });
|
|
@@ -3393,10 +3402,10 @@ class PcacLegend {
|
|
|
3393
3402
|
this.config.set({ ...this.config(), items });
|
|
3394
3403
|
this.itemClicked.emit(items);
|
|
3395
3404
|
}
|
|
3396
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.2.
|
|
3397
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.2.
|
|
3405
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.2.6", ngImport: i0, type: PcacLegend, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
3406
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.2.6", type: PcacLegend, isStandalone: true, selector: "pcac-legend", inputs: { config: { classPropertyName: "config", publicName: "config", isSignal: true, isRequired: true, transformFunction: null } }, outputs: { config: "configChange", itemClicked: "itemClicked" }, host: { attributes: { "role": "group" }, properties: { "attr.aria-labelledby": "config().heading ? headingId : null" } }, ngImport: i0, template: "@if (config().heading) {\n<div class=\"pcac-legend-label\" [id]=\"headingId\"><small>{{config().heading}}</small></div>\n}\n@for(item of config().items; track $index; let i = $index) {\n<div class=\"pcac-legend-item\" [class.pcac-legend-unchecked]=\"!item.checked\"\n role=\"switch\" [attr.aria-checked]=\"item.checked\" tabindex=\"0\" (click)=\"onItemClicked(i)\"\n (keydown.enter)=\"onItemClicked(i)\" (keydown.space)=\"onItemClicked(i); $event.preventDefault()\">\n @let color = item.colorOverride ? item.colorOverride : colorScale()[i];\n <div class=\"pcac-legend-circle\" [style.backgroundColor]=\"color\"></div>\n <small>{{ item.label }}</small>\n</div>\n}\n", styles: [":host{display:flex;align-items:center;flex-wrap:wrap;column-gap:8px}.pcac-legend-label{margin-bottom:2.5px}.pcac-legend-item{cursor:pointer;display:flex;align-items:center;min-height:24px}.pcac-legend-item:hover .pcac-legend-circle{box-shadow:0 0 6px #0000004d;transform:scale(1.2)}.pcac-legend-circle{display:inline-block;width:12px;height:12px;border-radius:50%;margin-right:4px;transition:box-shadow .3s ease,transform .3s ease}@media(prefers-reduced-motion:reduce){.pcac-legend-circle{transition:none}}.pcac-legend-unchecked{opacity:.5}.pcac-legend-item:focus-visible{outline:2px solid currentColor;outline-offset:2px}\n"] });
|
|
3398
3407
|
}
|
|
3399
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.2.
|
|
3408
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.2.6", ngImport: i0, type: PcacLegend, decorators: [{
|
|
3400
3409
|
type: Component,
|
|
3401
3410
|
args: [{ selector: 'pcac-legend', host: {
|
|
3402
3411
|
role: 'group',
|
|
@@ -3484,14 +3493,16 @@ class PlaChartEffectsBuilder {
|
|
|
3484
3493
|
.enter().append('g')
|
|
3485
3494
|
.attr('class', 'effect-group')
|
|
3486
3495
|
.attr('style', ({ data }) => data.hide ? 'display: none' : null);
|
|
3496
|
+
const circleRadius = this.config.circleRadius ?? 7;
|
|
3487
3497
|
mousePerLine.append('circle')
|
|
3488
|
-
.attr('r',
|
|
3498
|
+
.attr('r', circleRadius)
|
|
3489
3499
|
.attr('class', 'effect-circle')
|
|
3490
3500
|
.style('stroke', ({ index }) => this.config.colors[index]);
|
|
3491
3501
|
mousePerLine.append('text')
|
|
3492
3502
|
.attr('class', 'effect-text')
|
|
3493
3503
|
.attr('y', 1.5)
|
|
3494
|
-
|
|
3504
|
+
// Clear of the ring: 10px at the default 7px ring, as it always was.
|
|
3505
|
+
.attr('transform', `translate(${circleRadius + 3},3)`);
|
|
3495
3506
|
}
|
|
3496
3507
|
buildCanvas() {
|
|
3497
3508
|
this.config.svg.append('rect')
|
|
@@ -3613,10 +3624,10 @@ class PlaChartEffectsBuilder {
|
|
|
3613
3624
|
?? y.tickFormat(this.config.yTicks);
|
|
3614
3625
|
return formatter(value);
|
|
3615
3626
|
}
|
|
3616
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.2.
|
|
3617
|
-
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "22.2.
|
|
3627
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.2.6", ngImport: i0, type: PlaChartEffectsBuilder, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
3628
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "22.2.6", ngImport: i0, type: PlaChartEffectsBuilder });
|
|
3618
3629
|
}
|
|
3619
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.2.
|
|
3630
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.2.6", ngImport: i0, type: PlaChartEffectsBuilder, decorators: [{
|
|
3620
3631
|
type: Injectable
|
|
3621
3632
|
}] });
|
|
3622
3633
|
|
|
@@ -3913,8 +3924,6 @@ function drawRange(group, extent, style, gradientId) {
|
|
|
3913
3924
|
}
|
|
3914
3925
|
}
|
|
3915
3926
|
|
|
3916
|
-
/** A hovered dot's radius - the largest a dot gets, so a ring around it never touches it. */
|
|
3917
|
-
const GAUGE_DOT_RADIUS = 6;
|
|
3918
3927
|
/** Whether a point has a gauge value to draw. */
|
|
3919
3928
|
function hasGauge(d) {
|
|
3920
3929
|
return typeof d.gauge === 'number' && Number.isFinite(d.gauge);
|
|
@@ -4253,6 +4262,22 @@ const PLOT_CLIP_ALLOWANCE = 1;
|
|
|
4253
4262
|
* the size-in explicitly instead, since both tween `r`.
|
|
4254
4263
|
*/
|
|
4255
4264
|
const DOT_GROW_TRANSITION = 'pcac-dot-grow';
|
|
4265
|
+
/** A dot's resting radius when the config has no `pointRadius`. */
|
|
4266
|
+
const DEFAULT_DOT_RADIUS = 4;
|
|
4267
|
+
/**
|
|
4268
|
+
* The smallest a hovered dot gets, and the radius of the transparent hover target a smaller dot
|
|
4269
|
+
* (down to none at all, `pointRadius: 0`) is given so the pointer can still find it.
|
|
4270
|
+
*/
|
|
4271
|
+
const MIN_ACTIVE_DOT_RADIUS = 4;
|
|
4272
|
+
/** The dot's outline (`.dot`'s 2px stroke in the theme), half of which lies outside its radius. */
|
|
4273
|
+
const DOT_STROKE_WIDTH = 2;
|
|
4274
|
+
/**
|
|
4275
|
+
* Whether a mouseover/mouseout on a point's group is the pointer moving between that point's own
|
|
4276
|
+
* children (its other end, `relatedTarget`, inside the group) rather than entering or leaving it.
|
|
4277
|
+
*/
|
|
4278
|
+
const isFromWithin = (group, event) => event.relatedTarget instanceof Node && group.contains(event.relatedTarget);
|
|
4279
|
+
/** A hovered dot's radius for a resting `radius`: 1.5x, at least `MIN_ACTIVE_DOT_RADIUS`. */
|
|
4280
|
+
const hoveredDotRadius = (radius) => Math.max(radius * 1.5, MIN_ACTIVE_DOT_RADIUS);
|
|
4256
4281
|
const DOT_HOVER_TRANSITION = 'pcac-dot-hover';
|
|
4257
4282
|
/** See `revealAfterEntry`. */
|
|
4258
4283
|
const REVEAL_TRANSITION = 'pcac-reveal';
|
|
@@ -4290,6 +4315,13 @@ class PlaChartBuilder extends PcacChart {
|
|
|
4290
4315
|
restoringZoom = false;
|
|
4291
4316
|
lineGenerator;
|
|
4292
4317
|
areaGenerator;
|
|
4318
|
+
/** A dot's resting radius: the config's `pointRadius`, or `DEFAULT_DOT_RADIUS`. */
|
|
4319
|
+
dotRadius = DEFAULT_DOT_RADIUS;
|
|
4320
|
+
/**
|
|
4321
|
+
* A hovered (or focused) dot's radius - 1.5x the resting one, at least `MIN_ACTIVE_DOT_RADIUS`.
|
|
4322
|
+
* The largest a dot gets, so it's what fan-out, gauge rings and the edge space make room for.
|
|
4323
|
+
*/
|
|
4324
|
+
hoverDotRadius = hoveredDotRadius(DEFAULT_DOT_RADIUS);
|
|
4293
4325
|
/** This build's zoom behavior; `null` while zoom is off. */
|
|
4294
4326
|
zoomBehavior = null;
|
|
4295
4327
|
dotClickedSource = new Subject();
|
|
@@ -4313,9 +4345,10 @@ class PlaChartBuilder extends PcacChart {
|
|
|
4313
4345
|
plotClipPathId;
|
|
4314
4346
|
/**
|
|
4315
4347
|
* How far the points' clip-path rect extends past the drawable [0, width] x [0, height] area on
|
|
4316
|
-
* every side, so a point sitting exactly on the domain's edge isn't cut in half. 10px
|
|
4317
|
-
*
|
|
4318
|
-
* bigger than that, so `reservePointSpace()` widens
|
|
4348
|
+
* every side, so a point sitting exactly on the domain's edge isn't cut in half. 10px clears a
|
|
4349
|
+
* dot at the default `pointRadius` (4, or 6 hovered, plus its outline); a larger `pointRadius`,
|
|
4350
|
+
* a point image or a gauge ring can be much bigger than that, so `reservePointSpace()` widens
|
|
4351
|
+
* this to half the largest mark on the chart
|
|
4319
4352
|
* (and grows the margins to match, since the clip-path only matters up to the edge of the SVG).
|
|
4320
4353
|
* The buffer is only there for points whose center is inside the plot; one whose center zoom
|
|
4321
4354
|
* has carried past an edge is hidden outright (see `pointVisible`), rather than left showing up
|
|
@@ -4368,6 +4401,10 @@ class PlaChartBuilder extends PcacChart {
|
|
|
4368
4401
|
// fan-out and the edge space have to make room for.
|
|
4369
4402
|
this.pointImage = { ...new PcacPointImageConfig(), ...this.config.pointImage };
|
|
4370
4403
|
this.pointGauge = this.config.pointGauge ? { ...new PcacPointGaugeConfig(), ...this.config.pointGauge } : null;
|
|
4404
|
+
const pointRadius = this.config.pointRadius;
|
|
4405
|
+
this.dotRadius = typeof pointRadius === 'number' && Number.isFinite(pointRadius) && pointRadius >= 0
|
|
4406
|
+
? pointRadius : DEFAULT_DOT_RADIUS;
|
|
4407
|
+
this.hoverDotRadius = hoveredDotRadius(this.dotRadius);
|
|
4371
4408
|
// A hidden axis keeps 8px rather than 0 so a dot on the edge of the plot isn't clipped
|
|
4372
4409
|
this.initializeAxisState(this.config, 'y', 8, this.largestMarkHalf());
|
|
4373
4410
|
this.chartTypeLabel = CHART_TYPE_LABELS[type];
|
|
@@ -4493,6 +4530,7 @@ class PlaChartBuilder extends PcacChart {
|
|
|
4493
4530
|
xFormat: this.xAxis.format,
|
|
4494
4531
|
yFormat: this.yAxis.format,
|
|
4495
4532
|
yTicks: this.yAxis.ticks,
|
|
4533
|
+
circleRadius: this.hoverDotRadius + 1,
|
|
4496
4534
|
});
|
|
4497
4535
|
}
|
|
4498
4536
|
// Axes above the lines/areas (so an axis line isn't covered by a series sitting at x = 0),
|
|
@@ -4528,18 +4566,18 @@ class PlaChartBuilder extends PcacChart {
|
|
|
4528
4566
|
}
|
|
4529
4567
|
this.fanOut = { ...new PcacPointFanOutConfig(), ...fanOut };
|
|
4530
4568
|
// A group's members are kept apart by the size of what's drawn for them: the image box when
|
|
4531
|
-
// any member has an image, else a hovered dot (
|
|
4569
|
+
// any member has an image, else a hovered dot (`hoverDotRadius`) - plus a gauge ring on both sides when
|
|
4532
4570
|
// any member has one.
|
|
4533
4571
|
const { maxWidth, maxHeight } = this.pointImage;
|
|
4534
4572
|
const ring = (group) => this.pointGauge && group.members.some((member) => hasGauge(member.data)) ? 2 * gaugeExtent(this.pointGauge) : 0;
|
|
4535
|
-
const markSize = (group) => (group.members.some((member) => !!member.data.image) ? Math.max(maxWidth, maxHeight) : 2 *
|
|
4573
|
+
const markSize = (group) => (group.members.some((member) => !!member.data.image) ? Math.max(maxWidth, maxHeight) : 2 * this.hoverDotRadius) + ring(group);
|
|
4536
4574
|
const radius = (group) => this.fanOut.radius ?? fanOutRadius(group.members.length, markSize(group), this.fanOut.gap);
|
|
4537
4575
|
this.fanOutOffsets = fanOutOffsets(this.coincidentGroups, radius);
|
|
4538
4576
|
}
|
|
4539
4577
|
/**
|
|
4540
4578
|
* Half the largest mark on the chart toward each axis, for `autoTickSize` and the edge space
|
|
4541
4579
|
* (`reservePointSpace`): `x` its vertical half (what reaches down to the x axis), `y` its
|
|
4542
|
-
* horizontal half. Measured as drawn - a hovered dot (`
|
|
4580
|
+
* horizontal half. Measured as drawn - a hovered dot (`hoverDotRadius`), an image's box, and
|
|
4543
4581
|
* a gauge ring around either (circular, so the same both ways). Points in a hidden series
|
|
4544
4582
|
* count, so toggling one in a legend doesn't move the axes; a gap (no value) draws nothing and
|
|
4545
4583
|
* doesn't. Needs `pointImage` and `pointGauge` resolved.
|
|
@@ -4551,11 +4589,11 @@ class PlaChartBuilder extends PcacChart {
|
|
|
4551
4589
|
if (!hasValue(point)) {
|
|
4552
4590
|
continue;
|
|
4553
4591
|
}
|
|
4554
|
-
let x = point.image ? maxHeight / 2 :
|
|
4555
|
-
let y = point.image ? maxWidth / 2 :
|
|
4592
|
+
let x = point.image ? maxHeight / 2 : this.hoverDotRadius;
|
|
4593
|
+
let y = point.image ? maxWidth / 2 : this.hoverDotRadius;
|
|
4556
4594
|
if (this.pointGauge && hasGauge(point)) {
|
|
4557
4595
|
// The ring surrounds the mark's larger side - see `markRadius` in `drawDots`.
|
|
4558
|
-
const ring = (point.image ? Math.max(maxWidth, maxHeight) / 2 :
|
|
4596
|
+
const ring = (point.image ? Math.max(maxWidth, maxHeight) / 2 : this.hoverDotRadius) + gaugeExtent(this.pointGauge);
|
|
4559
4597
|
x = Math.max(x, ring);
|
|
4560
4598
|
y = Math.max(y, ring);
|
|
4561
4599
|
}
|
|
@@ -4574,14 +4612,20 @@ class PlaChartBuilder extends PcacChart {
|
|
|
4574
4612
|
* both axes; measured against the box's own side, a ringed wide image at the top of the domain
|
|
4575
4613
|
* had the top of its ring cut off by the SVG. Half a mark is all a fan-out needs too: a
|
|
4576
4614
|
* fanned-out ring is shifted back inside the plot area (`fanOutShift`), so no member's center
|
|
4577
|
-
* ever sits past the edge either. A
|
|
4578
|
-
*
|
|
4615
|
+
* ever sits past the edge either. A dot counts at its hovered size plus its outline - at the
|
|
4616
|
+
* default `pointRadius` that fits the 10px buffer and every margin already, but a larger one
|
|
4617
|
+
* doesn't. Must run after `resolvePointLayout()` and between `initializeAxisState()` and
|
|
4579
4618
|
* `initializeChartState()`, see `reserveEdgeSpace`.
|
|
4580
4619
|
*/
|
|
4581
4620
|
reservePointSpace() {
|
|
4582
4621
|
const half = this.largestMarkHalf();
|
|
4583
|
-
|
|
4584
|
-
|
|
4622
|
+
// A hovered dot's outline reaches past its radius by half its width. Only here, not in
|
|
4623
|
+
// `largestMarkHalf()`, which also sizes `autoTickSize`: the tick marks reach the mark, while
|
|
4624
|
+
// the edge space has to hold all of it.
|
|
4625
|
+
const hasDots = this.config.data.some((series) => (series.data ?? []).some((p) => hasValue(p) && !p.image));
|
|
4626
|
+
const dotReach = hasDots ? this.hoverDotRadius + DOT_STROKE_WIDTH / 2 : 0;
|
|
4627
|
+
const halfWidth = Math.ceil(Math.max(half.y, dotReach));
|
|
4628
|
+
const halfHeight = Math.ceil(Math.max(half.x, dotReach));
|
|
4585
4629
|
this.clipBuffer = Math.max(10, halfWidth, halfHeight);
|
|
4586
4630
|
this.reserveEdgeSpace({ top: halfHeight, bottom: halfHeight, left: halfWidth, right: halfWidth });
|
|
4587
4631
|
}
|
|
@@ -4891,10 +4935,22 @@ class PlaChartBuilder extends PcacChart {
|
|
|
4891
4935
|
.attr('class', 'point')
|
|
4892
4936
|
.attr('transform', (d, i) => this.pointTransform(d, i, this.scales))
|
|
4893
4937
|
.attr('display', (d, i) => this.pointDisplay(d, i, this.scales))
|
|
4894
|
-
|
|
4895
|
-
|
|
4938
|
+
// mouseover/mouseout bubble from the point's children, and a point can have several (its
|
|
4939
|
+
// dot over a `.dot-hit` target, a gauge ring): moving between them is still the same hover,
|
|
4940
|
+
// so only the pointer arriving from or leaving for outside the point counts. Otherwise
|
|
4941
|
+
// crossing from the hover target onto the dot growing over it ended the hover and
|
|
4942
|
+
// restarted it - tooltip (and a custom template's view) torn down and rebuilt, the dot
|
|
4943
|
+
// shrinking and growing again.
|
|
4944
|
+
.on('mouseover', function (event, d) {
|
|
4945
|
+
if (!isFromWithin(this, event)) {
|
|
4946
|
+
self.enterPoint(this, d, series, index);
|
|
4947
|
+
}
|
|
4948
|
+
})
|
|
4949
|
+
.on('mouseout', function (event) {
|
|
4950
|
+
if (!isFromWithin(this, event)) {
|
|
4951
|
+
self.leavePoint();
|
|
4952
|
+
}
|
|
4896
4953
|
})
|
|
4897
|
-
.on('mouseout', () => this.leavePoint())
|
|
4898
4954
|
.on('click', (_event, d) => {
|
|
4899
4955
|
this.dotClickedSource.next(d);
|
|
4900
4956
|
});
|
|
@@ -4913,6 +4969,17 @@ class PlaChartBuilder extends PcacChart {
|
|
|
4913
4969
|
point.removeAttribute('aria-describedby');
|
|
4914
4970
|
},
|
|
4915
4971
|
});
|
|
4972
|
+
// A dot too small to point at (or not drawn at all, `pointRadius: 0`) gets a transparent
|
|
4973
|
+
// target of the smallest hovered size underneath it, so the pointer can still find the point.
|
|
4974
|
+
if (this.dotRadius < MIN_ACTIVE_DOT_RADIUS) {
|
|
4975
|
+
points.filter((d) => !d.image)
|
|
4976
|
+
.append('circle')
|
|
4977
|
+
.attr('class', 'dot-hit')
|
|
4978
|
+
.attr('cx', (d) => this.offsetOf(d).dx)
|
|
4979
|
+
.attr('cy', (d) => this.offsetOf(d).dy)
|
|
4980
|
+
.attr('r', MIN_ACTIVE_DOT_RADIUS)
|
|
4981
|
+
.attr('fill', 'transparent');
|
|
4982
|
+
}
|
|
4916
4983
|
points.filter((d) => !d.image)
|
|
4917
4984
|
.append('circle')
|
|
4918
4985
|
.attr('class', 'dot')
|
|
@@ -4925,7 +4992,7 @@ class PlaChartBuilder extends PcacChart {
|
|
|
4925
4992
|
.attr('cy', (d) => this.offsetOf(d).dy))
|
|
4926
4993
|
.transition(DOT_GROW_TRANSITION)
|
|
4927
4994
|
.duration(duration)
|
|
4928
|
-
.attr('r',
|
|
4995
|
+
.attr('r', this.dotRadius);
|
|
4929
4996
|
// `preserveAspectRatio="xMidYMid meet"` is what does the "resize to fit" - the image is
|
|
4930
4997
|
// scaled uniformly to fit inside the maxWidth x maxHeight box and centered within it, so
|
|
4931
4998
|
// a non-square image still lands centered on the point. x/y offset by half the box so the
|
|
@@ -4945,7 +5012,7 @@ class PlaChartBuilder extends PcacChart {
|
|
|
4945
5012
|
.attr('y', (d) => -maxHeight / 2 + this.offsetOf(d).dy);
|
|
4946
5013
|
// Gauge rings around the image box or the dot, rising in with the mark they surround.
|
|
4947
5014
|
if (this.pointGauge) {
|
|
4948
|
-
const markRadius = (d) => d.image ? Math.max(maxWidth, maxHeight) / 2 :
|
|
5015
|
+
const markRadius = (d) => d.image ? Math.max(maxWidth, maxHeight) / 2 : this.hoverDotRadius;
|
|
4949
5016
|
drawPointGauges(points, this.pointGauge, markRadius)
|
|
4950
5017
|
.style('--pcac-point-gauge-series-color', () => this.colors[index])
|
|
4951
5018
|
.attr('transform', (d) => `translate(${this.offsetOf(d).dx}, ${rise(d)})`)
|
|
@@ -4984,8 +5051,10 @@ class PlaChartBuilder extends PcacChart {
|
|
|
4984
5051
|
coincident: this.coincidentWith(d),
|
|
4985
5052
|
valueFormat: this.yAxis.format,
|
|
4986
5053
|
keyFormat: this.xAxis.format,
|
|
4987
|
-
// The
|
|
4988
|
-
|
|
5054
|
+
// The mark itself rather than the group, so the tooltip clears what's drawn - the hover
|
|
5055
|
+
// target where there is one (it comes first): a dot smaller than it, or `pointRadius: 0`'s
|
|
5056
|
+
// undrawn one, would place the tooltip from an empty box.
|
|
5057
|
+
anchor: select(point).select('.dot-hit, .dot, .dot-image').node() ?? point,
|
|
4989
5058
|
});
|
|
4990
5059
|
// No-op for an image point (no circle inside to grow). Its own transition name, so it
|
|
4991
5060
|
// runs alongside the enter rise rather than cancelling it (see DOT_HOVER_TRANSITION);
|
|
@@ -4994,7 +5063,7 @@ class PlaChartBuilder extends PcacChart {
|
|
|
4994
5063
|
.interrupt(DOT_GROW_TRANSITION)
|
|
4995
5064
|
.transition(DOT_HOVER_TRANSITION)
|
|
4996
5065
|
.duration(duration / 3)
|
|
4997
|
-
.attr('r',
|
|
5066
|
+
.attr('r', this.hoverDotRadius)
|
|
4998
5067
|
.attr('fill', this.colors[index]);
|
|
4999
5068
|
}
|
|
5000
5069
|
/**
|
|
@@ -5014,7 +5083,7 @@ class PlaChartBuilder extends PcacChart {
|
|
|
5014
5083
|
.interrupt(DOT_GROW_TRANSITION)
|
|
5015
5084
|
.transition(DOT_HOVER_TRANSITION)
|
|
5016
5085
|
.duration(this.transitionService.getTransitionDuration() / 3)
|
|
5017
|
-
.attr('r',
|
|
5086
|
+
.attr('r', this.dotRadius)
|
|
5018
5087
|
.attr('fill', '#fff');
|
|
5019
5088
|
}
|
|
5020
5089
|
/**
|
|
@@ -5101,10 +5170,10 @@ class PlaChartBuilder extends PcacChart {
|
|
|
5101
5170
|
.filter((member) => member.data !== d)
|
|
5102
5171
|
.map((member) => ({ data: member.data, parent: member.series, index: member.index, parentIndex: member.seriesIndex }));
|
|
5103
5172
|
}
|
|
5104
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.2.
|
|
5105
|
-
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "22.2.
|
|
5173
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.2.6", ngImport: i0, type: PlaChartBuilder, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
|
|
5174
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "22.2.6", ngImport: i0, type: PlaChartBuilder });
|
|
5106
5175
|
}
|
|
5107
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.2.
|
|
5176
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.2.6", ngImport: i0, type: PlaChartBuilder, decorators: [{
|
|
5108
5177
|
type: Injectable
|
|
5109
5178
|
}] });
|
|
5110
5179
|
|
|
@@ -5153,10 +5222,10 @@ class PcacLineAreaChartComponent {
|
|
|
5153
5222
|
this.chartBuilder.buildChart(this.chartElm(), config, this.type());
|
|
5154
5223
|
}
|
|
5155
5224
|
}
|
|
5156
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.2.
|
|
5157
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.2.0", version: "22.2.
|
|
5225
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.2.6", ngImport: i0, type: PcacLineAreaChartComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
5226
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.2.0", version: "22.2.6", type: PcacLineAreaChartComponent, isStandalone: true, selector: "pcac-line-area-chart", inputs: { config: { classPropertyName: "config", publicName: "config", isSignal: true, isRequired: true, transformFunction: null }, type: { classPropertyName: "type", publicName: "type", isSignal: true, isRequired: true, transformFunction: null }, tooltipTemplate: { classPropertyName: "tooltipTemplate", publicName: "tooltipTemplate", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { dotClicked: "dotClicked" }, host: { properties: { "class.pcac-height-full": "config().heightFull" } }, providers: [PlaChartBuilder, PlaChartEffectsBuilder], viewQueries: [{ propertyName: "chartElm", first: true, predicate: ["chart"], descendants: true, isSignal: true }], ngImport: i0, template: "<section class=\"pcac-line-area-chart\">\n <svg #chart></svg>\n</section>\n\n", styles: [".pcac-line-area-chart svg{width:100%;display:block}.pcac-line-area-chart .dot{stroke-width:2px}.pcac-line-area-chart .fan-out-spoke{stroke:var(--pcac-fan-out-spoke-color, #ced4da);stroke-width:1px}.pcac-line-area-chart .fan-out-anchor{fill:var(--pcac-fan-out-anchor-color, #6c757d)}.pcac-line-area-chart .reference-line-stroke{stroke:var(--pcac-reference-line-color, #adb5bd);stroke-width:1px;stroke-dasharray:4 4}.pcac-line-area-chart .reference-line-label{font-size:11px;fill:var(--pcac-reference-line-color, #adb5bd)}.pcac-line-area-chart .point-gauge-track{fill:none;stroke:var(--pcac-point-gauge-track-color, #e9ecef)}.pcac-line-area-chart .point-gauge-arc{fill:var(--pcac-point-gauge-color, var(--pcac-point-gauge-series-color))}.pcac-line-area-chart .corner-label{font-size:12px;font-weight:500;fill:var(--pcac-corner-label-color, #6c757d)}.pcac-line-area-chart .corner-labels,.pcac-line-area-chart .reference-line-labels{pointer-events:none}.pcac-line-area-chart .pcac-labels-on-top .corner-label,.pcac-line-area-chart .pcac-labels-on-top .reference-line-label{paint-order:stroke;stroke:var(--pcac-label-halo-color, #fff);stroke-width:3px;stroke-linejoin:round}.pcac-line-area-chart .point-ranges .point-range-series{--pcac-point-range-resolved-color: var(--pcac-point-range-color, var(--pcac-point-range-series-color))}.pcac-line-area-chart .point-ranges .point-range{opacity:var(--pcac-point-range-resting-opacity, 1);transition:opacity .15s ease-out}.pcac-line-area-chart .point-ranges .point-range.is-focused{opacity:1}.pcac-line-area-chart .point-ranges.pcac-range-hover{--pcac-point-range-resting-opacity: 0}.pcac-line-area-chart .point-ranges.pcac-range-faint{--pcac-point-range-resting-opacity: var(--pcac-point-range-faint-opacity, .2)}.pcac-line-area-chart .point-ranges.pcac-range-always.has-focus .point-range:not(.is-focused){opacity:.5}.pcac-line-area-chart .point-ranges .point-range-whisker,.pcac-line-area-chart .point-ranges .point-range-cap{stroke:var(--pcac-point-range-resolved-color);stroke-width:1.25px}.pcac-line-area-chart .point-ranges .point-range-box{fill:var(--pcac-point-range-resolved-color);fill-opacity:.1;stroke:var(--pcac-point-range-resolved-color);stroke-opacity:.7;stroke-width:1.25px}.pcac-line-area-chart .point-ranges .point-range-stop{stop-color:var(--pcac-point-range-resolved-color)}.pcac-line-area-chart .point-ranges .is-focused .point-range-whisker,.pcac-line-area-chart .point-ranges .is-focused .point-range-cap,.pcac-line-area-chart .point-ranges .is-focused .point-range-box{stroke-width:1.75px}.pcac-line-area-chart .point-ranges .is-focused .point-range-box{fill-opacity:.18}@media(prefers-reduced-motion:reduce){.pcac-line-area-chart .point-ranges .point-range{transition:none}}.pcac-line-area-chart .effects-canvas{fill:none}.pcac-line-area-chart .effect-line{stroke:var(--pcac-crosshair-line-color, #ced4da);stroke-width:1px;opacity:0}.pcac-line-area-chart .effect-circle{stroke-width:1px;fill:none;opacity:0}.pcac-line-area-chart .effect-text{font-size:11px;font-weight:700;fill:var(--pcac-crosshair-text-color, #343a40)}pcac-line-chart.pcac-height-full,pcac-area-chart.pcac-height-full,pcac-plot-chart.pcac-height-full,pcac-line-area-chart.pcac-height-full{display:block;height:100%}pcac-line-area-chart.pcac-height-full .pcac-line-area-chart{height:100%}\n"], encapsulation: i0.ViewEncapsulation.None });
|
|
5158
5227
|
}
|
|
5159
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.2.
|
|
5228
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.2.6", ngImport: i0, type: PcacLineAreaChartComponent, decorators: [{
|
|
5160
5229
|
type: Component,
|
|
5161
5230
|
args: [{ selector: 'pcac-line-area-chart', host: { '[class.pcac-height-full]': 'config().heightFull' }, encapsulation: ViewEncapsulation.None, providers: [PlaChartBuilder, PlaChartEffectsBuilder], template: "<section class=\"pcac-line-area-chart\">\n <svg #chart></svg>\n</section>\n\n", styles: [".pcac-line-area-chart svg{width:100%;display:block}.pcac-line-area-chart .dot{stroke-width:2px}.pcac-line-area-chart .fan-out-spoke{stroke:var(--pcac-fan-out-spoke-color, #ced4da);stroke-width:1px}.pcac-line-area-chart .fan-out-anchor{fill:var(--pcac-fan-out-anchor-color, #6c757d)}.pcac-line-area-chart .reference-line-stroke{stroke:var(--pcac-reference-line-color, #adb5bd);stroke-width:1px;stroke-dasharray:4 4}.pcac-line-area-chart .reference-line-label{font-size:11px;fill:var(--pcac-reference-line-color, #adb5bd)}.pcac-line-area-chart .point-gauge-track{fill:none;stroke:var(--pcac-point-gauge-track-color, #e9ecef)}.pcac-line-area-chart .point-gauge-arc{fill:var(--pcac-point-gauge-color, var(--pcac-point-gauge-series-color))}.pcac-line-area-chart .corner-label{font-size:12px;font-weight:500;fill:var(--pcac-corner-label-color, #6c757d)}.pcac-line-area-chart .corner-labels,.pcac-line-area-chart .reference-line-labels{pointer-events:none}.pcac-line-area-chart .pcac-labels-on-top .corner-label,.pcac-line-area-chart .pcac-labels-on-top .reference-line-label{paint-order:stroke;stroke:var(--pcac-label-halo-color, #fff);stroke-width:3px;stroke-linejoin:round}.pcac-line-area-chart .point-ranges .point-range-series{--pcac-point-range-resolved-color: var(--pcac-point-range-color, var(--pcac-point-range-series-color))}.pcac-line-area-chart .point-ranges .point-range{opacity:var(--pcac-point-range-resting-opacity, 1);transition:opacity .15s ease-out}.pcac-line-area-chart .point-ranges .point-range.is-focused{opacity:1}.pcac-line-area-chart .point-ranges.pcac-range-hover{--pcac-point-range-resting-opacity: 0}.pcac-line-area-chart .point-ranges.pcac-range-faint{--pcac-point-range-resting-opacity: var(--pcac-point-range-faint-opacity, .2)}.pcac-line-area-chart .point-ranges.pcac-range-always.has-focus .point-range:not(.is-focused){opacity:.5}.pcac-line-area-chart .point-ranges .point-range-whisker,.pcac-line-area-chart .point-ranges .point-range-cap{stroke:var(--pcac-point-range-resolved-color);stroke-width:1.25px}.pcac-line-area-chart .point-ranges .point-range-box{fill:var(--pcac-point-range-resolved-color);fill-opacity:.1;stroke:var(--pcac-point-range-resolved-color);stroke-opacity:.7;stroke-width:1.25px}.pcac-line-area-chart .point-ranges .point-range-stop{stop-color:var(--pcac-point-range-resolved-color)}.pcac-line-area-chart .point-ranges .is-focused .point-range-whisker,.pcac-line-area-chart .point-ranges .is-focused .point-range-cap,.pcac-line-area-chart .point-ranges .is-focused .point-range-box{stroke-width:1.75px}.pcac-line-area-chart .point-ranges .is-focused .point-range-box{fill-opacity:.18}@media(prefers-reduced-motion:reduce){.pcac-line-area-chart .point-ranges .point-range{transition:none}}.pcac-line-area-chart .effects-canvas{fill:none}.pcac-line-area-chart .effect-line{stroke:var(--pcac-crosshair-line-color, #ced4da);stroke-width:1px;opacity:0}.pcac-line-area-chart .effect-circle{stroke-width:1px;fill:none;opacity:0}.pcac-line-area-chart .effect-text{font-size:11px;font-weight:700;fill:var(--pcac-crosshair-text-color, #343a40)}pcac-line-chart.pcac-height-full,pcac-area-chart.pcac-height-full,pcac-plot-chart.pcac-height-full,pcac-line-area-chart.pcac-height-full{display:block;height:100%}pcac-line-area-chart.pcac-height-full .pcac-line-area-chart{height:100%}\n"] }]
|
|
5162
5231
|
}], ctorParameters: () => [], propDecorators: { config: [{ type: i0.Input, args: [{ isSignal: true, alias: "config", required: true }] }], type: [{ type: i0.Input, args: [{ isSignal: true, alias: "type", required: true }] }], chartElm: [{ type: i0.ViewChild, args: ['chart', { isSignal: true }] }], dotClicked: [{ type: i0.Output, args: ["dotClicked"] }], tooltipTemplate: [{ type: i0.Input, args: [{ isSignal: true, alias: "tooltipTemplate", required: false }] }] } });
|
|
@@ -5172,10 +5241,10 @@ class PcacPlotChart {
|
|
|
5172
5241
|
*/
|
|
5173
5242
|
tooltipTemplate = contentChild(PcacTooltipDirective, /* @ts-ignore */
|
|
5174
5243
|
...(ngDevMode ? [{ debugName: "tooltipTemplate" }] : /* istanbul ignore next */ []));
|
|
5175
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.2.
|
|
5176
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.2.0", version: "22.2.
|
|
5244
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.2.6", ngImport: i0, type: PcacPlotChart, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
5245
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.2.0", version: "22.2.6", type: PcacPlotChart, isStandalone: true, selector: "pcac-plot-chart", inputs: { config: { classPropertyName: "config", publicName: "config", isSignal: true, isRequired: true, transformFunction: null } }, outputs: { dotClicked: "dotClicked" }, host: { properties: { "class.pcac-height-full": "config().heightFull" } }, queries: [{ propertyName: "tooltipTemplate", first: true, predicate: PcacTooltipDirective, descendants: true, isSignal: true }], ngImport: i0, template: "<pcac-line-area-chart [config]=\"config()\" [tooltipTemplate]=\"tooltipTemplate()?.templateRef\" [type]=\"types.Plot\" (dotClicked)=\"dotClicked.emit($event)\"/>", dependencies: [{ kind: "component", type: PcacLineAreaChartComponent, selector: "pcac-line-area-chart", inputs: ["config", "type", "tooltipTemplate"], outputs: ["dotClicked"] }] });
|
|
5177
5246
|
}
|
|
5178
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.2.
|
|
5247
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.2.6", ngImport: i0, type: PcacPlotChart, decorators: [{
|
|
5179
5248
|
type: Component,
|
|
5180
5249
|
args: [{ selector: 'pcac-plot-chart', host: { '[class.pcac-height-full]': 'config().heightFull' }, imports: [PcacLineAreaChartComponent], template: "<pcac-line-area-chart [config]=\"config()\" [tooltipTemplate]=\"tooltipTemplate()?.templateRef\" [type]=\"types.Plot\" (dotClicked)=\"dotClicked.emit($event)\"/>" }]
|
|
5181
5250
|
}], propDecorators: { config: [{ type: i0.Input, args: [{ isSignal: true, alias: "config", required: true }] }], dotClicked: [{ type: i0.Output, args: ["dotClicked"] }], tooltipTemplate: [{ type: i0.ContentChild, args: [i0.forwardRef(() => PcacTooltipDirective), { isSignal: true }] }] } });
|
|
@@ -5191,10 +5260,10 @@ class PcacLineChart {
|
|
|
5191
5260
|
*/
|
|
5192
5261
|
tooltipTemplate = contentChild(PcacTooltipDirective, /* @ts-ignore */
|
|
5193
5262
|
...(ngDevMode ? [{ debugName: "tooltipTemplate" }] : /* istanbul ignore next */ []));
|
|
5194
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.2.
|
|
5195
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.2.0", version: "22.2.
|
|
5263
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.2.6", ngImport: i0, type: PcacLineChart, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
5264
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.2.0", version: "22.2.6", type: PcacLineChart, isStandalone: true, selector: "pcac-line-chart", inputs: { config: { classPropertyName: "config", publicName: "config", isSignal: true, isRequired: true, transformFunction: null } }, outputs: { dotClicked: "dotClicked" }, host: { properties: { "class.pcac-height-full": "config().heightFull" } }, queries: [{ propertyName: "tooltipTemplate", first: true, predicate: PcacTooltipDirective, descendants: true, isSignal: true }], ngImport: i0, template: "<pcac-line-area-chart [config]=\"config()\" [tooltipTemplate]=\"tooltipTemplate()?.templateRef\" [type]=\"types.Line\" (dotClicked)=\"dotClicked.emit($event)\" />", dependencies: [{ kind: "component", type: PcacLineAreaChartComponent, selector: "pcac-line-area-chart", inputs: ["config", "type", "tooltipTemplate"], outputs: ["dotClicked"] }] });
|
|
5196
5265
|
}
|
|
5197
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.2.
|
|
5266
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.2.6", ngImport: i0, type: PcacLineChart, decorators: [{
|
|
5198
5267
|
type: Component,
|
|
5199
5268
|
args: [{ selector: 'pcac-line-chart', host: { '[class.pcac-height-full]': 'config().heightFull' }, imports: [PcacLineAreaChartComponent], template: "<pcac-line-area-chart [config]=\"config()\" [tooltipTemplate]=\"tooltipTemplate()?.templateRef\" [type]=\"types.Line\" (dotClicked)=\"dotClicked.emit($event)\" />" }]
|
|
5200
5269
|
}], propDecorators: { config: [{ type: i0.Input, args: [{ isSignal: true, alias: "config", required: true }] }], dotClicked: [{ type: i0.Output, args: ["dotClicked"] }], tooltipTemplate: [{ type: i0.ContentChild, args: [i0.forwardRef(() => PcacTooltipDirective), { isSignal: true }] }] } });
|
|
@@ -5213,10 +5282,10 @@ class PcacAreaChart {
|
|
|
5213
5282
|
*/
|
|
5214
5283
|
tooltipTemplate = contentChild(PcacTooltipDirective, /* @ts-ignore */
|
|
5215
5284
|
...(ngDevMode ? [{ debugName: "tooltipTemplate" }] : /* istanbul ignore next */ []));
|
|
5216
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.2.
|
|
5217
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.2.0", version: "22.2.
|
|
5285
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.2.6", ngImport: i0, type: PcacAreaChart, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
5286
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.2.0", version: "22.2.6", type: PcacAreaChart, isStandalone: true, selector: "pcac-area-chart", inputs: { config: { classPropertyName: "config", publicName: "config", isSignal: true, isRequired: true, transformFunction: null } }, outputs: { dotClicked: "dotClicked" }, host: { properties: { "class.pcac-height-full": "config().heightFull" } }, queries: [{ propertyName: "tooltipTemplate", first: true, predicate: PcacTooltipDirective, descendants: true, isSignal: true }], ngImport: i0, template: "<pcac-line-area-chart [config]=\"config()\" [tooltipTemplate]=\"tooltipTemplate()?.templateRef\" [type]=\"types.Area\" (dotClicked)=\"dotClicked.emit($event)\" />", dependencies: [{ kind: "component", type: PcacLineAreaChartComponent, selector: "pcac-line-area-chart", inputs: ["config", "type", "tooltipTemplate"], outputs: ["dotClicked"] }] });
|
|
5218
5287
|
}
|
|
5219
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.2.
|
|
5288
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.2.6", ngImport: i0, type: PcacAreaChart, decorators: [{
|
|
5220
5289
|
type: Component,
|
|
5221
5290
|
args: [{ selector: 'pcac-area-chart', host: { '[class.pcac-height-full]': 'config().heightFull' }, imports: [PcacLineAreaChartComponent], template: "<pcac-line-area-chart [config]=\"config()\" [tooltipTemplate]=\"tooltipTemplate()?.templateRef\" [type]=\"types.Area\" (dotClicked)=\"dotClicked.emit($event)\" />" }]
|
|
5222
5291
|
}], propDecorators: { config: [{ type: i0.Input, args: [{ isSignal: true, alias: "config", required: true }] }], dotClicked: [{ type: i0.Output, args: ["dotClicked"] }], tooltipTemplate: [{ type: i0.ContentChild, args: [i0.forwardRef(() => PcacTooltipDirective), { isSignal: true }] }] } });
|
|
@@ -5484,10 +5553,10 @@ class ProximityChartBuilder extends PcacChart {
|
|
|
5484
5553
|
.duration(duration / 2)
|
|
5485
5554
|
.attr('opacity', 1);
|
|
5486
5555
|
}
|
|
5487
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.2.
|
|
5488
|
-
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "22.2.
|
|
5556
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.2.6", ngImport: i0, type: ProximityChartBuilder, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
|
|
5557
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "22.2.6", ngImport: i0, type: ProximityChartBuilder });
|
|
5489
5558
|
}
|
|
5490
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.2.
|
|
5559
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.2.6", ngImport: i0, type: ProximityChartBuilder, decorators: [{
|
|
5491
5560
|
type: Injectable
|
|
5492
5561
|
}] });
|
|
5493
5562
|
|
|
@@ -5520,10 +5589,10 @@ class PcacProximityChart {
|
|
|
5520
5589
|
this.chartBuilder.buildChart(this.chartElm(), config);
|
|
5521
5590
|
}
|
|
5522
5591
|
}
|
|
5523
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.2.
|
|
5524
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.2.0", version: "22.2.
|
|
5592
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.2.6", ngImport: i0, type: PcacProximityChart, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
5593
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.2.0", version: "22.2.6", type: PcacProximityChart, isStandalone: true, selector: "pcac-proximity-chart", inputs: { config: { classPropertyName: "config", publicName: "config", isSignal: true, isRequired: true, transformFunction: null } }, outputs: { itemClicked: "itemClicked" }, host: { properties: { "class.pcac-height-full": "config().heightFull" } }, providers: [ProximityChartBuilder], queries: [{ propertyName: "tooltipTemplate", first: true, predicate: PcacTooltipDirective, descendants: true, isSignal: true }], viewQueries: [{ propertyName: "chartElm", first: true, predicate: ["chart"], descendants: true, isSignal: true }], ngImport: i0, template: "<section class=\"pcac-proximity-chart\">\n <svg #chart></svg>\n</section>\n", styles: [".pcac-proximity-chart svg{width:100%;display:block}.pcac-proximity-chart .pcac-proximity-ring circle{stroke:var(--pcac-proximity-ring-color, #dee2e6);stroke-dasharray:3 4}.pcac-proximity-chart .pcac-proximity-ring-label{font-size:11px;fill:var(--pcac-proximity-ring-label-color, #6c757d)}.pcac-proximity-chart .pcac-proximity-spoke{stroke:var(--pcac-proximity-spoke-color, #dee2e6);stroke-width:1px}.pcac-proximity-chart .pcac-proximity-item{cursor:pointer}.pcac-proximity-chart .pcac-proximity-label,.pcac-proximity-chart .pcac-proximity-ring-label{paint-order:stroke;stroke:var(--pcac-proximity-label-halo-color, #fff);stroke-width:3px;stroke-linejoin:round}.pcac-proximity-chart .pcac-proximity-label{font-size:11px;fill:var(--pcac-proximity-label-color, #343a40)}.pcac-proximity-chart .pcac-proximity-center .pcac-proximity-label{font-weight:600}.pcac-proximity-chart .pcac-proximity-item.is-active .pcac-proximity-dot{stroke:currentColor;stroke-width:2px}.pcac-proximity-chart .pcac-proximity-item.is-active .pcac-proximity-image{filter:drop-shadow(0 0 3px rgba(0,0,0,.35))}pcac-proximity-chart.pcac-height-full{display:block;height:100%}pcac-proximity-chart.pcac-height-full .pcac-proximity-chart{height:100%}\n"], encapsulation: i0.ViewEncapsulation.None });
|
|
5525
5594
|
}
|
|
5526
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.2.
|
|
5595
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.2.6", ngImport: i0, type: PcacProximityChart, decorators: [{
|
|
5527
5596
|
type: Component,
|
|
5528
5597
|
args: [{ selector: 'pcac-proximity-chart', host: { '[class.pcac-height-full]': 'config().heightFull' }, encapsulation: ViewEncapsulation.None, providers: [ProximityChartBuilder], template: "<section class=\"pcac-proximity-chart\">\n <svg #chart></svg>\n</section>\n", styles: [".pcac-proximity-chart svg{width:100%;display:block}.pcac-proximity-chart .pcac-proximity-ring circle{stroke:var(--pcac-proximity-ring-color, #dee2e6);stroke-dasharray:3 4}.pcac-proximity-chart .pcac-proximity-ring-label{font-size:11px;fill:var(--pcac-proximity-ring-label-color, #6c757d)}.pcac-proximity-chart .pcac-proximity-spoke{stroke:var(--pcac-proximity-spoke-color, #dee2e6);stroke-width:1px}.pcac-proximity-chart .pcac-proximity-item{cursor:pointer}.pcac-proximity-chart .pcac-proximity-label,.pcac-proximity-chart .pcac-proximity-ring-label{paint-order:stroke;stroke:var(--pcac-proximity-label-halo-color, #fff);stroke-width:3px;stroke-linejoin:round}.pcac-proximity-chart .pcac-proximity-label{font-size:11px;fill:var(--pcac-proximity-label-color, #343a40)}.pcac-proximity-chart .pcac-proximity-center .pcac-proximity-label{font-weight:600}.pcac-proximity-chart .pcac-proximity-item.is-active .pcac-proximity-dot{stroke:currentColor;stroke-width:2px}.pcac-proximity-chart .pcac-proximity-item.is-active .pcac-proximity-image{filter:drop-shadow(0 0 3px rgba(0,0,0,.35))}pcac-proximity-chart.pcac-height-full{display:block;height:100%}pcac-proximity-chart.pcac-height-full .pcac-proximity-chart{height:100%}\n"] }]
|
|
5529
5598
|
}], ctorParameters: () => [], propDecorators: { config: [{ type: i0.Input, args: [{ isSignal: true, alias: "config", required: true }] }], chartElm: [{ type: i0.ViewChild, args: ['chart', { isSignal: true }] }], itemClicked: [{ type: i0.Output, args: ["itemClicked"] }], tooltipTemplate: [{ type: i0.ContentChild, args: [i0.forwardRef(() => PcacTooltipDirective), { isSignal: true }] }] } });
|
|
@@ -5800,10 +5869,10 @@ class PieDonutChartBuilder extends PcacChart {
|
|
|
5800
5869
|
const i = interpolate({ startAngle: 0, endAngle: 0 }, b);
|
|
5801
5870
|
return (t) => this.arcShape(i(t)) ?? '';
|
|
5802
5871
|
}
|
|
5803
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.2.
|
|
5804
|
-
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "22.2.
|
|
5872
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.2.6", ngImport: i0, type: PieDonutChartBuilder, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
|
|
5873
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "22.2.6", ngImport: i0, type: PieDonutChartBuilder });
|
|
5805
5874
|
}
|
|
5806
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.2.
|
|
5875
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.2.6", ngImport: i0, type: PieDonutChartBuilder, decorators: [{
|
|
5807
5876
|
type: Injectable
|
|
5808
5877
|
}] });
|
|
5809
5878
|
/** A donut config with its defaults filled in for whatever the consumer left unset. */
|
|
@@ -5858,10 +5927,10 @@ class PcacPieDonutChartComponent {
|
|
|
5858
5927
|
this.chartBuilder.buildChart(this.chartElm(), config, type);
|
|
5859
5928
|
}
|
|
5860
5929
|
}
|
|
5861
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.2.
|
|
5862
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.2.0", version: "22.2.
|
|
5930
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.2.6", ngImport: i0, type: PcacPieDonutChartComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
5931
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.2.0", version: "22.2.6", type: PcacPieDonutChartComponent, isStandalone: true, selector: "pcac-pie-donut-chart", inputs: { config: { classPropertyName: "config", publicName: "config", isSignal: true, isRequired: true, transformFunction: null }, type: { classPropertyName: "type", publicName: "type", isSignal: true, isRequired: true, transformFunction: null }, tooltipTemplate: { classPropertyName: "tooltipTemplate", publicName: "tooltipTemplate", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { sliceClicked: "sliceClicked" }, providers: [PieDonutChartBuilder], viewQueries: [{ propertyName: "chartElm", first: true, predicate: ["chart"], descendants: true, isSignal: true }], ngImport: i0, template: "<!-- pcac-pie-chart kept alongside for app CSS written against 22.2 and earlier, when this section\n belonged to the one pie component (the donut included). -->\n<section class=\"pcac-pie-donut-chart pcac-pie-chart\">\n <svg #chart></svg>\n</section>\n\n", styles: [".pcac-pie-donut-chart svg{width:100%;display:block}\n"], encapsulation: i0.ViewEncapsulation.None });
|
|
5863
5932
|
}
|
|
5864
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.2.
|
|
5933
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.2.6", ngImport: i0, type: PcacPieDonutChartComponent, decorators: [{
|
|
5865
5934
|
type: Component,
|
|
5866
5935
|
args: [{ selector: 'pcac-pie-donut-chart', encapsulation: ViewEncapsulation.None, providers: [PieDonutChartBuilder], template: "<!-- pcac-pie-chart kept alongside for app CSS written against 22.2 and earlier, when this section\n belonged to the one pie component (the donut included). -->\n<section class=\"pcac-pie-donut-chart pcac-pie-chart\">\n <svg #chart></svg>\n</section>\n\n", styles: [".pcac-pie-donut-chart svg{width:100%;display:block}\n"] }]
|
|
5867
5936
|
}], ctorParameters: () => [], propDecorators: { config: [{ type: i0.Input, args: [{ isSignal: true, alias: "config", required: true }] }], type: [{ type: i0.Input, args: [{ isSignal: true, alias: "type", required: true }] }], chartElm: [{ type: i0.ViewChild, args: ['chart', { isSignal: true }] }], sliceClicked: [{ type: i0.Output, args: ["sliceClicked"] }], tooltipTemplate: [{ type: i0.Input, args: [{ isSignal: true, alias: "tooltipTemplate", required: false }] }] } });
|
|
@@ -5877,10 +5946,10 @@ class PcacPieChart {
|
|
|
5877
5946
|
*/
|
|
5878
5947
|
tooltipTemplate = contentChild(PcacTooltipDirective, /* @ts-ignore */
|
|
5879
5948
|
...(ngDevMode ? [{ debugName: "tooltipTemplate" }] : /* istanbul ignore next */ []));
|
|
5880
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.2.
|
|
5881
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.2.0", version: "22.2.
|
|
5949
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.2.6", ngImport: i0, type: PcacPieChart, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
5950
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.2.0", version: "22.2.6", type: PcacPieChart, isStandalone: true, selector: "pcac-pie-chart", inputs: { config: { classPropertyName: "config", publicName: "config", isSignal: true, isRequired: true, transformFunction: null } }, outputs: { sliceClicked: "sliceClicked" }, queries: [{ propertyName: "tooltipTemplate", first: true, predicate: PcacTooltipDirective, descendants: true, isSignal: true }], ngImport: i0, template: "<pcac-pie-donut-chart [config]=\"config()\" [tooltipTemplate]=\"tooltipTemplate()?.templateRef\" [type]=\"types.Pie\" (sliceClicked)=\"sliceClicked.emit($event)\" />\n", dependencies: [{ kind: "component", type: PcacPieDonutChartComponent, selector: "pcac-pie-donut-chart", inputs: ["config", "type", "tooltipTemplate"], outputs: ["sliceClicked"] }] });
|
|
5882
5951
|
}
|
|
5883
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.2.
|
|
5952
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.2.6", ngImport: i0, type: PcacPieChart, decorators: [{
|
|
5884
5953
|
type: Component,
|
|
5885
5954
|
args: [{ selector: 'pcac-pie-chart', imports: [PcacPieDonutChartComponent], template: "<pcac-pie-donut-chart [config]=\"config()\" [tooltipTemplate]=\"tooltipTemplate()?.templateRef\" [type]=\"types.Pie\" (sliceClicked)=\"sliceClicked.emit($event)\" />\n" }]
|
|
5886
5955
|
}], propDecorators: { config: [{ type: i0.Input, args: [{ isSignal: true, alias: "config", required: true }] }], sliceClicked: [{ type: i0.Output, args: ["sliceClicked"] }], tooltipTemplate: [{ type: i0.ContentChild, args: [i0.forwardRef(() => PcacTooltipDirective), { isSignal: true }] }] } });
|
|
@@ -5899,10 +5968,10 @@ class PcacDonutChart {
|
|
|
5899
5968
|
*/
|
|
5900
5969
|
tooltipTemplate = contentChild(PcacTooltipDirective, /* @ts-ignore */
|
|
5901
5970
|
...(ngDevMode ? [{ debugName: "tooltipTemplate" }] : /* istanbul ignore next */ []));
|
|
5902
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.2.
|
|
5903
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.2.0", version: "22.2.
|
|
5971
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.2.6", ngImport: i0, type: PcacDonutChart, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
5972
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.2.0", version: "22.2.6", type: PcacDonutChart, isStandalone: true, selector: "pcac-donut-chart", inputs: { config: { classPropertyName: "config", publicName: "config", isSignal: true, isRequired: true, transformFunction: null } }, outputs: { sliceClicked: "sliceClicked" }, queries: [{ propertyName: "tooltipTemplate", first: true, predicate: PcacTooltipDirective, descendants: true, isSignal: true }], ngImport: i0, template: "<pcac-pie-donut-chart [config]=\"config()\" [tooltipTemplate]=\"tooltipTemplate()?.templateRef\" [type]=\"types.Donut\" (sliceClicked)=\"sliceClicked.emit($event)\" />\n", dependencies: [{ kind: "component", type: PcacPieDonutChartComponent, selector: "pcac-pie-donut-chart", inputs: ["config", "type", "tooltipTemplate"], outputs: ["sliceClicked"] }] });
|
|
5904
5973
|
}
|
|
5905
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.2.
|
|
5974
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.2.6", ngImport: i0, type: PcacDonutChart, decorators: [{
|
|
5906
5975
|
type: Component,
|
|
5907
5976
|
args: [{ selector: 'pcac-donut-chart', imports: [PcacPieDonutChartComponent], template: "<pcac-pie-donut-chart [config]=\"config()\" [tooltipTemplate]=\"tooltipTemplate()?.templateRef\" [type]=\"types.Donut\" (sliceClicked)=\"sliceClicked.emit($event)\" />\n" }]
|
|
5908
5977
|
}], propDecorators: { config: [{ type: i0.Input, args: [{ isSignal: true, alias: "config", required: true }] }], sliceClicked: [{ type: i0.Output, args: ["sliceClicked"] }], tooltipTemplate: [{ type: i0.ContentChild, args: [i0.forwardRef(() => PcacTooltipDirective), { isSignal: true }] }] } });
|