@visionaris-bruno/vs-echarts 8.1.0 → 8.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/index.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as i0 from '@angular/core';
|
|
2
2
|
import { OnChanges, OnDestroy, ElementRef, EventEmitter, SimpleChanges } from '@angular/core';
|
|
3
3
|
import * as echarts from 'echarts';
|
|
4
|
-
import { LineSeriesOption, BarSeriesOption, PieSeriesOption, ScatterSeriesOption, FunnelSeriesOption, SunburstSeriesOption, EChartsOption, SeriesOption } from 'echarts';
|
|
4
|
+
import { LineSeriesOption, BarSeriesOption, PieSeriesOption, ScatterSeriesOption, FunnelSeriesOption, SunburstSeriesOption, SankeySeriesOption, EChartsOption, SeriesOption } from 'echarts';
|
|
5
5
|
import { CategoryAxisBaseOption, ValueAxisBaseOption } from 'echarts/types/src/coord/axisCommonTypes.js';
|
|
6
6
|
import { TooltipOption } from 'echarts/types/dist/shared';
|
|
7
7
|
|
|
@@ -82,6 +82,9 @@ interface IFunnelOptionsOverrides {
|
|
|
82
82
|
interface ISunburstOptionsOverrides {
|
|
83
83
|
series?: Partial<SunburstSeriesOption>;
|
|
84
84
|
}
|
|
85
|
+
interface ISankeyOptionsOverrides {
|
|
86
|
+
series?: Partial<SankeySeriesOption>;
|
|
87
|
+
}
|
|
85
88
|
interface IAxisOptionsOverrides {
|
|
86
89
|
categoryAxis: CategoryAxisBaseOption[];
|
|
87
90
|
valueAxis: ValueAxisBaseOption[];
|
|
@@ -110,6 +113,8 @@ interface IOptionsOverrides {
|
|
|
110
113
|
funnel: IFunnelOptionsOverrides;
|
|
111
114
|
/** sunburst options overrides */
|
|
112
115
|
sunburst: ISunburstOptionsOverrides;
|
|
116
|
+
/** sankey options overrides */
|
|
117
|
+
sankey: ISankeyOptionsOverrides;
|
|
113
118
|
}
|
|
114
119
|
type NGXEchartsSelectChangeEventData = {
|
|
115
120
|
type: string;
|
|
@@ -213,6 +218,7 @@ declare class VSECDirector {
|
|
|
213
218
|
makePie(data: IEChartData, overrides: IOptionsOverridesWrapper, opts?: MakeOpts): void;
|
|
214
219
|
makeFunnel(data: IEChartData, overrides: IOptionsOverridesWrapper, opts?: MakeOpts): void;
|
|
215
220
|
makeSunburst(data: IEChartData, overrides: IOptionsOverridesWrapper, opts?: MakeOpts): void;
|
|
221
|
+
makeSankey(data: IEChartData, overrides: IOptionsOverridesWrapper, opts?: MakeOpts): void;
|
|
216
222
|
}
|
|
217
223
|
|
|
218
224
|
declare abstract class BaseEchartsComponent implements OnChanges, OnDestroy {
|
|
@@ -681,5 +687,44 @@ declare class EChartsSunburstComponent extends BaseEchartsComponent {
|
|
|
681
687
|
static ɵcmp: i0.ɵɵComponentDeclaration<EChartsSunburstComponent, "vs-echarts-sunburst", never, {}, {}, never, never, true, never>;
|
|
682
688
|
}
|
|
683
689
|
|
|
684
|
-
|
|
685
|
-
|
|
690
|
+
/**
|
|
691
|
+
* SankeyBuilder
|
|
692
|
+
*
|
|
693
|
+
* Builder concreto para el gráfico Sankey (diagrama de flujos de izquierda a derecha).
|
|
694
|
+
*/
|
|
695
|
+
declare class SankeyBuilder implements IEChartBuilder<SankeySeriesOption> {
|
|
696
|
+
baseProduct: VSEChartProduct;
|
|
697
|
+
protected valueFormatter: EChartValueFormatter;
|
|
698
|
+
protected palette: string[];
|
|
699
|
+
protected colorResolver?: ChartColorResolver;
|
|
700
|
+
protected result: EChartsOption;
|
|
701
|
+
constructor(baseProduct: VSEChartProduct);
|
|
702
|
+
reset(): void;
|
|
703
|
+
addSeries(data: IEChartData, overrides: SankeySeriesOption): void;
|
|
704
|
+
addTooltip(data: IEChartData, overrides: ITooltipOptionsOverrides): void;
|
|
705
|
+
addPolar(): void;
|
|
706
|
+
addXAxis(data: IEChartData, overrides: IOptionsOverrides["axis"], type: "category" | "value"): void;
|
|
707
|
+
addYAxis(data: IEChartData, overrides: IOptionsOverrides["axis"], type: "category" | "value"): void;
|
|
708
|
+
addRadiusAxis(data: IEChartData, overrides: IOptionsOverrides["axis"]): void;
|
|
709
|
+
addAngleAxis(data: IEChartData, overrides: IOptionsOverrides["axis"]): void;
|
|
710
|
+
addLegend(): void;
|
|
711
|
+
addCommons(): void;
|
|
712
|
+
addGraphic(): void;
|
|
713
|
+
getResult(): EChartsOption;
|
|
714
|
+
setValueFormatter(formatter: EChartValueFormatter | undefined): void;
|
|
715
|
+
setPalette(palette: string[] | undefined): void;
|
|
716
|
+
setColorResolver(resolver: ChartColorResolver | undefined): void;
|
|
717
|
+
}
|
|
718
|
+
|
|
719
|
+
declare class EchartsSankeyComponent extends BaseEchartsComponent {
|
|
720
|
+
protected baseSeriesOptions: SankeySeriesOption;
|
|
721
|
+
protected baseProduct: VSEChartProduct;
|
|
722
|
+
protected builder: SankeyBuilder;
|
|
723
|
+
protected director: VSECDirector;
|
|
724
|
+
protected make(): void;
|
|
725
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<EchartsSankeyComponent, never>;
|
|
726
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<EchartsSankeyComponent, "vs-echarts-sankey", never, {}, {}, never, never, true, never>;
|
|
727
|
+
}
|
|
728
|
+
|
|
729
|
+
export { BaseEchartsComponent, EChartsAreaComponent, EChartsAreaStackComponent, EChartsBarStackedComponent, EChartsBarStackedRadialComponent, EChartsHBarComponent, EChartsHBarStackedComponent, EChartsSunburstComponent, EchartsBarComponent, EchartsFunnelComponent, EchartsLineComponent, EchartsPieComponent, EchartsRingComponent, EchartsSankeyComponent, EchartsScatterComponent, defaultOptionsOverrides, initializeEcharts, provideVSEcharts };
|
|
730
|
+
export type { ChartColorResolver, ChartOrientation, EChartClickType, EChartValueFormatter, IAreaOptionsOverrides, IAreaStackOptionsOverrides, IAxisOptionsOverrides, IBarOptionsOverrides, IBarStackedOptionsOverrides, IBarStackedRadialOptionsOverrides, IEChartBuilder, IEChartData, IEChartDataNode, IEChartDimension, IFunnelOptionsOverrides, IHBarOptionsOverrides, IHBarStackedOptionsOverrides, ILineOptionsOverrides, IOptionsOverrides, IOptionsOverridesWrapper, IPieOptionsOverrides, IRingOptionsOverrides, ISankeyOptionsOverrides, IScatterOptionsOverrides, ISeriesLayoutOpts, ISunburstOptionsOverrides, ITooltipOptionsOverrides, NGXEchartsSelectChangeEventData, VSEChartProduct };
|
package/package.json
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@visionaris-bruno/vs-echarts",
|
|
3
|
-
"version": "8.
|
|
3
|
+
"version": "8.3.0",
|
|
4
4
|
"peerDependencies": {
|
|
5
5
|
"@angular/common": "^20.3.0",
|
|
6
6
|
"@angular/core": "^20.3.0",
|
|
7
|
-
"echarts": "^
|
|
7
|
+
"echarts": "^6.0.0",
|
|
8
8
|
"lodash": "^4.17.21",
|
|
9
9
|
"ngx-echarts": "^20.0.1",
|
|
10
10
|
"rxjs": "^7.8.0"
|