@amcharts/amcharts5 5.0.13 → 5.0.17
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/.internal/charts/hierarchy/Hierarchy.js +1 -1
- package/.internal/charts/hierarchy/Hierarchy.js.map +1 -1
- package/.internal/charts/hierarchy/HierarchyDefaultTheme.d.ts.map +1 -1
- package/.internal/charts/hierarchy/HierarchyDefaultTheme.js +3 -0
- package/.internal/charts/hierarchy/HierarchyDefaultTheme.js.map +1 -1
- package/.internal/charts/map/MapChart.d.ts +9 -2
- package/.internal/charts/map/MapChart.d.ts.map +1 -1
- package/.internal/charts/map/MapChart.js +9 -2
- package/.internal/charts/map/MapChart.js.map +1 -1
- package/.internal/charts/map/MapPointSeries.d.ts.map +1 -1
- package/.internal/charts/map/MapPointSeries.js +1 -2
- package/.internal/charts/map/MapPointSeries.js.map +1 -1
- package/.internal/charts/map/MapUtils.js +2 -2
- package/.internal/charts/map/MapUtils.js.map +1 -1
- package/.internal/charts/percent/PercentSeries.d.ts.map +1 -1
- package/.internal/charts/percent/PercentSeries.js +3 -1
- package/.internal/charts/percent/PercentSeries.js.map +1 -1
- package/.internal/charts/wordcloud/WordCloud.d.ts.map +1 -1
- package/.internal/charts/wordcloud/WordCloud.js +6 -1
- package/.internal/charts/wordcloud/WordCloud.js.map +1 -1
- package/.internal/charts/xy/XYChart.d.ts.map +1 -1
- package/.internal/charts/xy/XYChart.js +6 -2
- package/.internal/charts/xy/XYChart.js.map +1 -1
- package/.internal/charts/xy/XYCursor.d.ts.map +1 -1
- package/.internal/charts/xy/XYCursor.js +4 -1
- package/.internal/charts/xy/XYCursor.js.map +1 -1
- package/.internal/charts/xy/axes/Axis.d.ts.map +1 -1
- package/.internal/charts/xy/axes/Axis.js +3 -0
- package/.internal/charts/xy/axes/Axis.js.map +1 -1
- package/.internal/charts/xy/axes/ValueAxis.js +4 -4
- package/.internal/charts/xy/axes/ValueAxis.js.map +1 -1
- package/.internal/charts/xy/series/BaseColumnSeries.d.ts +2 -0
- package/.internal/charts/xy/series/BaseColumnSeries.d.ts.map +1 -1
- package/.internal/charts/xy/series/BaseColumnSeries.js +36 -4
- package/.internal/charts/xy/series/BaseColumnSeries.js.map +1 -1
- package/.internal/charts/xy/series/LineSeries.js +2 -2
- package/.internal/charts/xy/series/LineSeries.js.map +1 -1
- package/.internal/charts/xy/series/XYSeries.d.ts +16 -1
- package/.internal/charts/xy/series/XYSeries.d.ts.map +1 -1
- package/.internal/charts/xy/series/XYSeries.js +69 -33
- package/.internal/charts/xy/series/XYSeries.js.map +1 -1
- package/.internal/core/Root.d.ts.map +1 -1
- package/.internal/core/Root.js +43 -14
- package/.internal/core/Root.js.map +1 -1
- package/.internal/core/render/Component.d.ts.map +1 -1
- package/.internal/core/render/Component.js +5 -1
- package/.internal/core/render/Component.js.map +1 -1
- package/.internal/core/render/Container.d.ts.map +1 -1
- package/.internal/core/render/Container.js +6 -0
- package/.internal/core/render/Container.js.map +1 -1
- package/.internal/core/render/Label.d.ts +8 -0
- package/.internal/core/render/Label.d.ts.map +1 -1
- package/.internal/core/render/Label.js +1 -0
- package/.internal/core/render/Label.js.map +1 -1
- package/.internal/core/render/Legend.d.ts +7 -1
- package/.internal/core/render/Legend.d.ts.map +1 -1
- package/.internal/core/render/Legend.js +5 -0
- package/.internal/core/render/Legend.js.map +1 -1
- package/.internal/core/render/Scrollbar.d.ts.map +1 -1
- package/.internal/core/render/Scrollbar.js +12 -2
- package/.internal/core/render/Scrollbar.js.map +1 -1
- package/.internal/core/render/SerialChart.d.ts.map +1 -1
- package/.internal/core/render/SerialChart.js +4 -0
- package/.internal/core/render/SerialChart.js.map +1 -1
- package/.internal/core/render/Series.d.ts +2 -0
- package/.internal/core/render/Series.d.ts.map +1 -1
- package/.internal/core/render/Series.js +48 -29
- package/.internal/core/render/Series.js.map +1 -1
- package/.internal/core/render/Sprite.d.ts +17 -4
- package/.internal/core/render/Sprite.d.ts.map +1 -1
- package/.internal/core/render/Sprite.js +24 -10
- package/.internal/core/render/Sprite.js.map +1 -1
- package/.internal/core/render/Text.d.ts +1 -0
- package/.internal/core/render/Text.d.ts.map +1 -1
- package/.internal/core/render/Text.js +1 -0
- package/.internal/core/render/Text.js.map +1 -1
- package/.internal/core/render/backend/CanvasRenderer.d.ts +4 -2
- package/.internal/core/render/backend/CanvasRenderer.d.ts.map +1 -1
- package/.internal/core/render/backend/CanvasRenderer.js +85 -17
- package/.internal/core/render/backend/CanvasRenderer.js.map +1 -1
- package/.internal/core/render/backend/Renderer.d.ts +2 -0
- package/.internal/core/render/backend/Renderer.d.ts.map +1 -1
- package/.internal/core/render/backend/Renderer.js.map +1 -1
- package/.internal/core/util/Accessibility.d.ts +12 -0
- package/.internal/core/util/Accessibility.d.ts.map +1 -1
- package/.internal/core/util/Accessibility.js.map +1 -1
- package/.internal/core/util/Children.d.ts.map +1 -1
- package/.internal/core/util/Children.js +4 -0
- package/.internal/core/util/Children.js.map +1 -1
- package/.internal/core/util/Disposer.d.ts +9 -0
- package/.internal/core/util/Disposer.d.ts.map +1 -1
- package/.internal/core/util/Disposer.js +24 -0
- package/.internal/core/util/Disposer.js.map +1 -1
- package/.internal/core/util/List.d.ts +6 -0
- package/.internal/core/util/List.d.ts.map +1 -1
- package/.internal/core/util/List.js +26 -3
- package/.internal/core/util/List.js.map +1 -1
- package/.internal/core/util/TextFormatter.d.ts.map +1 -1
- package/.internal/core/util/TextFormatter.js +3 -0
- package/.internal/core/util/TextFormatter.js.map +1 -1
- package/.internal/plugins/exporting/Annotator.d.ts +3 -1
- package/.internal/plugins/exporting/Annotator.d.ts.map +1 -1
- package/.internal/plugins/exporting/Annotator.js +46 -16
- package/.internal/plugins/exporting/Annotator.js.map +1 -1
- package/.internal/plugins/exporting/Exporting.d.ts +29 -0
- package/.internal/plugins/exporting/Exporting.d.ts.map +1 -1
- package/.internal/plugins/exporting/Exporting.js +15 -0
- package/.internal/plugins/exporting/Exporting.js.map +1 -1
- package/.internal/plugins/exporting/ExportingMenu.d.ts +2 -0
- package/.internal/plugins/exporting/ExportingMenu.d.ts.map +1 -1
- package/.internal/plugins/exporting/ExportingMenu.js +35 -14
- package/.internal/plugins/exporting/ExportingMenu.js.map +1 -1
- package/.internal/themes/DefaultTheme.d.ts.map +1 -1
- package/.internal/themes/DefaultTheme.js +2 -0
- package/.internal/themes/DefaultTheme.js.map +1 -1
- package/CHANGELOG.md +59 -1
- package/examples/javascript/flow-chord/package.json +1 -1
- package/examples/javascript/flow-chord-directed/package.json +1 -1
- package/examples/javascript/flow-chord-non-ribbon/package.json +1 -1
- package/examples/javascript/flow-sankey/package.json +1 -1
- package/examples/javascript/gauge/package.json +1 -1
- package/examples/javascript/gauge-bands/package.json +1 -1
- package/examples/javascript/hierarchy-force-directed/package.json +1 -1
- package/examples/javascript/hierarchy-pack/package.json +1 -1
- package/examples/javascript/hierarchy-partition/package.json +1 -1
- package/examples/javascript/hierarchy-sunburst/package.json +1 -1
- package/examples/javascript/hierarchy-tree/package.json +1 -1
- package/examples/javascript/hierarchy-treemap/package.json +1 -1
- package/examples/javascript/map-animating-along-lines/package.json +1 -1
- package/examples/javascript/map-day-and-night/package.json +1 -1
- package/examples/javascript/map-globe-rotate-to-country/package.json +1 -1
- package/examples/javascript/map-globe-with-projected-circles/package.json +1 -1
- package/examples/javascript/map-with-bubbles/package.json +1 -1
- package/examples/javascript/map-zoom-to-country/package.json +1 -1
- package/examples/javascript/misc-40-charts/package.json +1 -1
- package/examples/javascript/misc-microchart-grid/package.json +1 -1
- package/examples/javascript/pie-chart/package.json +1 -1
- package/examples/javascript/pie-donut-chart/package.json +1 -1
- package/examples/javascript/pie-variable-radius/package.json +1 -1
- package/examples/javascript/radar-column-iwatch-style/package.json +1 -1
- package/examples/javascript/radar-heat-map/package.json +1 -1
- package/examples/javascript/radar-line/package.json +1 -1
- package/examples/javascript/radar-time-line/package.json +1 -1
- package/examples/javascript/sliced-funnel/package.json +1 -1
- package/examples/javascript/sliced-pictorial-stacked/package.json +1 -1
- package/examples/javascript/sliced-pyramid/package.json +1 -1
- package/examples/javascript/venn-diagram/package.json +1 -1
- package/examples/javascript/wordcloud-with-data/package.json +1 -1
- package/examples/javascript/wordcloud-with-text/package.json +1 -1
- package/examples/javascript/xy-100-percent-stacked-column/package.json +1 -1
- package/examples/javascript/xy-animated-bullet-at-the-end-of-the-series/package.json +1 -1
- package/examples/javascript/xy-bubble/package.json +1 -1
- package/examples/javascript/xy-candlestick/package.json +1 -1
- package/examples/javascript/xy-clustered-column/package.json +1 -1
- package/examples/javascript/xy-column/package.json +1 -1
- package/examples/javascript/xy-comparing-series-google-analytics-style/package.json +1 -1
- package/examples/javascript/xy-data-grouping/package.json +1 -1
- package/examples/javascript/xy-draggable-range/package.json +1 -1
- package/examples/javascript/xy-drawing-series-with-mouse-or-touch/package.json +1 -1
- package/examples/javascript/xy-dumbbell plot/package.json +1 -1
- package/examples/javascript/xy-evenly-spaced-date-axis/package.json +1 -1
- package/examples/javascript/xy-line/package.json +1 -1
- package/examples/javascript/xy-line-highlight-on-legend-hover/package.json +1 -1
- package/examples/javascript/xy-live-data/package.json +1 -1
- package/examples/javascript/xy-multiple-synced-value-axes/package.json +1 -1
- package/examples/javascript/xy-ohlc/package.json +1 -1
- package/examples/javascript/xy-real-time-data-sorting/package.json +1 -1
- package/examples/javascript/xy-smoothed-line/package.json +1 -1
- package/examples/javascript/xy-stacked-and-clustered-column/package.json +1 -1
- package/examples/javascript/xy-stacked-column/package.json +1 -1
- package/examples/javascript/xy-stacked-step/package.json +1 -1
- package/examples/javascript/xy-stock/package.json +1 -1
- package/examples/javascript/xy-stock-comparing/package.json +1 -1
- package/examples/typescript/flow-chord/package.json +1 -1
- package/examples/typescript/flow-chord-directed/package.json +1 -1
- package/examples/typescript/flow-chord-non-ribbon/package.json +1 -1
- package/examples/typescript/flow-sankey/package.json +1 -1
- package/examples/typescript/gauge/package.json +1 -1
- package/examples/typescript/gauge-bands/package.json +1 -1
- package/examples/typescript/hierarchy-force-directed/package.json +1 -1
- package/examples/typescript/hierarchy-pack/package.json +1 -1
- package/examples/typescript/hierarchy-partition/package.json +1 -1
- package/examples/typescript/hierarchy-sunburst/package.json +1 -1
- package/examples/typescript/hierarchy-tree/package.json +1 -1
- package/examples/typescript/hierarchy-treemap/package.json +1 -1
- package/examples/typescript/map-animating-along-lines/package.json +1 -1
- package/examples/typescript/map-day-and-night/package.json +1 -1
- package/examples/typescript/map-globe-rotate-to-country/package.json +1 -1
- package/examples/typescript/map-globe-with-projected-circles/package.json +1 -1
- package/examples/typescript/map-with-bubbles/package.json +1 -1
- package/examples/typescript/map-zoom-to-country/package.json +1 -1
- package/examples/typescript/misc-40-charts/package.json +1 -1
- package/examples/typescript/misc-microchart-grid/package.json +1 -1
- package/examples/typescript/pie-chart/package.json +1 -1
- package/examples/typescript/pie-donut-chart/package.json +1 -1
- package/examples/typescript/pie-variable-radius/package.json +1 -1
- package/examples/typescript/radar-column-iwatch-style/package.json +1 -1
- package/examples/typescript/radar-heat-map/package.json +1 -1
- package/examples/typescript/radar-line/package.json +1 -1
- package/examples/typescript/radar-time-line/package.json +1 -1
- package/examples/typescript/sliced-funnel/package.json +1 -1
- package/examples/typescript/sliced-pictorial-stacked/package.json +1 -1
- package/examples/typescript/sliced-pyramid/package.json +1 -1
- package/examples/typescript/venn-diagram/package.json +1 -1
- package/examples/typescript/wordcloud-with-data/package.json +1 -1
- package/examples/typescript/wordcloud-with-text/package.json +1 -1
- package/examples/typescript/xy-100-percent-stacked-column/package.json +1 -1
- package/examples/typescript/xy-animated-bullet-at-the-end-of-the-series/package.json +1 -1
- package/examples/typescript/xy-bubble/package.json +1 -1
- package/examples/typescript/xy-candlestick/package.json +1 -1
- package/examples/typescript/xy-clustered-column/package.json +1 -1
- package/examples/typescript/xy-column/package.json +1 -1
- package/examples/typescript/xy-comparing-series-google-analytics-style/package.json +1 -1
- package/examples/typescript/xy-data-grouping/package.json +1 -1
- package/examples/typescript/xy-draggable-range/package.json +1 -1
- package/examples/typescript/xy-drawing-series-with-mouse-or-touch/package.json +1 -1
- package/examples/typescript/xy-dumbbell plot/package.json +1 -1
- package/examples/typescript/xy-evenly-spaced-date-axis/package.json +1 -1
- package/examples/typescript/xy-line/package.json +1 -1
- package/examples/typescript/xy-line-highlight-on-legend-hover/package.json +1 -1
- package/examples/typescript/xy-live-data/package.json +1 -1
- package/examples/typescript/xy-multiple-synced-value-axes/package.json +1 -1
- package/examples/typescript/xy-ohlc/package.json +1 -1
- package/examples/typescript/xy-real-time-data-sorting/package.json +1 -1
- package/examples/typescript/xy-smoothed-line/package.json +1 -1
- package/examples/typescript/xy-stacked-and-clustered-column/package.json +1 -1
- package/examples/typescript/xy-stacked-column/package.json +1 -1
- package/examples/typescript/xy-stacked-step/package.json +1 -1
- package/examples/typescript/xy-stock/package.json +1 -1
- package/examples/typescript/xy-stock-comparing/package.json +1 -1
- package/package.json +3 -2
|
@@ -285,6 +285,18 @@ var XYSeries = /** @class */ (function (_super) {
|
|
|
285
285
|
writable: true,
|
|
286
286
|
value: void 0
|
|
287
287
|
});
|
|
288
|
+
Object.defineProperty(_this, "_tooltipFieldX", {
|
|
289
|
+
enumerable: true,
|
|
290
|
+
configurable: true,
|
|
291
|
+
writable: true,
|
|
292
|
+
value: void 0
|
|
293
|
+
});
|
|
294
|
+
Object.defineProperty(_this, "_tooltipFieldY", {
|
|
295
|
+
enumerable: true,
|
|
296
|
+
configurable: true,
|
|
297
|
+
writable: true,
|
|
298
|
+
value: void 0
|
|
299
|
+
});
|
|
288
300
|
return _this;
|
|
289
301
|
}
|
|
290
302
|
Object.defineProperty(XYSeries.prototype, "_afterNew", {
|
|
@@ -324,6 +336,9 @@ var XYSeries = /** @class */ (function (_super) {
|
|
|
324
336
|
else if (change.type === "removeIndex") {
|
|
325
337
|
_this._removeAxisRange(change.oldValue);
|
|
326
338
|
}
|
|
339
|
+
else if (change.type === "moveIndex") {
|
|
340
|
+
_this._processAxisRange(change.value);
|
|
341
|
+
}
|
|
327
342
|
else {
|
|
328
343
|
throw new Error("Unknown IStreamEvent type");
|
|
329
344
|
}
|
|
@@ -356,7 +371,6 @@ var XYSeries = /** @class */ (function (_super) {
|
|
|
356
371
|
var axis = axisDataItem.component;
|
|
357
372
|
if (axis) {
|
|
358
373
|
axis._processAxisRange(axisDataItem, ["range", "series"]);
|
|
359
|
-
var axisFill = axisDataItem.get("axisFill");
|
|
360
374
|
var bullet = axisDataItem.get("bullet");
|
|
361
375
|
if (bullet) {
|
|
362
376
|
var sprite = bullet.get("sprite");
|
|
@@ -364,8 +378,8 @@ var XYSeries = /** @class */ (function (_super) {
|
|
|
364
378
|
sprite.setPrivate("visible", false);
|
|
365
379
|
}
|
|
366
380
|
}
|
|
381
|
+
var axisFill = axisDataItem.get("axisFill");
|
|
367
382
|
if (axisFill) {
|
|
368
|
-
this.children.push(axisFill);
|
|
369
383
|
container.set("mask", axisFill);
|
|
370
384
|
}
|
|
371
385
|
axis._seriesAxisRanges.push(axisDataItem);
|
|
@@ -377,11 +391,14 @@ var XYSeries = /** @class */ (function (_super) {
|
|
|
377
391
|
configurable: true,
|
|
378
392
|
writable: true,
|
|
379
393
|
value: function (axisRange) {
|
|
394
|
+
var axisDataItem = axisRange.axisDataItem;
|
|
395
|
+
var axis = axisDataItem.component;
|
|
396
|
+
axis.disposeDataItem(axisDataItem);
|
|
397
|
+
$array.remove(axis._seriesAxisRanges, axisDataItem);
|
|
380
398
|
var container = axisRange.container;
|
|
381
399
|
if (container) {
|
|
382
400
|
container.dispose();
|
|
383
401
|
}
|
|
384
|
-
axisRange.axisDataItem.dispose();
|
|
385
402
|
}
|
|
386
403
|
});
|
|
387
404
|
Object.defineProperty(XYSeries.prototype, "_updateFields", {
|
|
@@ -466,6 +483,9 @@ var XYSeries = /** @class */ (function (_super) {
|
|
|
466
483
|
configurable: true,
|
|
467
484
|
writable: true,
|
|
468
485
|
value: function (dataItem) {
|
|
486
|
+
if (!this.get("xAxis").inited || !this.get("yAxis").inited) {
|
|
487
|
+
return false;
|
|
488
|
+
}
|
|
469
489
|
if (dataItem.get(this._xField) != null && dataItem.get(this._yField) != null) {
|
|
470
490
|
return true;
|
|
471
491
|
}
|
|
@@ -566,6 +586,38 @@ var XYSeries = /** @class */ (function (_super) {
|
|
|
566
586
|
var xAxis = this.get("xAxis");
|
|
567
587
|
var yAxis = this.get("yAxis");
|
|
568
588
|
var baseAxis = this.get("baseAxis");
|
|
589
|
+
var tooltipPositionX = this.get("tooltipPositionX");
|
|
590
|
+
var tooltipFieldX;
|
|
591
|
+
switch (tooltipPositionX) {
|
|
592
|
+
case "open":
|
|
593
|
+
tooltipFieldX = this._xOpenField;
|
|
594
|
+
break;
|
|
595
|
+
case "low":
|
|
596
|
+
tooltipFieldX = this._xLowField;
|
|
597
|
+
break;
|
|
598
|
+
case "high":
|
|
599
|
+
tooltipFieldX = this._xHighField;
|
|
600
|
+
break;
|
|
601
|
+
default:
|
|
602
|
+
tooltipFieldX = this._xField;
|
|
603
|
+
}
|
|
604
|
+
this._tooltipFieldX = tooltipFieldX;
|
|
605
|
+
var tooltipPositionY = this.get("tooltipPositionY");
|
|
606
|
+
var tooltipFieldY;
|
|
607
|
+
switch (tooltipPositionY) {
|
|
608
|
+
case "open":
|
|
609
|
+
tooltipFieldY = this._yOpenField;
|
|
610
|
+
break;
|
|
611
|
+
case "low":
|
|
612
|
+
tooltipFieldY = this._yLowField;
|
|
613
|
+
break;
|
|
614
|
+
case "high":
|
|
615
|
+
tooltipFieldY = this._yHighField;
|
|
616
|
+
break;
|
|
617
|
+
default:
|
|
618
|
+
tooltipFieldY = this._yField;
|
|
619
|
+
}
|
|
620
|
+
this._tooltipFieldY = tooltipFieldY;
|
|
569
621
|
if (this.isDirty("baseAxis")) {
|
|
570
622
|
this._fixVC();
|
|
571
623
|
}
|
|
@@ -640,8 +692,8 @@ var XYSeries = /** @class */ (function (_super) {
|
|
|
640
692
|
this._dataGrouped = true;
|
|
641
693
|
}
|
|
642
694
|
if ((this._valuesDirty || this.isPrivateDirty("startIndex") || this.isPrivateDirty("endIndex") || this.isDirty("vcx") || this.isDirty("vcy") || this._stackDirty)) {
|
|
643
|
-
var startIndex = this.
|
|
644
|
-
var endIndex = this.
|
|
695
|
+
var startIndex = this.startIndex();
|
|
696
|
+
var endIndex = this.endIndex();
|
|
645
697
|
var minBulletDistance = this.get("minBulletDistance", 0);
|
|
646
698
|
if (minBulletDistance > 0 && baseAxis) {
|
|
647
699
|
if (baseAxis.get("renderer").axisLength() / (endIndex - startIndex) > minBulletDistance) {
|
|
@@ -704,10 +756,11 @@ var XYSeries = /** @class */ (function (_super) {
|
|
|
704
756
|
value: function () {
|
|
705
757
|
var _this = this;
|
|
706
758
|
if (this.axisRanges.length > 0) {
|
|
707
|
-
|
|
708
|
-
|
|
759
|
+
var mainContainerMask_1 = this._mainContainerMask;
|
|
760
|
+
if (mainContainerMask_1 == null) {
|
|
761
|
+
mainContainerMask_1 = this.children.push(Graphics.new(this._root, {}));
|
|
709
762
|
this._mainContainerMask = mainContainerMask_1;
|
|
710
|
-
mainContainerMask_1.set("draw", function (display) {
|
|
763
|
+
mainContainerMask_1.set("draw", function (display, target) {
|
|
711
764
|
var parent = _this.parent;
|
|
712
765
|
if (parent) {
|
|
713
766
|
var w = _this._root.container.width();
|
|
@@ -723,7 +776,7 @@ var XYSeries = /** @class */ (function (_super) {
|
|
|
723
776
|
if (fill) {
|
|
724
777
|
var draw = fill.get("draw");
|
|
725
778
|
if (draw) {
|
|
726
|
-
draw(
|
|
779
|
+
draw(display, target);
|
|
727
780
|
}
|
|
728
781
|
}
|
|
729
782
|
}
|
|
@@ -732,8 +785,11 @@ var XYSeries = /** @class */ (function (_super) {
|
|
|
732
785
|
_this.mainContainer._display.mask = mainContainerMask_1._display;
|
|
733
786
|
});
|
|
734
787
|
}
|
|
735
|
-
|
|
736
|
-
|
|
788
|
+
mainContainerMask_1.markDirty();
|
|
789
|
+
mainContainerMask_1._markDirtyKey("fill");
|
|
790
|
+
}
|
|
791
|
+
else {
|
|
792
|
+
this.mainContainer._display.mask = null;
|
|
737
793
|
}
|
|
738
794
|
}
|
|
739
795
|
});
|
|
@@ -749,23 +805,6 @@ var XYSeries = /** @class */ (function (_super) {
|
|
|
749
805
|
this._makeRangeMask();
|
|
750
806
|
}
|
|
751
807
|
});
|
|
752
|
-
Object.defineProperty(XYSeries.prototype, "_maskBaseDraw", {
|
|
753
|
-
enumerable: false,
|
|
754
|
-
configurable: true,
|
|
755
|
-
writable: true,
|
|
756
|
-
value: function () {
|
|
757
|
-
var _this = this;
|
|
758
|
-
var mainContainerMask = this._mainContainerMask;
|
|
759
|
-
mainContainerMask.set("draw", function (display) {
|
|
760
|
-
var parent = _this.parent;
|
|
761
|
-
if (parent) {
|
|
762
|
-
var w = parent.width();
|
|
763
|
-
var h = parent.height();
|
|
764
|
-
display.drawRect(0, 0, w, h);
|
|
765
|
-
}
|
|
766
|
-
});
|
|
767
|
-
}
|
|
768
|
-
});
|
|
769
808
|
Object.defineProperty(XYSeries.prototype, "_stack", {
|
|
770
809
|
enumerable: false,
|
|
771
810
|
configurable: true,
|
|
@@ -1331,8 +1370,8 @@ var XYSeries = /** @class */ (function (_super) {
|
|
|
1331
1370
|
var yAxis = this.get("yAxis");
|
|
1332
1371
|
var vcx = this.get("vcx", 1);
|
|
1333
1372
|
var vcy = this.get("vcy", 1);
|
|
1334
|
-
var xPos = xAxis.getDataItemPositionX(dataItem, this.
|
|
1335
|
-
var yPos = yAxis.getDataItemPositionY(dataItem, this.
|
|
1373
|
+
var xPos = xAxis.getDataItemPositionX(dataItem, this._tooltipFieldX, this._aLocationX0 + (this._aLocationX1 - this._aLocationX0) * itemLocationX, vcx);
|
|
1374
|
+
var yPos = yAxis.getDataItemPositionY(dataItem, this._tooltipFieldY, this._aLocationY0 + (this._aLocationY1 - this._aLocationY0) * itemLocationY, vcy);
|
|
1336
1375
|
var point = this.getPoint(xPos, yPos);
|
|
1337
1376
|
var show_1 = true;
|
|
1338
1377
|
$array.each(this._valueFields, function (field) {
|
|
@@ -1477,9 +1516,6 @@ var XYSeries = /** @class */ (function (_super) {
|
|
|
1477
1516
|
writable: true,
|
|
1478
1517
|
value: function () {
|
|
1479
1518
|
_super.prototype._afterDataChange.call(this);
|
|
1480
|
-
// this causes unneeded animation on live demo and it shouldn't be needed
|
|
1481
|
-
//this.setPrivate("startIndex", 0);
|
|
1482
|
-
//this.setPrivate("endIndex", this.dataItems.length);
|
|
1483
1519
|
this.resetExtremes();
|
|
1484
1520
|
}
|
|
1485
1521
|
});
|