realchart 0.9.1 → 0.9.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/dist/index.d.ts +129 -22
- package/dist/index.esm.js +2 -2
- package/dist/index.js +2 -2
- package/dist/realchart-style.css +284 -68
- package/package.json +2 -2
package/dist/index.d.ts
CHANGED
|
@@ -31,6 +31,7 @@ declare abstract class RcEventProvider<T> extends RcObject {
|
|
|
31
31
|
}
|
|
32
32
|
|
|
33
33
|
type Path = string | any[];
|
|
34
|
+
type RtPercentSize = string | number;
|
|
34
35
|
type SizeValue = string | number;
|
|
35
36
|
interface SVGStyles {
|
|
36
37
|
fill?: string;
|
|
@@ -110,6 +111,7 @@ declare abstract class RcControl extends RcWrappableObject {
|
|
|
110
111
|
dom(): HTMLElement;
|
|
111
112
|
width(): number;
|
|
112
113
|
height(): number;
|
|
114
|
+
setData(data: string, value: any, container?: boolean): void;
|
|
113
115
|
clearDefs(): void;
|
|
114
116
|
clearTemporaryDefs(): void;
|
|
115
117
|
appendDom(elt: HTMLElement): void;
|
|
@@ -129,7 +131,8 @@ declare abstract class RcControl extends RcWrappableObject {
|
|
|
129
131
|
clipBounds(x?: number, y?: number, width?: number, height?: number, rd?: number): ClipElement;
|
|
130
132
|
clipRect(r: IRect): ClipElement;
|
|
131
133
|
clipPath(): ClipPathElement;
|
|
132
|
-
|
|
134
|
+
addDef(element: Element): void;
|
|
135
|
+
removeDef(element: Element | string): void;
|
|
133
136
|
containerToElement(element: RcElement, x: number, y: number): IPoint;
|
|
134
137
|
abstract useImage(src: string): void;
|
|
135
138
|
protected _setTesting(): void;
|
|
@@ -141,7 +144,6 @@ declare abstract class RcControl extends RcWrappableObject {
|
|
|
141
144
|
private $_initControl;
|
|
142
145
|
protected _initDefs(doc: Document, defs: SVGElement): void;
|
|
143
146
|
protected _render(): void;
|
|
144
|
-
private $_invalidateElement;
|
|
145
147
|
private $_requestRender;
|
|
146
148
|
updateNow(): void;
|
|
147
149
|
private $_render;
|
|
@@ -238,25 +240,32 @@ declare class RcElement extends RcObject {
|
|
|
238
240
|
appendDom(dom: Node): Node;
|
|
239
241
|
insertDom(dom: Node, before: Node): Node;
|
|
240
242
|
clearDom(): void;
|
|
243
|
+
internalClearStyles(): void;
|
|
241
244
|
clearStyles(): boolean;
|
|
242
245
|
clearStyle(props: string[]): boolean;
|
|
246
|
+
internalSetStyles(styles: any): void;
|
|
243
247
|
setStyles(styles: any): boolean;
|
|
244
248
|
resetStyles(styles: any): boolean;
|
|
245
249
|
protected _resetClass(): void;
|
|
246
250
|
clearStyleAndClass(): void;
|
|
251
|
+
internalClearStyleAndClass(): void;
|
|
247
252
|
setStyleOrClass(style: SVGStyleOrClass): void;
|
|
253
|
+
internalSetStyleOrClass(style: SVGStyleOrClass): void;
|
|
248
254
|
addStyleOrClass(style: SVGStyleOrClass): void;
|
|
249
255
|
setStyleName(value: string): void;
|
|
250
256
|
setStyle(prop: string, value: string): boolean;
|
|
257
|
+
internalSetStyle(prop: string, value: string): void;
|
|
251
258
|
putStyles(styles: any, buff?: any): any;
|
|
252
259
|
putStyle(prop: string, value: string, buff?: any): any;
|
|
253
260
|
setData(data: string, value?: string): void;
|
|
254
261
|
unsetData(data: string): void;
|
|
262
|
+
setBoolData(data: string, value: boolean): void;
|
|
255
263
|
removeLater(moveToFirst?: boolean, duration?: number): RcElement;
|
|
256
264
|
fadeout(removeDelay: number, startOpacity: number): RcElement;
|
|
257
265
|
clipRect(x: number, y: number, width: number, height: number, rd?: number): ClipElement;
|
|
258
266
|
setClip(cr?: ClipElement | ClipPathElement | string): void;
|
|
259
267
|
setTemporary(): RcElement;
|
|
268
|
+
setCursor(cursor: string): void;
|
|
260
269
|
protected _testing(): boolean;
|
|
261
270
|
protected _doAttached(parent: RcElement): void;
|
|
262
271
|
protected _doDetached(parent: RcElement): void;
|
|
@@ -288,6 +297,28 @@ declare class ClipPathElement extends RcElement {
|
|
|
288
297
|
setPath(path: Path): void;
|
|
289
298
|
}
|
|
290
299
|
|
|
300
|
+
interface IAssetItem {
|
|
301
|
+
id: string;
|
|
302
|
+
}
|
|
303
|
+
declare abstract class AssetItem<T extends IAssetItem> {
|
|
304
|
+
source: T;
|
|
305
|
+
constructor(source: T);
|
|
306
|
+
abstract getEelement(doc: Document): Element;
|
|
307
|
+
}
|
|
308
|
+
interface IAssetOwner {
|
|
309
|
+
addDef(element: Element): void;
|
|
310
|
+
removeDef(element: string): void;
|
|
311
|
+
}
|
|
312
|
+
declare class AssetCollection {
|
|
313
|
+
private _items;
|
|
314
|
+
get count(): number;
|
|
315
|
+
get(index: number): AssetItem<IAssetItem>;
|
|
316
|
+
load(source: any): void;
|
|
317
|
+
register(doc: Document, owner: IAssetOwner): void;
|
|
318
|
+
unregister(doc: Document, owner: IAssetOwner): void;
|
|
319
|
+
private $_loadItem;
|
|
320
|
+
}
|
|
321
|
+
|
|
291
322
|
declare enum TextAnchor {
|
|
292
323
|
START = "start",
|
|
293
324
|
MIDDLE = "middle",
|
|
@@ -402,6 +433,16 @@ declare class Crosshair extends ChartItem {
|
|
|
402
433
|
labelStyles: SVGStyleOrClass;
|
|
403
434
|
}
|
|
404
435
|
|
|
436
|
+
declare enum Shape {
|
|
437
|
+
CIRCLE = "circle",
|
|
438
|
+
DIAMOND = "diamond",
|
|
439
|
+
RECTANGLE = "rectangle",
|
|
440
|
+
SQUARE = "square",
|
|
441
|
+
TRIANGLE = "triangle",
|
|
442
|
+
ITRIANGLE = "itriangle",
|
|
443
|
+
STAR = "star"
|
|
444
|
+
}
|
|
445
|
+
|
|
405
446
|
declare enum LineType {
|
|
406
447
|
DEFAULT = "default",
|
|
407
448
|
SPLINE = "spline",
|
|
@@ -445,25 +486,24 @@ declare class DataPoint {
|
|
|
445
486
|
protected _readSingle(v: any): void;
|
|
446
487
|
}
|
|
447
488
|
declare class DataPointCollection {
|
|
448
|
-
|
|
489
|
+
protected _owner: ISeries;
|
|
449
490
|
private _points;
|
|
450
491
|
constructor(owner: ISeries);
|
|
451
492
|
get count(): number;
|
|
452
493
|
isEmpty(): boolean;
|
|
453
494
|
get(index: number): DataPoint;
|
|
495
|
+
contains(p: DataPoint): boolean;
|
|
454
496
|
load(source: any): void;
|
|
455
497
|
getProps(prop: string | number): any[];
|
|
456
498
|
getValues(axis: string): any[];
|
|
457
499
|
forEach(callback: (p: DataPoint, i?: number) => any): void;
|
|
458
500
|
getPoints(): DataPoint[];
|
|
459
|
-
getVisibles(): DataPoint[];
|
|
460
501
|
}
|
|
461
502
|
|
|
462
503
|
interface ILegendSource {
|
|
463
504
|
visible: boolean;
|
|
464
505
|
legendColor(): string;
|
|
465
506
|
legendLabel(): string;
|
|
466
|
-
legendVisible(): boolean;
|
|
467
507
|
}
|
|
468
508
|
declare class LegendItem extends ChartItem {
|
|
469
509
|
legend: Legend;
|
|
@@ -490,6 +530,9 @@ declare enum LegendLayout {
|
|
|
490
530
|
}
|
|
491
531
|
declare class Legend extends ChartItem {
|
|
492
532
|
private _items;
|
|
533
|
+
private _maxWidthDim;
|
|
534
|
+
private _maxHeightDim;
|
|
535
|
+
private _position;
|
|
493
536
|
constructor(chart: IChart);
|
|
494
537
|
position: LegendPosition;
|
|
495
538
|
layout: LegendLayout;
|
|
@@ -498,14 +541,22 @@ declare class Legend extends ChartItem {
|
|
|
498
541
|
right: number;
|
|
499
542
|
top: number;
|
|
500
543
|
bottom: number;
|
|
544
|
+
gap: number;
|
|
501
545
|
itemGap: number;
|
|
502
546
|
markerGap: number;
|
|
503
547
|
backgroundStyles: SVGStyleOrClass;
|
|
548
|
+
itemsPerRow: number;
|
|
549
|
+
maxWidth: RtPercentSize;
|
|
550
|
+
maxHeight: RtPercentSize;
|
|
504
551
|
items(): LegendItem[];
|
|
505
552
|
isEmpty(): boolean;
|
|
506
553
|
isVisible(): boolean;
|
|
554
|
+
getPosition(): LegendPosition;
|
|
507
555
|
getLayout(): LegendLayout;
|
|
508
556
|
prepareRender(): void;
|
|
557
|
+
getMaxWidth(domain: number): number;
|
|
558
|
+
getMaxHeight(domain: number): number;
|
|
559
|
+
protected _doLoad(src: any): void;
|
|
509
560
|
private $_collectItems;
|
|
510
561
|
}
|
|
511
562
|
|
|
@@ -627,6 +678,17 @@ interface ISeries extends IPlottingItem {
|
|
|
627
678
|
getValue(point: DataPoint, axis: IAxis): number;
|
|
628
679
|
isVisible(p: DataPoint): boolean;
|
|
629
680
|
}
|
|
681
|
+
interface DataPointArgs {
|
|
682
|
+
series: string | number;
|
|
683
|
+
count: number;
|
|
684
|
+
vcount: number;
|
|
685
|
+
index: number;
|
|
686
|
+
vindex: number;
|
|
687
|
+
x: any;
|
|
688
|
+
y: any;
|
|
689
|
+
xValue: any;
|
|
690
|
+
yValue: any;
|
|
691
|
+
}
|
|
630
692
|
declare abstract class Series extends ChartItem implements ISeries, ILegendSource {
|
|
631
693
|
static _loadSeries(chart: IChart, src: any, defType?: string): Series;
|
|
632
694
|
readonly name: string;
|
|
@@ -639,10 +701,11 @@ declare abstract class Series extends ChartItem implements ISeries, ILegendSourc
|
|
|
639
701
|
_xAxisObj: IAxis;
|
|
640
702
|
_yAxisObj: IAxis;
|
|
641
703
|
protected _points: DataPointCollection;
|
|
642
|
-
|
|
704
|
+
_runPoints: DataPoint[];
|
|
643
705
|
_minValue: number;
|
|
644
706
|
_maxValue: number;
|
|
645
707
|
_referents: Series[];
|
|
708
|
+
_calcedColor: string;
|
|
646
709
|
constructor(chart: IChart, name?: string);
|
|
647
710
|
abstract _type(): string;
|
|
648
711
|
zOrder: number;
|
|
@@ -652,11 +715,12 @@ declare abstract class Series extends ChartItem implements ISeries, ILegendSourc
|
|
|
652
715
|
yField: string | number;
|
|
653
716
|
colorField: string;
|
|
654
717
|
dataProp: string;
|
|
655
|
-
xStart: number;
|
|
718
|
+
xStart: number | string;
|
|
656
719
|
xStep: number | string;
|
|
657
720
|
color: string;
|
|
658
721
|
pointColors: boolean | string[];
|
|
659
722
|
clipped: boolean;
|
|
723
|
+
contains(p: DataPoint): boolean;
|
|
660
724
|
getPoints(): DataPointCollection;
|
|
661
725
|
getLabeledPoints(): DataPoint[];
|
|
662
726
|
getVisiblePoints(): DataPoint[];
|
|
@@ -668,12 +732,13 @@ declare abstract class Series extends ChartItem implements ISeries, ILegendSourc
|
|
|
668
732
|
displayName(): string;
|
|
669
733
|
legendColor(): string;
|
|
670
734
|
legendLabel(): string;
|
|
671
|
-
legendVisible(): boolean;
|
|
672
735
|
ignoreAxisBase(axis: IAxis): boolean;
|
|
673
736
|
canMixWith(other: IPlottingItem): boolean;
|
|
674
737
|
getBaseValue(axis: IAxis): number;
|
|
675
738
|
canMinPadding(axis: IAxis): boolean;
|
|
676
739
|
canMaxPadding(axis: IAxis): boolean;
|
|
740
|
+
hasMarker(): boolean;
|
|
741
|
+
setShape(shape: Shape): void;
|
|
677
742
|
protected _createPoint(source: any): DataPoint;
|
|
678
743
|
createPoints(source: any[]): DataPoint[];
|
|
679
744
|
getXStart(): number;
|
|
@@ -689,13 +754,16 @@ declare abstract class Series extends ChartItem implements ISeries, ILegendSourc
|
|
|
689
754
|
getLabelPosition(p: PointItemPosition): PointItemPosition;
|
|
690
755
|
getLabelOff(off: number): number;
|
|
691
756
|
referBy(ref: Series): void;
|
|
757
|
+
setPointVisible(p: DataPoint, visible: boolean): void;
|
|
692
758
|
_referOtherSeries(series: Series): boolean;
|
|
693
759
|
protected _getField(axis: IAxis): any;
|
|
694
|
-
|
|
760
|
+
_colorByPoint(): boolean;
|
|
695
761
|
protected _doLoad(src: any): void;
|
|
762
|
+
protected _loadData(src: any): any;
|
|
696
763
|
protected _doLoadPoints(src: any[]): void;
|
|
697
764
|
protected _doPrepareRender(): void;
|
|
698
765
|
prepareAfter(): void;
|
|
766
|
+
_getPointArgs(p: DataPoint): DataPointArgs;
|
|
699
767
|
}
|
|
700
768
|
declare class PlottingItemCollection {
|
|
701
769
|
readonly chart: IChart;
|
|
@@ -704,11 +772,13 @@ declare class PlottingItemCollection {
|
|
|
704
772
|
private _visibles;
|
|
705
773
|
private _series;
|
|
706
774
|
private _visibleSeries;
|
|
775
|
+
private _widget;
|
|
707
776
|
constructor(chart: IChart);
|
|
708
777
|
get first(): IPlottingItem;
|
|
709
778
|
get firstSeries(): Series;
|
|
710
779
|
get firstVisible(): IPlottingItem;
|
|
711
780
|
get firstVisibleSeries(): Series;
|
|
781
|
+
isWidget(): boolean;
|
|
712
782
|
isEmpty(): boolean;
|
|
713
783
|
items(): IPlottingItem[];
|
|
714
784
|
visibles(): IPlottingItem[];
|
|
@@ -716,6 +786,7 @@ declare class PlottingItemCollection {
|
|
|
716
786
|
visibleSeries(): Series[];
|
|
717
787
|
needAxes(): boolean;
|
|
718
788
|
get(name: string): Series;
|
|
789
|
+
seriesByPoint(point: DataPoint): Series;
|
|
719
790
|
getLegendSources(): ILegendSource[];
|
|
720
791
|
load(src: any): void;
|
|
721
792
|
prepareRender(): void;
|
|
@@ -812,7 +883,7 @@ declare class AxisGrid extends AxisItem {
|
|
|
812
883
|
declare class AxisGuideLabel extends FormattableText {
|
|
813
884
|
constructor(chart: IChart);
|
|
814
885
|
align: Align;
|
|
815
|
-
|
|
886
|
+
verticalAlign: VerticalAlign;
|
|
816
887
|
}
|
|
817
888
|
declare abstract class AxisGuide extends AxisItem {
|
|
818
889
|
readonly label: AxisGuideLabel;
|
|
@@ -931,7 +1002,7 @@ declare class AxisCollection {
|
|
|
931
1002
|
get items(): Axis[];
|
|
932
1003
|
load(src: any): void;
|
|
933
1004
|
contains(axis: Axis): boolean;
|
|
934
|
-
get(name: string): Axis;
|
|
1005
|
+
get(name: string | number): Axis;
|
|
935
1006
|
disconnect(): void;
|
|
936
1007
|
collectValues(): void;
|
|
937
1008
|
collectReferentsValues(): void;
|
|
@@ -989,7 +1060,7 @@ declare enum SubtitlePosition {
|
|
|
989
1060
|
}
|
|
990
1061
|
declare class Subtitle extends Title {
|
|
991
1062
|
position: SubtitlePosition;
|
|
992
|
-
|
|
1063
|
+
verticalAlign: VerticalAlign;
|
|
993
1064
|
text: string;
|
|
994
1065
|
}
|
|
995
1066
|
|
|
@@ -1002,7 +1073,7 @@ interface IChart {
|
|
|
1002
1073
|
xAxis: IAxis;
|
|
1003
1074
|
yAxis: IAxis;
|
|
1004
1075
|
colors: string[];
|
|
1005
|
-
|
|
1076
|
+
isPolar(): boolean;
|
|
1006
1077
|
isInverted(): boolean;
|
|
1007
1078
|
animatable(): boolean;
|
|
1008
1079
|
startAngle(): number;
|
|
@@ -1019,20 +1090,34 @@ interface IChart {
|
|
|
1019
1090
|
_connectSeries(series: IPlottingItem, isX: boolean): Axis;
|
|
1020
1091
|
_getLegendSources(): ILegendSource[];
|
|
1021
1092
|
_visibleChanged(item: ChartItem): void;
|
|
1093
|
+
_pointVisibleChanged(series: Series, point: DataPoint): void;
|
|
1022
1094
|
_modelChanged(item: ChartItem): void;
|
|
1023
1095
|
}
|
|
1096
|
+
declare class Credits extends ChartItem {
|
|
1097
|
+
text: string;
|
|
1098
|
+
url: string;
|
|
1099
|
+
floating: boolean;
|
|
1100
|
+
align: Align;
|
|
1101
|
+
verticalAlign: VerticalAlign;
|
|
1102
|
+
offsetX: number;
|
|
1103
|
+
offsetY: number;
|
|
1104
|
+
}
|
|
1024
1105
|
declare class ChartOptions extends ChartItem {
|
|
1025
|
-
|
|
1106
|
+
theme: string;
|
|
1107
|
+
palette: string;
|
|
1026
1108
|
animatable: boolean;
|
|
1027
|
-
xStart: number;
|
|
1028
|
-
xStep: number;
|
|
1109
|
+
xStart: number | string;
|
|
1110
|
+
xStep: number | string;
|
|
1029
1111
|
axisGap: number;
|
|
1030
|
-
|
|
1112
|
+
credits: Credits;
|
|
1031
1113
|
}
|
|
1032
1114
|
interface IChartEventListener {
|
|
1033
1115
|
onVisibleChanged?(chart: Chart, item: ChartItem): void;
|
|
1116
|
+
onPointVisibleChange?(chart: Chart, series: Series, point: DataPoint): void;
|
|
1034
1117
|
}
|
|
1035
1118
|
declare class Chart extends RcEventProvider<IChartEventListener> implements IChart {
|
|
1119
|
+
private _assets;
|
|
1120
|
+
private _themes;
|
|
1036
1121
|
private _options;
|
|
1037
1122
|
private _title;
|
|
1038
1123
|
private _subtitle;
|
|
@@ -1042,15 +1127,18 @@ declare class Chart extends RcEventProvider<IChartEventListener> implements ICha
|
|
|
1042
1127
|
private _yAxes;
|
|
1043
1128
|
private _body;
|
|
1044
1129
|
private _inverted;
|
|
1045
|
-
_polar
|
|
1130
|
+
private _polar;
|
|
1046
1131
|
colors: string[];
|
|
1047
1132
|
constructor(source?: any);
|
|
1048
1133
|
startAngle(): number;
|
|
1049
1134
|
get xStart(): number;
|
|
1050
1135
|
get xStep(): number;
|
|
1136
|
+
get xStepUnit(): string;
|
|
1051
1137
|
animatable(): boolean;
|
|
1052
1138
|
type: string;
|
|
1139
|
+
polar: boolean;
|
|
1053
1140
|
inverted: boolean;
|
|
1141
|
+
get assets(): AssetCollection;
|
|
1054
1142
|
get options(): ChartOptions;
|
|
1055
1143
|
get title(): Title;
|
|
1056
1144
|
get subtitle(): Subtitle;
|
|
@@ -1064,9 +1152,12 @@ declare class Chart extends RcEventProvider<IChartEventListener> implements ICha
|
|
|
1064
1152
|
_getSeries(): PlottingItemCollection;
|
|
1065
1153
|
_getXAxes(): AxisCollection;
|
|
1066
1154
|
_getYAxes(): AxisCollection;
|
|
1155
|
+
isPolar(): boolean;
|
|
1156
|
+
isWidget(): boolean;
|
|
1067
1157
|
isInverted(): boolean;
|
|
1068
1158
|
isEmpty(): boolean;
|
|
1069
1159
|
seriesByName(series: string): Series;
|
|
1160
|
+
seriesByPoint(point: DataPoint): Series;
|
|
1070
1161
|
axisByName(axis: string): Axis;
|
|
1071
1162
|
containsAxis(axis: Axis): boolean;
|
|
1072
1163
|
getAxes(dir: SectionDir): Axis[];
|
|
@@ -1083,6 +1174,7 @@ declare class Chart extends RcEventProvider<IChartEventListener> implements ICha
|
|
|
1083
1174
|
_getAxisType(type: string): any;
|
|
1084
1175
|
getAxesGap(): number;
|
|
1085
1176
|
_visibleChanged(item: ChartItem): void;
|
|
1177
|
+
_pointVisibleChanged(series: Series, point: DataPoint): void;
|
|
1086
1178
|
_modelChanged(item: ChartItem): void;
|
|
1087
1179
|
}
|
|
1088
1180
|
|
|
@@ -1262,17 +1354,20 @@ type LabelLayoutInfo = {
|
|
|
1262
1354
|
labelOff: number;
|
|
1263
1355
|
};
|
|
1264
1356
|
declare abstract class SeriesView<T extends Series> extends ChartElement<T> {
|
|
1265
|
-
static readonly POINT_CLASS = "rct-
|
|
1357
|
+
static readonly POINT_CLASS = "rct-point";
|
|
1266
1358
|
static readonly DATA_FOUCS = "focus";
|
|
1267
1359
|
protected _pointContainer: PointContainer;
|
|
1268
1360
|
private _labelContainer;
|
|
1269
1361
|
private _trendLineView;
|
|
1362
|
+
protected _visPoints: DataPoint[];
|
|
1270
1363
|
protected _inverted: boolean;
|
|
1271
1364
|
protected _animatable: boolean;
|
|
1272
1365
|
private _viewRate;
|
|
1273
1366
|
constructor(doc: Document, styleName: string);
|
|
1367
|
+
invertable(): boolean;
|
|
1274
1368
|
getClipContainer(): RcElement;
|
|
1275
1369
|
setViewRate(rate: number): void;
|
|
1370
|
+
setPosRate(rate: number): void;
|
|
1276
1371
|
protected _doViewRateChanged(rate: number): void;
|
|
1277
1372
|
_setChartOptions(inverted: boolean, animatable: boolean): void;
|
|
1278
1373
|
_animationStarted(ani: Animation): void;
|
|
@@ -1281,10 +1376,12 @@ declare abstract class SeriesView<T extends Series> extends ChartElement<T> {
|
|
|
1281
1376
|
pointByDom(elt: Element): IPointView;
|
|
1282
1377
|
clicked(elt: Element): void;
|
|
1283
1378
|
protected _doPointClicked(view: IPointView): void;
|
|
1379
|
+
protected _getColor(): string;
|
|
1284
1380
|
protected _doMeasure(doc: Document, model: T, hintWidth: number, hintHeight: number, phase: number): ISize;
|
|
1285
1381
|
protected _doLayout(): void;
|
|
1286
1382
|
protected abstract _prepareSeries(doc: Document, model: T): void;
|
|
1287
1383
|
protected abstract _renderSeries(width: number, height: number): void;
|
|
1384
|
+
protected _setColorIndex(v: RcElement, p: DataPoint): void;
|
|
1288
1385
|
protected _labelViews(): PointLabelContainer;
|
|
1289
1386
|
protected _getViewRate(): number;
|
|
1290
1387
|
protected _animating(): boolean;
|
|
@@ -1332,7 +1429,7 @@ declare class AxisGuideContainer extends LayerElement {
|
|
|
1332
1429
|
add(child: AxisGuideView<AxisGuide>): RcElement;
|
|
1333
1430
|
}
|
|
1334
1431
|
interface IPlottingOwner {
|
|
1335
|
-
clipSeries(view: RcElement, x: number, y: number, w: number, h: number): void;
|
|
1432
|
+
clipSeries(view: RcElement, x: number, y: number, w: number, h: number, invertable: boolean): void;
|
|
1336
1433
|
showTooltip(series: Series, point: DataPoint): void;
|
|
1337
1434
|
hideTooltip(): void;
|
|
1338
1435
|
}
|
|
@@ -1381,6 +1478,13 @@ declare class TitleView extends BoundableElement<Title> {
|
|
|
1381
1478
|
|
|
1382
1479
|
declare class EmptyView extends GroupElement {
|
|
1383
1480
|
}
|
|
1481
|
+
declare class CreditView extends ChartElement<Credits> {
|
|
1482
|
+
private _textView;
|
|
1483
|
+
constructor(doc: Document);
|
|
1484
|
+
clicked(dom: Element): void;
|
|
1485
|
+
protected _doMeasure(doc: Document, model: Credits, intWidth: number, hintHeight: number, phase: number): ISize;
|
|
1486
|
+
protected _doLayout(param: any): void;
|
|
1487
|
+
}
|
|
1384
1488
|
declare class ChartView extends RcElement {
|
|
1385
1489
|
private _model;
|
|
1386
1490
|
_inverted: boolean;
|
|
@@ -1391,9 +1495,10 @@ declare class ChartView extends RcElement {
|
|
|
1391
1495
|
private _polarView;
|
|
1392
1496
|
private _currBody;
|
|
1393
1497
|
private _axisSectionViews;
|
|
1498
|
+
private _creditView;
|
|
1394
1499
|
private _tooltipView;
|
|
1395
1500
|
private _seriesClip;
|
|
1396
|
-
|
|
1501
|
+
_org: IPoint;
|
|
1397
1502
|
private _plotWidth;
|
|
1398
1503
|
private _plotHeight;
|
|
1399
1504
|
constructor(doc: Document);
|
|
@@ -1406,7 +1511,8 @@ declare class ChartView extends RcElement {
|
|
|
1406
1511
|
hideTooltip(): void;
|
|
1407
1512
|
legendByDom(dom: Element): LegendItem;
|
|
1408
1513
|
seriesByDom(dom: Element): SeriesView<Series>;
|
|
1409
|
-
|
|
1514
|
+
creditByDom(dom: Element): CreditView;
|
|
1515
|
+
clipSeries(view: RcElement, x: number, y: number, w: number, h: number, invertable: boolean): void;
|
|
1410
1516
|
protected _doAttached(parent: RcElement): void;
|
|
1411
1517
|
private $_checkEmpty;
|
|
1412
1518
|
private $_prepareBody;
|
|
@@ -1420,6 +1526,7 @@ declare class ChartControl extends RcControl implements IChartEventListener {
|
|
|
1420
1526
|
private _chartView;
|
|
1421
1527
|
constructor(doc: Document, container: string | HTMLDivElement);
|
|
1422
1528
|
onVisibleChanged(chart: Chart, item: ChartItem): void;
|
|
1529
|
+
onPointVisibleChanged(chart: Chart, series: Series, point: DataPoint): void;
|
|
1423
1530
|
get model(): Chart;
|
|
1424
1531
|
set model(value: Chart);
|
|
1425
1532
|
chartView(): ChartView;
|