@gravity-ui/chartkit 4.22.0 → 4.22.1

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.
@@ -7,4 +7,5 @@ export declare const withSplitPane: <ComposedComponentProps extends {}>(Composed
7
7
  } & {
8
8
  current: any;
9
9
  forwardedRef: React.Ref<ComposedComponentProps>;
10
+ callback?: Highcharts.ChartCallbackFunction | undefined;
10
11
  }> & React.RefAttributes<ComposedComponentProps>>;
@@ -110,8 +110,10 @@ export const withSplitPane = (ComposedComponent) => {
110
110
  }
111
111
  };
112
112
  this.afterCreateCallback = (chart) => {
113
+ var _a, _b;
113
114
  chart.tooltip.splitTooltip = true;
114
115
  chart.tooltip.getTooltipContainer = this.getTooltipContainer;
116
+ (_b = (_a = this.props).callback) === null || _b === void 0 ? void 0 : _b.call(_a, chart);
115
117
  };
116
118
  this.setInitialPaneSize = (callback) => {
117
119
  if (!this.tooltipContainerRef.current || !this.rootRef.current) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gravity-ui/chartkit",
3
- "version": "4.22.0",
3
+ "version": "4.22.1",
4
4
  "description": "React component used to render charts based on any sources you need",
5
5
  "license": "MIT",
6
6
  "repository": "git@github.com:gravity-ui/ChartKit.git",