realchart 0.9.15 → 0.9.16
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 +23 -6
- package/dist/index.esm.js +2 -2
- package/dist/index.js +2 -2
- package/dist/realchart-style.css +1 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -41,6 +41,7 @@ interface IValueRange {
|
|
|
41
41
|
toValue?: number;
|
|
42
42
|
color: string;
|
|
43
43
|
label?: string;
|
|
44
|
+
style?: SVGStyleOrClass;
|
|
44
45
|
}
|
|
45
46
|
|
|
46
47
|
declare abstract class RcObject {
|
|
@@ -123,6 +124,7 @@ declare abstract class RcControl extends RcWrappableObject {
|
|
|
123
124
|
svg(): SVGSVGElement;
|
|
124
125
|
width(): number;
|
|
125
126
|
height(): number;
|
|
127
|
+
clipContainer(): SVGElement;
|
|
126
128
|
setData(data: string, value: any, container?: boolean): void;
|
|
127
129
|
clearDefs(): void;
|
|
128
130
|
private $_clearDefs;
|
|
@@ -305,7 +307,7 @@ declare class RcElement extends RcObject {
|
|
|
305
307
|
declare class ClipElement extends RcElement {
|
|
306
308
|
private _id;
|
|
307
309
|
private _rect;
|
|
308
|
-
constructor(doc: Document, x
|
|
310
|
+
constructor(doc: Document, x?: number, y?: number, width?: number, height?: number, rx?: number, ry?: number);
|
|
309
311
|
get id(): string;
|
|
310
312
|
setBounds(x: number, y: number, w: number, h: number): RcElement;
|
|
311
313
|
get x(): number;
|
|
@@ -519,6 +521,7 @@ declare class DataPoint {
|
|
|
519
521
|
yPos: number;
|
|
520
522
|
yGroup: number;
|
|
521
523
|
drillDown: any[] | object;
|
|
524
|
+
range: IValueRange;
|
|
522
525
|
constructor(source: any);
|
|
523
526
|
get yAbs(): number;
|
|
524
527
|
get xAbs(): number;
|
|
@@ -690,6 +693,8 @@ interface IDataPointCallbackArgs {
|
|
|
690
693
|
vcount: number;
|
|
691
694
|
yMin: number;
|
|
692
695
|
yMax: number;
|
|
696
|
+
xMin: number;
|
|
697
|
+
xMax: number;
|
|
693
698
|
index: number;
|
|
694
699
|
vindex: number;
|
|
695
700
|
x: any;
|
|
@@ -710,9 +715,13 @@ declare abstract class Series extends ChartItem implements ISeries, ILegendSourc
|
|
|
710
715
|
_yAxisObj: IAxis;
|
|
711
716
|
protected _points: DataPointCollection;
|
|
712
717
|
_runPoints: DataPoint[];
|
|
718
|
+
_visPoints: DataPoint[];
|
|
719
|
+
_runRangeValue: 'x' | 'y' | 'z';
|
|
713
720
|
_runRanges: IValueRange[];
|
|
714
|
-
|
|
715
|
-
|
|
721
|
+
_minX: number;
|
|
722
|
+
_maxX: number;
|
|
723
|
+
_minY: number;
|
|
724
|
+
_maxY: number;
|
|
716
725
|
_referents: Series[];
|
|
717
726
|
_calcedColor: string;
|
|
718
727
|
_simpleMode: boolean;
|
|
@@ -739,8 +748,8 @@ declare abstract class Series extends ChartItem implements ISeries, ILegendSourc
|
|
|
739
748
|
xStep: number | string;
|
|
740
749
|
color: string;
|
|
741
750
|
pointColors: boolean | string[];
|
|
742
|
-
|
|
743
|
-
|
|
751
|
+
viewRanges: IValueRange[];
|
|
752
|
+
viewRangeValue: 'x' | 'y' | 'z';
|
|
744
753
|
clipped: boolean;
|
|
745
754
|
visibleInLegend: boolean;
|
|
746
755
|
visibleInNavigator: boolean;
|
|
@@ -772,9 +781,15 @@ declare abstract class Series extends ChartItem implements ISeries, ILegendSourc
|
|
|
772
781
|
getXStart(): number;
|
|
773
782
|
getXStep(): number;
|
|
774
783
|
prepareRender(): void;
|
|
784
|
+
prepareAfter(): void;
|
|
775
785
|
collectCategories(axis: IAxis): string[];
|
|
776
786
|
collectValues(axis: IAxis, vals: number[]): void;
|
|
777
787
|
collectVisibles(): DataPoint[];
|
|
788
|
+
protected _getRangeMinMax(axis: 'x' | 'y' | 'z'): {
|
|
789
|
+
min: number;
|
|
790
|
+
max: number;
|
|
791
|
+
};
|
|
792
|
+
prepareViewRanges(): void;
|
|
778
793
|
pointValuesPrepared(axis: IAxis): void;
|
|
779
794
|
reference(other: Series, axis: IAxis): void;
|
|
780
795
|
isVisible(point: DataPoint): boolean;
|
|
@@ -789,6 +804,7 @@ declare abstract class Series extends ChartItem implements ISeries, ILegendSourc
|
|
|
789
804
|
getPointStyle(p: DataPoint): any;
|
|
790
805
|
getPointTooltip(point: DataPoint, param: string): any;
|
|
791
806
|
pointClicked(p: DataPoint): boolean;
|
|
807
|
+
getViewRangeAxis(): 'x' | 'y' | 'z';
|
|
792
808
|
protected _createPoint(source: any): DataPoint;
|
|
793
809
|
protected _createLegendMarker(doc: Document, size: number): RcElement;
|
|
794
810
|
_referOtherSeries(series: Series): boolean;
|
|
@@ -799,7 +815,8 @@ declare abstract class Series extends ChartItem implements ISeries, ILegendSourc
|
|
|
799
815
|
protected _doLoadPoints(src: any[]): void;
|
|
800
816
|
loadPoints(src: any[]): void;
|
|
801
817
|
protected _doPrepareRender(): void;
|
|
802
|
-
|
|
818
|
+
protected _setViewRange(p: DataPoint, axis: 'x' | 'y' | 'z'): void;
|
|
819
|
+
_defViewRangeValue(): 'x' | 'y' | 'z';
|
|
803
820
|
}
|
|
804
821
|
declare class PlottingItemCollection {
|
|
805
822
|
readonly chart: IChart;
|