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.
- package/Charting/Services/SciChartRenderer.d.ts +1 -0
- package/Charting/Services/SciChartRenderer.js +9 -3
- package/_wasm/scichart.browser.js +1 -1
- package/_wasm/scichart2d.js +95 -95
- package/_wasm/scichart2d.wasm +0 -0
- package/_wasm/scichart3d.js +95 -95
- package/_wasm/scichart3d.wasm +0 -0
- package/package.json +1 -1
|
@@ -93,9 +93,7 @@ var SciChartRenderer = /** @class */ (function () {
|
|
|
93
93
|
});
|
|
94
94
|
this.drawSvgAnnotations(svgAnnotations, xyAxesById[0], xyAxesById[1]);
|
|
95
95
|
// Update watermark
|
|
96
|
-
|
|
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;
|