realchart 0.9.40 → 0.9.42

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 CHANGED
@@ -218,6 +218,7 @@ declare abstract class RcControl extends RcObject {
218
218
  height(): number;
219
219
  contentWidth(): number;
220
220
  contentHeight(): number;
221
+ contentRight(): number;
221
222
  clipContainer(): SVGElement;
222
223
  setData(data: string, value: any, container?: boolean): void;
223
224
  clearDefs(): void;
@@ -985,6 +986,7 @@ interface IDataPointCallbackArgs {
985
986
  }
986
987
  type PointStyleCallback = (args: IDataPointCallbackArgs) => SVGStyleOrClass;
987
988
  type PointClickCallback = (args: IDataPointCallbackArgs) => boolean;
989
+ type PointHoverCallback = (args: IDataPointCallbackArgs) => void;
988
990
  declare abstract class Series extends ChartItem implements ISeries, IChartDataListener, ILegendSource, ITooltipContext {
989
991
  static readonly LEGEND_MARKER = "rct-legend-item-marker";
990
992
  static _loadSeries(chart: IChart, src: any, defType?: string): Series;
@@ -1065,6 +1067,7 @@ declare abstract class Series extends ChartItem implements ISeries, IChartDataLi
1065
1067
  loadAnimation: SeriesLoadAnimation;
1066
1068
  pointStyleCallback: PointStyleCallback;
1067
1069
  onPointClick: PointClickCallback;
1070
+ onPointHover: PointHoverCallback;
1068
1071
  contains(p: DataPoint): boolean;
1069
1072
  getPoints(): DataPointCollection;
1070
1073
  getLabeledPoints(): DataPoint[];
@@ -1122,6 +1125,7 @@ declare abstract class Series extends ChartItem implements ISeries, IChartDataLi
1122
1125
  getPointStyle(p: DataPoint): any;
1123
1126
  getPointLabelStyle(p: DataPoint): any;
1124
1127
  pointClicked(p: DataPoint): boolean;
1128
+ pointHovered(p: DataPoint): void;
1125
1129
  getViewRangeAxis(): 'x' | 'y' | 'z';
1126
1130
  isPointLabelsVisible(): boolean;
1127
1131
  isPointLabelVisible(p: DataPoint): boolean;
@@ -1763,6 +1767,11 @@ interface IAxisLabelArgs {
1763
1767
  index: number;
1764
1768
  value: number;
1765
1769
  }
1770
+ declare enum AxisLabelOverflow {
1771
+ HIDDEN = "hidden",
1772
+ PULL = "pull",
1773
+ FIT = "fit"
1774
+ }
1766
1775
  declare abstract class AxisLabel extends IconedText {
1767
1776
  axis: Axis;
1768
1777
  _paramTick: IAxisTick;
@@ -1779,6 +1788,9 @@ declare abstract class AxisLabel extends IconedText {
1779
1788
  lastText: string;
1780
1789
  firstStyle: SVGStyleOrClass;
1781
1790
  lastStyle: SVGStyleOrClass;
1791
+ firstOverflow: AxisLabelOverflow;
1792
+ lastOverflow: AxisLabelOverflow;
1793
+ overflowGap: number;
1782
1794
  textCallback: (args: IAxisLabelArgs) => string;
1783
1795
  styleCallback: (args: IAxisLabelArgs) => SVGStyleOrClass;
1784
1796
  iconCallback: (args: IAxisLabelArgs) => string;
@@ -1868,14 +1880,15 @@ declare abstract class Axis extends ChartItem implements IAxis {
1868
1880
  _zooming: boolean;
1869
1881
  _animating(): boolean;
1870
1882
  constructor(chart: IChart, isX: boolean, name?: string);
1883
+ init(): Axis;
1871
1884
  abstract _type(): string;
1872
1885
  readonly name: string;
1873
- readonly title: AxisTitle;
1874
- readonly line: AxisLine;
1875
- readonly sectorLine: AxisSectorLine;
1876
- readonly tick: AxisTick;
1877
- readonly label: AxisLabel;
1878
- readonly grid: AxisGrid;
1886
+ title: AxisTitle;
1887
+ line: AxisLine;
1888
+ sectorLine: AxisSectorLine;
1889
+ tick: AxisTick;
1890
+ label: AxisLabel;
1891
+ grid: AxisGrid;
1879
1892
  readonly guides: AxisGuide[];
1880
1893
  readonly crosshair: Crosshair;
1881
1894
  readonly scrollBar: AxisScrollBar;