@kiwibit/chart 18.0.2 → 20.0.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.
@@ -1,587 +0,0 @@
1
- import * as i0 from '@angular/core';
2
- import { EventEmitter, Directive, Input, Output, HostListener, Component } from '@angular/core';
3
- import * as echarts from 'echarts/core';
4
- import { init } from 'echarts';
5
- import { TitleComponent, TooltipComponent, GridComponent, LegendComponent, DataZoomComponent, ToolboxComponent } from 'echarts/components';
6
- import { LineChart } from 'echarts/charts';
7
- import { CanvasRenderer } from 'echarts/renderers';
8
-
9
- var TraceType;
10
- (function (TraceType) {
11
- TraceType["LINE"] = "line";
12
- TraceType["SCATTER"] = "scatter";
13
- })(TraceType || (TraceType = {}));
14
- var PointSymbol;
15
- (function (PointSymbol) {
16
- PointSymbol["NONE"] = "none";
17
- PointSymbol["CIRCLE"] = "circle";
18
- PointSymbol["TRIANGLE"] = "triangle";
19
- PointSymbol["PIN"] = "pin";
20
- PointSymbol["DIAMOND"] = "diamond";
21
- })(PointSymbol || (PointSymbol = {}));
22
- var TraceStyle;
23
- (function (TraceStyle) {
24
- TraceStyle["SOLID"] = "solid";
25
- TraceStyle["DASHED"] = "dashed";
26
- TraceStyle["DOTTED"] = "dotted";
27
- })(TraceStyle || (TraceStyle = {}));
28
- var AxisType;
29
- (function (AxisType) {
30
- AxisType["VALUE"] = "value";
31
- })(AxisType || (AxisType = {}));
32
- var ShapeVariant;
33
- (function (ShapeVariant) {
34
- ShapeVariant[ShapeVariant["TRACE"] = 0] = "TRACE";
35
- })(ShapeVariant || (ShapeVariant = {}));
36
-
37
- const ZOOM_IN = "M39.35 40.45 26.6 27.7q-1.55 1.35-3.6 2.025-2.05.675-4 .675-4.9 0-8.225-3.325Q7.45 23.75 7.45 18.9q0-4.9 3.325-8.225Q14.1 7.35 18.95 7.35q4.85 0 8.225 3.325t3.375 8.175q0 2.1-.725 4.1-.725 2-2.025 3.45l12.8 12.75ZM19 28.65q4.15 0 6.975-2.8 2.825-2.8 2.825-7 0-4.15-2.825-6.95T19 9.1q-4.2 0-7 2.8t-2.8 6.95q0 4.2 2.8 7t7 2.8Zm-.9-5.1V19.7h-3.85v-1.75h3.85v-3.8h1.75v3.8h3.8v1.75h-3.8v3.85Z";
38
- const ZOOM_OUT = "M41.25 39.35 29.55 27.7q-1.5 1.25-3.525 1.975Q24 30.4 22.05 30.4q-2.1 0-3.975-.725T14.9 27.65l1.2-1.2q1.2 1.1 2.65 1.65 1.45.55 3.25.55 4.2 0 7-2.8t2.8-7q0-4.15-2.8-6.95t-7-2.8q-4.15 0-7 2.8-2.85 2.8-2.75 6.95l3.2-3.4 1.3 1.3-5.35 5.35-5.3-5.35 1.3-1.3 3.05 3.3q0-4.85 3.4-8.125Q17.25 7.35 22 7.35q4.9 0 8.225 3.325Q33.55 14 33.55 18.85q0 2.1-.75 4.1-.75 2-1.95 3.45L42.5 38.05Z";
39
- const SAVE_AS_SVG = "M11.3 40.05q-1.35 0-2.35-1t-1-2.35V11.3q0-1.4 1-2.375 1-.975 2.35-.975h25.4q1.4 0 2.375.975.975.975.975 2.375v25.4q0 1.35-.975 2.35t-2.375 1Zm0-1.75h25.4q.6 0 1.1-.5.5-.5.5-1.1V11.3q0-.6-.5-1.1-.5-.5-1.1-.5H11.3q-.6 0-1.1.5-.5.5-.5 1.1v25.4q0 .6.5 1.1.5.5 1.1.5Zm4.1-5.15h17.65l-5.5-7.3-5.2 6.45-3.3-3.85ZM9.7 38.3V9.7v28.6Z";
40
- const RESTORE = "M24.2 25.65q-.65 0-1.125-.475T22.6 24q0-.7.475-1.2t1.175-.5q.65 0 1.175.525T25.95 24q0 .7-.55 1.175-.55.475-1.2.475Zm.1 14.55q-6.4 0-11.1-4.25Q8.5 31.7 8.1 25.4h1.8q.5 5.55 4.6 9.3 4.1 3.75 9.75 3.75 6.05 0 10.225-4.225T38.65 24.05q0-6.05-4.2-10.275Q30.25 9.55 24.3 9.55q-3.2 0-6.025 1.3t-4.875 3.6h4.95v1.75H10.4v-8h1.75v5.05q2.25-2.6 5.475-4.025Q20.85 7.8 24.3 7.8q3.3 0 6.225 1.25t5.125 3.475q2.2 2.225 3.475 5.175Q40.4 20.65 40.4 24q0 3.35-1.275 6.3-1.275 2.95-3.475 5.175-2.2 2.225-5.125 3.475T24.3 40.2Z";
41
- const ADD_POINT = "M222.895-189.538q-22.456 0-37.906-15.451-15.451-15.45-15.451-37.906v-474.21q0-22.456 15.451-37.906 15.45-15.451 38.088-15.451h322.346v28.924H223.077q-10.769 0-17.692 6.923t-6.923 17.692v473.846q0 10.769 6.923 17.692t17.692 6.923h473.846q10.77 0 17.693-6.923 6.923-6.923 6.923-17.692v-322.346h28.923v322.346q0 22.638-15.451 38.088-15.45 15.451-37.906 15.451h-474.21Zm78.028-121.539h28.923v-243.077h-28.923v243.077Zm144.923 0h28.923v-337.846h-28.923v337.846Zm144.308 0h28.923v-148.308h-28.923v148.308Zm100-327.692v-71.385h-71.385v-28.923h71.385v-71.385h28.923v71.385h71.385v28.923h-71.385v71.385h-28.923ZM460-480Z";
42
-
43
- // Angular Imports
44
- echarts.use([
45
- TitleComponent,
46
- TooltipComponent,
47
- GridComponent,
48
- LineChart,
49
- CanvasRenderer,
50
- LegendComponent,
51
- DataZoomComponent,
52
- ToolboxComponent,
53
- ]);
54
- class KiwiChartDirective {
55
- /**
56
- * If you resize the page, the chart is automatically re-rendered wiht the right proportions.
57
- *
58
- * @memberof EnchartingDirective
59
- */
60
- onResize() {
61
- if (this.echartsInstance) {
62
- this.echartsInstance.resize();
63
- }
64
- }
65
- constructor(el) {
66
- this.el = el;
67
- /**
68
- * The Chart Object rendered by the canvas. For all the available options refer
69
- * to Chart interface in the models folder.
70
- *
71
- * @type {(Chart | null)}
72
- * @memberof KiwiChartDirective
73
- */
74
- this.chart = null;
75
- /**
76
- * Width and Height of the chart area. The dimensions refer to the father component
77
- * into which the kiwi-chart is inserted. For example in an empty page the width/height
78
- * of the chart can take the whole available space in the page.
79
- *
80
- * @type {string}
81
- * @memberof KiwiChartDirective
82
- */
83
- this.width = '100%';
84
- this.height = '480px';
85
- this.chartInit = new EventEmitter();
86
- /**
87
- * Output event used to emit to the father component the coordinates
88
- * of the point clicked in the chart area. This functionality to be used must
89
- * have the property "clickToAddPoint" in the Chart object set to true.
90
- *
91
- * @type {EventEmitter<BasePoint>}
92
- * @memberof KiwiChartDirective
93
- */
94
- this.addPoint = new EventEmitter();
95
- /**
96
- * When the cursor hovers the chart area it emits to the father component the
97
- * x and y coordinates relative to the chart reference system.
98
- *
99
- * @type {EventEmitter<BasePoint>}
100
- * @memberof KiwiChartDirective
101
- */
102
- this.chartHover = new EventEmitter();
103
- /**
104
- * This property simply activates or not the dark theme of the chart
105
- * defined by the Echarts library. In addition the background color can be custom
106
- * so that the chart can match the background of the application in which it's used.
107
- *
108
- * @type {boolean}
109
- * @memberof KiwiChartDirective
110
- */
111
- this.darkTheme = false;
112
- this.darkThemeBackground = null;
113
- /**
114
- * The instance of the Chart.
115
- *
116
- * @type {ECharts}
117
- * @memberof KiwiChartDirective
118
- */
119
- this.echartsInstance = null;
120
- /**
121
- * Default number of decimals that can have
122
- * the values on the x and y axes.
123
- *
124
- * @private
125
- * @type {number}
126
- * @memberof KiwiChartDirective
127
- */
128
- this.MAX_DECIMALS = 3;
129
- this.legendSelected = {};
130
- this.isLegendClicked = false;
131
- /**
132
- * Used to perform actions (as point addition based on the cursor position) on the chart.
133
- *
134
- * @type {(zrender.ZRenderType | null)}
135
- * @memberof KiwiChartComponent
136
- */
137
- this.zr = null;
138
- }
139
- ngAfterViewInit() {
140
- if (this.chart) {
141
- this.renderChart(this.chart);
142
- }
143
- }
144
- ngOnChanges(changes) {
145
- let chart = changes['chart']?.currentValue;
146
- if (this.echartsInstance) {
147
- // Every time we have an external change we
148
- // destroy the chart and re-initialize it
149
- this.echartsInstance.dispose();
150
- this.renderChart(chart);
151
- }
152
- }
153
- renderChart(chart) {
154
- // Update ElementRef styles
155
- this.el.nativeElement.style.width = this.width;
156
- this.el.nativeElement.style.height = this.height;
157
- this.echartsInstance = init(this.el.nativeElement, this.darkTheme ? 'dark' : 'default', {
158
- renderer: 'svg'
159
- });
160
- if (chart) {
161
- this.echartsInstance.setOption({
162
- title: {
163
- text: chart.title,
164
- },
165
- grid: {
166
- width: '70%'
167
- },
168
- backgroundColor: this.darkTheme ? this.darkThemeBackground ?? '#303030' : 'transparent', tooltip: {
169
- axisPointer: {
170
- type: 'cross',
171
- crossStyle: {
172
- color: '#bebebe'
173
- }
174
- }
175
- },
176
- toolbox: {
177
- orient: 'horizontal',
178
- left: 'center',
179
- top: '25px',
180
- feature: {
181
- dataZoom: {
182
- brushStyle: {
183
- borderColor: '#000',
184
- borderWidth: 1,
185
- borderType: 'dashed'
186
- },
187
- emphasis: {
188
- iconStyle: {
189
- textPosition: 'top',
190
- textPadding: 5
191
- }
192
- },
193
- icon: {
194
- zoom: ZOOM_IN,
195
- back: ZOOM_OUT
196
- },
197
- },
198
- saveAsImage: {
199
- emphasis: {
200
- iconStyle: {
201
- textPosition: 'top',
202
- textPadding: 5
203
- }
204
- },
205
- icon: SAVE_AS_SVG,
206
- },
207
- restore: {
208
- emphasis: {
209
- iconStyle: {
210
- textPosition: 'top',
211
- textPadding: 5
212
- }
213
- },
214
- icon: RESTORE,
215
- },
216
- myAddPoint: {
217
- show: chart.clickToAddPoint ?? false,
218
- title: chart.addPointCustomName ?? 'Add Point',
219
- icon: ADD_POINT,
220
- onclick: () => {
221
- if (this.echartsInstance) {
222
- const option = this.echartsInstance.getOption();
223
- const toolbox = option.toolbox;
224
- if (toolbox) {
225
- const status = toolbox[0].feature?.['myAddPoint']?.iconStatus;
226
- const offColor = 'rgb(102,102,102)';
227
- const highlightColor = 'rgb(62,152,197)';
228
- this.echartsInstance.setOption({
229
- toolbox: {
230
- feature: {
231
- myAddPoint: {
232
- iconStatus: !status,
233
- iconStyle: {
234
- borderColor: !status ? highlightColor : offColor
235
- }
236
- }
237
- }
238
- }
239
- });
240
- }
241
- }
242
- },
243
- emphasis: {
244
- iconStyle: {
245
- textPosition: 'top',
246
- textPadding: 5
247
- }
248
- }
249
- }
250
- },
251
- },
252
- dataZoom: [
253
- {
254
- type: 'inside',
255
- xAxisIndex: [0],
256
- throttle: 0,
257
- filterMode: 'none',
258
- disabled: !chart.scrollToZoom
259
- },
260
- {
261
- type: 'inside',
262
- yAxisIndex: [0],
263
- throttle: 0,
264
- filterMode: 'none',
265
- disabled: !chart.scrollToZoom
266
- },
267
- ],
268
- legend: {
269
- inactiveColor: this.darkTheme ? '#8b8b8b' : '#ccc',
270
- data: chart.shapes.map((shape) => ({
271
- name: shape.name,
272
- icon: 'circle',
273
- })),
274
- selected: chart.shapes.reduce((accumulator, shape) => ({
275
- ...accumulator,
276
- [shape.name]: this.getLegendItemSelection(shape),
277
- }), {}),
278
- show: chart.showLegend ?? false,
279
- orient: 'vertical',
280
- left: 'right',
281
- padding: [60, 20],
282
- type: 'scroll',
283
- textStyle: {
284
- width: 120,
285
- fontWeight: 'bold',
286
- overflow: 'break'
287
- }
288
- },
289
- xAxis: {
290
- type: chart.xAxisType,
291
- name: chart.xAxisUom ? `${chart.xAxisName} [ ${chart.xAxisUom} ]` : chart.xAxisName,
292
- nameLocation: 'middle',
293
- nameGap: 30,
294
- splitLine: {
295
- show: chart.showGrid ?? true,
296
- lineStyle: {
297
- color: this.darkTheme ? '#595959' : '#ccc'
298
- }
299
- },
300
- min: chart.xMin?.toFixed(chart.maxAxesDecimals ?? this.MAX_DECIMALS),
301
- max: chart.xMax?.toFixed(chart.maxAxesDecimals ?? this.MAX_DECIMALS),
302
- },
303
- yAxis: {
304
- type: chart.yAxisType,
305
- name: chart.yAxisUom ? `${chart.yAxisName} [ ${chart.yAxisUom} ]` : chart.yAxisName,
306
- nameLocation: 'middle',
307
- nameGap: 50,
308
- splitLine: {
309
- show: chart.showGrid ?? true,
310
- lineStyle: {
311
- color: this.darkTheme ? '#595959' : '#ccc'
312
- }
313
- },
314
- min: chart.yMin?.toFixed(chart.maxAxesDecimals ?? this.MAX_DECIMALS),
315
- max: chart.yMax?.toFixed(chart.maxAxesDecimals ?? this.MAX_DECIMALS),
316
- },
317
- series: this.createSeries(chart.shapes),
318
- animation: chart.hasAnimations,
319
- animationDuration: chart.animationDuration ?? 250,
320
- animationEasing: 'cubicOut'
321
- }, true, true);
322
- }
323
- this.setupZrEventHandler(this.echartsInstance);
324
- this.setupLegendEventHandler(this.echartsInstance);
325
- }
326
- createSeries(shapes) {
327
- let series = [];
328
- shapes.forEach((shape) => {
329
- switch (shape.variant) {
330
- case ShapeVariant.TRACE:
331
- series.push(this.createTrace(shape));
332
- break;
333
- default:
334
- break;
335
- }
336
- });
337
- return series;
338
- }
339
- createTrace(trace) {
340
- return {
341
- type: trace.type,
342
- name: trace.name,
343
- data: trace.points.map((point) => ({
344
- value: [point.x, point.y],
345
- symbol: point.symbol ?? 'circle',
346
- name: point.name,
347
- symbolSize: point.symbolSize ?? 2,
348
- itemStyle: {
349
- color: point.color
350
- },
351
- emphasis: {
352
- disabled: true
353
- },
354
- label: {
355
- show: true,
356
- position: 'bottom',
357
- align: 'left',
358
- verticalAlign: 'bottom',
359
- formatter: () => `${point.name ?? ''}`,
360
- fontSize: 13,
361
- padding: [0, 0, 0, 10],
362
- width: 100,
363
- overflow: 'truncate',
364
- ellipsis: '...',
365
- fontWeight: 'bold',
366
- color: this.darkTheme ? '#fff' : '#000'
367
- },
368
- tooltip: {
369
- formatter: ({ value }) => `
370
- <strong>${this.chart?.xAxisName}:</strong> ${value[0].toFixed(3).replace(/[.,]000$/, "")}
371
- <br>
372
- <strong>${this.chart?.yAxisName}:</strong> ${value[1].toFixed(3).replace(/[.,]000$/, "")}
373
- `
374
- }
375
- })),
376
- color: trace.color,
377
- lineStyle: {
378
- width: trace.width,
379
- type: trace.style,
380
- opacity: trace.opacity ?? 1
381
- },
382
- smooth: trace.smooth ?? false
383
- };
384
- }
385
- getLegendItemSelection(shape) {
386
- if (this.isLegendClicked) {
387
- return this.legendSelected[shape.name] ?? true;
388
- }
389
- else {
390
- return shape.selectedByDefault ?? true;
391
- }
392
- }
393
- /**
394
- * intercept a selection change event on the legend and save the state
395
- * of all selections on the supporting variable legendSelected
396
- *
397
- * @param ec
398
- */
399
- setupLegendEventHandler(ec) {
400
- if (this.echartsInstance != null) {
401
- this.echartsInstance.on('legendselectchanged', (params) => {
402
- this.isLegendClicked = true;
403
- this.legendSelected = params.selected;
404
- });
405
- }
406
- }
407
- setupZrEventHandler(ec) {
408
- this.zr = ec.getZr();
409
- /**
410
- * Intercepts the click event on the chart (if the clickToAddPoint property is set to true)
411
- * and emits the point coordinates to the father component.
412
- */
413
- this.zr.on('click', params => {
414
- let option = ec.getOption();
415
- let active = option?.toolbox?.[0]?.feature?.myAddPoint?.iconStatus;
416
- if (active && this.chart?.clickToAddPoint) {
417
- const pointInPixel = [params.offsetX, params.offsetY];
418
- const pointInGrid = ec.convertFromPixel('grid', pointInPixel);
419
- if (ec.containPixel('grid', pointInPixel) && pointInGrid) {
420
- let newPoint = {
421
- x: +pointInGrid[0].toFixed(3),
422
- y: +pointInGrid[1].toFixed(3)
423
- };
424
- this.addPoint.emit(newPoint);
425
- }
426
- }
427
- });
428
- /**
429
- * This is used perform custom actions when the mouse is hovering the chart area
430
- */
431
- this.zr.on('mousemove', params => {
432
- const pointInPixel = [params.offsetX, params.offsetY];
433
- const pointInGrid = ec.convertFromPixel('grid', pointInPixel);
434
- /*
435
- * Logic to emit to the father component the x and y cdinates when the
436
- * cursor is hovering the chart area .
437
- */
438
- if (ec.containPixel('grid', pointInPixel) && pointInGrid) {
439
- let newPoint = {
440
- x: +pointInGrid[0].toFixed(3),
441
- y: +pointInGrid[1].toFixed(3)
442
- };
443
- this.chartHover.emit(newPoint);
444
- }
445
- /* Logic to change the cursor icon when the "Click to Add Point" feature is active and viceversa. */
446
- const option = ec.getOption();
447
- const addPointIsActive = option?.toolbox?.[0]?.feature?.myAddPoint?.iconStatus;
448
- if (addPointIsActive) {
449
- this.zr?.setCursorStyle(ec.containPixel('grid', pointInPixel) ? 'copy' : 'default');
450
- }
451
- });
452
- }
453
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: KiwiChartDirective, deps: [{ token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Directive }); }
454
- static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "18.2.13", type: KiwiChartDirective, isStandalone: true, selector: "div[kiwi-chart]", inputs: { chart: "chart", width: "width", height: "height", darkTheme: "darkTheme", darkThemeBackground: "darkThemeBackground" }, outputs: { chartInit: "chartInit", addPoint: "addPoint", chartHover: "chartHover" }, host: { listeners: { "window:resize": "onResize($event)" } }, usesOnChanges: true, ngImport: i0 }); }
455
- }
456
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: KiwiChartDirective, decorators: [{
457
- type: Directive,
458
- args: [{
459
- selector: 'div[kiwi-chart]',
460
- standalone: true
461
- }]
462
- }], ctorParameters: () => [{ type: i0.ElementRef }], propDecorators: { chart: [{
463
- type: Input,
464
- args: [{ required: true }]
465
- }], width: [{
466
- type: Input
467
- }], height: [{
468
- type: Input
469
- }], chartInit: [{
470
- type: Output
471
- }], addPoint: [{
472
- type: Output
473
- }], chartHover: [{
474
- type: Output
475
- }], darkTheme: [{
476
- type: Input
477
- }], darkThemeBackground: [{
478
- type: Input
479
- }], onResize: [{
480
- type: HostListener,
481
- args: ['window:resize', ['$event']]
482
- }] } });
483
-
484
- // Angular General
485
- class KiwiChartComponent {
486
- constructor() {
487
- /**
488
- * The Chart Object rendered by the canvas. For all the available options refer
489
- * to Chart interface in the models folder.
490
- *
491
- * @type {(Chart | null)}
492
- * @memberof KiwiChartComponent
493
- */
494
- this.chart = null;
495
- /**
496
- * Width and Height of the chart area. The dimensions refer to the father component
497
- * into which the kiwi-chart is inserted. For example in an empty page the width/height
498
- * of the chart can take the whole available space in the page.
499
- *
500
- * @type {string}
501
- * @memberof KiwiChartComponent
502
- */
503
- this.width = '100%';
504
- this.height = '480px';
505
- /**
506
- * This property simply activates or not the dark theme of the chart
507
- * defined by the Echarts library. In addition the background color can be custom
508
- * so that the chart can match the background of the application in which it's used.
509
- *
510
- * @type {boolean}
511
- * @memberof KiwiChartComponent
512
- */
513
- this.darkTheme = false;
514
- this.darkThemeBackground = null;
515
- /**
516
- * Output event used to emit to the father component the coordinates
517
- * of the point clicked in the chart area. This functionality to be used must
518
- * have the property "clickToAddPoint" in the Chart object set to true.
519
- *
520
- * @type {EventEmitter<BasePoint>}
521
- * @memberof KiwiChartComponent
522
- */
523
- this.addPoint = new EventEmitter();
524
- /**
525
- * When the cursor hovers the chart area it emits to the father component the
526
- * x and y coordinates relative to the chart reference system.
527
- *
528
- * @type {EventEmitter<BasePoint>}
529
- * @memberof KiwiChartComponent
530
- */
531
- this.chartHover = new EventEmitter();
532
- }
533
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: KiwiChartComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
534
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.2.13", type: KiwiChartComponent, isStandalone: true, selector: "kiwi-chart", inputs: { chart: "chart", width: "width", height: "height", darkTheme: "darkTheme", darkThemeBackground: "darkThemeBackground" }, outputs: { addPoint: "addPoint", chartHover: "chartHover" }, ngImport: i0, template: `
535
- <div
536
- kiwi-chart
537
- [chart]="chart"
538
- [width]="width"
539
- [height]="height"
540
- [darkTheme]="darkTheme"
541
- [darkThemeBackground]="darkThemeBackground"
542
- (addPoint)="addPoint.emit($event)"
543
- (chartHover)="chartHover.emit($event)"
544
- ></div>
545
- `, isInline: true, styles: [""], dependencies: [{ kind: "directive", type: KiwiChartDirective, selector: "div[kiwi-chart]", inputs: ["chart", "width", "height", "darkTheme", "darkThemeBackground"], outputs: ["chartInit", "addPoint", "chartHover"] }] }); }
546
- }
547
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: KiwiChartComponent, decorators: [{
548
- type: Component,
549
- args: [{ selector: 'kiwi-chart', template: `
550
- <div
551
- kiwi-chart
552
- [chart]="chart"
553
- [width]="width"
554
- [height]="height"
555
- [darkTheme]="darkTheme"
556
- [darkThemeBackground]="darkThemeBackground"
557
- (addPoint)="addPoint.emit($event)"
558
- (chartHover)="chartHover.emit($event)"
559
- ></div>
560
- `, standalone: true, imports: [KiwiChartDirective] }]
561
- }], propDecorators: { chart: [{
562
- type: Input,
563
- args: [{ required: true }]
564
- }], width: [{
565
- type: Input
566
- }], height: [{
567
- type: Input
568
- }], darkTheme: [{
569
- type: Input
570
- }], darkThemeBackground: [{
571
- type: Input
572
- }], addPoint: [{
573
- type: Output
574
- }], chartHover: [{
575
- type: Output
576
- }] } });
577
-
578
- /*
579
- * Public API Surface of chart
580
- */
581
-
582
- /**
583
- * Generated bundle index. Do not edit.
584
- */
585
-
586
- export { AxisType, KiwiChartComponent, PointSymbol, ShapeVariant, TraceStyle, TraceType };
587
- //# sourceMappingURL=kiwibit-chart.mjs.map