realchart 0.9.32 → 0.9.34
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 +199 -172
- package/dist/index.esm.js +2 -2
- package/dist/index.js +2 -2
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -514,7 +514,7 @@ declare class SvgRichText {
|
|
|
514
514
|
setFormat(value: string): void;
|
|
515
515
|
lines(): SvgLine[];
|
|
516
516
|
build(view: TextElement, maxWidth: number, maxHeight: number, target: any, domain: IRichTextDomain): void;
|
|
517
|
-
layout(
|
|
517
|
+
layout(tv: TextElement, align: Align, width: number, height: number, pad: Sides): void;
|
|
518
518
|
$_parse(fmt: string): void;
|
|
519
519
|
}
|
|
520
520
|
|
|
@@ -523,6 +523,13 @@ declare enum PaletteMode {
|
|
|
523
523
|
SHUFFLE = "shuffle",
|
|
524
524
|
RANDOM = "random"
|
|
525
525
|
}
|
|
526
|
+
declare enum SeriesLoadAnimation {
|
|
527
|
+
DEFAULT = "default",
|
|
528
|
+
REVEAL = "reveal",
|
|
529
|
+
GROW = "grow",
|
|
530
|
+
SPREAD = "spread",
|
|
531
|
+
FADEIN = "fadein"
|
|
532
|
+
}
|
|
526
533
|
|
|
527
534
|
interface IAssetItem {
|
|
528
535
|
id: string;
|
|
@@ -615,7 +622,7 @@ declare abstract class FormattableText extends ChartText {
|
|
|
615
622
|
buildSvg(view: TextElement, outline: TextElement, maxWidth: number, maxHeight: number, target: any, domain: IRichTextDomain): void;
|
|
616
623
|
protected _doLoadSimple(source: any): boolean;
|
|
617
624
|
private $_getNumberText;
|
|
618
|
-
protected _getText(text: string, value: any, useSymbols: boolean, forceSymbols
|
|
625
|
+
protected _getText(text: string, value: any, useSymbols: boolean, forceSymbols: boolean): string;
|
|
619
626
|
}
|
|
620
627
|
declare enum LabelIconPostion {
|
|
621
628
|
DEFAULT = "default",
|
|
@@ -643,6 +650,129 @@ declare class BackgroundImage extends ChartItem {
|
|
|
643
650
|
style: SVGStyleOrClass;
|
|
644
651
|
}
|
|
645
652
|
|
|
653
|
+
declare enum AnnotationScope {
|
|
654
|
+
CHART = "chart",
|
|
655
|
+
CONTAINER = "container"
|
|
656
|
+
}
|
|
657
|
+
declare abstract class Annotation extends ChartItem {
|
|
658
|
+
inBody: boolean;
|
|
659
|
+
private _width;
|
|
660
|
+
private _height;
|
|
661
|
+
private _widthDim;
|
|
662
|
+
private _heightDim;
|
|
663
|
+
_x: number;
|
|
664
|
+
_y: number;
|
|
665
|
+
_w: number;
|
|
666
|
+
_h: number;
|
|
667
|
+
constructor(chart: IChart, inBody: boolean);
|
|
668
|
+
abstract _type(): string;
|
|
669
|
+
front: boolean;
|
|
670
|
+
name: string;
|
|
671
|
+
align: Align;
|
|
672
|
+
verticalAlign: VerticalAlign;
|
|
673
|
+
offsetX: number;
|
|
674
|
+
offsetY: number;
|
|
675
|
+
rotation: number;
|
|
676
|
+
scope: AnnotationScope;
|
|
677
|
+
loadAnimation: IAnnotationAnimation;
|
|
678
|
+
backgroundStyle: SVGStyleOrClass;
|
|
679
|
+
noClip: boolean;
|
|
680
|
+
x1: number | Date;
|
|
681
|
+
x2: number | Date;
|
|
682
|
+
y1: number | Date;
|
|
683
|
+
y2: number | Date;
|
|
684
|
+
get width(): RtPercentSize;
|
|
685
|
+
set width(value: RtPercentSize);
|
|
686
|
+
get height(): RtPercentSize;
|
|
687
|
+
set height(value: RtPercentSize);
|
|
688
|
+
getSize(wDomain: number, hDomain: number): ISize;
|
|
689
|
+
getPosition(inverted: boolean, left: number, top: number, wDomain: number, hDomain: number, width: number, height: number): IPoint;
|
|
690
|
+
update(): void;
|
|
691
|
+
protected _doPrepareRender(chart: IChart): void;
|
|
692
|
+
}
|
|
693
|
+
|
|
694
|
+
declare enum ZoomType {
|
|
695
|
+
NONE = "none",
|
|
696
|
+
X = "x",
|
|
697
|
+
Y = "y",
|
|
698
|
+
BOTH = "both"
|
|
699
|
+
}
|
|
700
|
+
declare class ZoomButton extends ChartItem {
|
|
701
|
+
body: Body;
|
|
702
|
+
constructor(body: Body);
|
|
703
|
+
isVisible(): boolean;
|
|
704
|
+
}
|
|
705
|
+
declare class BodySplit extends ChartItem {
|
|
706
|
+
body: Body;
|
|
707
|
+
constructor(body: Body);
|
|
708
|
+
size: number;
|
|
709
|
+
}
|
|
710
|
+
interface IPolar {
|
|
711
|
+
start: number;
|
|
712
|
+
total: number;
|
|
713
|
+
cx: number;
|
|
714
|
+
cy: number;
|
|
715
|
+
rd: number;
|
|
716
|
+
}
|
|
717
|
+
declare class Body extends ChartItem {
|
|
718
|
+
private _radius;
|
|
719
|
+
private _centerX;
|
|
720
|
+
private _centerY;
|
|
721
|
+
private _annotations;
|
|
722
|
+
private _radiusDim;
|
|
723
|
+
private _cxDim;
|
|
724
|
+
private _cyDim;
|
|
725
|
+
private _rd;
|
|
726
|
+
private _cx;
|
|
727
|
+
private _cy;
|
|
728
|
+
constructor(chart: IChart);
|
|
729
|
+
split: BodySplit;
|
|
730
|
+
get radius(): RtPercentSize;
|
|
731
|
+
set radius(value: RtPercentSize);
|
|
732
|
+
innerRadius: RtPercentSize;
|
|
733
|
+
get centerX(): RtPercentSize;
|
|
734
|
+
set centerX(value: RtPercentSize);
|
|
735
|
+
get centerY(): RtPercentSize;
|
|
736
|
+
set centerY(value: RtPercentSize);
|
|
737
|
+
circular: boolean;
|
|
738
|
+
image: BackgroundImage;
|
|
739
|
+
zoomType: ZoomType;
|
|
740
|
+
zoomButton: ZoomButton;
|
|
741
|
+
canZoom(): boolean;
|
|
742
|
+
calcRadius(width: number, height: number): number;
|
|
743
|
+
setPolar(width: number, height: number): Body;
|
|
744
|
+
getPolar(axis: Axis): IPolar;
|
|
745
|
+
isZoomed(): boolean;
|
|
746
|
+
'@config annotation': Annotation[];
|
|
747
|
+
getAnnotations(): Annotation[];
|
|
748
|
+
getAnnotation(name: string): Annotation;
|
|
749
|
+
protected _doLoadProp(prop: string, value: any): boolean;
|
|
750
|
+
protected _doPrepareRender(chart: IChart): void;
|
|
751
|
+
private $_loadAnnotations;
|
|
752
|
+
}
|
|
753
|
+
|
|
754
|
+
type RcAnimationEndHandler = (ani: RcAnimation) => void;
|
|
755
|
+
declare abstract class RcAnimation {
|
|
756
|
+
static readonly DURATION = 700;
|
|
757
|
+
static readonly SHORT_DURATION = 300;
|
|
758
|
+
delay: number;
|
|
759
|
+
duration: number;
|
|
760
|
+
easing: string;
|
|
761
|
+
endHandler: RcAnimationEndHandler;
|
|
762
|
+
private _easing;
|
|
763
|
+
private _started;
|
|
764
|
+
private _timer;
|
|
765
|
+
private _handler;
|
|
766
|
+
start(endHandler?: RcAnimationEndHandler): RcAnimation;
|
|
767
|
+
stop(): void;
|
|
768
|
+
protected _start(duration: number, delay?: number, easing?: string): void;
|
|
769
|
+
protected _stop(): void;
|
|
770
|
+
protected _doStart(): void;
|
|
771
|
+
protected _doStop(): void;
|
|
772
|
+
protected _canUpdate(): boolean;
|
|
773
|
+
protected abstract _doUpdate(rate: number): boolean;
|
|
774
|
+
}
|
|
775
|
+
|
|
646
776
|
declare enum Shape {
|
|
647
777
|
CIRCLE = "circle",
|
|
648
778
|
DIAMOND = "diamond",
|
|
@@ -688,91 +818,6 @@ declare class ChartDataCollection {
|
|
|
688
818
|
load(source: any): void;
|
|
689
819
|
}
|
|
690
820
|
|
|
691
|
-
type RcAnimationEndHandler = (ani: RcAnimation) => void;
|
|
692
|
-
declare abstract class RcAnimation {
|
|
693
|
-
static readonly DURATION = 700;
|
|
694
|
-
static readonly SHORT_DURATION = 300;
|
|
695
|
-
delay: number;
|
|
696
|
-
duration: number;
|
|
697
|
-
easing: string;
|
|
698
|
-
endHandler: RcAnimationEndHandler;
|
|
699
|
-
private _easing;
|
|
700
|
-
private _started;
|
|
701
|
-
private _timer;
|
|
702
|
-
private _handler;
|
|
703
|
-
start(endHandler?: RcAnimationEndHandler): RcAnimation;
|
|
704
|
-
stop(): void;
|
|
705
|
-
protected _start(duration: number, delay?: number, easing?: string): void;
|
|
706
|
-
protected _stop(): void;
|
|
707
|
-
protected _doStart(): void;
|
|
708
|
-
protected _doStop(): void;
|
|
709
|
-
protected _canUpdate(): boolean;
|
|
710
|
-
protected abstract _doUpdate(rate: number): boolean;
|
|
711
|
-
}
|
|
712
|
-
|
|
713
|
-
declare class DataPoint {
|
|
714
|
-
index: number;
|
|
715
|
-
vindex: number;
|
|
716
|
-
x: any;
|
|
717
|
-
y: any;
|
|
718
|
-
series: string | number;
|
|
719
|
-
readonly pid: number;
|
|
720
|
-
source: any;
|
|
721
|
-
isNull: boolean;
|
|
722
|
-
xValue: number;
|
|
723
|
-
yValue: number;
|
|
724
|
-
yRate: number;
|
|
725
|
-
visible: boolean;
|
|
726
|
-
color: string;
|
|
727
|
-
xPos: number;
|
|
728
|
-
yPos: number;
|
|
729
|
-
yGroup: number;
|
|
730
|
-
drillDown: any[] | object;
|
|
731
|
-
range: IValueRange;
|
|
732
|
-
zValue: number;
|
|
733
|
-
label: any;
|
|
734
|
-
ani: RcAnimation;
|
|
735
|
-
yPrev: number;
|
|
736
|
-
yNew: number;
|
|
737
|
-
constructor(source: any);
|
|
738
|
-
ariaHint(): string;
|
|
739
|
-
labelCount(): number;
|
|
740
|
-
getValue(): number;
|
|
741
|
-
proxy(): any;
|
|
742
|
-
assignTo(proxy?: any): any;
|
|
743
|
-
getProp(fld: string | number): any;
|
|
744
|
-
parse(series: ISeries): void;
|
|
745
|
-
getLabel(index: number): any;
|
|
746
|
-
swap(): void;
|
|
747
|
-
getTooltipPos(): IPoint;
|
|
748
|
-
updateValue(value: number, animation: RcAnimation): void;
|
|
749
|
-
cleanValue(): void;
|
|
750
|
-
getTooltip(param: string): any;
|
|
751
|
-
protected _assignTo(proxy: any): any;
|
|
752
|
-
protected _readArray(series: ISeries, v: any[]): void;
|
|
753
|
-
protected _readObject(series: ISeries, v: any): void;
|
|
754
|
-
protected _readSingle(v: any): void;
|
|
755
|
-
}
|
|
756
|
-
declare class DataPointCollection {
|
|
757
|
-
protected _owner: ISeries;
|
|
758
|
-
private _points;
|
|
759
|
-
constructor(owner: ISeries);
|
|
760
|
-
get count(): number;
|
|
761
|
-
isEmpty(): boolean;
|
|
762
|
-
get(index: number): DataPoint;
|
|
763
|
-
pointAt(xValue: number | any): DataPoint;
|
|
764
|
-
contains(p: DataPoint): boolean;
|
|
765
|
-
load(source: any): void;
|
|
766
|
-
clear(): void;
|
|
767
|
-
add(p: DataPoint): void;
|
|
768
|
-
remove(p: DataPoint): boolean;
|
|
769
|
-
getProps(prop: string | number): any[];
|
|
770
|
-
getCategories(axis: string): any[];
|
|
771
|
-
getProxies(): any[];
|
|
772
|
-
forEach(callback: (p: DataPoint, i?: number) => any): void;
|
|
773
|
-
getPoints(xAxis: IAxis, yAxis: IAxis): DataPoint[];
|
|
774
|
-
}
|
|
775
|
-
|
|
776
821
|
declare abstract class Widget extends ChartItem {
|
|
777
822
|
protected _doLoad(source: any): void;
|
|
778
823
|
protected _doPrepareRender(chart: IChart): void;
|
|
@@ -1035,6 +1080,7 @@ declare abstract class Series extends ChartItem implements ISeries, IChartDataLi
|
|
|
1035
1080
|
visibleInLegend: boolean;
|
|
1036
1081
|
visibleInNavigator: boolean;
|
|
1037
1082
|
tooltipText: string;
|
|
1083
|
+
loadAnimation: SeriesLoadAnimation;
|
|
1038
1084
|
pointStyleCallback: PointStyleCallback;
|
|
1039
1085
|
onPointClick: PointClickCallback;
|
|
1040
1086
|
contains(p: DataPoint): boolean;
|
|
@@ -1052,6 +1098,7 @@ declare abstract class Series extends ChartItem implements ISeries, IChartDataLi
|
|
|
1052
1098
|
legendMarker(doc: Document, size: number): RcElement;
|
|
1053
1099
|
legendColor(): string;
|
|
1054
1100
|
legendLabel(): string;
|
|
1101
|
+
styleLegendMarker(marker: RcElement): void;
|
|
1055
1102
|
canMixWith(other: IPlottingItem): boolean;
|
|
1056
1103
|
getBaseValue(axis: IAxis): number;
|
|
1057
1104
|
isBased(axis: IAxis): boolean;
|
|
@@ -1110,6 +1157,7 @@ declare abstract class Series extends ChartItem implements ISeries, IChartDataLi
|
|
|
1110
1157
|
_colorByPoint(): boolean;
|
|
1111
1158
|
protected _createFielder(f: any): (v: any) => any;
|
|
1112
1159
|
protected _createFielders(): void;
|
|
1160
|
+
protected _defaultLoadAnimation(): SeriesLoadAnimation;
|
|
1113
1161
|
protected _doLoad(src: any): void;
|
|
1114
1162
|
protected _doLoadData(src: any): any[];
|
|
1115
1163
|
_loadPoints(data: any): void;
|
|
@@ -1232,88 +1280,67 @@ declare abstract class SeriesGroup<T extends Series> extends ChartItem implement
|
|
|
1232
1280
|
private $_collectFill;
|
|
1233
1281
|
}
|
|
1234
1282
|
|
|
1235
|
-
declare
|
|
1236
|
-
|
|
1237
|
-
|
|
1238
|
-
|
|
1239
|
-
|
|
1240
|
-
|
|
1241
|
-
|
|
1242
|
-
|
|
1243
|
-
|
|
1244
|
-
|
|
1245
|
-
|
|
1246
|
-
|
|
1247
|
-
|
|
1248
|
-
|
|
1249
|
-
|
|
1250
|
-
|
|
1251
|
-
|
|
1252
|
-
|
|
1253
|
-
|
|
1254
|
-
|
|
1255
|
-
|
|
1256
|
-
|
|
1257
|
-
|
|
1258
|
-
|
|
1259
|
-
|
|
1260
|
-
|
|
1261
|
-
|
|
1262
|
-
|
|
1263
|
-
|
|
1264
|
-
|
|
1265
|
-
|
|
1266
|
-
|
|
1267
|
-
|
|
1268
|
-
|
|
1269
|
-
|
|
1270
|
-
|
|
1271
|
-
|
|
1272
|
-
|
|
1273
|
-
|
|
1274
|
-
|
|
1275
|
-
|
|
1276
|
-
|
|
1277
|
-
total: number;
|
|
1278
|
-
cx: number;
|
|
1279
|
-
cy: number;
|
|
1280
|
-
rd: number;
|
|
1283
|
+
declare class DataPoint {
|
|
1284
|
+
index: number;
|
|
1285
|
+
vindex: number;
|
|
1286
|
+
x: any;
|
|
1287
|
+
y: any;
|
|
1288
|
+
series: string | number;
|
|
1289
|
+
readonly pid: number;
|
|
1290
|
+
source: any;
|
|
1291
|
+
isNull: boolean;
|
|
1292
|
+
xValue: number;
|
|
1293
|
+
yValue: number;
|
|
1294
|
+
yRate: number;
|
|
1295
|
+
visible: boolean;
|
|
1296
|
+
color: string;
|
|
1297
|
+
xPos: number;
|
|
1298
|
+
yPos: number;
|
|
1299
|
+
yGroup: number;
|
|
1300
|
+
drillDown: any[] | object;
|
|
1301
|
+
range: IValueRange;
|
|
1302
|
+
zValue: number;
|
|
1303
|
+
label: any;
|
|
1304
|
+
ani: RcAnimation;
|
|
1305
|
+
yPrev: number;
|
|
1306
|
+
yNew: number;
|
|
1307
|
+
constructor(source: any);
|
|
1308
|
+
ariaHint(): string;
|
|
1309
|
+
labelCount(): number;
|
|
1310
|
+
getValue(): number;
|
|
1311
|
+
proxy(): any;
|
|
1312
|
+
assignTo(proxy?: any): any;
|
|
1313
|
+
getProp(fld: string | number): any;
|
|
1314
|
+
parse(series: ISeries): void;
|
|
1315
|
+
getLabel(index: number): any;
|
|
1316
|
+
swap(): void;
|
|
1317
|
+
getTooltipPos(): IPoint;
|
|
1318
|
+
updateValue(value: number, animation: RcAnimation): void;
|
|
1319
|
+
cleanValue(): void;
|
|
1320
|
+
getTooltip(param: string): any;
|
|
1321
|
+
protected _assignTo(proxy: any): any;
|
|
1322
|
+
protected _readArray(series: ISeries, v: any[]): void;
|
|
1323
|
+
protected _readObject(series: ISeries, v: any): void;
|
|
1324
|
+
protected _readSingle(v: any): void;
|
|
1281
1325
|
}
|
|
1282
|
-
declare class
|
|
1283
|
-
|
|
1284
|
-
private
|
|
1285
|
-
|
|
1286
|
-
|
|
1287
|
-
|
|
1288
|
-
|
|
1289
|
-
|
|
1290
|
-
|
|
1291
|
-
|
|
1292
|
-
|
|
1293
|
-
|
|
1294
|
-
|
|
1295
|
-
|
|
1296
|
-
|
|
1297
|
-
|
|
1298
|
-
|
|
1299
|
-
|
|
1300
|
-
get centerY(): RtPercentSize;
|
|
1301
|
-
set centerY(value: RtPercentSize);
|
|
1302
|
-
circular: boolean;
|
|
1303
|
-
image: BackgroundImage;
|
|
1304
|
-
zoomType: ZoomType;
|
|
1305
|
-
zoomButton: ZoomButton;
|
|
1306
|
-
canZoom(): boolean;
|
|
1307
|
-
calcRadius(width: number, height: number): number;
|
|
1308
|
-
setPolar(width: number, height: number): Body;
|
|
1309
|
-
getPolar(axis: Axis): IPolar;
|
|
1310
|
-
isZoomed(): boolean;
|
|
1311
|
-
'@config annotation': Annotation[];
|
|
1312
|
-
getAnnotations(): Annotation[];
|
|
1313
|
-
getAnnotation(name: string): Annotation;
|
|
1314
|
-
protected _doLoadProp(prop: string, value: any): boolean;
|
|
1315
|
-
protected _doPrepareRender(chart: IChart): void;
|
|
1316
|
-
private $_loadAnnotations;
|
|
1326
|
+
declare class DataPointCollection {
|
|
1327
|
+
protected _owner: ISeries;
|
|
1328
|
+
private _points;
|
|
1329
|
+
constructor(owner: ISeries);
|
|
1330
|
+
get count(): number;
|
|
1331
|
+
isEmpty(): boolean;
|
|
1332
|
+
get(index: number): DataPoint;
|
|
1333
|
+
pointAt(xValue: number | any): DataPoint;
|
|
1334
|
+
contains(p: DataPoint): boolean;
|
|
1335
|
+
load(source: any): void;
|
|
1336
|
+
clear(): void;
|
|
1337
|
+
add(p: DataPoint): void;
|
|
1338
|
+
remove(p: DataPoint): boolean;
|
|
1339
|
+
getProps(prop: string | number): any[];
|
|
1340
|
+
getCategories(axis: string): any[];
|
|
1341
|
+
getProxies(): any[];
|
|
1342
|
+
forEach(callback: (p: DataPoint, i?: number) => any): void;
|
|
1343
|
+
getPoints(xAxis: IAxis, yAxis: IAxis): DataPoint[];
|
|
1317
1344
|
}
|
|
1318
1345
|
|
|
1319
1346
|
declare class Title extends ChartItem {
|
|
@@ -1350,8 +1377,6 @@ declare abstract class GaugeBase extends Widget {
|
|
|
1350
1377
|
private _right;
|
|
1351
1378
|
private _top;
|
|
1352
1379
|
private _bottom;
|
|
1353
|
-
row: number;
|
|
1354
|
-
col: number;
|
|
1355
1380
|
index: number;
|
|
1356
1381
|
private _sizeDim;
|
|
1357
1382
|
private _widthDim;
|
|
@@ -1363,6 +1388,8 @@ declare abstract class GaugeBase extends Widget {
|
|
|
1363
1388
|
constructor(chart: IChart);
|
|
1364
1389
|
abstract _type(): string;
|
|
1365
1390
|
name: string;
|
|
1391
|
+
row: number;
|
|
1392
|
+
col: number;
|
|
1366
1393
|
get left(): RtPercentSize;
|
|
1367
1394
|
set left(value: RtPercentSize);
|
|
1368
1395
|
get right(): RtPercentSize;
|
|
@@ -1377,7 +1404,7 @@ declare abstract class GaugeBase extends Widget {
|
|
|
1377
1404
|
set height(value: RtPercentSize);
|
|
1378
1405
|
get size(): RtPercentSize;
|
|
1379
1406
|
set size(value: RtPercentSize);
|
|
1380
|
-
|
|
1407
|
+
backgroundStyle: SVGStyleOrClass;
|
|
1381
1408
|
getSize(width: number, height: number): ISize;
|
|
1382
1409
|
getLeft(doamin: number): number;
|
|
1383
1410
|
getRight(doamin: number): number;
|
|
@@ -1417,7 +1444,7 @@ declare class GaugeCollection {
|
|
|
1417
1444
|
private _visibles;
|
|
1418
1445
|
private _gauges;
|
|
1419
1446
|
constructor(chart: IChart);
|
|
1420
|
-
|
|
1447
|
+
isEmpty(): boolean;
|
|
1421
1448
|
get firstGauge(): Gauge;
|
|
1422
1449
|
getVisibles(): GaugeBase[];
|
|
1423
1450
|
getPaneVisibles(row: number, col: number): GaugeBase[];
|