@visionaris-bruno/vs-echarts 9.1.3 → 9.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/index.d.ts
CHANGED
|
@@ -5,6 +5,7 @@ import { LineSeriesOption, BarSeriesOption, PieSeriesOption, ScatterSeriesOption
|
|
|
5
5
|
import { CategoryAxisBaseOption, ValueAxisBaseOption } from 'echarts/types/src/coord/axisCommonTypes.js';
|
|
6
6
|
import { TooltipOption } from 'echarts/types/dist/shared';
|
|
7
7
|
import * as _visionaris_bruno_vs_echarts from '@visionaris-bruno/vs-echarts';
|
|
8
|
+
import { TranslateService } from '@ngx-translate/core';
|
|
8
9
|
|
|
9
10
|
type ChartKey = keyof Omit<IOptionsOverridesWrapper, "axis" | "tooltip">;
|
|
10
11
|
type ISeriesLayoutOpts = {
|
|
@@ -21,7 +22,7 @@ type VSEChartProduct = {
|
|
|
21
22
|
chartKey: ChartKey;
|
|
22
23
|
baseOptions: EChartsOption;
|
|
23
24
|
};
|
|
24
|
-
interface IEChartBuilder<SeriesType = SeriesOption, SeriesConfigOptions = any, DatasetConfigOptions = any> {
|
|
25
|
+
interface IEChartBuilder<SeriesType = SeriesOption, SeriesConfigOptions = any, DatasetConfigOptions = any, DataZoomConfigOptions = any> {
|
|
25
26
|
/** producto base */
|
|
26
27
|
baseProduct: VSEChartProduct;
|
|
27
28
|
reset(): void;
|
|
@@ -36,7 +37,7 @@ interface IEChartBuilder<SeriesType = SeriesOption, SeriesConfigOptions = any, D
|
|
|
36
37
|
addLegend(): void;
|
|
37
38
|
addCommons(): void;
|
|
38
39
|
addGraphic(): void;
|
|
39
|
-
addDataZoom(): void;
|
|
40
|
+
addDataZoom(opts?: DataZoomConfigOptions): void;
|
|
40
41
|
setValueFormatter(formatter: ChartValueFormatter): void;
|
|
41
42
|
setPalette(palette: string[]): void;
|
|
42
43
|
setColorResolver(resolver: ChartColorResolver): void;
|
|
@@ -122,7 +123,7 @@ interface IOptionsOverrides {
|
|
|
122
123
|
/** sankey options overrides */
|
|
123
124
|
sankey: ISankeyOptionsOverrides;
|
|
124
125
|
/** boxplot options overrides */
|
|
125
|
-
|
|
126
|
+
boxplot: IBoxplotOptionsOverrides;
|
|
126
127
|
/** heatmap calendar options overrides */
|
|
127
128
|
heatmapCalendar: IHeatmapCalendarOptionsOverrides;
|
|
128
129
|
}
|
|
@@ -765,12 +766,65 @@ declare class EchartsSankeyComponent extends BaseEchartsComponent {
|
|
|
765
766
|
static ɵcmp: i0.ɵɵComponentDeclaration<EchartsSankeyComponent, "vs-echarts-sankey", never, {}, {}, never, never, true, never>;
|
|
766
767
|
}
|
|
767
768
|
|
|
768
|
-
declare class
|
|
769
|
+
declare class EChartsBoxplotComponent extends BaseEchartsComponent {
|
|
769
770
|
protected baseSeriesOptions: BoxplotSeriesOption;
|
|
770
771
|
protected baseProduct: VSEChartProduct;
|
|
771
772
|
protected builder: IEChartBuilder<BoxplotSeriesOption>;
|
|
772
773
|
protected director: VSECDirector;
|
|
773
774
|
protected make(): void;
|
|
775
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<EChartsBoxplotComponent, never>;
|
|
776
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<EChartsBoxplotComponent, "vs-echarts-boxplot", never, {}, {}, never, never, true, never>;
|
|
777
|
+
}
|
|
778
|
+
|
|
779
|
+
type BoxplotBuilderDatasetConfigOpts = {};
|
|
780
|
+
type BoxplotBuilderSeriesConfigOpts = Pick<ISeriesLayoutOpts, 'axisTypes'> & {};
|
|
781
|
+
type BoxplotBuilderDataZoomConfigOpts = {
|
|
782
|
+
axisTypes: {
|
|
783
|
+
x: 'value' | 'category';
|
|
784
|
+
y: 'category' | 'value';
|
|
785
|
+
};
|
|
786
|
+
};
|
|
787
|
+
declare class BoxplotBuilder implements IEChartBuilder<BoxplotSeriesOption, BoxplotBuilderSeriesConfigOpts, BoxplotBuilderDatasetConfigOpts, BoxplotBuilderDataZoomConfigOpts> {
|
|
788
|
+
baseProduct: VSEChartProduct;
|
|
789
|
+
protected translateService?: TranslateService;
|
|
790
|
+
protected valueFormatter: ChartValueFormatter;
|
|
791
|
+
protected palette: string[];
|
|
792
|
+
protected colorResolver?: ChartColorResolver;
|
|
793
|
+
protected result: EChartsOption;
|
|
794
|
+
constructor(baseProduct: VSEChartProduct);
|
|
795
|
+
reset(): void;
|
|
796
|
+
addDataset(data: IEChartData, opts?: BoxplotBuilderDatasetConfigOpts): void;
|
|
797
|
+
addCommons(): void;
|
|
798
|
+
addSeries(data: IEChartData, overrides: BoxplotSeriesOption, opts?: any): void;
|
|
799
|
+
addTooltip(data: IEChartData, overrides: ITooltipOptionsOverrides): void;
|
|
800
|
+
addDataZoom(opts?: BoxplotBuilderDataZoomConfigOpts): void;
|
|
801
|
+
addXAxis(data: IEChartData, overrides: IOptionsOverrides["axis"], type?: "category" | "value"): void;
|
|
802
|
+
addYAxis(data: IEChartData, overrides: IOptionsOverrides["axis"], type?: "category" | "value"): void;
|
|
803
|
+
addRadiusAxis(data: IEChartData, overrides: IOptionsOverrides["axis"]): void;
|
|
804
|
+
addAngleAxis(data: IEChartData, overrides: IOptionsOverrides["axis"]): void;
|
|
805
|
+
addLegend(): void;
|
|
806
|
+
addGraphic(): void;
|
|
807
|
+
addPolar(): void;
|
|
808
|
+
/**
|
|
809
|
+
* Permite inyectar un formateador de valores externo.
|
|
810
|
+
*/
|
|
811
|
+
setValueFormatter(formatter: ChartValueFormatter | undefined): void;
|
|
812
|
+
/**
|
|
813
|
+
* Permite inyectar una paleta de colores básica.
|
|
814
|
+
*/
|
|
815
|
+
setPalette(palette: string[] | undefined): void;
|
|
816
|
+
/**
|
|
817
|
+
* Permite inyectar un resolver de colores dinámico.
|
|
818
|
+
*/
|
|
819
|
+
setColorResolver(resolver: ChartColorResolver | undefined): void;
|
|
820
|
+
getResult(): EChartsOption;
|
|
821
|
+
}
|
|
822
|
+
|
|
823
|
+
declare class EChartsHBoxplotComponent extends EChartsBoxplotComponent {
|
|
824
|
+
protected baseProduct: VSEChartProduct;
|
|
825
|
+
protected builder: BoxplotBuilder;
|
|
826
|
+
protected director: VSECDirector;
|
|
827
|
+
protected make(): void;
|
|
774
828
|
static ɵfac: i0.ɵɵFactoryDeclaration<EChartsHBoxplotComponent, never>;
|
|
775
829
|
static ɵcmp: i0.ɵɵComponentDeclaration<EChartsHBoxplotComponent, "vs-echarts-hboxplot", never, {}, {}, never, never, true, never>;
|
|
776
830
|
}
|
|
@@ -789,5 +843,5 @@ declare class EChartsHeatmapCalendar extends BaseEchartsComponent {
|
|
|
789
843
|
static ɵcmp: i0.ɵɵComponentDeclaration<EChartsHeatmapCalendar, "vs-echarts-heatmapCalendar", never, {}, {}, never, never, true, never>;
|
|
790
844
|
}
|
|
791
845
|
|
|
792
|
-
export { BaseEchartsComponent, EChartsAreaComponent, EChartsAreaStackComponent, EChartsBarStackedComponent, EChartsBarStackedRadialComponent, EChartsHBarComponent, EChartsHBarStackedComponent, EChartsHBoxplotComponent, EChartsHeatmapCalendar, EChartsSunburstComponent, EchartsBarComponent, EchartsFunnelComponent, EchartsLineComponent, EchartsPieComponent, EchartsRingComponent, EchartsSankeyComponent, EchartsScatterComponent, VSEchartsConfigService, defaultOptionsOverrides, getActiveLocale, provideVSEcharts, setActiveLocale };
|
|
846
|
+
export { BaseEchartsComponent, EChartsAreaComponent, EChartsAreaStackComponent, EChartsBarStackedComponent, EChartsBarStackedRadialComponent, EChartsBoxplotComponent, EChartsHBarComponent, EChartsHBarStackedComponent, EChartsHBoxplotComponent, EChartsHeatmapCalendar, EChartsSunburstComponent, EchartsBarComponent, EchartsFunnelComponent, EchartsLineComponent, EchartsPieComponent, EchartsRingComponent, EchartsSankeyComponent, EchartsScatterComponent, VSEchartsConfigService, defaultOptionsOverrides, getActiveLocale, provideVSEcharts, setActiveLocale };
|
|
793
847
|
export type { ChartColorResolver, ChartOrientation, ChartValueFormatter, EChartClickType, IAreaOptionsOverrides, IAreaStackOptionsOverrides, IAxisOptionsOverrides, IBarOptionsOverrides, IBarStackedOptionsOverrides, IBarStackedRadialOptionsOverrides, IBoxplotOptionsOverrides, IEChartBuilder, IEChartData, IEChartDataNode, IEChartDimension, IFunnelOptionsOverrides, IHBarOptionsOverrides, IHBarStackedOptionsOverrides, IHBoxplotOptionsOverrides, IHeatmapCalendarOptionsOverrides, ILineOptionsOverrides, IOptionsOverrides, IOptionsOverridesWrapper, IPieOptionsOverrides, IRingOptionsOverrides, ISankeyOptionsOverrides, IScatterOptionsOverrides, ISeriesLayoutOpts, ISunburstOptionsOverrides, ITooltipOptionsOverrides, NGXEchartsSelectChangeEventData, VSEChartProduct, VSEchartsConfig, VSEchartsLocale };
|