@datarailsshared/dr_renderer 1.2.292 → 1.2.294

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@datarailsshared/dr_renderer",
3
- "version": "1.2.292",
3
+ "version": "1.2.294",
4
4
  "description": "DataRails charts and tables renderer",
5
5
  "keywords": [
6
6
  "datarails",
@@ -178,6 +178,23 @@ let getHighchartsRenderer = function ($, document, Highcharts, default_colors, h
178
178
  disableAnimation = document.ReportHippo.user.organization && document.ReportHippo.user.organization.settings && document.ReportHippo.user.organization.settings.disable_animation
179
179
  }
180
180
 
181
+ // fix issue of use tootip.stickOnContact with tooltip.outside , source: https://github.com/highcharts/highcharts/pull/15960
182
+ // TODO: remove it after it is fixed in highcharts library new version
183
+ if (lodash.get(Highcharts, 'Pointer')) {
184
+ Highcharts.Pointer.prototype.onContainerMouseLeave = function (e) {
185
+
186
+ const {charts, pick, Pointer} = Highcharts;
187
+ const chart = charts[pick(Pointer.hoverChartIndex, -1)];
188
+
189
+ e = this.normalize(e);
190
+
191
+ if (chart && e.relatedTarget && !this.inClass(e.relatedTarget, 'highcharts-tooltip')) {
192
+ chart.pointer.reset();
193
+ chart.pointer.chartPosition = void 0;
194
+ }
195
+ }
196
+ }
197
+
181
198
  // in lib it will not work
182
199
  highchartsRenderer.elem1 = document.createElement('textarea');
183
200
 
@@ -8252,7 +8269,7 @@ let getHighchartsRenderer = function ($, document, Highcharts, default_colors, h
8252
8269
  highchartsRenderer.createDateTypeFromValue = function (fieldnametoFilter, format, colName) {
8253
8270
 
8254
8271
  const fiscalYearMonthsModifier = highchartsRenderer.getFiscalYearMonthModifier();
8255
-
8272
+
8256
8273
  const initialDateString = fieldnametoFilter;
8257
8274
  if (format) {
8258
8275
  format = format.replace(/y/g, 'Y');