scichart 2.0.2144 → 2.0.2146

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.
@@ -26,4 +26,5 @@ export declare class SciChartRenderer {
26
26
  private drawDebugAxes;
27
27
  private tryPerformAutoRangeOn;
28
28
  private onParentSurfaceRendered;
29
+ private updateWatermark;
29
30
  }
@@ -93,9 +93,7 @@ var SciChartRenderer = /** @class */ (function () {
93
93
  });
94
94
  this.drawSvgAnnotations(svgAnnotations, xyAxesById[0], xyAxesById[1]);
95
95
  // Update watermark
96
- var left = seriesViewRect.x;
97
- var bottom = SciChartSurfaceBase_1.SciChartSurfaceBase.domMasterCanvas.height - (seriesViewRect.top + seriesViewRect.height);
98
- this.sciChartSurface.updateWatermark(left, bottom);
96
+ this.updateWatermark(renderContext, seriesViewRect);
99
97
  // Step 10 Call OnParentSurfaceRendered
100
98
  this.onParentSurfaceRendered();
101
99
  nativeContext.SetBlendMode(oldBlendMode);
@@ -264,6 +262,14 @@ var SciChartRenderer = /** @class */ (function () {
264
262
  });
265
263
  this.sciChartSurface.rendered.raiseEvent();
266
264
  };
265
+ SciChartRenderer.prototype.updateWatermark = function (renderContext, seriesViewRect) {
266
+ var left = seriesViewRect.x;
267
+ var chartHeight = this.sciChartSurface.isCopyCanvasSurface
268
+ ? SciChartSurfaceBase_1.SciChartSurfaceBase.domMasterCanvas.height
269
+ : renderContext.viewportSize.height;
270
+ var bottom = chartHeight - (seriesViewRect.top + seriesViewRect.height);
271
+ this.sciChartSurface.updateWatermark(left, bottom);
272
+ };
267
273
  return SciChartRenderer;
268
274
  }());
269
275
  exports.SciChartRenderer = SciChartRenderer;