realchart 0.9.24 → 0.9.25
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 +187 -163
- package/dist/index.esm.js +2 -2
- package/dist/index.js +2 -2
- package/dist/realchart-style.css +8 -6
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -10,6 +10,8 @@ interface SVGStyles {
|
|
|
10
10
|
fontSize?: string;
|
|
11
11
|
fontWeight?: string;
|
|
12
12
|
fontStyle?: string;
|
|
13
|
+
rx?: string;
|
|
14
|
+
textAlign?: 'left' | 'center' | 'right';
|
|
13
15
|
}
|
|
14
16
|
type SVGStyleOrClass = SVGStyles | string;
|
|
15
17
|
interface IMinMax {
|
|
@@ -170,6 +172,8 @@ declare abstract class RcControl extends RcWrappableObject {
|
|
|
170
172
|
svg(): SVGSVGElement;
|
|
171
173
|
width(): number;
|
|
172
174
|
height(): number;
|
|
175
|
+
contentWidth(): number;
|
|
176
|
+
contentHeight(): number;
|
|
173
177
|
clipContainer(): SVGElement;
|
|
174
178
|
setData(data: string, value: any, container?: boolean): void;
|
|
175
179
|
clearDefs(): void;
|
|
@@ -190,8 +194,9 @@ declare abstract class RcControl extends RcWrappableObject {
|
|
|
190
194
|
setAnimation(to?: number): void;
|
|
191
195
|
fling(distance: number, duration: number): void;
|
|
192
196
|
getCssVar(name: string): string;
|
|
193
|
-
clipBounds(x?: number, y?: number, width?: number, height?: number, rd?: number):
|
|
194
|
-
clipRect(r: IRect):
|
|
197
|
+
clipBounds(x?: number, y?: number, width?: number, height?: number, rd?: number): ClipRectElement;
|
|
198
|
+
clipRect(r: IRect): ClipRectElement;
|
|
199
|
+
clipCircle(): ClipCircleElement;
|
|
195
200
|
clipPath(): ClipPathElement;
|
|
196
201
|
addDef(element: Element): void;
|
|
197
202
|
removeDef(element: Element | string): void;
|
|
@@ -230,8 +235,8 @@ declare abstract class RcControl extends RcWrappableObject {
|
|
|
230
235
|
private _wheelHandler;
|
|
231
236
|
}
|
|
232
237
|
declare class RcElement extends RcObject {
|
|
233
|
-
static TESTING: boolean;
|
|
234
238
|
static DEBUGGING: boolean;
|
|
239
|
+
static TESTING: boolean;
|
|
235
240
|
static ASSET_KEY: string;
|
|
236
241
|
static TEMP_KEY: string;
|
|
237
242
|
private _visible;
|
|
@@ -331,15 +336,14 @@ declare class RcElement extends RcObject {
|
|
|
331
336
|
setClass(value: string): void;
|
|
332
337
|
setStyle(prop: string, value: string): boolean;
|
|
333
338
|
internalSetStyle(prop: string, value: string): void;
|
|
334
|
-
|
|
335
|
-
putStyle(prop: string, value: string, buff?: any): any;
|
|
339
|
+
textAlign(): Align;
|
|
336
340
|
setData(data: string, value?: string): void;
|
|
337
341
|
unsetData(data: string): void;
|
|
338
342
|
setBoolData(data: string, value: boolean): void;
|
|
339
343
|
removeLater(delay: number, callback?: (v: RcElement) => void): RcElement;
|
|
340
344
|
hide(delay: number): RcElement;
|
|
341
|
-
clipRect(x: number, y: number, width: number, height: number, rd?: number):
|
|
342
|
-
setClip(cr?: ClipElement |
|
|
345
|
+
clipRect(x: number, y: number, width: number, height: number, rd?: number): ClipRectElement;
|
|
346
|
+
setClip(cr?: ClipElement | string): void;
|
|
343
347
|
setTemporary(): RcElement;
|
|
344
348
|
setCursor(cursor: string): void;
|
|
345
349
|
ignorePointer(): void;
|
|
@@ -350,11 +354,14 @@ declare class RcElement extends RcObject {
|
|
|
350
354
|
protected _updateTransform(): void;
|
|
351
355
|
getTransform(): string;
|
|
352
356
|
}
|
|
353
|
-
declare class ClipElement extends RcElement {
|
|
357
|
+
declare abstract class ClipElement extends RcElement {
|
|
354
358
|
private _id;
|
|
359
|
+
constructor(doc: Document);
|
|
360
|
+
get id(): string;
|
|
361
|
+
}
|
|
362
|
+
declare class ClipRectElement extends ClipElement {
|
|
355
363
|
private _rect;
|
|
356
364
|
constructor(doc: Document, x?: number, y?: number, width?: number, height?: number, rx?: number, ry?: number);
|
|
357
|
-
get id(): string;
|
|
358
365
|
setBounds(x: number, y: number, w: number, h: number): RcElement;
|
|
359
366
|
resize(width: number, height: number, attr?: boolean): RcElement;
|
|
360
367
|
get x(): number;
|
|
@@ -366,13 +373,16 @@ declare class ClipElement extends RcElement {
|
|
|
366
373
|
get height(): number;
|
|
367
374
|
set height(value: number);
|
|
368
375
|
}
|
|
369
|
-
declare class ClipPathElement extends
|
|
370
|
-
private _id;
|
|
376
|
+
declare class ClipPathElement extends ClipElement {
|
|
371
377
|
private _path;
|
|
372
378
|
constructor(doc: Document);
|
|
373
|
-
get id(): string;
|
|
374
379
|
setPath(path: Path): void;
|
|
375
380
|
}
|
|
381
|
+
declare class ClipCircleElement extends ClipElement {
|
|
382
|
+
private _circle;
|
|
383
|
+
constructor(doc: Document);
|
|
384
|
+
setCircle(cx: number, cy: number, radius: number): void;
|
|
385
|
+
}
|
|
376
386
|
|
|
377
387
|
declare enum TextAnchor {
|
|
378
388
|
START = "start",
|
|
@@ -517,82 +527,6 @@ declare class BackgroundImage extends ChartItem {
|
|
|
517
527
|
style: SVGStyleOrClass;
|
|
518
528
|
}
|
|
519
529
|
|
|
520
|
-
declare enum AnnotationScope {
|
|
521
|
-
CHART = "chart",
|
|
522
|
-
CONTAINER = "container"
|
|
523
|
-
}
|
|
524
|
-
declare abstract class Annotation extends ChartItem {
|
|
525
|
-
constructor(chart: IChart);
|
|
526
|
-
abstract _type(): string;
|
|
527
|
-
front: boolean;
|
|
528
|
-
name: string;
|
|
529
|
-
align: Align;
|
|
530
|
-
verticalAlign: VerticalAlign;
|
|
531
|
-
offsetX: number;
|
|
532
|
-
offsetY: number;
|
|
533
|
-
rotation: number;
|
|
534
|
-
scope: AnnotationScope;
|
|
535
|
-
getPostion(inverted: boolean, left: number, top: number, wDomain: number, hDomain: number, width: number, height: number): IPoint;
|
|
536
|
-
}
|
|
537
|
-
|
|
538
|
-
declare enum ZoomType {
|
|
539
|
-
NONE = "none",
|
|
540
|
-
X = "x",
|
|
541
|
-
Y = "y",
|
|
542
|
-
BOTH = "both"
|
|
543
|
-
}
|
|
544
|
-
declare class ZoomButton extends ChartItem {
|
|
545
|
-
body: Body;
|
|
546
|
-
constructor(body: Body);
|
|
547
|
-
isVisible(): boolean;
|
|
548
|
-
}
|
|
549
|
-
declare class BodySplit extends ChartItem {
|
|
550
|
-
body: Body;
|
|
551
|
-
constructor(body: Body);
|
|
552
|
-
size: number;
|
|
553
|
-
}
|
|
554
|
-
declare class Body extends ChartItem {
|
|
555
|
-
private _radius;
|
|
556
|
-
private _centerX;
|
|
557
|
-
private _centerY;
|
|
558
|
-
private _annotations;
|
|
559
|
-
private _radiusDim;
|
|
560
|
-
private _cxDim;
|
|
561
|
-
private _cyDim;
|
|
562
|
-
private _rd;
|
|
563
|
-
private _cx;
|
|
564
|
-
private _cy;
|
|
565
|
-
constructor(chart: IChart);
|
|
566
|
-
split: BodySplit;
|
|
567
|
-
get radius(): RtPercentSize;
|
|
568
|
-
set radius(value: RtPercentSize);
|
|
569
|
-
get centerX(): RtPercentSize;
|
|
570
|
-
set centerX(value: RtPercentSize);
|
|
571
|
-
get centerY(): RtPercentSize;
|
|
572
|
-
set centerY(value: RtPercentSize);
|
|
573
|
-
startAngle: number;
|
|
574
|
-
circular: boolean;
|
|
575
|
-
image: BackgroundImage;
|
|
576
|
-
zoomType: ZoomType;
|
|
577
|
-
zoomButton: ZoomButton;
|
|
578
|
-
canZoom(): boolean;
|
|
579
|
-
calcRadius(width: number, height: number): number;
|
|
580
|
-
setPolar(width: number, height: number): Body;
|
|
581
|
-
getStartAngle(): number;
|
|
582
|
-
getPolar(axis: Axis): {
|
|
583
|
-
start: number;
|
|
584
|
-
cx: number;
|
|
585
|
-
cy: number;
|
|
586
|
-
rd: number;
|
|
587
|
-
};
|
|
588
|
-
isZoomed(): boolean;
|
|
589
|
-
'@config annotation': Annotation[];
|
|
590
|
-
getAnnotations(): Annotation[];
|
|
591
|
-
protected _doLoadProp(prop: string, value: any): boolean;
|
|
592
|
-
protected _doPrepareRender(chart: IChart): void;
|
|
593
|
-
private $_loadAnnotations;
|
|
594
|
-
}
|
|
595
|
-
|
|
596
530
|
declare enum Shape {
|
|
597
531
|
CIRCLE = "circle",
|
|
598
532
|
DIAMOND = "diamond",
|
|
@@ -609,6 +543,66 @@ declare enum LineType {
|
|
|
609
543
|
STEP = "step"
|
|
610
544
|
}
|
|
611
545
|
|
|
546
|
+
interface IPointPos {
|
|
547
|
+
xPos: number;
|
|
548
|
+
yPos: number;
|
|
549
|
+
isNull: boolean;
|
|
550
|
+
}
|
|
551
|
+
declare class DataPoint {
|
|
552
|
+
static swap(pts: IPointPos[]): IPointPos[];
|
|
553
|
+
index: number;
|
|
554
|
+
vindex: number;
|
|
555
|
+
x: any;
|
|
556
|
+
y: any;
|
|
557
|
+
series: string | number;
|
|
558
|
+
readonly pid: number;
|
|
559
|
+
source: any;
|
|
560
|
+
isNull: boolean;
|
|
561
|
+
xValue: number;
|
|
562
|
+
yValue: number;
|
|
563
|
+
yRate: number;
|
|
564
|
+
visible: boolean;
|
|
565
|
+
color: string;
|
|
566
|
+
xPos: number;
|
|
567
|
+
yPos: number;
|
|
568
|
+
yGroup: number;
|
|
569
|
+
drillDown: any[] | object;
|
|
570
|
+
range: IValueRange;
|
|
571
|
+
zValue: number;
|
|
572
|
+
label: any;
|
|
573
|
+
constructor(source: any);
|
|
574
|
+
get yAbs(): number;
|
|
575
|
+
get xAbs(): number;
|
|
576
|
+
ariaHint(): string;
|
|
577
|
+
labelCount(): number;
|
|
578
|
+
assignTo(proxy?: any): any;
|
|
579
|
+
getProp(fld: string | number): any;
|
|
580
|
+
parse(series: ISeries): void;
|
|
581
|
+
getLabel(index: number): any;
|
|
582
|
+
getValueOf: (traget: any, param: string) => any;
|
|
583
|
+
swap(): void;
|
|
584
|
+
protected _assignTo(proxy: any): any;
|
|
585
|
+
protected _readArray(series: ISeries, v: any[]): void;
|
|
586
|
+
protected _readObject(series: ISeries, v: any): void;
|
|
587
|
+
protected _readSingle(v: any): void;
|
|
588
|
+
}
|
|
589
|
+
declare class DataPointCollection {
|
|
590
|
+
protected _owner: ISeries;
|
|
591
|
+
private _points;
|
|
592
|
+
constructor(owner: ISeries);
|
|
593
|
+
get count(): number;
|
|
594
|
+
isEmpty(): boolean;
|
|
595
|
+
get(index: number): DataPoint;
|
|
596
|
+
pointAt(xValue: number): DataPoint;
|
|
597
|
+
contains(p: DataPoint): boolean;
|
|
598
|
+
load(source: any): void;
|
|
599
|
+
getProps(prop: string | number): any[];
|
|
600
|
+
getCategories(axis: string): any[];
|
|
601
|
+
getProxies(): any[];
|
|
602
|
+
forEach(callback: (p: DataPoint, i?: number) => any): void;
|
|
603
|
+
getPoints(xAxis: IAxis, yAxis: IAxis): DataPoint[];
|
|
604
|
+
}
|
|
605
|
+
|
|
612
606
|
declare abstract class Widget extends ChartItem {
|
|
613
607
|
protected _doLoad(source: any): void;
|
|
614
608
|
protected _doPrepareRender(chart: IChart): void;
|
|
@@ -648,6 +642,7 @@ declare enum PointItemPosition {
|
|
|
648
642
|
OUTSIDE_FIRST = "outsideFirst"
|
|
649
643
|
}
|
|
650
644
|
declare class DataPointLabel extends FormattableText {
|
|
645
|
+
private static readonly OFFSET;
|
|
651
646
|
position: PointItemPosition;
|
|
652
647
|
offset: number;
|
|
653
648
|
distance: number;
|
|
@@ -655,8 +650,8 @@ declare class DataPointLabel extends FormattableText {
|
|
|
655
650
|
visibleCallback: (point: any) => boolean;
|
|
656
651
|
styleCallback: (point: any) => SVGStyleOrClass;
|
|
657
652
|
constructor(chart: IChart);
|
|
658
|
-
"@config visible": any;
|
|
659
653
|
getText(value: any): string;
|
|
654
|
+
getOffset(): number;
|
|
660
655
|
protected _doLoadSimple(source: any): boolean;
|
|
661
656
|
}
|
|
662
657
|
interface IPlottingItem {
|
|
@@ -768,6 +763,7 @@ interface IDataPointCallbackArgs {
|
|
|
768
763
|
xValue: any;
|
|
769
764
|
yValue: any;
|
|
770
765
|
zValue: any;
|
|
766
|
+
source: any;
|
|
771
767
|
}
|
|
772
768
|
type PointStyleCallback = (args: IDataPointCallbackArgs) => SVGStyleOrClass;
|
|
773
769
|
type PointClickCallback = (args: IDataPointCallbackArgs) => boolean;
|
|
@@ -850,6 +846,7 @@ declare abstract class Series extends ChartItem implements ISeries, ILegendSourc
|
|
|
850
846
|
canMaxPadding(axis: IAxis): boolean;
|
|
851
847
|
hasMarker(): boolean;
|
|
852
848
|
setShape(shape: Shape): void;
|
|
849
|
+
needClip(polar: boolean): boolean;
|
|
853
850
|
setCol(col: number): void;
|
|
854
851
|
setRow(row: number): void;
|
|
855
852
|
createPoints(source: any[]): DataPoint[];
|
|
@@ -955,6 +952,7 @@ declare abstract class SeriesGroup<T extends Series> extends ChartItem implement
|
|
|
955
952
|
yAxis: string | number;
|
|
956
953
|
visibleInLegend: boolean;
|
|
957
954
|
zOrder: number;
|
|
955
|
+
noClip: boolean;
|
|
958
956
|
get series(): T[];
|
|
959
957
|
needAxes(): boolean;
|
|
960
958
|
isEmpty(): boolean;
|
|
@@ -988,64 +986,83 @@ declare abstract class SeriesGroup<T extends Series> extends ChartItem implement
|
|
|
988
986
|
private $_collectFill;
|
|
989
987
|
}
|
|
990
988
|
|
|
991
|
-
|
|
992
|
-
|
|
993
|
-
|
|
994
|
-
isNull: boolean;
|
|
989
|
+
declare enum AnnotationScope {
|
|
990
|
+
CHART = "chart",
|
|
991
|
+
CONTAINER = "container"
|
|
995
992
|
}
|
|
996
|
-
declare class
|
|
997
|
-
|
|
998
|
-
|
|
999
|
-
|
|
1000
|
-
|
|
1001
|
-
|
|
1002
|
-
|
|
1003
|
-
|
|
1004
|
-
|
|
1005
|
-
|
|
1006
|
-
|
|
1007
|
-
|
|
1008
|
-
|
|
1009
|
-
|
|
1010
|
-
|
|
1011
|
-
xPos: number;
|
|
1012
|
-
yPos: number;
|
|
1013
|
-
yGroup: number;
|
|
1014
|
-
drillDown: any[] | object;
|
|
1015
|
-
range: IValueRange;
|
|
1016
|
-
zValue: number;
|
|
1017
|
-
label: any;
|
|
1018
|
-
constructor(source: any);
|
|
1019
|
-
get yAbs(): number;
|
|
1020
|
-
get xAbs(): number;
|
|
1021
|
-
ariaHint(): string;
|
|
1022
|
-
labelCount(): number;
|
|
1023
|
-
assignTo(proxy?: any): any;
|
|
1024
|
-
getProp(fld: string | number): any;
|
|
1025
|
-
parse(series: ISeries): void;
|
|
1026
|
-
getLabel(index: number): any;
|
|
1027
|
-
getValueOf: (traget: any, param: string) => any;
|
|
1028
|
-
swap(): void;
|
|
1029
|
-
protected _assignTo(proxy: any): any;
|
|
1030
|
-
protected _readArray(series: ISeries, v: any[]): void;
|
|
1031
|
-
protected _readObject(series: ISeries, v: any): void;
|
|
1032
|
-
protected _readSingle(v: any): void;
|
|
993
|
+
declare abstract class Annotation extends ChartItem {
|
|
994
|
+
_seriesObj: ISeries;
|
|
995
|
+
constructor(chart: IChart);
|
|
996
|
+
abstract _type(): string;
|
|
997
|
+
front: boolean;
|
|
998
|
+
name: string;
|
|
999
|
+
align: Align;
|
|
1000
|
+
verticalAlign: VerticalAlign;
|
|
1001
|
+
offsetX: number;
|
|
1002
|
+
offsetY: number;
|
|
1003
|
+
rotation: number;
|
|
1004
|
+
scope: AnnotationScope;
|
|
1005
|
+
series: string;
|
|
1006
|
+
getPosition(inverted: boolean, left: number, top: number, wDomain: number, hDomain: number, width: number, height: number): IPoint;
|
|
1007
|
+
protected _doPrepareRender(chart: IChart): void;
|
|
1033
1008
|
}
|
|
1034
|
-
|
|
1035
|
-
|
|
1036
|
-
|
|
1037
|
-
|
|
1038
|
-
|
|
1039
|
-
|
|
1040
|
-
|
|
1041
|
-
|
|
1042
|
-
|
|
1043
|
-
|
|
1044
|
-
|
|
1045
|
-
|
|
1046
|
-
|
|
1047
|
-
|
|
1048
|
-
|
|
1009
|
+
|
|
1010
|
+
declare enum ZoomType {
|
|
1011
|
+
NONE = "none",
|
|
1012
|
+
X = "x",
|
|
1013
|
+
Y = "y",
|
|
1014
|
+
BOTH = "both"
|
|
1015
|
+
}
|
|
1016
|
+
declare class ZoomButton extends ChartItem {
|
|
1017
|
+
body: Body;
|
|
1018
|
+
constructor(body: Body);
|
|
1019
|
+
isVisible(): boolean;
|
|
1020
|
+
}
|
|
1021
|
+
declare class BodySplit extends ChartItem {
|
|
1022
|
+
body: Body;
|
|
1023
|
+
constructor(body: Body);
|
|
1024
|
+
size: number;
|
|
1025
|
+
}
|
|
1026
|
+
declare class Body extends ChartItem {
|
|
1027
|
+
private _radius;
|
|
1028
|
+
private _centerX;
|
|
1029
|
+
private _centerY;
|
|
1030
|
+
private _annotations;
|
|
1031
|
+
private _radiusDim;
|
|
1032
|
+
private _cxDim;
|
|
1033
|
+
private _cyDim;
|
|
1034
|
+
private _rd;
|
|
1035
|
+
private _cx;
|
|
1036
|
+
private _cy;
|
|
1037
|
+
constructor(chart: IChart);
|
|
1038
|
+
split: BodySplit;
|
|
1039
|
+
get radius(): RtPercentSize;
|
|
1040
|
+
set radius(value: RtPercentSize);
|
|
1041
|
+
innerRadius: RtPercentSize;
|
|
1042
|
+
get centerX(): RtPercentSize;
|
|
1043
|
+
set centerX(value: RtPercentSize);
|
|
1044
|
+
get centerY(): RtPercentSize;
|
|
1045
|
+
set centerY(value: RtPercentSize);
|
|
1046
|
+
circular: boolean;
|
|
1047
|
+
image: BackgroundImage;
|
|
1048
|
+
zoomType: ZoomType;
|
|
1049
|
+
zoomButton: ZoomButton;
|
|
1050
|
+
canZoom(): boolean;
|
|
1051
|
+
calcRadius(width: number, height: number): number;
|
|
1052
|
+
setPolar(width: number, height: number): Body;
|
|
1053
|
+
getPolar(axis: Axis): {
|
|
1054
|
+
start: number;
|
|
1055
|
+
total: number;
|
|
1056
|
+
cx: number;
|
|
1057
|
+
cy: number;
|
|
1058
|
+
rd: number;
|
|
1059
|
+
};
|
|
1060
|
+
isZoomed(): boolean;
|
|
1061
|
+
'@config annotation': Annotation[];
|
|
1062
|
+
getAnnotations(): Annotation[];
|
|
1063
|
+
protected _doLoadProp(prop: string, value: any): boolean;
|
|
1064
|
+
protected _doPrepareRender(chart: IChart): void;
|
|
1065
|
+
private $_loadAnnotations;
|
|
1049
1066
|
}
|
|
1050
1067
|
|
|
1051
1068
|
declare enum PaletteMode {
|
|
@@ -1062,7 +1079,6 @@ declare class Title extends ChartItem {
|
|
|
1062
1079
|
align: Align;
|
|
1063
1080
|
backgroundStyle: SVGStyleOrClass;
|
|
1064
1081
|
gap: number;
|
|
1065
|
-
textAlign: Align;
|
|
1066
1082
|
isVisible(): boolean;
|
|
1067
1083
|
protected _doLoadSimple(source: any): boolean;
|
|
1068
1084
|
}
|
|
@@ -1393,8 +1409,8 @@ declare class Split extends ChartItem {
|
|
|
1393
1409
|
interface IChart {
|
|
1394
1410
|
type: string;
|
|
1395
1411
|
gaugeType: string;
|
|
1396
|
-
_xPaneAxes:
|
|
1397
|
-
_yPaneAxes:
|
|
1412
|
+
_xPaneAxes: PaneXAxisMatrix;
|
|
1413
|
+
_yPaneAxes: PaneYAxisMatrix;
|
|
1398
1414
|
options: ChartOptions;
|
|
1399
1415
|
first: IPlottingItem;
|
|
1400
1416
|
firstSeries: Series;
|
|
@@ -1413,7 +1429,6 @@ interface IChart {
|
|
|
1413
1429
|
isInverted(): boolean;
|
|
1414
1430
|
isSplitted(): boolean;
|
|
1415
1431
|
animatable(): boolean;
|
|
1416
|
-
startAngle(): number;
|
|
1417
1432
|
seriesByName(series: string): Series;
|
|
1418
1433
|
axisByName(axis: string): Axis;
|
|
1419
1434
|
getAxes(dir: SectionDir, visibleOnly: boolean): Axis[];
|
|
@@ -1444,6 +1459,8 @@ declare class Credits extends ChartItem {
|
|
|
1444
1459
|
verticalAlign: VerticalAlign;
|
|
1445
1460
|
offsetX: number;
|
|
1446
1461
|
offsetY: number;
|
|
1462
|
+
gap: number;
|
|
1463
|
+
isFloating(): boolean;
|
|
1447
1464
|
}
|
|
1448
1465
|
declare class ChartOptions extends ChartItem {
|
|
1449
1466
|
theme: string;
|
|
@@ -1539,7 +1556,7 @@ declare class AxisGrid extends AxisItem {
|
|
|
1539
1556
|
startVisible: boolean;
|
|
1540
1557
|
endVisible: boolean;
|
|
1541
1558
|
constructor(axis: Axis);
|
|
1542
|
-
isVisible(): boolean;
|
|
1559
|
+
isVisible(polar: boolean): boolean;
|
|
1543
1560
|
getPoints(length: number): number[];
|
|
1544
1561
|
}
|
|
1545
1562
|
declare class AxisGuideLabel extends FormattableText {
|
|
@@ -1561,9 +1578,6 @@ declare abstract class AxisGuide extends AxisItem {
|
|
|
1561
1578
|
declare abstract class AxisTick extends AxisItem {
|
|
1562
1579
|
length: number;
|
|
1563
1580
|
gap: number;
|
|
1564
|
-
integral: boolean;
|
|
1565
|
-
showFirst: boolean;
|
|
1566
|
-
showLast: boolean;
|
|
1567
1581
|
constructor(axis: Axis);
|
|
1568
1582
|
protected _doLoadSimple(source: any): boolean;
|
|
1569
1583
|
}
|
|
@@ -1590,12 +1604,16 @@ declare abstract class AxisLabel extends FormattableText {
|
|
|
1590
1604
|
rotation: number;
|
|
1591
1605
|
autoArrange: AxisLabelArrange;
|
|
1592
1606
|
wrap: boolean;
|
|
1607
|
+
firstText: string;
|
|
1608
|
+
lastText: string;
|
|
1609
|
+
firstStyle: SVGStyleOrClass;
|
|
1610
|
+
lastStyle: SVGStyleOrClass;
|
|
1593
1611
|
textCallback: (args: IAxisLabelArgs) => string;
|
|
1594
1612
|
styleCallback: (args: any) => SVGStyleOrClass;
|
|
1595
1613
|
abstract getTick(index: number, value: any): string;
|
|
1596
1614
|
protected _getParamValue(tick: IAxisTick, param: string): any;
|
|
1597
|
-
getLabelText(tick: IAxisTick): string;
|
|
1598
|
-
getLabelStyle(tick: IAxisTick): any;
|
|
1615
|
+
getLabelText(tick: IAxisTick, count: number): string;
|
|
1616
|
+
getLabelStyle(tick: IAxisTick, count: number): any;
|
|
1599
1617
|
}
|
|
1600
1618
|
interface IAxisTick {
|
|
1601
1619
|
index: number;
|
|
@@ -1636,7 +1654,7 @@ declare class AxisZoom {
|
|
|
1636
1654
|
start: number;
|
|
1637
1655
|
end: number;
|
|
1638
1656
|
constructor(axis: Axis, start: number, end: number);
|
|
1639
|
-
|
|
1657
|
+
length(): number;
|
|
1640
1658
|
resize(start: number, end: number): boolean;
|
|
1641
1659
|
}
|
|
1642
1660
|
declare abstract class Axis extends ChartItem implements IAxis {
|
|
@@ -1658,10 +1676,10 @@ declare abstract class Axis extends ChartItem implements IAxis {
|
|
|
1658
1676
|
_vlen: number;
|
|
1659
1677
|
_minPad: number;
|
|
1660
1678
|
_maxPad: number;
|
|
1661
|
-
_startAngle: number;
|
|
1662
1679
|
_values: number[];
|
|
1663
1680
|
protected _min: number;
|
|
1664
1681
|
protected _max: number;
|
|
1682
|
+
protected _single: boolean;
|
|
1665
1683
|
_zoom: AxisZoom;
|
|
1666
1684
|
_runPos: AxisPosition;
|
|
1667
1685
|
_labelArgs: IAxisLabelArgs;
|
|
@@ -1678,12 +1696,15 @@ declare abstract class Axis extends ChartItem implements IAxis {
|
|
|
1678
1696
|
readonly scrollBar: AxisScrollBar;
|
|
1679
1697
|
row: number;
|
|
1680
1698
|
col: number;
|
|
1699
|
+
startAngle: number;
|
|
1700
|
+
totalAngle: number;
|
|
1681
1701
|
position: AxisPosition;
|
|
1682
1702
|
reversed: boolean;
|
|
1683
1703
|
minValue: number;
|
|
1684
1704
|
maxValue: number;
|
|
1685
1705
|
marginNear: number;
|
|
1686
1706
|
marginFar: number;
|
|
1707
|
+
unit: string;
|
|
1687
1708
|
isEmpty(): boolean;
|
|
1688
1709
|
getBaseValue(): number;
|
|
1689
1710
|
length(): number;
|
|
@@ -1692,7 +1713,9 @@ declare abstract class Axis extends ChartItem implements IAxis {
|
|
|
1692
1713
|
abstract isContinuous(): boolean;
|
|
1693
1714
|
abstract getValueAt(length: number, pos: number): number;
|
|
1694
1715
|
getAxisValueAt(length: number, pos: number): any;
|
|
1695
|
-
|
|
1716
|
+
getStartAngle(): number;
|
|
1717
|
+
getTotalAngle(): number;
|
|
1718
|
+
isArced(): boolean;
|
|
1696
1719
|
protected abstract _createTickModel(): AxisTick;
|
|
1697
1720
|
protected abstract _createLabelModel(): AxisLabel;
|
|
1698
1721
|
protected abstract _doPrepareRender(): void;
|
|
@@ -1718,7 +1741,7 @@ declare abstract class Axis extends ChartItem implements IAxis {
|
|
|
1718
1741
|
isBreak(pos: number): boolean;
|
|
1719
1742
|
getTickLabelArgs(index: number, value: any): IAxisLabelArgs;
|
|
1720
1743
|
protected _doLoadProp(prop: string, value: any): boolean;
|
|
1721
|
-
protected
|
|
1744
|
+
protected _setMinMax(min: number, max: number): void;
|
|
1722
1745
|
protected _createGrid(): AxisGrid;
|
|
1723
1746
|
private $_loadGuides;
|
|
1724
1747
|
_connect(series: IPlottingItem): void;
|
|
@@ -1745,7 +1768,6 @@ declare class AxisCollection {
|
|
|
1745
1768
|
collectReferentsValues(): void;
|
|
1746
1769
|
prepareRender(): void;
|
|
1747
1770
|
$_buildTicks(length: number): void;
|
|
1748
|
-
protected _getLength(axis: Axis, length: number): number;
|
|
1749
1771
|
connect(series: IPlottingItem): Axis;
|
|
1750
1772
|
forEach(callback: (p: Axis, i?: number) => any): void;
|
|
1751
1773
|
isZoomed(): boolean;
|
|
@@ -1770,11 +1792,11 @@ declare abstract class PaneAxisMatrix {
|
|
|
1770
1792
|
buildTicks(lens: number[]): void;
|
|
1771
1793
|
calcPoints(lens: number[], phase: number): void;
|
|
1772
1794
|
}
|
|
1773
|
-
declare class
|
|
1795
|
+
declare class PaneXAxisMatrix extends PaneAxisMatrix {
|
|
1774
1796
|
constructor(chart: IChart);
|
|
1775
1797
|
prepare(axes: AxisCollection, rows: number, cols: number): void;
|
|
1776
1798
|
}
|
|
1777
|
-
declare class
|
|
1799
|
+
declare class PaneYAxisMatrix extends PaneAxisMatrix {
|
|
1778
1800
|
constructor(chart: IChart);
|
|
1779
1801
|
prepare(axes: AxisCollection, rows: number, cols: number): void;
|
|
1780
1802
|
}
|
|
@@ -2072,13 +2094,15 @@ declare class RcChartControl {
|
|
|
2072
2094
|
declare class Globals {
|
|
2073
2095
|
static getVersion(): string;
|
|
2074
2096
|
static setDebugging(debug: boolean): void;
|
|
2097
|
+
static setLogging(logging: boolean): void;
|
|
2075
2098
|
static setAnimatable(value: boolean): void;
|
|
2076
2099
|
static createChart(doc: Document, container: string | HTMLDivElement, config: any): RcChartControl;
|
|
2077
2100
|
}
|
|
2078
2101
|
|
|
2079
2102
|
declare const getVersion: typeof Globals.getVersion;
|
|
2080
2103
|
declare const setDebugging: typeof Globals.setDebugging;
|
|
2104
|
+
declare const setLogging: typeof Globals.setLogging;
|
|
2081
2105
|
declare const setAnimatable: typeof Globals.setAnimatable;
|
|
2082
2106
|
declare const createChart: typeof Globals.createChart;
|
|
2083
2107
|
|
|
2084
|
-
export { RcAreaRangeSeries, RcAreaSeries, RcAreaSeriesGroup, RcBarRangeSeries, RcBarSeries, RcBarSeriesGroup, RcBellCurveSeries, RcBody, RcBoxPlotSeries, RcBubbleSeries, RcBulletGauge, RcBulletGaugeGroup, RcBumpSeriesGroup, RcCandlestickSeries, RcCategoryAxis, RcChartAxis, RcChartControl, RcChartGauge, RcChartGaugeBase, RcChartObject, RcChartSeries, RcCircleGauge, RcCircleGaugeGroup, RcCircularGauge, RcClockGauge, RcContinuousAxis, RcDumbbellSeries, RcEqualizerSeries, RcFunnelSeries, RcGaugeGroup, RcGaugeRangeBand, RcGaugeScale, RcHeatmapSeries, RcHistogramSeries, RcLegend, RcLineSeries, RcLineSeriesGroup, RcLinearAxis, RcLinearGauge, RcLinearGaugeGroup, RcLinearGaugeBase as RcLinerGaugeBase, RcLogAxis, RcLollipopSeries, RcParetoSeries, RcPieSeries, RcPieSeriesGroup, RcPointLabel, RcScatterSeries, RcSeriesGroup, RcSubtitle, RcTimeAxis, RcTitle, RcTreemapSeries, RcValueGauge, RcVectorSeries, RcWaterfallSeries, createChart, getVersion, setAnimatable, setDebugging };
|
|
2108
|
+
export { RcAreaRangeSeries, RcAreaSeries, RcAreaSeriesGroup, RcBarRangeSeries, RcBarSeries, RcBarSeriesGroup, RcBellCurveSeries, RcBody, RcBoxPlotSeries, RcBubbleSeries, RcBulletGauge, RcBulletGaugeGroup, RcBumpSeriesGroup, RcCandlestickSeries, RcCategoryAxis, RcChartAxis, RcChartControl, RcChartGauge, RcChartGaugeBase, RcChartObject, RcChartSeries, RcCircleGauge, RcCircleGaugeGroup, RcCircularGauge, RcClockGauge, RcContinuousAxis, RcDumbbellSeries, RcEqualizerSeries, RcFunnelSeries, RcGaugeGroup, RcGaugeRangeBand, RcGaugeScale, RcHeatmapSeries, RcHistogramSeries, RcLegend, RcLineSeries, RcLineSeriesGroup, RcLinearAxis, RcLinearGauge, RcLinearGaugeGroup, RcLinearGaugeBase as RcLinerGaugeBase, RcLogAxis, RcLollipopSeries, RcParetoSeries, RcPieSeries, RcPieSeriesGroup, RcPointLabel, RcScatterSeries, RcSeriesGroup, RcSubtitle, RcTimeAxis, RcTitle, RcTreemapSeries, RcValueGauge, RcVectorSeries, RcWaterfallSeries, createChart, getVersion, setAnimatable, setDebugging, setLogging };
|