realchart 0.9.2 → 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 +128 -22
- package/dist/index.esm.js +2 -2
- package/dist/index.js +2 -2
- package/dist/realchart-style.css +284 -68
- package/package.json +1 -1
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,14 +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;
|
|
696
762
|
protected _loadData(src: any): any;
|
|
697
763
|
protected _doLoadPoints(src: any[]): void;
|
|
698
764
|
protected _doPrepareRender(): void;
|
|
699
765
|
prepareAfter(): void;
|
|
766
|
+
_getPointArgs(p: DataPoint): DataPointArgs;
|
|
700
767
|
}
|
|
701
768
|
declare class PlottingItemCollection {
|
|
702
769
|
readonly chart: IChart;
|
|
@@ -705,11 +772,13 @@ declare class PlottingItemCollection {
|
|
|
705
772
|
private _visibles;
|
|
706
773
|
private _series;
|
|
707
774
|
private _visibleSeries;
|
|
775
|
+
private _widget;
|
|
708
776
|
constructor(chart: IChart);
|
|
709
777
|
get first(): IPlottingItem;
|
|
710
778
|
get firstSeries(): Series;
|
|
711
779
|
get firstVisible(): IPlottingItem;
|
|
712
780
|
get firstVisibleSeries(): Series;
|
|
781
|
+
isWidget(): boolean;
|
|
713
782
|
isEmpty(): boolean;
|
|
714
783
|
items(): IPlottingItem[];
|
|
715
784
|
visibles(): IPlottingItem[];
|
|
@@ -717,6 +786,7 @@ declare class PlottingItemCollection {
|
|
|
717
786
|
visibleSeries(): Series[];
|
|
718
787
|
needAxes(): boolean;
|
|
719
788
|
get(name: string): Series;
|
|
789
|
+
seriesByPoint(point: DataPoint): Series;
|
|
720
790
|
getLegendSources(): ILegendSource[];
|
|
721
791
|
load(src: any): void;
|
|
722
792
|
prepareRender(): void;
|
|
@@ -813,7 +883,7 @@ declare class AxisGrid extends AxisItem {
|
|
|
813
883
|
declare class AxisGuideLabel extends FormattableText {
|
|
814
884
|
constructor(chart: IChart);
|
|
815
885
|
align: Align;
|
|
816
|
-
|
|
886
|
+
verticalAlign: VerticalAlign;
|
|
817
887
|
}
|
|
818
888
|
declare abstract class AxisGuide extends AxisItem {
|
|
819
889
|
readonly label: AxisGuideLabel;
|
|
@@ -932,7 +1002,7 @@ declare class AxisCollection {
|
|
|
932
1002
|
get items(): Axis[];
|
|
933
1003
|
load(src: any): void;
|
|
934
1004
|
contains(axis: Axis): boolean;
|
|
935
|
-
get(name: string): Axis;
|
|
1005
|
+
get(name: string | number): Axis;
|
|
936
1006
|
disconnect(): void;
|
|
937
1007
|
collectValues(): void;
|
|
938
1008
|
collectReferentsValues(): void;
|
|
@@ -990,7 +1060,7 @@ declare enum SubtitlePosition {
|
|
|
990
1060
|
}
|
|
991
1061
|
declare class Subtitle extends Title {
|
|
992
1062
|
position: SubtitlePosition;
|
|
993
|
-
|
|
1063
|
+
verticalAlign: VerticalAlign;
|
|
994
1064
|
text: string;
|
|
995
1065
|
}
|
|
996
1066
|
|
|
@@ -1003,7 +1073,7 @@ interface IChart {
|
|
|
1003
1073
|
xAxis: IAxis;
|
|
1004
1074
|
yAxis: IAxis;
|
|
1005
1075
|
colors: string[];
|
|
1006
|
-
|
|
1076
|
+
isPolar(): boolean;
|
|
1007
1077
|
isInverted(): boolean;
|
|
1008
1078
|
animatable(): boolean;
|
|
1009
1079
|
startAngle(): number;
|
|
@@ -1020,20 +1090,34 @@ interface IChart {
|
|
|
1020
1090
|
_connectSeries(series: IPlottingItem, isX: boolean): Axis;
|
|
1021
1091
|
_getLegendSources(): ILegendSource[];
|
|
1022
1092
|
_visibleChanged(item: ChartItem): void;
|
|
1093
|
+
_pointVisibleChanged(series: Series, point: DataPoint): void;
|
|
1023
1094
|
_modelChanged(item: ChartItem): void;
|
|
1024
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
|
+
}
|
|
1025
1105
|
declare class ChartOptions extends ChartItem {
|
|
1026
|
-
|
|
1106
|
+
theme: string;
|
|
1107
|
+
palette: string;
|
|
1027
1108
|
animatable: boolean;
|
|
1028
|
-
xStart: number;
|
|
1029
|
-
xStep: number;
|
|
1109
|
+
xStart: number | string;
|
|
1110
|
+
xStep: number | string;
|
|
1030
1111
|
axisGap: number;
|
|
1031
|
-
|
|
1112
|
+
credits: Credits;
|
|
1032
1113
|
}
|
|
1033
1114
|
interface IChartEventListener {
|
|
1034
1115
|
onVisibleChanged?(chart: Chart, item: ChartItem): void;
|
|
1116
|
+
onPointVisibleChange?(chart: Chart, series: Series, point: DataPoint): void;
|
|
1035
1117
|
}
|
|
1036
1118
|
declare class Chart extends RcEventProvider<IChartEventListener> implements IChart {
|
|
1119
|
+
private _assets;
|
|
1120
|
+
private _themes;
|
|
1037
1121
|
private _options;
|
|
1038
1122
|
private _title;
|
|
1039
1123
|
private _subtitle;
|
|
@@ -1043,15 +1127,18 @@ declare class Chart extends RcEventProvider<IChartEventListener> implements ICha
|
|
|
1043
1127
|
private _yAxes;
|
|
1044
1128
|
private _body;
|
|
1045
1129
|
private _inverted;
|
|
1046
|
-
_polar
|
|
1130
|
+
private _polar;
|
|
1047
1131
|
colors: string[];
|
|
1048
1132
|
constructor(source?: any);
|
|
1049
1133
|
startAngle(): number;
|
|
1050
1134
|
get xStart(): number;
|
|
1051
1135
|
get xStep(): number;
|
|
1136
|
+
get xStepUnit(): string;
|
|
1052
1137
|
animatable(): boolean;
|
|
1053
1138
|
type: string;
|
|
1139
|
+
polar: boolean;
|
|
1054
1140
|
inverted: boolean;
|
|
1141
|
+
get assets(): AssetCollection;
|
|
1055
1142
|
get options(): ChartOptions;
|
|
1056
1143
|
get title(): Title;
|
|
1057
1144
|
get subtitle(): Subtitle;
|
|
@@ -1065,9 +1152,12 @@ declare class Chart extends RcEventProvider<IChartEventListener> implements ICha
|
|
|
1065
1152
|
_getSeries(): PlottingItemCollection;
|
|
1066
1153
|
_getXAxes(): AxisCollection;
|
|
1067
1154
|
_getYAxes(): AxisCollection;
|
|
1155
|
+
isPolar(): boolean;
|
|
1156
|
+
isWidget(): boolean;
|
|
1068
1157
|
isInverted(): boolean;
|
|
1069
1158
|
isEmpty(): boolean;
|
|
1070
1159
|
seriesByName(series: string): Series;
|
|
1160
|
+
seriesByPoint(point: DataPoint): Series;
|
|
1071
1161
|
axisByName(axis: string): Axis;
|
|
1072
1162
|
containsAxis(axis: Axis): boolean;
|
|
1073
1163
|
getAxes(dir: SectionDir): Axis[];
|
|
@@ -1084,6 +1174,7 @@ declare class Chart extends RcEventProvider<IChartEventListener> implements ICha
|
|
|
1084
1174
|
_getAxisType(type: string): any;
|
|
1085
1175
|
getAxesGap(): number;
|
|
1086
1176
|
_visibleChanged(item: ChartItem): void;
|
|
1177
|
+
_pointVisibleChanged(series: Series, point: DataPoint): void;
|
|
1087
1178
|
_modelChanged(item: ChartItem): void;
|
|
1088
1179
|
}
|
|
1089
1180
|
|
|
@@ -1263,17 +1354,20 @@ type LabelLayoutInfo = {
|
|
|
1263
1354
|
labelOff: number;
|
|
1264
1355
|
};
|
|
1265
1356
|
declare abstract class SeriesView<T extends Series> extends ChartElement<T> {
|
|
1266
|
-
static readonly POINT_CLASS = "rct-
|
|
1357
|
+
static readonly POINT_CLASS = "rct-point";
|
|
1267
1358
|
static readonly DATA_FOUCS = "focus";
|
|
1268
1359
|
protected _pointContainer: PointContainer;
|
|
1269
1360
|
private _labelContainer;
|
|
1270
1361
|
private _trendLineView;
|
|
1362
|
+
protected _visPoints: DataPoint[];
|
|
1271
1363
|
protected _inverted: boolean;
|
|
1272
1364
|
protected _animatable: boolean;
|
|
1273
1365
|
private _viewRate;
|
|
1274
1366
|
constructor(doc: Document, styleName: string);
|
|
1367
|
+
invertable(): boolean;
|
|
1275
1368
|
getClipContainer(): RcElement;
|
|
1276
1369
|
setViewRate(rate: number): void;
|
|
1370
|
+
setPosRate(rate: number): void;
|
|
1277
1371
|
protected _doViewRateChanged(rate: number): void;
|
|
1278
1372
|
_setChartOptions(inverted: boolean, animatable: boolean): void;
|
|
1279
1373
|
_animationStarted(ani: Animation): void;
|
|
@@ -1282,10 +1376,12 @@ declare abstract class SeriesView<T extends Series> extends ChartElement<T> {
|
|
|
1282
1376
|
pointByDom(elt: Element): IPointView;
|
|
1283
1377
|
clicked(elt: Element): void;
|
|
1284
1378
|
protected _doPointClicked(view: IPointView): void;
|
|
1379
|
+
protected _getColor(): string;
|
|
1285
1380
|
protected _doMeasure(doc: Document, model: T, hintWidth: number, hintHeight: number, phase: number): ISize;
|
|
1286
1381
|
protected _doLayout(): void;
|
|
1287
1382
|
protected abstract _prepareSeries(doc: Document, model: T): void;
|
|
1288
1383
|
protected abstract _renderSeries(width: number, height: number): void;
|
|
1384
|
+
protected _setColorIndex(v: RcElement, p: DataPoint): void;
|
|
1289
1385
|
protected _labelViews(): PointLabelContainer;
|
|
1290
1386
|
protected _getViewRate(): number;
|
|
1291
1387
|
protected _animating(): boolean;
|
|
@@ -1333,7 +1429,7 @@ declare class AxisGuideContainer extends LayerElement {
|
|
|
1333
1429
|
add(child: AxisGuideView<AxisGuide>): RcElement;
|
|
1334
1430
|
}
|
|
1335
1431
|
interface IPlottingOwner {
|
|
1336
|
-
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;
|
|
1337
1433
|
showTooltip(series: Series, point: DataPoint): void;
|
|
1338
1434
|
hideTooltip(): void;
|
|
1339
1435
|
}
|
|
@@ -1382,6 +1478,13 @@ declare class TitleView extends BoundableElement<Title> {
|
|
|
1382
1478
|
|
|
1383
1479
|
declare class EmptyView extends GroupElement {
|
|
1384
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
|
+
}
|
|
1385
1488
|
declare class ChartView extends RcElement {
|
|
1386
1489
|
private _model;
|
|
1387
1490
|
_inverted: boolean;
|
|
@@ -1392,9 +1495,10 @@ declare class ChartView extends RcElement {
|
|
|
1392
1495
|
private _polarView;
|
|
1393
1496
|
private _currBody;
|
|
1394
1497
|
private _axisSectionViews;
|
|
1498
|
+
private _creditView;
|
|
1395
1499
|
private _tooltipView;
|
|
1396
1500
|
private _seriesClip;
|
|
1397
|
-
|
|
1501
|
+
_org: IPoint;
|
|
1398
1502
|
private _plotWidth;
|
|
1399
1503
|
private _plotHeight;
|
|
1400
1504
|
constructor(doc: Document);
|
|
@@ -1407,7 +1511,8 @@ declare class ChartView extends RcElement {
|
|
|
1407
1511
|
hideTooltip(): void;
|
|
1408
1512
|
legendByDom(dom: Element): LegendItem;
|
|
1409
1513
|
seriesByDom(dom: Element): SeriesView<Series>;
|
|
1410
|
-
|
|
1514
|
+
creditByDom(dom: Element): CreditView;
|
|
1515
|
+
clipSeries(view: RcElement, x: number, y: number, w: number, h: number, invertable: boolean): void;
|
|
1411
1516
|
protected _doAttached(parent: RcElement): void;
|
|
1412
1517
|
private $_checkEmpty;
|
|
1413
1518
|
private $_prepareBody;
|
|
@@ -1421,6 +1526,7 @@ declare class ChartControl extends RcControl implements IChartEventListener {
|
|
|
1421
1526
|
private _chartView;
|
|
1422
1527
|
constructor(doc: Document, container: string | HTMLDivElement);
|
|
1423
1528
|
onVisibleChanged(chart: Chart, item: ChartItem): void;
|
|
1529
|
+
onPointVisibleChanged(chart: Chart, series: Series, point: DataPoint): void;
|
|
1424
1530
|
get model(): Chart;
|
|
1425
1531
|
set model(value: Chart);
|
|
1426
1532
|
chartView(): ChartView;
|