This repository has been archived by the owner on Mar 24, 2018. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
/
wijmo.chart.d.ts
executable file
·1301 lines (1301 loc) · 46.4 KB
/
wijmo.chart.d.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
import * as wjcCore from 'wijmo/wijmo';
import * as wjcSelf from 'wijmo/wijmo.chart';
export declare class DataPoint {
x: any;
y: any;
constructor(x?: any, y?: any);
}
export declare class RenderEventArgs extends wjcCore.CancelEventArgs {
_engine: IRenderEngine;
constructor(engine: IRenderEngine);
readonly engine: IRenderEngine;
}
export declare class SeriesRenderingEventArgs extends RenderEventArgs {
_index: number;
_count: number;
constructor(engine: IRenderEngine, index: number, count: number);
readonly index: number;
readonly count: number;
}
export declare enum ImageFormat {
Png = 0,
Jpeg = 1,
Svg = 2,
}
export declare class FlexChartBase extends wjcCore.Control implements _IPalette {
static _WIDTH: number;
static _HEIGHT: number;
static _SELECTION_THRESHOLD: number;
_items: any;
_cv: wjcCore.ICollectionView;
protected _palette: string[];
private _selectionMode;
private _itemFormatter;
_selectionIndex: number;
_options: any;
private _plotMargin;
_header: string;
_headerStyle: any;
_footer: string;
_footerStyle: any;
_legend: Legend;
_defPalette: string[];
_notifyCurrentChanged: boolean;
_rectFooter: wjcCore.Rect;
_rectHeader: wjcCore.Rect;
_rectChart: wjcCore.Rect;
_rectLegend: wjcCore.Rect;
_currentRenderEngine: IRenderEngine;
_legendHost: SVGGElement;
private _needBind;
private _toShow;
private _toHide;
_tooltip: ChartTooltip;
_chartRectId: string;
itemsSource: any;
readonly collectionView: wjcCore.ICollectionView;
palette: string[];
plotMargin: any;
legend: Legend;
header: string;
footer: string;
headerStyle: any;
footerStyle: any;
selectionMode: SelectionMode;
itemFormatter: Function;
rendering: wjcCore.Event;
rendered: wjcCore.Event;
onRendered(e: RenderEventArgs): void;
onRendering(e: RenderEventArgs): void;
saveImageToFile(filename: string): void;
saveImageToDataUrl(format: ImageFormat, done: Function): void;
_exportToImage(extension: any, processDataURI: any): void;
refresh(fullUpdate?: boolean): void;
selectionChanged: wjcCore.Event;
onSelectionChanged(e?: wjcCore.EventArgs): void;
onLostFocus(e?: wjcCore.EventArgs): void;
private _cvCollectionChanged(sender, e);
private _cvCurrentChanged(sender, e);
_getColor(index: number): string;
_getColorLight(index: number): string;
_getLightColor(color: string): string;
_bindChart(): void;
_clearCachedValues(): void;
_render(engine: IRenderEngine, applyElement?: boolean): void;
_renderHeader(engine: IRenderEngine, rect: wjcCore.Rect): void;
_renderFooter(engine: IRenderEngine, rect: wjcCore.Rect): void;
_renderLegends(engine: IRenderEngine, rect: wjcCore.Rect): void;
_prepareRender(): void;
_renderChart(engine: IRenderEngine, rect: wjcCore.Rect, applyElement: boolean): void;
_performBind(): void;
_getDesiredLegendSize(engine: IRenderEngine, isVertical: boolean, width: number, height: number): wjcCore.Size;
_renderLegend(engine: IRenderEngine, pt: wjcCore.Point, areas: any[], isVertical: boolean, width: number, height: number): void;
_getHitTestItem(index: number): any;
_getHitTestValue(index: number): any;
_getHitTestLabel(index: number): any;
_refreshChart(): void;
_drawTitle(engine: IRenderEngine, rect: wjcCore.Rect, title: string, style: any, isFooter: boolean): wjcCore.Rect;
pageToControl(pt: any, y?: number): wjcCore.Point;
_toControl(pt: any, y?: number): wjcCore.Point;
_highlightItems(items: any, cls: any, selected: boolean): void;
_parseMargin(value: any): any;
_showToolTip(content: any, rect: any): void;
_hideToolTip(): void;
private _clearTimeouts();
_getHostOffset(): wjcCore.Point;
_getHostSize(): wjcCore.Size;
_getHostComputedStyle(): CSSStyleDeclaration;
_find(elem: SVGElement, names: string[]): any[];
}
export interface _IHitArea {
contains(pt: wjcCore.Point): boolean;
distance(pt: wjcCore.Point): number;
tag: any;
}
export declare class _KeyWords {
private _keys;
constructor();
replace(s: string, ht: HitTestInfo): string;
getValue(key: string, ht: HitTestInfo, fmt?: string): string;
}
export declare class FlexPie extends FlexChartBase {
private static _MARGIN;
private _binding;
private _bindingName;
_areas: any[];
private _keywords;
private _startAngle;
private _innerRadius;
private _offset;
private _reversed;
private _isAnimated;
private _selectedItemPosition;
private _selectedItemOffset;
private _pieGroup;
private _rotationAngle;
private _center;
private _radius;
private _selectedOffset;
private _selectedIndex;
private _angles;
private _selectionAnimationID;
private _colRowLens;
private _lbl;
_values: number[];
_labels: string[];
_pels: any[];
_sum: number;
constructor(element: any, options?: any);
binding: string;
bindingName: string;
startAngle: number;
offset: number;
innerRadius: number;
reversed: boolean;
selectedItemPosition: Position;
selectedItemOffset: number;
isAnimated: boolean;
readonly tooltip: ChartTooltip;
dataLabel: PieDataLabel;
selectedIndex: number;
_getLabelsForLegend(): string[];
hitTest(pt: any, y?: number): HitTestInfo;
_performBind(): void;
_initData(): void;
_getBindData(item: any, values: any, labels: any, binding: any, bindingName: any): number;
_render(engine: IRenderEngine, applyElement?: boolean): void;
_prepareRender(): void;
_renderChart(engine: IRenderEngine, rect: wjcCore.Rect, applyElement: boolean): void;
_getDesiredLegendSize(engine: IRenderEngine, isVertical: boolean, width: number, height: number): wjcCore.Size;
_renderLegend(engine: IRenderEngine, pos: wjcCore.Point, areas: any[], isVertical: boolean, width: number, height: number): void;
_renderData(engine: IRenderEngine, rect: wjcCore.Rect, g: any): void;
_renderPie(engine: any, radius: any, innerRadius: any, startAngle: any, offset: any): void;
_getCenter(): wjcCore.Point;
_renderSlices(engine: any, values: any, sum: any, radius: any, innerRadius: any, startAngle: any, totalSweep: any, offset: any): void;
_renderSlice(engine: any, cx: any, cy: any, currentAngle: any, idx: any, radius: any, innerRadius: any, startAngle: any, sweep: any, totalSweep: any): void;
_renderLabels(engine: IRenderEngine): void;
_drawSlice(engine: IRenderEngine, i: number, reversed: boolean, cx: number, cy: number, r: number, irad: number, angle: number, sweep: number): void;
_measureLegendItem(engine: IRenderEngine, name: string): wjcCore.Size;
_drawLegendItem(engine: IRenderEngine, rect: wjcCore.Rect, i: number, name: string): void;
private _getLabelContent(ht, content);
private _select(pointIndex, animate?);
_highlightCurrent(): void;
_highlight(selected: boolean, pointIndex: number, animate?: boolean): void;
_animateSelectionAngle(target: number, duration: number): void;
_getHitTestItem(index: number): any;
_getHitTestValue(index: number): number;
_getHitTestLabel(index: number): string;
}
export interface _ISegment {
center: wjcCore.Point;
radius: number;
langle: number;
angle: number;
sweep: number;
}
export declare class _PieSegment implements _IHitArea, _ISegment {
private _center;
private _angle;
private _sweep;
private _radius;
private _radius2;
private _isFull;
private _originAngle;
private _originSweep;
private _startAngle;
constructor(center: wjcCore.Point, radius: number, angle: number, sweep: number, startAngle?: number);
contains(pt: wjcCore.Point): boolean;
distance(pt: wjcCore.Point): number;
readonly center: wjcCore.Point;
readonly radius: number;
readonly langle: number;
readonly angle: number;
readonly sweep: number;
tag: any;
}
export declare class _DonutSegment implements _IHitArea, _ISegment {
private _center;
private _angle;
private _sweep;
private _originAngle;
private _originSweep;
private _radius;
private _radius2;
private _iradius;
private _iradius2;
private _isFull;
private _startAngle;
constructor(center: wjcCore.Point, radius: number, innerRadius: number, angle: number, sweep: number, startAngle?: number);
contains(pt: wjcCore.Point): boolean;
distance(pt: wjcCore.Point): number;
readonly center: wjcCore.Point;
readonly radius: number;
readonly langle: number;
readonly angle: number;
readonly sweep: number;
readonly innerRadius: number;
tag: any;
}
export declare enum Stacking {
None = 0,
Stacked = 1,
Stacked100pc = 2,
}
export declare enum SelectionMode {
None = 0,
Series = 1,
Point = 2,
}
export declare class FlexChartCore extends FlexChartBase {
static _CSS_AXIS_X: string;
static _CSS_AXIS_Y: string;
static _CSS_LINE: string;
static _CSS_GRIDLINE: string;
static _CSS_TICK: string;
static _CSS_GRIDLINE_MINOR: string;
static _CSS_TICK_MINOR: string;
static _CSS_LABEL: string;
static _CSS_LEGEND: string;
static _CSS_HEADER: string;
static _CSS_FOOTER: string;
static _CSS_TITLE: string;
static _CSS_SELECTION: string;
static _CSS_PLOT_AREA: string;
static _FG: string;
private _series;
private _axes;
private _pareas;
private _axisX;
private _axisY;
private _selection;
private _interpolateNulls;
private _legendToggle;
private _symbolSize;
private _dataInfo;
_plotRect: wjcCore.Rect;
private __barPlotter;
private __linePlotter;
private __areaPlotter;
private __bubblePlotter;
private __financePlotter;
private __funnelPlotter;
private _plotters;
private _binding;
private _bindingX;
_rotated: boolean;
_stacking: wjcSelf.Stacking;
private _lbl;
_xlabels: string[];
_xvals: number[];
_xDataType: wjcCore.DataType;
private _hitTester;
private _lblAreas;
private _keywords;
private _curPlotter;
private _colRowLens;
_bindingSeparator: string;
constructor(element: any, options?: any);
_initAxes(): void;
readonly series: wjcCore.ObservableArray;
readonly axes: wjcCore.ObservableArray;
axisX: Axis;
axisY: Axis;
readonly plotAreas: PlotAreaCollection;
binding: string;
bindingX: string;
symbolSize: number;
interpolateNulls: boolean;
legendToggle: boolean;
readonly tooltip: ChartTooltip;
dataLabel: DataLabel;
selection: SeriesBase;
seriesVisibilityChanged: wjcCore.Event;
onSeriesVisibilityChanged(e: SeriesEventArgs): void;
hitTest(pt: any, y?: number): HitTestInfo;
pointToData(pt: any, y?: number): wjcCore.Point;
dataToPoint(pt: any, y?: number): wjcCore.Point;
_copy(key: string, value: any): boolean;
_createSeries(): SeriesBase;
_clearCachedValues(): void;
_performBind(): void;
_hitTestSeries(pt: wjcCore.Point, seriesIndex: number): HitTestInfo;
_hitTestData(pt: any): HitTestInfo;
_hitTestLabels(pt: wjcCore.Point): _IHitArea;
private static _dist2(p1, p2);
static _dist(p0: wjcCore.Point, p1: wjcCore.Point, p2: wjcCore.Point): number;
static _distToSegmentSquared(p: wjcCore.Point, v: wjcCore.Point, w: wjcCore.Point): number;
_isRotated(): boolean;
_plotrectId: string;
_getChartType(): ChartType;
_prepareRender(): void;
_renderChart(engine: IRenderEngine, rect: wjcCore.Rect, applyElement: boolean): void;
_getDesiredLegendSize(engine: IRenderEngine, isVertical: boolean, width: number, height: number): wjcCore.Size;
_renderLegend(engine: IRenderEngine, pos: wjcCore.Point, areas: any[], isVertical: boolean, width: number, height: number): void;
private _renderLegendElements(engine, series, pos, p, areas, isVertical, width, height, colRowLen);
private _renderLabels(engine);
private _getAxes();
private _clearPlotters();
_initPlotter(plotter: _IPlotter): void;
private readonly _barPlotter;
private readonly _linePlotter;
private readonly _areaPlotter;
private readonly _bubblePlotter;
private readonly _financePlotter;
private readonly _funnelPlotter;
_getPlotter(series: SeriesBase): _IPlotter;
_layout(rect: wjcCore.Rect, size: wjcCore.Size, engine: IRenderEngine): void;
private _layoutSingle(rect, size, engine);
private _layoutMultiple(rect, size, engine);
private _convertX(x, left, right);
private _convertY(y, top, bottom);
_getLabelContent(ht: HitTestInfo, content: any): string;
private _select(newSelection, pointIndex);
private _highlightCurrent();
private _highlight(series, selected, pointIndex);
_updateAuxAxes(axes: Axis[], isRotated: boolean): void;
static _contains(rect: wjcCore.Rect, pt: wjcCore.Point): boolean;
static _intersects(rect1: wjcCore.Rect, rect2: wjcCore.Rect): boolean;
static _epoch: number;
static _msPerDay: number;
static _toOADate(date: Date): number;
static _fromOADate(val: number): Date;
static _renderText(engine: IRenderEngine, text: string, pos: wjcCore.Point, halign: any, valign: any, className?: string, groupName?: string, style?: any, test?: any): wjcCore.Rect;
static _renderRotatedText(engine: IRenderEngine, text: string, pos: wjcCore.Point, halign: any, valign: any, center: wjcCore.Point, angle: number, className: string, groupClassName?: string, style?: any): void;
}
export declare class _DataInfo {
private minY;
private maxY;
private minX;
private maxX;
private minXp;
private minYp;
private dataTypeX;
private dataTypeY;
private stackAbs;
private _xvals;
private dx;
constructor();
analyse(seriesList: any, isRotated: boolean, stacking: Stacking, xvals: Array<number>, logx: boolean, logy: boolean): void;
_parseYVal(val: any, xval: any, custom: any, stackAbs: any, stackPos: any, stackNeg: any): void;
getMinY(): number;
getMaxY(): number;
getMinX(): number;
getMaxX(): number;
getMinXp(): number;
getMinYp(): number;
getDeltaX(): number;
getDataTypeX(): wjcCore.DataType;
getDataTypeY(): wjcCore.DataType;
getStackedAbsSum(key: number): number;
getXVals(): Array<number>;
static isValid(value: number): boolean;
}
export interface _IPalette {
_getColor(i: number): string;
_getColorLight(i: number): string;
}
export declare class ChartTooltip extends wjcCore.Tooltip {
private _content;
private _threshold;
constructor();
content: any;
threshold: number;
}
export declare enum ChartType {
Column = 0,
Bar = 1,
Scatter = 2,
Line = 3,
LineSymbols = 4,
Area = 5,
Bubble = 6,
Candlestick = 7,
HighLowOpenClose = 8,
Spline = 9,
SplineSymbols = 10,
SplineArea = 11,
Funnel = 12,
}
export declare class FlexChart extends FlexChartCore {
private _chartType;
constructor(element: any, options?: any);
_getChartType(): ChartType;
chartType: ChartType;
rotated: boolean;
stacking: Stacking;
options: any;
}
export declare enum Position {
None = 0,
Left = 1,
Top = 2,
Right = 3,
Bottom = 4,
Auto = 5,
}
export declare enum AxisType {
X = 0,
Y = 1,
}
export declare enum OverlappingLabels {
Auto = 0,
Show = 1,
}
export interface _IAxis {
actualMin: number;
actualMax: number;
convert(val: number): number;
}
export declare enum TickMark {
None = 0,
Outside = 1,
Inside = 2,
Cross = 3,
}
export declare class Axis implements _IAxis {
_GRIDLINE_WIDTH: number;
_LINE_WIDTH: number;
_TICK_WIDTH: number;
_TICK_HEIGHT: number;
_TICK_OVERLAP: number;
_TICK_LABEL_DISTANCE: number;
private static MAX_MAJOR;
private static MAX_MINOR;
_chart: FlexChartCore;
private _type;
private _min;
private _max;
private _position;
private _majorUnit;
private _minorUnit;
private _majorGrid;
private _minorGrid;
private _title;
private _labelStyle;
private _reversed;
private _format;
private _actualMin;
private _actualMax;
_axisType: AxisType;
private _majorTickMarks;
private _minorTickMarks;
private _logBase;
private _labels;
private _labelAngle;
private _labelAlign;
private _axisLine;
_plotrect: wjcCore.Rect;
private _szTitle;
_isTimeAxis: boolean;
_lbls: string[];
_values: number[];
private _rects;
private _name;
private _origin;
private _overlap;
private _items;
private _cv;
private _binding;
private _ifmt;
private _tfmt;
private static _id;
private __uniqueId;
private _parea;
private _labelPadding;
_axrect: wjcCore.Rect;
_desiredSize: wjcCore.Size;
_annoSize: wjcCore.Size;
_hasOrigin: boolean;
_hostElement: SVGGElement;
_vals: any;
constructor(position?: Position);
readonly hostElement: SVGGElement;
readonly actualMin: any;
readonly actualMax: any;
min: any;
max: any;
reversed: boolean;
position: Position;
majorUnit: number;
minorUnit: number;
name: string;
title: string;
format: string;
majorGrid: boolean;
majorTickMarks: TickMark;
minorGrid: boolean;
minorTickMarks: TickMark;
axisLine: boolean;
labels: boolean;
labelAlign: string;
labelAngle: number;
origin: number;
overlappingLabels: OverlappingLabels;
itemsSource: any;
binding: string;
itemFormatter: Function;
logBase: number;
plotArea: PlotArea;
labelPadding: number;
readonly _groupClass: string;
rangeChanged: wjcCore.Event;
onRangeChanged(e?: wjcCore.EventArgs): void;
_getPosition(): Position;
_isOverlapped(engine: IRenderEngine, w: number, lblClass: string, axisType: AxisType): boolean;
_actualAngle: number;
_getHeight(engine: IRenderEngine, maxw: number): number;
_updateAutoFormat(delta: number): number;
_updateActualLimitsByChartType(labels: any, min: any, max: any): {
min: any;
max: any;
};
_updateActualLimits(dataType: wjcCore.DataType, dataMin: number, dataMax: number, labels?: string[], values?: number[]): void;
_layout(axisRect: wjcCore.Rect, plotRect: wjcCore.Rect): void;
_hasVisibileSeries(): boolean;
_render(engine: IRenderEngine): void;
_renderLineAndTitle(engine: any): void;
_renderMinor(engine: any, vals: any, isCategory: any): void;
_renderRotatedText(engine: IRenderEngine, val: any, text: string, pos: wjcCore.Point, halign: any, valign: any, center: wjcCore.Point, angle: number, className: string, groupClassName?: string, style?: any): void;
_getFormattedItem(engine: IRenderEngine, val: any, text: string, pos: wjcCore.Point, className: string): {
val: any;
text: string;
pos: wjcCore.Point;
cls: string;
};
_renderLabelsAndTicks(engine: any, index: any, val: any, sval: any, labelAngle: any, tickMarks: any, showLabel: any, t1: any, t2: any): boolean;
_xCross(x: number): boolean;
_createMinors(engine: IRenderEngine, vals: number[], isVert: boolean, isNear: boolean, isCategory: boolean): void;
_renderMinors(engine: IRenderEngine, ticks: number[], isVert: boolean, isNear: boolean): void;
_renderLabel(engine: IRenderEngine, val: number, text: string, pos: wjcCore.Point, ha: any, va: any, className?: string): boolean;
private _renderRotatedLabel(engine, val, sval, lpt, ha, labelAngle, lblClass, isNear);
private _getLabelAlign(isVert);
_customConvert: Function;
_customConvertBack: Function;
convert(val: number, maxValue?: number, minValue?: number): number;
convertBack(val: number): number;
readonly axisType: AxisType;
_getMinNum(): number;
_getMaxNum(): number;
private _invalidate();
private _cvCollectionChanged(sender, e);
private _createLabels(start, len, delta, vals, lbls);
private _createLogarithmicLabels(min, max, unit, vals, lbls, isLabels);
_createTimeLabels(start: number, len: number, vals: number[], lbls: string[]): void;
_formatValue(val: number): string;
private _calcMajorUnit();
private _getAnnoNumber(isVert);
private _nicePrecision(range);
private _niceTickNumber(x);
private _niceNumber(x, exp, round);
readonly _uniqueId: number;
}
export declare class AxisCollection extends wjcCore.ObservableArray {
getAxis(name: string): Axis;
indexOf(name: string): number;
}
export declare class PlotArea {
private _row;
private _col;
private _width;
private _height;
private _name;
private _style;
private _rect;
_chart: FlexChartCore;
constructor(options?: any);
row: number;
column: number;
name: string;
width: any;
height: any;
style: any;
private _invalidate();
_render(engine: IRenderEngine): void;
_setPlotX(x: number, w: number): void;
_setPlotY(y: number, h: number): void;
}
export declare class PlotAreaCollection extends wjcCore.ObservableArray {
getPlotArea(name: string): PlotArea;
indexOf(name: string): number;
_getWidth(column: number): any;
_getHeight(row: number): any;
_calculateWidths(width: number, ncols: number): number[];
_calculateHeights(height: number, nrows: number): number[];
private _calculateLengths(width, ncols, glens);
}
export declare enum SeriesVisibility {
Visible = 0,
Plot = 1,
Legend = 2,
Hidden = 3,
}
export declare enum Marker {
Dot = 0,
Box = 1,
}
export interface _ISeries {
style: any;
symbolStyle: any;
getValues: (dim: number) => number[];
getDataType: (dim: number) => wjcCore.DataType;
drawLegendItem(engine: IRenderEngine, rect: wjcCore.Rect, index: number): any;
measureLegendItem(engine: IRenderEngine, index: number): wjcCore.Size;
_setPointIndex(pointIndex: number, elementIndex: number): any;
}
export declare class DataArray {
dataType: wjcCore.DataType;
values: Array<number>;
}
export declare class SeriesEventArgs extends wjcCore.EventArgs {
_series: Series;
constructor(series: SeriesBase);
readonly series: SeriesBase;
}
export declare class SeriesBase implements _ISeries {
static _LEGEND_ITEM_WIDTH: number;
static _LEGEND_ITEM_HEIGHT: number;
static _LEGEND_ITEM_MARGIN: number;
private static _DEFAULT_SYM_SIZE;
__chart: FlexChartCore;
private _name;
private _binding;
private _showValues;
private _symbolStyle;
private _symbolSize;
private _style;
private _altStyle;
_cv: wjcCore.ICollectionView;
private _itemsSource;
private _values;
private _valueDataType;
_chartType: ChartType;
private _symbolMarker;
private _bindingX;
private _xvalues;
private _xvalueDataType;
private _cssClass;
private _visibility;
private _axisX;
private _axisY;
private __plotter;
_legendElement: SVGAElement;
_hostElement: SVGGElement;
_pointIndexes: number[];
constructor(options?: any);
style: any;
altStyle: any;
symbolStyle: any;
symbolSize: number;
symbolMarker: Marker;
binding: string;
bindingX: string;
name: string;
itemsSource: any;
readonly collectionView: wjcCore.ICollectionView;
readonly chart: FlexChartCore;
readonly hostElement: SVGGElement;
readonly legendElement: SVGGElement;
cssClass: string;
visibility: SeriesVisibility;
hitTest(pt: any, y?: number): HitTestInfo;
getPlotElement(pointIndex: number): any;
axisX: Axis;
axisY: Axis;
initialize(options: any): void;
pointToData(pt: wjcCore.Point): wjcCore.Point;
dataToPoint(pt: wjcCore.Point): wjcCore.Point;
rendering: wjcCore.Event;
onRendering(engine: IRenderEngine, index: number, count: number): boolean;
rendered: wjcCore.Event;
onRendered(engine: IRenderEngine): void;
_chart: FlexChartCore;
_getSymbolSize(): number;
_plotter: _IPlotter;
getDataType(dim: number): wjcCore.DataType;
getValues(dim: number): number[];
drawLegendItem(engine: IRenderEngine, rect: wjcCore.Rect, index: number): void;
measureLegendItem(engine: IRenderEngine, index: number): wjcCore.Size;
legendItemLength(): number;
getDataRect(currentRect?: wjcCore.Rect, calculatedRect?: wjcCore.Rect): wjcCore.Rect;
_getChartType(): ChartType;
_clearValues(): void;
_getBinding(index: number): string;
_getBindingValues(index: number): number[];
_getItem(pointIndex: number): any;
_getLength(): number;
_setPointIndex(pointIndex: number, elementIndex: number): void;
private _getDataRect();
_isCustomAxisX(): boolean;
_isCustomAxisY(): boolean;
_getAxisX(): Axis;
_getAxisY(): Axis;
_measureLegendItem(engine: IRenderEngine, text: string): wjcCore.Size;
_drawFunnelLegendItem(engine: IRenderEngine, rect: wjcCore.Rect, index: number, style: any, symbolStyle: any): void;
private _getFunnelLegendName(index);
_drawLegendItem(engine: IRenderEngine, rect: wjcCore.Rect, chartType: ChartType, text: string, style: any, symbolStyle: any): void;
private _cvCollectionChanged(sender, e);
private _cvCurrentChanged(sender, e);
_bindValues(items: Array<any>, binding: string, isX?: boolean): DataArray;
_invalidate(): void;
_indexToPoint(pointIndex: number): wjcCore.Point;
_getSymbolFill(seriesIndex?: number): string;
_getSymbolStroke(seriesIndex?: number): string;
_getAltSymbolStroke(seriesIndex?: number): string;
_getAltSymbolFill(seriesIndex?: number): string;
_renderLabels(engine: IRenderEngine, smap: _IHitArea[], chart: FlexChartCore, lblAreas: _RectArea[]): void;
}
export declare class Series extends SeriesBase {
chartType: ChartType;
}
export interface IRenderEngine {
beginRender(): any;
endRender(): any;
setViewportSize(w: number, h: number): any;
element: Element;
fill: string;
stroke: string;
strokeWidth: number;
textFill: string;
fontSize: string;
fontFamily: string;
drawEllipse(cx: number, cy: number, rx: number, ry: number, className?: string, style?: any): any;
drawRect(x: number, y: number, w: number, h: number, className?: string, style?: any, clipPath?: string): any;
drawLine(x1: number, y1: number, x2: number, y2: number, className?: string, style?: any): any;
drawLines(xs: number[], ys: number[], className?: string, style?: any, clipPath?: string): any;
drawSplines(xs: number[], ys: number[], className?: string, style?: any, clipPath?: string): any;
drawPolygon(xs: number[], ys: number[], className?: string, style?: any, clipPath?: string): any;
drawPieSegment(cx: number, cy: number, radius: number, startAngle: number, sweepAngle: number, className?: string, style?: any, clipPath?: string): any;
drawDonutSegment(cx: number, cy: number, radius: number, innerRadius: number, startAngle: number, sweepAngle: number, className?: string, style?: any, clipPath?: string): any;
drawString(s: string, pt: wjcCore.Point, className?: string, style?: any): any;
drawStringRotated(s: string, pt: wjcCore.Point, center: wjcCore.Point, angle: number, className?: string, style?: any): any;
drawImage(href: string, x: number, y: number, w: number, h: number): any;
measureString(s: string, className?: string, groupName?: string, style?: any): wjcCore.Size;
startGroup(className?: string, clipPath?: string, createTransform?: boolean): any;
endGroup(): any;
addClipRect(clipRect: wjcCore.Rect, id: string): any;
}
export declare class _SvgRenderEngine implements IRenderEngine {
private static svgNS;
private static xlinkNS;
private _element;
private _svg;
private _text;
private _textGroup;
private _defs;
private _fill;
private _stroke;
private _textFill;
private _strokeWidth;
private _fontSize;
private _fontFamily;
private _group;
private _clipRect;
private static _isff;
private _savedGradient;
constructor(element: HTMLElement);
beginRender(): void;
endRender(): void;
setViewportSize(w: number, h: number): void;
readonly element: Element;
fill: string;
fontSize: string;
fontFamily: string;
stroke: string;
strokeWidth: number;
textFill: string;
addClipRect(clipRect: wjcCore.Rect, id: string): void;
drawEllipse(cx: number, cy: number, rx: number, ry: number, className?: string, style?: any): SVGElement;
drawRect(x: number, y: number, w: number, h: number, className?: string, style?: any, clipPath?: string): SVGElement;
drawLine(x1: number, y1: number, x2: number, y2: number, className?: string, style?: any): SVGElement;
drawLines(xs: number[], ys: number[], className?: string, style?: any, clipPath?: string): SVGElement;
drawSplines(xs: number[], ys: number[], className?: string, style?: any, clipPath?: string): SVGElement;
drawPolygon(xs: number[], ys: number[], className?: string, style?: any, clipPath?: string): SVGElement;
drawPieSegment(cx: number, cy: number, r: number, startAngle: number, sweepAngle: number, className?: string, style?: any, clipPath?: string): SVGElement;
drawDonutSegment(cx: number, cy: number, radius: number, innerRadius: number, startAngle: number, sweepAngle: number, className?: string, style?: any, clipPath?: string): SVGElement;
drawString(s: string, pt: wjcCore.Point, className?: string, style?: any): SVGElement;
drawStringRotated(s: string, pt: wjcCore.Point, center: wjcCore.Point, angle: number, className?: string, style?: any): SVGElement;
measureString(s: string, className?: string, groupName?: string, style?: any): wjcCore.Size;
startGroup(className?: string, clipPath?: string, createTransform?: boolean): SVGElement;
endGroup(): void;
drawImage(imageHref: string, x: number, y: number, w: number, h: number): SVGElement;
private _appendChild(element);
private _create();
private _setText(element, s);
private _createText(pos, text);
private _applyStyle(el, style);
private _deCase(s);
private _getBBox(text);
private _applyColor(el, key, val);
}
export declare class Legend {
_chart: FlexChartBase;
_position: Position;
private _title;
private _titleAlign;
private _titlePadding;
private _areas;
private _sz;
private _colRowLens;
constructor(chart: FlexChartBase);
position: Position;
title: string;
titleAlign: string;
_getDesiredSize(engine: IRenderEngine, pos: Position, w: number, h: number): wjcCore.Size;
_getPosition(w: number, h: number): Position;
_render(engine: IRenderEngine, pt: wjcCore.Point, pos: Position, w: number, h: number): void;
_hitTest(pt: wjcCore.Point): number;
}
export declare enum ChartElement {
PlotArea = 0,
AxisX = 1,
AxisY = 2,
ChartArea = 3,
Legend = 4,
Header = 5,
Footer = 6,
Series = 7,
SeriesSymbol = 8,
DataLabel = 9,
None = 10,
}
export declare class HitTestInfo {
private _chart;
private _pt;
private _series;
private _pointIndex;
_chartElement: ChartElement;
_dist: number;
private _item;
private _x;
private __xfmt;
private _y;
private __yfmt;
private _name;
constructor(chart: FlexChartBase, point: wjcCore.Point, element?: ChartElement);
readonly chart: FlexChartBase;
readonly point: wjcCore.Point;
readonly series: SeriesBase;
readonly pointIndex: number;
readonly chartElement: ChartElement;
readonly distance: number;
readonly item: any;
readonly x: any;
readonly y: any;
readonly value: any;
readonly name: any;
readonly _xfmt: any;
readonly _yfmt: any;
_setData(series: SeriesBase, pi?: number): void;
_setDataPoint(dataPoint: _DataPoint): void;
private _getValue(index, formatted);
private readonly ax;
private readonly ay;
}
export declare class Palettes {
static standard: string[];
static cocoa: string[];
static coral: string[];
static dark: string[];
static highcontrast: string[];
static light: string[];
static midnight: string[];
static modern: string[];
static organic: string[];
static slate: string[];
static zen: string[];
static cyborg: string[];
static superhero: string[];
static flatly: string[];
static darkly: string[];
static cerulan: string[];
}
export declare class _Spline {
private k;
private _x;
private _y;
private _a;
private _b;
private _c;
private _d;
private _len;
private m;
constructor(x: number[], y: number[]);
private calculatePoint(val);
calculate(): {
xs: any;
ys: any;
};
}
export declare enum LabelPosition {
None = 0,
Left = 1,
Top = 2,
Right = 3,
Bottom = 4,
Center = 5,
}
export declare enum PieLabelPosition {
None = 0,
Inside = 1,
Center = 2,
Outside = 3,
}
export declare class DataLabelRenderEventArgs extends RenderEventArgs {
private _ht;
private _pt;
private _text;
constructor(engine: IRenderEngine, ht: HitTestInfo, pt: wjcCore.Point, text: string);
cancel: boolean;
readonly point: wjcCore.Point;
text: string;
readonly hitTestInfo: HitTestInfo;
}
export declare class DataLabelBase {
private _content;
_chart: FlexChartBase;
private _bdr;
private _line;
private _off;
content: any;
border: boolean;
offset: number;
connectingLine: boolean;
rendering: wjcCore.Event;
onRendering(e: DataLabelRenderEventArgs): boolean;
_invalidate(): void;
}
export declare class DataLabel extends DataLabelBase {
private _pos;
position: LabelPosition;
}
export declare class PieDataLabel extends DataLabelBase {
private _pos;
position: PieLabelPosition;
}
export declare enum LineMarkerLines {
None = 0,
Vertical = 1,
Horizontal = 2,
Both = 3,
}
export declare enum LineMarkerInteraction {
None = 0,
Move = 1,
Drag = 2,
}
export declare enum LineMarkerAlignment {
Auto = 2,
Right = 0,
Left = 1,
Bottom = 4,
Top = 6,
}
export declare class LineMarker {
static _CSS_MARKER: string;
static _CSS_MARKER_HLINE: string;
static _CSS_MARKER_VLINE: string;
static _CSS_MARKER_CONTENT: string;
static _CSS_MARKER_CONTAINER: string;
static _CSS_LINE_DRAGGABLE: string;
static _CSS_TOUCH_DISABLED: string;