@visionaris-bruno/vs-echarts 9.0.7 → 9.1.3
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, SankeySeriesOption, BoxplotSeriesOption, EChartsOption, SeriesOption } from 'echarts';
|
|
4
|
+
import { LineSeriesOption, BarSeriesOption, PieSeriesOption, ScatterSeriesOption, FunnelSeriesOption, SunburstSeriesOption, SankeySeriesOption, BoxplotSeriesOption, HeatmapSeriesOption, 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
|
import * as _visionaris_bruno_vs_echarts from '@visionaris-bruno/vs-echarts';
|
|
@@ -79,6 +79,9 @@ interface IScatterOptionsOverrides {
|
|
|
79
79
|
interface IFunnelOptionsOverrides {
|
|
80
80
|
series?: Partial<FunnelSeriesOption>;
|
|
81
81
|
}
|
|
82
|
+
interface IHeatmapCalendarOptionsOverrides {
|
|
83
|
+
series?: HeatmapSeriesOption;
|
|
84
|
+
}
|
|
82
85
|
interface ISunburstOptionsOverrides {
|
|
83
86
|
series?: Partial<SunburstSeriesOption>;
|
|
84
87
|
}
|
|
@@ -120,6 +123,8 @@ interface IOptionsOverrides {
|
|
|
120
123
|
sankey: ISankeyOptionsOverrides;
|
|
121
124
|
/** boxplot options overrides */
|
|
122
125
|
hBoxplot: IHBoxplotOptionsOverrides;
|
|
126
|
+
/** heatmap calendar options overrides */
|
|
127
|
+
heatmapCalendar: IHeatmapCalendarOptionsOverrides;
|
|
123
128
|
}
|
|
124
129
|
type NGXEchartsSelectChangeEventData = {
|
|
125
130
|
type: string;
|
|
@@ -173,7 +178,7 @@ interface IEChartData {
|
|
|
173
178
|
*
|
|
174
179
|
* Callback para formatear los valores numéricos de las celdas/series.
|
|
175
180
|
*/
|
|
176
|
-
type ChartValueFormatter = (value: number, key
|
|
181
|
+
type ChartValueFormatter = (value: number, key?: string) => string;
|
|
177
182
|
/**
|
|
178
183
|
* ChartColorResolver
|
|
179
184
|
*
|
|
@@ -202,6 +207,8 @@ interface IOptionsOverridesWrapper extends IOptionsOverrides {
|
|
|
202
207
|
declare function provideVSEcharts(): i0.Provider;
|
|
203
208
|
declare function defaultOptionsOverrides(): IOptionsOverridesWrapper;
|
|
204
209
|
|
|
210
|
+
declare function getActiveLocale(): VSEchartsLocale | undefined;
|
|
211
|
+
declare function setActiveLocale(locale: VSEchartsLocale | undefined): void;
|
|
205
212
|
declare class VSEchartsConfigService {
|
|
206
213
|
private vsEchartsConfig;
|
|
207
214
|
private readonly mapping;
|
|
@@ -224,6 +231,7 @@ type MakeBarOpts = MakeOpts;
|
|
|
224
231
|
type MakeLineOpts = MakeOpts;
|
|
225
232
|
type MakeScatterOpts = MakeOpts;
|
|
226
233
|
type MakeBoxplotOpts = MakeOpts & {};
|
|
234
|
+
type MakeHeatmapCalendarOpts = MakeOpts & {};
|
|
227
235
|
/**
|
|
228
236
|
* Director de Builds.
|
|
229
237
|
*/
|
|
@@ -240,6 +248,7 @@ declare class VSECDirector {
|
|
|
240
248
|
makeSunburst(data: IEChartData, overrides: IOptionsOverridesWrapper, opts?: MakeOpts): void;
|
|
241
249
|
makeSankey(data: IEChartData, overrides: IOptionsOverridesWrapper, opts?: MakeOpts): void;
|
|
242
250
|
makeBoxplot(data: IEChartData, overrides: IOptionsOverridesWrapper, opts?: MakeBoxplotOpts): void;
|
|
251
|
+
makeHeatmapCalendar(data: IEChartData, overrides: IOptionsOverridesWrapper, opts?: MakeHeatmapCalendarOpts): void;
|
|
243
252
|
}
|
|
244
253
|
|
|
245
254
|
declare abstract class BaseEchartsComponent implements OnChanges, OnDestroy {
|
|
@@ -280,6 +289,7 @@ declare abstract class BaseEchartsComponent implements OnChanges, OnDestroy {
|
|
|
280
289
|
* necesarias para el dibujado de las series del grafico.
|
|
281
290
|
*/
|
|
282
291
|
protected abstract baseSeriesOptions: SeriesOption;
|
|
292
|
+
protected afterSetOptionsHook?: () => void;
|
|
283
293
|
protected chartInstance?: echarts.ECharts;
|
|
284
294
|
protected vsEchartsConfig: _visionaris_bruno_vs_echarts.VSEchartsConfig | null;
|
|
285
295
|
/** Opciones de inicializacion de echarts
|
|
@@ -765,5 +775,19 @@ declare class EChartsHBoxplotComponent extends BaseEchartsComponent {
|
|
|
765
775
|
static ɵcmp: i0.ɵɵComponentDeclaration<EChartsHBoxplotComponent, "vs-echarts-hboxplot", never, {}, {}, never, never, true, never>;
|
|
766
776
|
}
|
|
767
777
|
|
|
768
|
-
|
|
769
|
-
|
|
778
|
+
declare class EChartsHeatmapCalendar extends BaseEchartsComponent {
|
|
779
|
+
/** aires para el calculo de resize y posicionamientos de distintos componentes */
|
|
780
|
+
private calendarPaddings;
|
|
781
|
+
protected baseSeriesOptions: HeatmapSeriesOption;
|
|
782
|
+
protected baseProduct: VSEChartProduct;
|
|
783
|
+
protected builder: IEChartBuilder<HeatmapSeriesOption, any, any>;
|
|
784
|
+
protected director: VSECDirector;
|
|
785
|
+
protected make(): void;
|
|
786
|
+
protected afterSetOptionsHook: (() => void);
|
|
787
|
+
onChartClick(event: any): void;
|
|
788
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<EChartsHeatmapCalendar, never>;
|
|
789
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<EChartsHeatmapCalendar, "vs-echarts-heatmapCalendar", never, {}, {}, never, never, true, never>;
|
|
790
|
+
}
|
|
791
|
+
|
|
792
|
+
export { BaseEchartsComponent, EChartsAreaComponent, EChartsAreaStackComponent, EChartsBarStackedComponent, EChartsBarStackedRadialComponent, EChartsHBarComponent, EChartsHBarStackedComponent, EChartsHBoxplotComponent, EChartsHeatmapCalendar, EChartsSunburstComponent, EchartsBarComponent, EchartsFunnelComponent, EchartsLineComponent, EchartsPieComponent, EchartsRingComponent, EchartsSankeyComponent, EchartsScatterComponent, VSEchartsConfigService, defaultOptionsOverrides, getActiveLocale, provideVSEcharts, setActiveLocale };
|
|
793
|
+
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 };
|